@elliemae/ds-datagrids 1.56.0 → 1.57.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DSDataGrid.js +12 -29
- package/cjs/DSDataGrid.js.map +1 -1
- package/cjs/DataGridImpl.js +12 -29
- package/cjs/DataGridImpl.js.map +1 -1
- package/cjs/PaginatedDataGrid.js +12 -26
- package/cjs/PaginatedDataGrid.js.map +1 -1
- package/cjs/columns/IconColumn.js +3 -3
- package/cjs/columns/IconColumn.js.map +1 -1
- package/cjs/components/BodyCell.js +1 -1
- package/cjs/components/BodyCell.js.map +1 -1
- package/cjs/components/EmptyState.js +4 -5
- package/cjs/components/EmptyState.js.map +1 -1
- package/cjs/components/HeaderCell.js +1 -1
- package/cjs/components/HeaderCell.js.map +1 -1
- package/cjs/components/RowsLoader.js +1 -1
- package/cjs/components/RowsLoader.js.map +1 -1
- package/cjs/components/Table.js +1 -1
- package/cjs/components/footer/addOptionalFooterComponents.js +2 -2
- package/cjs/components/header/PrimaryControls.js +2 -3
- package/cjs/components/header/PrimaryControls.js.map +1 -1
- package/cjs/components/index.js +1 -1
- package/cjs/components/renderers/index.js +2 -2
- package/cjs/components/renderers/renderRowsLoader.js +1 -1
- package/cjs/defaultPlugins.js +5 -11
- package/cjs/defaultPlugins.js.map +1 -1
- package/cjs/{index-9d448b9a.js → index-0be12eb8.js} +1 -1
- package/cjs/{index-9d448b9a.js.map → index-0be12eb8.js.map} +1 -1
- package/cjs/index.js +12 -29
- package/cjs/index.js.map +1 -1
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +3 -3
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
- package/cjs/plugins/body-header-scroll-sync/index.js +1 -1
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +5 -6
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +2 -3
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +1 -1
- package/cjs/plugins/column-dnd/index.js +2 -3
- package/cjs/plugins/column-dnd/index.js.map +1 -1
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +2 -4
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +2 -2
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +3 -4
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +3 -6
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- package/cjs/plugins/column-sizing/index.js +1 -3
- package/cjs/plugins/column-sizing/index.js.map +1 -1
- package/cjs/plugins/column-sizing/useColumnSizeService.js +1 -1
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +3 -3
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- package/cjs/plugins/column-sizing/utils.js +3 -3
- package/cjs/plugins/column-sizing/utils.js.map +1 -1
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +5 -9
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +8 -12
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +9 -18
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/cjs/plugins/custom-cell-renderer/index.js +5 -9
- package/cjs/plugins/custom-cell-renderer/index.js.map +1 -1
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +2 -3
- package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/cjs/plugins/editable/EditableComponents/TextBox.js +2 -3
- package/cjs/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/cjs/plugins/editable/EditableComponents/index.js +1 -2
- package/cjs/plugins/editable/EditableComponents/index.js.map +1 -1
- package/cjs/plugins/editable/EditablePlugin.js +5 -8
- package/cjs/plugins/editable/EditablePlugin.js.map +1 -1
- package/cjs/plugins/editable/decorateEditable.js +5 -7
- package/cjs/plugins/editable/decorateEditable.js.map +1 -1
- package/cjs/plugins/editable/getEditorComponent.js +1 -2
- package/cjs/plugins/editable/getEditorComponent.js.map +1 -1
- package/cjs/plugins/editable/index.js +3 -5
- package/cjs/plugins/editable/index.js.map +1 -1
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +4 -7
- package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +11 -18
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
- package/cjs/plugins/expandable-grid/ExpandedRow.js +7 -10
- package/cjs/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +3 -3
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +1 -1
- package/cjs/plugins/expandable-grid/index.js +7 -12
- package/cjs/plugins/expandable-grid/index.js.map +1 -1
- package/cjs/plugins/expandable-grid/useExpandGridState.js +3 -5
- package/cjs/plugins/expandable-grid/useExpandGridState.js.map +1 -1
- package/cjs/plugins/export-data/ExportDataPlugin.js +2 -2
- package/cjs/plugins/export-data/ExportDataPlugin.js.map +1 -1
- package/cjs/plugins/export-data/index.js +1 -1
- package/cjs/plugins/filterable/FilterablePlugin.js +10 -11
- package/cjs/plugins/filterable/FilterablePlugin.js.map +1 -1
- package/cjs/plugins/filterable/addFilterToColumn.js +8 -9
- package/cjs/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/cjs/plugins/filterable/components/FilterableHeader.js +13 -15
- package/cjs/plugins/filterable/components/FilterableHeader.js.map +1 -1
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +9 -8
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +4 -5
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +1 -1
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +133 -168
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +4 -5
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +7 -7
- package/cjs/plugins/filterable/filterableFormatter.js +9 -10
- package/cjs/plugins/filterable/filterableFormatter.js.map +1 -1
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +3 -3
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
- package/cjs/plugins/filterable/helper.js +7 -7
- package/cjs/plugins/filterable/helper.js.map +1 -1
- package/cjs/plugins/filterable/index.js +8 -9
- package/cjs/plugins/filterable/index.js.map +1 -1
- package/cjs/plugins/filterable/useFilterableState.js +1 -1
- package/cjs/plugins/index.js +11 -26
- package/cjs/plugins/index.js.map +1 -1
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
- package/cjs/plugins/pagination/PaginationPlugin.js +2 -3
- package/cjs/plugins/pagination/PaginationPlugin.js.map +1 -1
- package/cjs/plugins/pagination/components/Pagination.js +2 -2
- package/cjs/plugins/pagination/components/PerPageDropdown.js +5 -6
- package/cjs/plugins/pagination/components/PerPageDropdown.js.map +1 -1
- package/cjs/plugins/pagination/index.js +1 -2
- package/cjs/plugins/pagination/index.js.map +1 -1
- package/cjs/plugins/pagination/usePaginationState.js +2 -3
- package/cjs/plugins/pagination/usePaginationState.js.map +1 -1
- package/cjs/plugins/resizable/ResizablePlugin.js +2 -2
- package/cjs/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/cjs/plugins/resizable/index.js +1 -1
- package/cjs/plugins/resizable/utils.js +3 -3
- package/cjs/plugins/resizable/utils.js.map +1 -1
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +4 -5
- package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
- package/cjs/plugins/row-dnd/index.js +2 -2
- package/cjs/plugins/selectable/SelectablePlugin.js +3 -5
- package/cjs/plugins/selectable/SelectablePlugin.js.map +1 -1
- package/cjs/plugins/selectable/addSelectableColumn.js +2 -3
- package/cjs/plugins/selectable/addSelectableColumn.js.map +1 -1
- package/cjs/plugins/selectable/helper.js +3 -3
- package/cjs/plugins/selectable/helper.js.map +1 -1
- package/cjs/plugins/selectable/index.js +2 -4
- package/cjs/plugins/selectable/index.js.map +1 -1
- package/cjs/plugins/selectable/selectableFormatter.js +4 -7
- package/cjs/plugins/selectable/selectableFormatter.js.map +1 -1
- package/cjs/plugins/selectable/useSelectableState.js +6 -8
- package/cjs/plugins/selectable/useSelectableState.js.map +1 -1
- package/cjs/plugins/sortable/SortablePlugin.js +5 -7
- package/cjs/plugins/sortable/SortablePlugin.js.map +1 -1
- package/cjs/plugins/sortable/index.js +2 -4
- package/cjs/plugins/sortable/index.js.map +1 -1
- package/cjs/plugins/sortable/sortHeaderFormatter.js +3 -6
- package/cjs/plugins/sortable/sortHeaderFormatter.js.map +1 -1
- package/cjs/plugins/sortable/sorter.js +3 -3
- package/cjs/plugins/sortable/sorter.js.map +1 -1
- package/cjs/plugins/sortable/useSortableState.js +2 -3
- package/cjs/plugins/sortable/useSortableState.js.map +1 -1
- package/cjs/plugins/toolbar/RowRenderer.js +4 -4
- package/cjs/plugins/toolbar/RowRenderer.js.map +1 -1
- package/cjs/plugins/toolbar/ToolbarPlugin.js +3 -3
- package/cjs/plugins/toolbar/ToolbarTrigger.js +3 -4
- package/cjs/plugins/toolbar/ToolbarTrigger.js.map +1 -1
- package/cjs/plugins/toolbar/index.js +3 -3
- package/cjs/plugins/virtualization/AutoHeightList.js +5 -8
- package/cjs/plugins/virtualization/AutoHeightList.js.map +1 -1
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +4 -5
- package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
- package/cjs/plugins/virtualization/VirtualizedBody.js +6 -7
- package/cjs/plugins/virtualization/VirtualizedBody.js.map +1 -1
- package/cjs/plugins/virtualization/index.js +1 -2
- package/cjs/plugins/virtualization/index.js.map +1 -1
- package/cjs/renders/CellWithAddons.js +7 -6
- package/cjs/renders/CellWithAddons.js.map +1 -1
- package/cjs/renders/index.js +2 -2
- package/cjs/renders/styled.js +3 -2
- package/cjs/renders/styled.js.map +1 -1
- package/cjs/utilities/getPluginsFromProps.js +12 -26
- package/cjs/utilities/getPluginsFromProps.js.map +1 -1
- package/esm/DSDataGrid.js +12 -29
- package/esm/DSDataGrid.js.map +1 -1
- package/esm/DataGridImpl.js +12 -29
- package/esm/DataGridImpl.js.map +1 -1
- package/esm/PaginatedDataGrid.js +12 -26
- package/esm/PaginatedDataGrid.js.map +1 -1
- package/esm/columns/IconColumn.js +2 -2
- package/esm/columns/IconColumn.js.map +1 -1
- package/esm/components/BodyCell.js +1 -1
- package/esm/components/BodyCell.js.map +1 -1
- package/esm/components/EmptyState.js +3 -3
- package/esm/components/EmptyState.js.map +1 -1
- package/esm/components/HeaderCell.js +1 -1
- package/esm/components/HeaderCell.js.map +1 -1
- package/esm/components/RowsLoader.js +1 -1
- package/esm/components/RowsLoader.js.map +1 -1
- package/esm/components/Table.js +1 -1
- package/esm/components/footer/addOptionalFooterComponents.js +2 -2
- package/esm/components/header/PrimaryControls.js +1 -1
- package/esm/components/header/PrimaryControls.js.map +1 -1
- package/esm/components/index.js +1 -1
- package/esm/components/renderers/index.js +2 -2
- package/esm/components/renderers/renderRowsLoader.js +1 -1
- package/esm/defaultPlugins.js +5 -11
- package/esm/defaultPlugins.js.map +1 -1
- package/esm/{index-203a51cc.js → index-afbbe9c8.js} +1 -1
- package/esm/{index-203a51cc.js.map → index-afbbe9c8.js.map} +1 -1
- package/esm/index.js +12 -29
- package/esm/index.js.map +1 -1
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +1 -1
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +1 -1
- package/esm/plugins/body-header-scroll-sync/index.js +1 -1
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +2 -3
- package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +1 -1
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +1 -1
- package/esm/plugins/column-dnd/index.js +2 -3
- package/esm/plugins/column-dnd/index.js.map +1 -1
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +1 -3
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +1 -1
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -2
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +1 -3
- package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- package/esm/plugins/column-sizing/index.js +1 -3
- package/esm/plugins/column-sizing/index.js.map +1 -1
- package/esm/plugins/column-sizing/useColumnSizeService.js +1 -1
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +1 -1
- package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- package/esm/plugins/column-sizing/utils.js +1 -1
- package/esm/plugins/column-sizing/utils.js.map +1 -1
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +5 -9
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +5 -9
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +4 -8
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/esm/plugins/custom-cell-renderer/index.js +5 -9
- package/esm/plugins/custom-cell-renderer/index.js.map +1 -1
- package/esm/plugins/editable/EditableComponents/ComboBox.js +1 -1
- package/esm/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/esm/plugins/editable/EditableComponents/TextBox.js +1 -1
- package/esm/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/esm/plugins/editable/EditableComponents/index.js +1 -2
- package/esm/plugins/editable/EditableComponents/index.js.map +1 -1
- package/esm/plugins/editable/EditablePlugin.js +3 -5
- package/esm/plugins/editable/EditablePlugin.js.map +1 -1
- package/esm/plugins/editable/decorateEditable.js +3 -4
- package/esm/plugins/editable/decorateEditable.js.map +1 -1
- package/esm/plugins/editable/getEditorComponent.js +1 -2
- package/esm/plugins/editable/getEditorComponent.js.map +1 -1
- package/esm/plugins/editable/index.js +3 -5
- package/esm/plugins/editable/index.js.map +1 -1
- package/esm/plugins/expandable-grid/ExpandableColumn.js +3 -4
- package/esm/plugins/expandable-grid/ExpandableColumn.js.map +1 -1
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +7 -12
- package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +1 -1
- package/esm/plugins/expandable-grid/ExpandedRow.js +6 -9
- package/esm/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +2 -2
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +1 -1
- package/esm/plugins/expandable-grid/index.js +7 -12
- package/esm/plugins/expandable-grid/index.js.map +1 -1
- package/esm/plugins/expandable-grid/useExpandGridState.js +1 -2
- package/esm/plugins/expandable-grid/useExpandGridState.js.map +1 -1
- package/esm/plugins/export-data/ExportDataPlugin.js +1 -1
- package/esm/plugins/export-data/ExportDataPlugin.js.map +1 -1
- package/esm/plugins/export-data/index.js +1 -1
- package/esm/plugins/filterable/FilterablePlugin.js +8 -9
- package/esm/plugins/filterable/FilterablePlugin.js.map +1 -1
- package/esm/plugins/filterable/addFilterToColumn.js +8 -9
- package/esm/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/esm/plugins/filterable/components/FilterableHeader.js +9 -10
- package/esm/plugins/filterable/components/FilterableHeader.js.map +1 -1
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +9 -7
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +1 -1
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +4 -4
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +1 -1
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +132 -165
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +1 -1
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +1 -1
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +7 -7
- package/esm/plugins/filterable/filterableFormatter.js +9 -10
- package/esm/plugins/filterable/filterableFormatter.js.map +1 -1
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +1 -1
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +1 -1
- package/esm/plugins/filterable/helper.js +1 -1
- package/esm/plugins/filterable/helper.js.map +1 -1
- package/esm/plugins/filterable/index.js +8 -9
- package/esm/plugins/filterable/index.js.map +1 -1
- package/esm/plugins/filterable/useFilterableState.js +1 -1
- package/esm/plugins/index.js +11 -26
- package/esm/plugins/index.js.map +1 -1
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
- package/esm/plugins/pagination/PaginationPlugin.js +1 -2
- package/esm/plugins/pagination/PaginationPlugin.js.map +1 -1
- package/esm/plugins/pagination/components/Pagination.js +2 -2
- package/esm/plugins/pagination/components/PerPageDropdown.js +2 -2
- package/esm/plugins/pagination/components/PerPageDropdown.js.map +1 -1
- package/esm/plugins/pagination/index.js +1 -2
- package/esm/plugins/pagination/index.js.map +1 -1
- package/esm/plugins/pagination/usePaginationState.js +1 -1
- package/esm/plugins/pagination/usePaginationState.js.map +1 -1
- package/esm/plugins/resizable/ResizablePlugin.js +1 -1
- package/esm/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/esm/plugins/resizable/index.js +1 -1
- package/esm/plugins/resizable/utils.js +1 -1
- package/esm/plugins/resizable/utils.js.map +1 -1
- package/esm/plugins/row-dnd/DndRowsPlugin.js +2 -2
- package/esm/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
- package/esm/plugins/row-dnd/index.js +2 -2
- package/esm/plugins/selectable/SelectablePlugin.js +2 -4
- package/esm/plugins/selectable/SelectablePlugin.js.map +1 -1
- package/esm/plugins/selectable/addSelectableColumn.js +2 -3
- package/esm/plugins/selectable/addSelectableColumn.js.map +1 -1
- package/esm/plugins/selectable/helper.js +1 -1
- package/esm/plugins/selectable/helper.js.map +1 -1
- package/esm/plugins/selectable/index.js +2 -4
- package/esm/plugins/selectable/index.js.map +1 -1
- package/esm/plugins/selectable/selectableFormatter.js +2 -3
- package/esm/plugins/selectable/selectableFormatter.js.map +1 -1
- package/esm/plugins/selectable/useSelectableState.js +1 -2
- package/esm/plugins/selectable/useSelectableState.js.map +1 -1
- package/esm/plugins/sortable/SortablePlugin.js +2 -4
- package/esm/plugins/sortable/SortablePlugin.js.map +1 -1
- package/esm/plugins/sortable/index.js +2 -4
- package/esm/plugins/sortable/index.js.map +1 -1
- package/esm/plugins/sortable/sortHeaderFormatter.js +1 -2
- package/esm/plugins/sortable/sortHeaderFormatter.js.map +1 -1
- package/esm/plugins/sortable/sorter.js +1 -1
- package/esm/plugins/sortable/sorter.js.map +1 -1
- package/esm/plugins/sortable/useSortableState.js +1 -1
- package/esm/plugins/sortable/useSortableState.js.map +1 -1
- package/esm/plugins/toolbar/RowRenderer.js +3 -3
- package/esm/plugins/toolbar/RowRenderer.js.map +1 -1
- package/esm/plugins/toolbar/ToolbarPlugin.js +3 -3
- package/esm/plugins/toolbar/ToolbarTrigger.js +2 -2
- package/esm/plugins/toolbar/ToolbarTrigger.js.map +1 -1
- package/esm/plugins/toolbar/index.js +3 -3
- package/esm/plugins/virtualization/AutoHeightList.js +1 -3
- package/esm/plugins/virtualization/AutoHeightList.js.map +1 -1
- package/esm/plugins/virtualization/VirtualizationPlugin.js +1 -2
- package/esm/plugins/virtualization/VirtualizationPlugin.js.map +1 -1
- package/esm/plugins/virtualization/VirtualizedBody.js +1 -2
- package/esm/plugins/virtualization/VirtualizedBody.js.map +1 -1
- package/esm/plugins/virtualization/index.js +1 -2
- package/esm/plugins/virtualization/index.js.map +1 -1
- package/esm/renders/CellWithAddons.js +2 -2
- package/esm/renders/CellWithAddons.js.map +1 -1
- package/esm/renders/index.js +2 -2
- package/esm/renders/styled.js +1 -1
- package/esm/renders/styled.js.map +1 -1
- package/esm/utilities/getPluginsFromProps.js +12 -26
- package/esm/utilities/getPluginsFromProps.js.map +1 -1
- package/package.json +15 -15
package/cjs/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var renders_CellWithAddons = require('./renders/CellWithAddons.js');
|
|
|
31
31
|
var renders_styled = require('./renders/styled.js');
|
|
32
32
|
require('react');
|
|
33
33
|
require('react-desc');
|
|
34
|
-
require('@elliemae/ds-
|
|
34
|
+
require('@elliemae/ds-truncated-tooltip-text');
|
|
35
35
|
require('./DataGridImpl.js');
|
|
36
36
|
require('@babel/runtime/helpers/extends');
|
|
37
37
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -48,13 +48,13 @@ require('prop-types');
|
|
|
48
48
|
require('@elliemae/ds-shared/createDataInstance/utils');
|
|
49
49
|
require('./components/BodyCell.js');
|
|
50
50
|
require('@elliemae/ds-shared/FocusGroup/FocusGrid');
|
|
51
|
-
require('./index-
|
|
51
|
+
require('./index-0be12eb8.js');
|
|
52
52
|
require('./components/renderers/defaultClassedRenderers.js');
|
|
53
53
|
require('@elliemae/ds-classnames');
|
|
54
54
|
require('./blockNames.js');
|
|
55
55
|
require('./components/renderers/renderRowsLoader.js');
|
|
56
56
|
require('./components/RowsLoader.js');
|
|
57
|
-
require('@elliemae/ds-
|
|
57
|
+
require('@elliemae/ds-spinner');
|
|
58
58
|
require('./components/footer/addOptionalFooterComponents.js');
|
|
59
59
|
require('./plugins/pagination/components/Pagination.js');
|
|
60
60
|
require('./plugins/pagination/components/Paginator.js');
|
|
@@ -62,8 +62,8 @@ require('react-pagify');
|
|
|
62
62
|
require('segmentize');
|
|
63
63
|
require('./plugins/pagination/components/PerPageDropdown.js');
|
|
64
64
|
require('memoize-one');
|
|
65
|
-
require('@elliemae/ds-utilities
|
|
66
|
-
require('@elliemae/ds-
|
|
65
|
+
require('@elliemae/ds-utilities');
|
|
66
|
+
require('@elliemae/ds-form');
|
|
67
67
|
require('./components/header/addOptionalHeaderComponents.js');
|
|
68
68
|
require('@elliemae/ds-filterbar');
|
|
69
69
|
require('./utilities/getPluginsFromProps.js');
|
|
@@ -74,17 +74,14 @@ require('./plugins/grouping-grid/walkStrategy.js');
|
|
|
74
74
|
require('./plugins/grouping-by/GroupingByPlugin.js');
|
|
75
75
|
require('lodash');
|
|
76
76
|
require('react-sortable-hoc');
|
|
77
|
-
require('@elliemae/ds-icons
|
|
77
|
+
require('@elliemae/ds-icons');
|
|
78
78
|
require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
79
|
-
require('@elliemae/ds-utilities/system');
|
|
80
79
|
require('./plugins/column-dnd/decorateGridWithDndColumns.js');
|
|
81
80
|
require('@babel/runtime/helpers/slicedToArray');
|
|
82
81
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
83
82
|
require('@babel/runtime/regenerator');
|
|
84
|
-
require('@elliemae/ds-utilities/hooks/useDerivedStateFromProps');
|
|
85
83
|
require('./plugins/editable/decorateEditable.js');
|
|
86
84
|
require('react-edit');
|
|
87
|
-
require('@elliemae/ds-icons/EditPencil');
|
|
88
85
|
require('./plugins/editable/getEditorComponent.js');
|
|
89
86
|
require('@babel/runtime/helpers/classCallCheck');
|
|
90
87
|
require('@babel/runtime/helpers/createClass');
|
|
@@ -92,11 +89,8 @@ require('@babel/runtime/helpers/assertThisInitialized');
|
|
|
92
89
|
require('@babel/runtime/helpers/inherits');
|
|
93
90
|
require('@babel/runtime/helpers/possibleConstructorReturn');
|
|
94
91
|
require('@babel/runtime/helpers/getPrototypeOf');
|
|
95
|
-
require('@elliemae/ds-basic/form/TextBox');
|
|
96
92
|
require('sortabular');
|
|
97
93
|
require('./plugins/sortable/sortHeaderFormatter.js');
|
|
98
|
-
require('@elliemae/ds-icons/ArrowheadDown');
|
|
99
|
-
require('@elliemae/ds-icons/ArrowheadUp');
|
|
100
94
|
require('./plugins/sortable/useSortableState.js');
|
|
101
95
|
require('sortabular/dist');
|
|
102
96
|
require('./plugins/sortable/checkIfSortable.js');
|
|
@@ -105,31 +99,27 @@ require('moment');
|
|
|
105
99
|
require('obj-str');
|
|
106
100
|
require('./plugins/selectable/addSelectableColumn.js');
|
|
107
101
|
require('./plugins/selectable/selectableFormatter.js');
|
|
108
|
-
require('@elliemae/ds-basic/form/Checkbox');
|
|
109
|
-
require('@elliemae/ds-basic/form/Radio');
|
|
110
102
|
require('./plugins/selectable/useSelectableState.js');
|
|
111
103
|
require('./plugins/selectable/helper.js');
|
|
112
104
|
require('./plugins/filterable/addFilterToColumn.js');
|
|
113
105
|
require('./plugins/filterable/filterableFormatter.js');
|
|
114
106
|
require('./plugins/filterable/components/FilterableHeader.js');
|
|
115
|
-
require('@elliemae/ds-utilities/hooks/useResizeObserver');
|
|
116
107
|
require('@elliemae/ds-system');
|
|
117
108
|
require('./plugins/filterable/components/filterable-menus/getFilterMenuByType.js');
|
|
118
109
|
require('./plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js');
|
|
119
110
|
require('@elliemae/ds-controlled-form');
|
|
120
|
-
require('@elliemae/ds-
|
|
121
|
-
require('@elliemae/ds-
|
|
122
|
-
require('@elliemae/ds-basic/Button');
|
|
111
|
+
require('@elliemae/ds-popper');
|
|
112
|
+
require('@elliemae/ds-button');
|
|
123
113
|
require('./plugins/filterable/components/filterable-menus/defaultDateFormat.js');
|
|
124
114
|
require('./plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js');
|
|
125
115
|
require('@elliemae/ds-grid');
|
|
126
116
|
require('./plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js');
|
|
127
|
-
require('@elliemae/ds-
|
|
128
|
-
require('@elliemae/ds-
|
|
117
|
+
require('@elliemae/ds-basic/Popper');
|
|
118
|
+
require('@elliemae/ds-basic/Button');
|
|
119
|
+
require('styled-components');
|
|
129
120
|
require('./plugins/filterable/components/filterable-menus/TextFilterMenu.js');
|
|
130
121
|
require('@elliemae/ds-dropdownmenu');
|
|
131
122
|
require('@elliemae/ds-menu');
|
|
132
|
-
require('@elliemae/ds-icons/SearchSmall');
|
|
133
123
|
require('./plugins/filterable/helper.js');
|
|
134
124
|
require('./plugins/filterable/filtering-helper/filterRowsByQuery.js');
|
|
135
125
|
require('./plugins/filterable/filtering-helper/strategiesOperators.js');
|
|
@@ -138,17 +128,14 @@ require('./plugins/filterable/useFilterableState.js');
|
|
|
138
128
|
require('uuid');
|
|
139
129
|
require('./plugins/toolbar/RowRenderer.js');
|
|
140
130
|
require('./plugins/toolbar/ToolbarTrigger.js');
|
|
141
|
-
require('styled-components');
|
|
142
|
-
require('@elliemae/ds-icons/MoreOptionsVert');
|
|
143
131
|
require('./plugins/pagination/helper.js');
|
|
144
132
|
require('./plugins/pagination/usePaginationState.js');
|
|
145
133
|
require('./components/NoResults.js');
|
|
146
134
|
require('./plugins/virtualization/VirtualizedBody.js');
|
|
147
135
|
require('./plugins/virtualization/VirtualizedBodyRow.js');
|
|
148
136
|
require('./plugins/virtualization/helper.js');
|
|
149
|
-
require('@elliemae/ds-icons/ArrowheadRight');
|
|
150
137
|
require('./plugins/expandable-grid/ExpandedRow.js');
|
|
151
|
-
require('@elliemae/ds-
|
|
138
|
+
require('@elliemae/ds-separator');
|
|
152
139
|
require('@elliemae/ds-shared/defer-render-hoc');
|
|
153
140
|
require('./plugins/column-sizing/useStylesheetHelpers.js');
|
|
154
141
|
require('stylesheet-helpers');
|
|
@@ -161,15 +148,11 @@ require('./plugins/column-sizing/ext-points/decorateColumn.js');
|
|
|
161
148
|
require('./plugins/column-sizing/columnMeasurerTransformer.js');
|
|
162
149
|
require('./plugins/expandable-grid/ExpandedRowExtra.js');
|
|
163
150
|
require('./plugins/expandable-grid/useExpandGridState.js');
|
|
164
|
-
require('@elliemae/ds-utilities/hooks/useExpandState');
|
|
165
151
|
require('./defaultPlugins.js');
|
|
166
152
|
require('./utilities/normalizeData.js');
|
|
167
|
-
require('@elliemae/ds-basic/Grid');
|
|
168
|
-
require('@elliemae/ds-icons/WarningTriangle');
|
|
169
153
|
require('@elliemae/ds-shared/ScrollSync');
|
|
170
154
|
require('./plugins/custom-cell-renderer/addCustomRendererToCell.js');
|
|
171
155
|
require('./plugins/custom-cell-renderer/getRendererComponent.js');
|
|
172
|
-
require('@elliemae/ds-basic/form/Toggle');
|
|
173
156
|
require('./plugins/resizable/decorateResizable.js');
|
|
174
157
|
require('./plugins/resizable/useResizeHandle.js');
|
|
175
158
|
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
8
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
9
9
|
var ScrollSync = require('@elliemae/ds-shared/ScrollSync');
|
|
10
10
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
11
11
|
var utilities_getScrollbarSize = require('../../utilities/getScrollbarSize.js');
|
|
@@ -25,7 +25,7 @@ var HeaderSyncHoc = function HeaderSyncHoc(Component) {
|
|
|
25
25
|
return /*#__PURE__*/React__default['default'].createElement(ScrollSync.ScrollSyncPane, null, function (_ref) {
|
|
26
26
|
var registerPane = _ref.registerPane;
|
|
27
27
|
return /*#__PURE__*/React__default['default'].createElement(Component, _extends__default['default']({}, props, {
|
|
28
|
-
innerRef:
|
|
28
|
+
innerRef: dsUtilities.mergeRefs(props.innerRef, registerPane)
|
|
29
29
|
}));
|
|
30
30
|
});
|
|
31
31
|
};
|
|
@@ -100,7 +100,7 @@ var BodySyncHoc = function BodySyncHoc(Component, notPaginated, grid) {
|
|
|
100
100
|
rowRenderer: rowRenderer,
|
|
101
101
|
rows: rows,
|
|
102
102
|
useDragHandle: useDragHandle,
|
|
103
|
-
innerRef:
|
|
103
|
+
innerRef: dsUtilities.mergeRefs(innerRef, registerPane, t)
|
|
104
104
|
}, rest));
|
|
105
105
|
});
|
|
106
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BodyHeaderScrollSyncPlugin.js","sources":["../../../../src/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.tsx"],"sourcesContent":["/* eslint-disable no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\n/* eslint-disable react/prop-types */\n/* eslint-disable max-lines */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable no-param-reassign */\n/* eslint-disable react/display-name */\nimport React, { useMemo, useRef, useEffect } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities
|
|
1
|
+
{"version":3,"file":"BodyHeaderScrollSyncPlugin.js","sources":["../../../../src/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.tsx"],"sourcesContent":["/* eslint-disable no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\n/* eslint-disable react/prop-types */\n/* eslint-disable max-lines */\n/* eslint-disable react-hooks/rules-of-hooks */\n/* eslint-disable no-param-reassign */\n/* eslint-disable react/display-name */\nimport React, { useMemo, useRef, useEffect } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities';\nimport { ScrollSync, ScrollSyncPane } from '@elliemae/ds-shared/ScrollSync';\nimport createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { getScrollbarWidth } from '../../utilities/getScrollbarSize';\n\nconst SCROLLBAR_WIDTH = getScrollbarWidth(2);\n\nconst HeaderSyncHoc = (Component) => (props) =>\n (\n <ScrollSyncPane>\n {({ registerPane }) => <Component {...props} innerRef={mergeRefs(props.innerRef, registerPane)} />}\n </ScrollSyncPane>\n );\nconst BodySyncHoc =\n (Component, notPaginated, grid) =>\n ({\n children,\n classProps,\n columns,\n getContainer,\n helperClass,\n innerBodyRef,\n innerRef,\n isPlaceholderActive,\n listProps,\n lockAxis,\n noResultsPlaceholder,\n numRowsVisible,\n onSortEnd,\n onSortOver,\n onSortStart,\n rowKey,\n rowRenderer,\n rows,\n useDragHandle,\n className,\n listComponent,\n ...rest\n }) => {\n const t = useRef();\n const repositionToolbarBasedOnBodyScrollPosition = (SCROLLBAR_WIDTH) => () => {\n grid.refs.body.current.style.setProperty(\n '--toolbar-scroll',\n `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 15}px`,\n );\n grid.refs.body.current.style.setProperty(\n '--toolbar-scroll-paginated',\n `${grid.refs.body.current.offsetWidth + grid.refs.body.current.scrollLeft - 19}px`,\n );\n };\n useEffect(() => {\n setTimeout(repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH), 300);\n }, []);\n useEffect(() => {\n window.addEventListener('resize', repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));\n return () => {\n window.removeEventListener('resize', repositionToolbarBasedOnBodyScrollPosition(-SCROLLBAR_WIDTH));\n };\n });\n return (\n <ScrollSyncPane notPaginated={notPaginated}>\n {({ registerPane }) => (\n <Component\n ref={t}\n classProps={classProps}\n className={className}\n listComponent={listComponent}\n columns={columns}\n getContainer={getContainer}\n helperClass={helperClass}\n innerBodyRef={innerBodyRef}\n // innerRef={innerRef}\n isPlaceholderActive={isPlaceholderActive}\n listProps={listProps}\n lockAxis={lockAxis}\n noResultsPlaceholder={noResultsPlaceholder}\n numRowsVisible={numRowsVisible}\n onSortEnd={onSortEnd}\n onSortOver={onSortOver}\n onSortStart={onSortStart}\n rowKey={rowKey}\n rowRenderer={rowRenderer}\n rows={rows}\n useDragHandle={useDragHandle}\n innerRef={mergeRefs(innerRef, registerPane, t)}\n {...rest}\n />\n )}\n </ScrollSyncPane>\n );\n };\n\nconst TableSyncHoc = (Component) => (props) =>\n (\n <ScrollSync\n proportional={false}\n onScroll={(e) => {\n e.target.style.setProperty('--toolbar-scroll', `${e.target.offsetWidth + e.target.scrollLeft - 15}px`);\n e.target.style.setProperty(\n '--toolbar-scroll-paginated',\n `${e.target.offsetWidth + e.target.scrollLeft - 19}px`,\n );\n }}\n >\n <Component {...props} />\n </ScrollSync>\n );\n\nconst decorateRenderers = (renderers, grid) => {\n const HeaderWrapper = renderers.header.wrapper;\n const BodyWrapper = renderers.body.wrapper;\n const Table = renderers.table;\n const { paginated } = grid.props;\n\n renderers.table = useMemo(() => TableSyncHoc(Table), []);\n renderers.header.wrapper = useMemo(() => HeaderSyncHoc(HeaderWrapper), []);\n renderers.body.wrapper = useMemo(() => BodySyncHoc(BodyWrapper, !paginated, grid), []);\n\n return renderers;\n};\n\nexport const BodyHeaderScrollSyncPlugin = createInstancePlugin('body-header-scroll-sync', {\n decorateRenderers,\n});\n"],"names":["getScrollbarWidth","HeaderSyncHoc","Component","props","React","ScrollSyncPane","registerPane","mergeRefs","innerRef","BodySyncHoc","notPaginated","grid","children","classProps","columns","getContainer","helperClass","innerBodyRef","isPlaceholderActive","listProps","lockAxis","noResultsPlaceholder","numRowsVisible","onSortEnd","onSortOver","onSortStart","rowKey","rowRenderer","rows","useDragHandle","className","listComponent","rest","t","useRef","repositionToolbarBasedOnBodyScrollPosition","SCROLLBAR_WIDTH","refs","body","current","style","setProperty","offsetWidth","scrollLeft","useEffect","setTimeout","window","addEventListener","removeEventListener","TableSyncHoc","ScrollSync","e","target","decorateRenderers","renderers","HeaderWrapper","header","wrapper","BodyWrapper","Table","table","paginated","useMemo","BodyHeaderScrollSyncPlugin","createInstancePlugin"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcwBA,4CAAiB,CAAC,CAAD;;AAEzC,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAACC,SAAD;AAAA,SAAe,UAACC,KAAD;AAAA,wBAEjCC,wCAACC,yBAAD,QACG;AAAA,UAAGC,YAAH,QAAGA,YAAH;AAAA,0BAAsBF,wCAAC,SAAD,mCAAeD,KAAf;AAAsB,QAAA,QAAQ,EAAEI,qBAAS,CAACJ,KAAK,CAACK,QAAP,EAAiBF,YAAjB;AAAzC,SAAtB;AAAA,KADH,CAFiC;AAAA,GAAf;AAAA,CAAtB;;AAMA,IAAMG,WAAW,GACf,SADIA,WACJ,CAACP,SAAD,EAAYQ,YAAZ,EAA0BC,IAA1B;AAAA,SACA,iBAuBM;AAAA,UAtBJC,QAsBI;AAAA,YArBJC,UAqBI,SArBJA,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B,GAA2BK,aAAO,CAAC;AAAA,WAAM7D,aAAa,CAACsD,aAAD,CAAnB;AAAA,GAAD,EAAqC,EAArC,CAAlC;AACAD,EAAAA,SAAS,CAAChB,IAAV,CAAemB,OAAf,GAAyBK,aAAO,CAAC;AAAA,WAAMrD,WAAW,CAACiD,WAAD,EAAc,CAACG,SAAf,EAA0BlD,IAA1B,CAAjB;AAAA,GAAD,EAAmD,EAAnD,CAAhC;AAEA,SAAO2C,SAAP;AACD,CAXD;;IAaaS,0BAA0B,GAAGC,wCAAoB,CAAC,yBAAD,EAA4B;AACxFX,EAAAA,iBAAiB,EAAjBA;AADwF,CAA5B;;;;"}
|
|
@@ -6,7 +6,7 @@ var plugins_bodyHeaderScrollSync_BodyHeaderScrollSyncPlugin = require('./BodyHea
|
|
|
6
6
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
7
|
require('@babel/runtime/helpers/extends');
|
|
8
8
|
require('react');
|
|
9
|
-
require('@elliemae/ds-utilities
|
|
9
|
+
require('@elliemae/ds-utilities');
|
|
10
10
|
require('@elliemae/ds-shared/ScrollSync');
|
|
11
11
|
require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
12
12
|
require('../../utilities/getScrollbarSize.js');
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
8
|
-
var
|
|
9
|
-
var system = require('@elliemae/ds-utilities/system');
|
|
8
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
10
9
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
11
10
|
var plugins_columnDnd_decorateGridWithDndColumns = require('./decorateGridWithDndColumns.js');
|
|
12
|
-
require('@elliemae/ds-icons
|
|
11
|
+
require('@elliemae/ds-icons');
|
|
13
12
|
require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
14
13
|
|
|
15
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -62,7 +61,7 @@ var getHeaderRowProps = function getHeaderRowProps(props, grid) {
|
|
|
62
61
|
transitionDuration: '300ms',
|
|
63
62
|
transform: "translate3d(".concat(columnDraggingOffset.current, "px, 0, 0)")
|
|
64
63
|
});
|
|
65
|
-
sortedColumns.current =
|
|
64
|
+
sortedColumns.current = dsUtilities.arrayMove(sortedColumns.current, oldIndex, newIndex);
|
|
66
65
|
onMoveColumnOver(params);
|
|
67
66
|
};
|
|
68
67
|
|
|
@@ -101,7 +100,7 @@ var getHeaderRowProps = function getHeaderRowProps(props, grid) {
|
|
|
101
100
|
return {
|
|
102
101
|
axis: 'x',
|
|
103
102
|
helperClass: 'header-dnd-column',
|
|
104
|
-
innerRef:
|
|
103
|
+
innerRef: dsUtilities.mergeRefs(props.innerRef, headerRowRef),
|
|
105
104
|
lockAxis: 'x',
|
|
106
105
|
onSortEnd: onSortEnd,
|
|
107
106
|
onSortOver: onSortOver,
|
|
@@ -115,7 +114,7 @@ var decorateRenderers = function decorateRenderers(renderers) {
|
|
|
115
114
|
var CellComponent = renderers.header.cell;
|
|
116
115
|
var Row = React.useMemo(function () {
|
|
117
116
|
return reactSortableHoc.SortableContainer(function (props) {
|
|
118
|
-
return /*#__PURE__*/React__default['default'].createElement(RowComponent,
|
|
117
|
+
return /*#__PURE__*/React__default['default'].createElement(RowComponent, dsUtilities.omit(props, keysToOmit));
|
|
119
118
|
});
|
|
120
119
|
}, []);
|
|
121
120
|
var Cell = React.useMemo(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DndColumnsPlugin.js","sources":["../../../../src/plugins/column-dnd/DndColumnsPlugin.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { SortableContainer, SortableElement } from 'react-sortable-hoc';\nimport { arrayMove, omit } from '@elliemae/ds-utilities/utils';\nimport { mergeRefs } from '@elliemae/ds-utilities/system';\nimport createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { addDragAndDropToColumn } from './decorateGridWithDndColumns';\n\n// todo: remove once it's fixed in react-sortable-hoc library\nconst keysToOmit = [\n 'axis',\n 'contentWindow',\n 'disableAutoscroll',\n 'distance',\n 'getContainer',\n 'getHelperDimensions',\n 'helperClass',\n 'helperContainer',\n 'hideSortableGhost',\n 'keyboardSortingTransitionDuration',\n 'lockAxis',\n 'lockOffset',\n 'lockToContainerEdges',\n 'onSortEnd',\n 'onSortMove',\n 'onSortOver',\n 'onSortStart',\n 'pressDelay',\n 'pressThreshold',\n 'shouldCancelStart',\n 'transitionDuration',\n 'updateBeforeSortStart',\n 'useDragHandle',\n 'useWindowAsScrollContainer',\n];\n\nconst decorateColumn = (column, grid) =>\n column.isUserColumn ? addDragAndDropToColumn(grid, column) : column;\n\nconst getHeaderRowProps = (props, grid) => {\n const { onMoveColumnStart, onMoveColumnEnd, onMoveColumnOver } = grid.props;\n\n const headerRowRef = useRef();\n const columnDraggingOffset = useRef(0);\n const sortedColumns = useRef(grid.getInstance().decoratedColumns);\n const nodeRef = useRef();\n\n useEffect(() => {\n sortedColumns.current = grid.getInstance().decoratedColumns;\n });\n\n const onSortOver = params => {\n const { index, newIndex, oldIndex } = params;\n const oldColumn = sortedColumns.current[oldIndex];\n const newColumn = sortedColumns.current[newIndex];\n\n if (!newColumn.isUserColumn || !oldColumn.isUserColumn) return;\n\n const columnWidth = nodeRef.current.offsetWidth;\n const newColumnWidth = headerRowRef.current.childNodes.item(newColumn.index)\n .offsetWidth;\n\n const forward = newIndex > oldIndex;\n\n // eslint-disable-next-line no-nested-ternary\n const columnTranslate = forward\n ? newIndex > index\n ? columnWidth * -1\n : 0\n : newIndex < index\n ? columnWidth\n : 0;\n\n columnDraggingOffset.current += forward\n ? newColumnWidth\n : newColumnWidth * -1;\n\n newColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnTranslate}px, 0, 0)`,\n });\n oldColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnDraggingOffset.current}px, 0, 0)`,\n });\n\n sortedColumns.current = arrayMove(\n sortedColumns.current,\n oldIndex,\n newIndex,\n );\n onMoveColumnOver(params);\n };\n\n const onSortStart = params => {\n const { node } = params;\n grid.disableEvents();\n nodeRef.current = node;\n onMoveColumnStart(params);\n };\n\n const onSortEnd = params => {\n const { oldIndex, newIndex } = params;\n grid.enableEvents();\n columnDraggingOffset.current = 0;\n sortedColumns.current = grid.decoratedColumns;\n grid.decoratedColumns.forEach(column => {\n if (!column.updateStyle) return;\n column.updateStyle({\n transitionDuration: null,\n transform: null,\n });\n });\n\n const originalOldColumnIndex = grid.columns.findIndex(\n column => column.property === grid.decoratedColumns[oldIndex].property,\n );\n const originalNewColumnIndex = grid.columns.findIndex(\n column => column.property === grid.decoratedColumns[newIndex].property,\n );\n\n onMoveColumnEnd({\n newIndex: originalNewColumnIndex,\n oldIndex: originalOldColumnIndex,\n });\n };\n\n return {\n axis: 'x',\n helperClass: 'header-dnd-column',\n innerRef: mergeRefs(props.innerRef, headerRowRef),\n lockAxis: 'x',\n onSortEnd,\n onSortOver,\n onSortStart,\n useDragHandle: true,\n };\n};\n\nconst decorateRenderers = renderers => {\n const RowComponent = renderers.header.row;\n const CellComponent = renderers.header.cell;\n\n const Row = useMemo(\n () =>\n SortableContainer(props => <RowComponent {...omit(props, keysToOmit)} />),\n [],\n );\n\n const Cell = useMemo(() => SortableElement(CellComponent), []);\n\n return {\n ...renderers,\n header: {\n ...renderers.header,\n row: Row,\n cell: Cell,\n },\n };\n};\n\nexport const DndColumnsPlugin = createInstancePlugin('dnd-columns', {\n getHeaderRowProps,\n decorateColumn,\n decorateRenderers,\n});\n"],"names":["keysToOmit","decorateColumn","column","grid","isUserColumn","addDragAndDropToColumn","getHeaderRowProps","props","onMoveColumnStart","onMoveColumnEnd","onMoveColumnOver","headerRowRef","useRef","columnDraggingOffset","sortedColumns","getInstance","decoratedColumns","nodeRef","useEffect","current","onSortOver","params","index","newIndex","oldIndex","oldColumn","newColumn","columnWidth","offsetWidth","newColumnWidth","childNodes","item","forward","columnTranslate","updateStyle","transitionDuration","transform","arrayMove","onSortStart","node","disableEvents","onSortEnd","enableEvents","forEach","originalOldColumnIndex","columns","findIndex","property","originalNewColumnIndex","axis","helperClass","innerRef","mergeRefs","lockAxis","useDragHandle","decorateRenderers","renderers","RowComponent","header","row","CellComponent","cell","Row","useMemo","SortableContainer","React","omit","Cell","SortableElement","DndColumnsPlugin","createInstancePlugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,UAAU,GAAG,CACjB,MADiB,EAEjB,eAFiB,EAGjB,mBAHiB,EAIjB,UAJiB,EAKjB,cALiB,EAMjB,qBANiB,EAOjB,aAPiB,EAQjB,iBARiB,EASjB,mBATiB,EAUjB,mCAViB,EAWjB,UAXiB,EAYjB,YAZiB,EAajB,sBAbiB,EAcjB,WAdiB,EAejB,YAfiB,EAgBjB,YAhBiB,EAiBjB,aAjBiB,EAkBjB,YAlBiB,EAmBjB,gBAnBiB,EAoBjB,mBApBiB,EAqBjB,oBArBiB,EAsBjB,uBAtBiB,EAuBjB,eAvBiB,EAwBjB,4BAxBiB,CAAnB;;AA2BA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,MAAD,EAASC,IAAT;AAAA,SACrBD,MAAM,CAACE,YAAP,GAAsBC,mEAAsB,CAACF,IAAD,EAAOD,MAAP,CAA5C,GAA6DA,MADxC;AAAA,CAAvB;;AAGA,IAAMI,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,KAAD,EAAQJ,IAAR,EAAiB;AACzC,oBAAiEA,IAAI,CAACI,KAAtE;AAAA,MAAQC,iBAAR,eAAQA,iBAAR;AAAA,MAA2BC,eAA3B,eAA2BA,eAA3B;AAAA,MAA4CC,gBAA5C,eAA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D,EAAQP,UAAR,CAAtB,CAAJ;AAAA,KAAN,CADnB;AAAA,GADiB,EAGjB,EAHiB,CAAnB;AAMA,MAAMmE,IAAI,GAAGJ,aAAO,CAAC;AAAA,WAAMK,gCAAe,CAACR,aAAD,CAArB;AAAA,GAAD,EAAuC,EAAvC,CAApB;AAEA,yCACKJ,SADL;AAEEE,IAAAA,MAAM,kCACDF,SAAS,CAACE,MADT;AAEJC,MAAAA,GAAG,EAAEG,GAFD;AAGJD,MAAAA,IAAI,EAAEM;AAHF;AAFR;AAQD,CApBD;;IAsBaE,gBAAgB,GAAGC,wCAAoB,CAAC,aAAD,EAAgB;AAClEhE,EAAAA,iBAAiB,EAAjBA,iBADkE;AAElEL,EAAAA,cAAc,EAAdA,cAFkE;AAGlEsD,EAAAA,iBAAiB,EAAjBA;AAHkE,CAAhB;;;;"}
|
|
1
|
+
{"version":3,"file":"DndColumnsPlugin.js","sources":["../../../../src/plugins/column-dnd/DndColumnsPlugin.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { SortableContainer, SortableElement } from 'react-sortable-hoc';\nimport { arrayMove, omit, mergeRefs } from '@elliemae/ds-utilities';\nimport createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { addDragAndDropToColumn } from './decorateGridWithDndColumns';\n\n// todo: remove once it's fixed in react-sortable-hoc library\nconst keysToOmit = [\n 'axis',\n 'contentWindow',\n 'disableAutoscroll',\n 'distance',\n 'getContainer',\n 'getHelperDimensions',\n 'helperClass',\n 'helperContainer',\n 'hideSortableGhost',\n 'keyboardSortingTransitionDuration',\n 'lockAxis',\n 'lockOffset',\n 'lockToContainerEdges',\n 'onSortEnd',\n 'onSortMove',\n 'onSortOver',\n 'onSortStart',\n 'pressDelay',\n 'pressThreshold',\n 'shouldCancelStart',\n 'transitionDuration',\n 'updateBeforeSortStart',\n 'useDragHandle',\n 'useWindowAsScrollContainer',\n];\n\nconst decorateColumn = (column, grid) => (column.isUserColumn ? addDragAndDropToColumn(grid, column) : column);\n\nconst getHeaderRowProps = (props, grid) => {\n const { onMoveColumnStart, onMoveColumnEnd, onMoveColumnOver } = grid.props;\n\n const headerRowRef = useRef();\n const columnDraggingOffset = useRef(0);\n const sortedColumns = useRef(grid.getInstance().decoratedColumns);\n const nodeRef = useRef();\n\n useEffect(() => {\n sortedColumns.current = grid.getInstance().decoratedColumns;\n });\n\n const onSortOver = (params) => {\n const { index, newIndex, oldIndex } = params;\n const oldColumn = sortedColumns.current[oldIndex];\n const newColumn = sortedColumns.current[newIndex];\n\n if (!newColumn.isUserColumn || !oldColumn.isUserColumn) return;\n\n const columnWidth = nodeRef.current.offsetWidth;\n const newColumnWidth = headerRowRef.current.childNodes.item(newColumn.index).offsetWidth;\n\n const forward = newIndex > oldIndex;\n\n // eslint-disable-next-line no-nested-ternary\n const columnTranslate = forward ? (newIndex > index ? columnWidth * -1 : 0) : newIndex < index ? columnWidth : 0;\n\n columnDraggingOffset.current += forward ? newColumnWidth : newColumnWidth * -1;\n\n newColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnTranslate}px, 0, 0)`,\n });\n oldColumn.updateStyle({\n transitionDuration: '300ms',\n transform: `translate3d(${columnDraggingOffset.current}px, 0, 0)`,\n });\n\n sortedColumns.current = arrayMove(sortedColumns.current, oldIndex, newIndex);\n onMoveColumnOver(params);\n };\n\n const onSortStart = (params) => {\n const { node } = params;\n grid.disableEvents();\n nodeRef.current = node;\n onMoveColumnStart(params);\n };\n\n const onSortEnd = (params) => {\n const { oldIndex, newIndex } = params;\n grid.enableEvents();\n columnDraggingOffset.current = 0;\n sortedColumns.current = grid.decoratedColumns;\n grid.decoratedColumns.forEach((column) => {\n if (!column.updateStyle) return;\n column.updateStyle({\n transitionDuration: null,\n transform: null,\n });\n });\n\n const originalOldColumnIndex = grid.columns.findIndex(\n (column) => column.property === grid.decoratedColumns[oldIndex].property,\n );\n const originalNewColumnIndex = grid.columns.findIndex(\n (column) => column.property === grid.decoratedColumns[newIndex].property,\n );\n\n onMoveColumnEnd({\n newIndex: originalNewColumnIndex,\n oldIndex: originalOldColumnIndex,\n });\n };\n\n return {\n axis: 'x',\n helperClass: 'header-dnd-column',\n innerRef: mergeRefs(props.innerRef, headerRowRef),\n lockAxis: 'x',\n onSortEnd,\n onSortOver,\n onSortStart,\n useDragHandle: true,\n };\n};\n\nconst decorateRenderers = (renderers) => {\n const RowComponent = renderers.header.row;\n const CellComponent = renderers.header.cell;\n\n const Row = useMemo(() => SortableContainer((props) => <RowComponent {...omit(props, keysToOmit)} />), []);\n\n const Cell = useMemo(() => SortableElement(CellComponent), []);\n\n return {\n ...renderers,\n header: {\n ...renderers.header,\n row: Row,\n cell: Cell,\n },\n };\n};\n\nexport const DndColumnsPlugin = createInstancePlugin('dnd-columns', {\n getHeaderRowProps,\n decorateColumn,\n decorateRenderers,\n});\n"],"names":["keysToOmit","decorateColumn","column","grid","isUserColumn","addDragAndDropToColumn","getHeaderRowProps","props","onMoveColumnStart","onMoveColumnEnd","onMoveColumnOver","headerRowRef","useRef","columnDraggingOffset","sortedColumns","getInstance","decoratedColumns","nodeRef","useEffect","current","onSortOver","params","index","newIndex","oldIndex","oldColumn","newColumn","columnWidth","offsetWidth","newColumnWidth","childNodes","item","forward","columnTranslate","updateStyle","transitionDuration","transform","arrayMove","onSortStart","node","disableEvents","onSortEnd","enableEvents","forEach","originalOldColumnIndex","columns","findIndex","property","originalNewColumnIndex","axis","helperClass","innerRef","mergeRefs","lockAxis","useDragHandle","decorateRenderers","renderers","RowComponent","header","row","CellComponent","cell","Row","useMemo","SortableContainer","React","omit","Cell","SortableElement","DndColumnsPlugin","createInstancePlugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,UAAU,GAAG,CACjB,MADiB,EAEjB,eAFiB,EAGjB,mBAHiB,EAIjB,UAJiB,EAKjB,cALiB,EAMjB,qBANiB,EAOjB,aAPiB,EAQjB,iBARiB,EAS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: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
7
|
-
var
|
|
7
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
8
8
|
var initColumnDefinition = require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
-
var GripperVertical__default = /*#__PURE__*/_interopDefaultLegacy(GripperVertical);
|
|
14
13
|
|
|
15
14
|
var DragHandle = reactSortableHoc.SortableHandle(function () {
|
|
16
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
15
|
+
return /*#__PURE__*/React__default['default'].createElement(dsIcons.GripperVertical, {
|
|
17
16
|
className: "drag-handle"
|
|
18
17
|
});
|
|
19
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateGridWithDndColumns.js","sources":["../../../../src/plugins/column-dnd/decorateGridWithDndColumns.tsx"],"sourcesContent":["import React from 'react';\nimport { SortableHandle } from 'react-sortable-hoc';\nimport GripperVertical from '@elliemae/ds-icons
|
|
1
|
+
{"version":3,"file":"decorateGridWithDndColumns.js","sources":["../../../../src/plugins/column-dnd/decorateGridWithDndColumns.tsx"],"sourcesContent":["import React from 'react';\nimport { SortableHandle } from 'react-sortable-hoc';\nimport { GripperVertical } from '@elliemae/ds-icons';\nimport {\n appendHeaderFormatter,\n mergeClassNameToColumnHeader,\n} from '@elliemae/ds-shared/useDataGrid/initColumnDefinition';\n\nconst DragHandle = SortableHandle(() => <GripperVertical className=\"drag-handle\" />);\n\nconst DndHeaderFormatter = (value) => (\n <>\n <DragHandle />\n {value}\n </>\n);\n\nconst addDragAndDropToColumn = (grid, column) => {\n column = appendHeaderFormatter(DndHeaderFormatter, column);\n return mergeClassNameToColumnHeader('with-dnd-column', column);\n};\n\nexport { addDragAndDropToColumn };\n"],"names":["DragHandle","SortableHandle","React","GripperVertical","DndHeaderFormatter","value","addDragAndDropToColumn","grid","column","appendHeaderFormatter","mergeClassNameToColumnHeader"],"mappings":";;;;;;;;;;;;;AAQA,IAAMA,UAAU,GAAGC,+BAAc,CAAC;AAAA,sBAAMC,wCAACC,uBAAD;AAAiB,IAAA,SAAS,EAAC;AAA3B,IAAN;AAAA,CAAD,CAAjC;;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,KAAD;AAAA,sBACzBH,+FACEA,wCAAC,UAAD,OADF,EAEGG,KAFH,CADyB;AAAA,CAA3B;;IAOMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,IAAD,EAAOC,MAAP,EAAkB;AAC/CA,EAAAA,MAAM,GAAGC,0CAAqB,CAACL,kBAAD,EAAqBI,MAArB,CAA9B;AACA,SAAOE,iDAA4B,CAAC,iBAAD,EAAoBF,MAApB,CAAnC;AACD;;;;"}
|
|
@@ -6,11 +6,10 @@ var plugins_columnDnd_DndColumnsPlugin = require('./DndColumnsPlugin.js');
|
|
|
6
6
|
require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-sortable-hoc');
|
|
9
|
-
require('@elliemae/ds-utilities
|
|
10
|
-
require('@elliemae/ds-utilities/system');
|
|
9
|
+
require('@elliemae/ds-utilities');
|
|
11
10
|
require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
12
11
|
require('./decorateGridWithDndColumns.js');
|
|
13
|
-
require('@elliemae/ds-icons
|
|
12
|
+
require('@elliemae/ds-icons');
|
|
14
13
|
require('@elliemae/ds-shared/useDataGrid/initColumnDefinition');
|
|
15
14
|
|
|
16
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
7
7
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
8
8
|
var plugins_columnSizing_useStylesheetHelpers = require('./useStylesheetHelpers.js');
|
|
9
9
|
var plugins_columnSizing_useColumnSizeService = require('./useColumnSizeService.js');
|
|
@@ -15,8 +15,6 @@ require('./getColumnNameFromProperty.js');
|
|
|
15
15
|
require('../../utilities/getScrollbarSize.js');
|
|
16
16
|
require('@babel/runtime/helpers/defineProperty');
|
|
17
17
|
require('./utils.js');
|
|
18
|
-
require('@elliemae/ds-utilities/hooks/useResizeObserver');
|
|
19
|
-
require('@elliemae/ds-utilities/system');
|
|
20
18
|
require('./columnMeasurerTransformer.js');
|
|
21
19
|
|
|
22
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -33,7 +31,7 @@ var getHeaderRowProps = function getHeaderRowProps(rowProps, _ref) {
|
|
|
33
31
|
|
|
34
32
|
var getRowProps = function getRowProps(rowProps, _ref2) {
|
|
35
33
|
var rowsStylesheet = _ref2.rowsStylesheet;
|
|
36
|
-
rowProps.className =
|
|
34
|
+
rowProps.className = dsUtilities.cx(rowProps.className, rowsStylesheet.getRowClassName());
|
|
37
35
|
return rowProps;
|
|
38
36
|
};
|
|
39
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnSizingPlugin.js","sources":["../../../../src/plugins/column-sizing/ColumnSizingPlugin.tsx"],"sourcesContent":["/* eslint-disable no-param-reassign */\n/* eslint-disable react-hooks/rules-of-hooks */\nimport { useRef } from 'react';\nimport { cx } from '@elliemae/ds-utilities
|
|
1
|
+
{"version":3,"file":"ColumnSizingPlugin.js","sources":["../../../../src/plugins/column-sizing/ColumnSizingPlugin.tsx"],"sourcesContent":["/* eslint-disable no-param-reassign */\n/* eslint-disable react-hooks/rules-of-hooks */\nimport { useRef } from 'react';\nimport { cx } from '@elliemae/ds-utilities';\nimport createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { useStylesheetHelpers } from './useStylesheetHelpers';\nimport useColumnSizeService from './useColumnSizeService';\nimport { getTableProps } from './ext-points/getTableProps';\nimport { decorateColumn } from './ext-points/decorateColumn';\n\nconst getHeaderRowProps = (rowProps, { rowsStylesheet }) => {\n rowProps.className = `${rowsStylesheet.getRowClassName()}-header`;\n return rowProps;\n};\n\nconst getRowProps = (rowProps, { rowsStylesheet }) => {\n rowProps.className = cx(rowProps.className, rowsStylesheet.getRowClassName());\n return rowProps;\n};\n\nconst decorateColumns = (columns, grid) => grid.columnsStylesheet.decorateColumns(columns, grid);\n\nconst decorateGrid = (grid) => {\n const isDragging = useRef(false);\n const tableRef = useRef();\n const resizedColumns = useRef({});\n const scrollbarWidth = useRef();\n const bodyWidth = useRef();\n const allColumnsHaveBeenFixed = useRef(false);\n const columnSizeService = useColumnSizeService(grid);\n const { columnsStylesheet, rowsStylesheet } = useStylesheetHelpers(grid);\n\n // row size side-effect\n const updateRowWidth = (width) => {\n const gridWidth = width || tableRef.current.offsetWidth;\n const columnsTotalSize = columnSizeService.computeColumnsTotalSize();\n\n if (columnsTotalSize > gridWidth + 5) {\n if (!allColumnsHaveBeenFixed.current && isDragging.current) {\n columnSizeService.setActualColumnsSizesFixed();\n allColumnsHaveBeenFixed.current = true;\n }\n rowsStylesheet.update(columnsTotalSize);\n } else {\n rowsStylesheet.update(undefined);\n }\n };\n\n return {\n isDragging,\n tableRef,\n bodyWidth,\n scrollbarWidth,\n columnSizeService,\n rowsStylesheet,\n columnsStylesheet,\n resizedColumns,\n updateRowWidth,\n };\n};\n\nexport const ColumnSizingPlugin = createInstancePlugin('column-sizing', {\n decorateGrid,\n decorateColumn,\n getRowProps,\n getHeaderRowProps,\n getTableProps,\n decorateColumns,\n});\n"],"names":["getHeaderRowProps","rowProps","rowsStylesheet","className","getRowClassName","getRowProps","cx","decorateColumns","columns","grid","columnsStylesheet","decorateGrid","isDragging","useRef","tableRef","resizedColumns","scrollbarWidth","bodyWidth","allColumnsHaveBeenFixed","columnSizeService","useColumnSizeService","useStylesheetHelpers","updateRowWidth","width","gridWidth","current","offsetWidth","columnsTotalSize","computeColumnsTotalSize","setActualColumnsSizesFixed","update","undefined","ColumnSizingPlugin","createInstancePlugin","decorateColumn","getTableProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAUA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,QAAD,QAAkC;AAAA,MAArBC,cAAqB,QAArBA,cAAqB;AAC1DD,EAAAA,QAAQ,CAACE,SAAT,aAAwBD,cAAc,CAACE,eAAf,EAAxB;AACA,SAAOH,QAAP;AACD,CAHD;;AAKA,IAAMI,WAAW,GAAG,SAAdA,WAAc,CAACJ,QAAD,SAAkC;AAAA,MAArBC,cAAqB,SAArBA,cAAqB;AACpDD,EAAAA,QAAQ,CAACE,SAAT,GAAqBG,cAAE,CAACL,QAAQ,CAACE,SAAV,EAAqBD,cAAc,CAACE,eAAf,EAArB,CAAvB;AACA,SAAOH,QAAP;AACD,CAHD;;AAKA,IAAMM,eAAe,GAAG,SAAlBA,eAAkB,CAACC,OAAD,EAAUC,IAAV;AAAA,SAAmBA,IAAI,CAACC,iBAAL,CAAuBH,eAAvB,CAAuCC,OAAvC,EAAgDC,IAAhD,CAAnB;AAAA,CAAxB;;AAEA,IAAME,YAAY,GAAG,SAAfA,YAAe,CAACF,IAAD,EAAU;AAC7B,MAAMG,UAAU,GAAGC,YAAM,CAAC,KAAD,CAAzB;AACA,MAAMC,QAAQ,GAAGD,YAAM,EAAvB;AACA,MAAME,cAAc,GAAGF,YAAM,CAAC,EAAD,CAA7B;AACA,MAAM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eAAD,EAAkB;AACtEtB,EAAAA,YAAY,EAAZA,YADsE;AAEtEuB,EAAAA,cAAc,EAAdA,4DAFsE;AAGtE7B,EAAAA,WAAW,EAAXA,WAHsE;AAItEL,EAAAA,iBAAiB,EAAjBA,iBAJsE;AAKtEmC,EAAAA,aAAa,EAAbA,0DALsE;AAMtE5B,EAAAA,eAAe,EAAfA;AANsE,CAAlB;;;;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -55,7 +55,7 @@ var columnMeasurerTransformer = function columnMeasurerTransformer(columnSizeSer
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
58
|
-
innerRef:
|
|
58
|
+
innerRef: dsUtilities.mergeRefs(cellRef, props.innerRef, registerColumn(column))
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnMeasurerTransformer.js","sources":["../../../../src/plugins/column-sizing/columnMeasurerTransformer.tsx"],"sourcesContent":["import { useLayoutEffect, useRef } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities
|
|
1
|
+
{"version":3,"file":"columnMeasurerTransformer.js","sources":["../../../../src/plugins/column-sizing/columnMeasurerTransformer.tsx"],"sourcesContent":["import { useLayoutEffect, useRef } from 'react';\nimport { mergeRefs } from '@elliemae/ds-utilities';\n\nexport const columnMeasurerTransformer =\n (columnSizeService) =>\n (value, { column, grid }, props = {}) => {\n const { registerColumn } = columnSizeService;\n const cellRef = useRef();\n\n useLayoutEffect(() => {\n const { columns, expandedToContentColumns } = columnSizeService;\n const {\n props: { minColumnWidth },\n resizedColumns,\n } = grid.getInstance();\n if (cellRef.current) {\n // FIX: merge\n // if (column.width && column.width !== 'string' && !initialUsedSpace[column.property]) {\n // increaseUsedSpace(getColumnWidthSize(column.width, minColumnWidth, column), column.property)\n // }\n if (column.expandWidthToContent && !expandedToContentColumns[column.uuid]) {\n // measure the content and reset to flex\n const originalWidth = cellRef.current.offsetWidth;\n cellRef.current.style.flex = 'initial';\n cellRef.current.style.minWidth = 'initial';\n const calcWidth = cellRef.current.offsetWidth + 20;\n if (originalWidth + 20 <= calcWidth) {\n resizedColumns.current[column.uuid] = calcWidth;\n columns[column.uuid].minWidth = calcWidth;\n } else {\n columns[column.uuid].minWidth = originalWidth;\n }\n expandedToContentColumns[column.uuid] = true;\n cellRef.current.style.minWidth = null;\n cellRef.current.style.flex = 1;\n column.node = cellRef.current;\n }\n }\n });\n\n return {\n ...props,\n innerRef: mergeRefs(cellRef, props.innerRef, registerColumn(column)),\n };\n };\n"],"names":["columnMeasurerTransformer","columnSizeService","value","column","grid","props","registerColumn","cellRef","useRef","useLayoutEffect","columns","expandedToContentColumns","getInstance","minColumnWidth","resizedColumns","current","expandWidthToContent","uuid","originalWidth","offsetWidth","style","flex","minWidth","calcWidth","node","innerRef","mergeRefs"],"mappings":";;;;;;;;;;;;;;;IAGaA,yBAAyB,GACpC,SADWA,yBACX,CAACC,iBAAD;AAAA,SACA,UAACC,KAAD,QAAyC;AAAA,QAA/BC,MAA+B,QAA/BA,MAA+B;AAAA,QAAvBC,IAAuB,QAAvBA,IAAuB;AAAA,QAAfC,KAAe,uEAAP,EAAO;AACvC,QAAQC,cAAR,GAA2BL,iBAA3B,CAAQK,cAAR;AACA,QAAMC,OAAO,GAAGC,YAAM,EAAtB;AAEAC,IAAAA,qBAAe,CAAC,YAAM;AACpB,UAAQC,OAAR,GAA8CT,iBAA9C,CAAQS,OAAR;AAAA,UAAiBC,wBAAjB,GA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;AAEEoB,MAAAA,QAAQ,EAAEC,qBAAS,CAACnB,OAAD,EAAUF,KAAK,CAACoB,QAAhB,EAA0BnB,cAAc,CAACH,MAAD,CAAxC;AAFrB;AAID,GAxCD;AAAA;;;;"}
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
6
6
|
var plugins_columnSizing_columnMeasurerTransformer = require('../columnMeasurerTransformer.js');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('react');
|
|
9
|
-
require('@elliemae/ds-utilities/system');
|
|
10
9
|
|
|
11
10
|
function decorateColumn(column, grid, index) {
|
|
12
11
|
var transformsPath = ['header', 'transforms'];
|
|
13
|
-
var transforms =
|
|
12
|
+
var transforms = dsUtilities.get(column, transformsPath, []);
|
|
14
13
|
transforms.push(plugins_columnSizing_columnMeasurerTransformer.columnMeasurerTransformer(grid.columnSizeService));
|
|
15
14
|
column.index = index;
|
|
16
|
-
|
|
15
|
+
dsUtilities.set(column, transformsPath, transforms);
|
|
17
16
|
return column;
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateColumn.js","sources":["../../../../../src/plugins/column-sizing/ext-points/decorateColumn.tsx"],"sourcesContent":["import { get, set } from '@elliemae/ds-utilities
|
|
1
|
+
{"version":3,"file":"decorateColumn.js","sources":["../../../../../src/plugins/column-sizing/ext-points/decorateColumn.tsx"],"sourcesContent":["import { get, set } from '@elliemae/ds-utilities';\nimport { columnMeasurerTransformer } from '../columnMeasurerTransformer';\n\nexport function decorateColumn(column, grid, index) {\n const transformsPath = ['header', 'transforms'];\n const transforms = get(column, transformsPath, []);\n transforms.push(columnMeasurerTransformer(grid.columnSizeService, grid));\n column.index = index;\n set(column, transformsPath, transforms);\n\n return column;\n}\n"],"names":["decorateColumn","column","grid","index","transformsPath","transforms","get","push","columnMeasurerTransformer","columnSizeService","set"],"mappings":";;;;;;;;;AAGO,SAASA,cAAT,CAAwBC,MAAxB,EAAgCC,IAAhC,EAAsCC,KAAtC,EAA6C;AAClD,MAAMC,cAAc,GAAG,CAAC,QAAD,EAAW,YAAX,CAAvB;AACA,MAAMC,UAAU,GAAGC,eAAG,CAACL,MAAD,EAASG,cAAT,EAAyB,EAAzB,CAAtB;AACAC,EAAAA,UAAU,CAACE,IAAX,CAAgBC,wEAAyB,CAACN,IAAI,CAACO,iBAAN,CAAzC;AACAR,EAAAA,MAAM,CAACE,KAAP,GAAeA,KAAf;AACAO,EAAAA,eAAG,CAACT,MAAD,EAASG,cAAT,EAAyBC,UAAzB,CAAH;AAEA,SAAOJ,MAAP;AACD;;;;"}
|
|
@@ -5,16 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
9
|
-
var system = require('@elliemae/ds-utilities/system');
|
|
8
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
10
9
|
var plugins_columnSizing_utils = require('../utils.js');
|
|
11
|
-
require('@elliemae/ds-utilities/utils');
|
|
12
10
|
|
|
13
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
12
|
|
|
15
13
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
16
14
|
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
17
|
-
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
18
15
|
|
|
19
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
20
17
|
|
|
@@ -34,7 +31,7 @@ function getTableProps(tableProps, _ref) {
|
|
|
34
31
|
tableNode = _useState2[0],
|
|
35
32
|
tableRefCallback = _useState2[1];
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
dsUtilities.useResizeObserver(function (_ref2) {
|
|
38
35
|
var width = _ref2.width;
|
|
39
36
|
if (!refs.header.current) return;
|
|
40
37
|
if (typeof scrollbarWidth.current !== 'number') scrollbarWidth.current = plugins_columnSizing_utils.getScrollbarSizeFromHeaderAndBody(refs);
|
|
@@ -56,7 +53,7 @@ function getTableProps(tableProps, _ref) {
|
|
|
56
53
|
if (typeof bodyWidth.current !== 'number') bodyWidth.current = refs.body.clientWidth;
|
|
57
54
|
}, [columns, tableNode]);
|
|
58
55
|
return _objectSpread(_objectSpread({}, tableProps), {}, {
|
|
59
|
-
innerRef:
|
|
56
|
+
innerRef: dsUtilities.mergeRefs(tableRefCallback, tableProps.innerRef, tableRef)
|
|
60
57
|
});
|
|
61
58
|
}
|
|
62
59
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTableProps.js","sources":["../../../../../src/plugins/column-sizing/ext-points/getTableProps.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"getTableProps.js","sources":["../../../../../src/plugins/column-sizing/ext-points/getTableProps.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useResizeObserver, mergeRefs } from '@elliemae/ds-utilities';\nimport { getScrollbarSizeFromHeaderAndBody } from '../utils';\n\nexport function getTableProps(\n tableProps,\n { refs, tableRef, bodyWidth, scrollbarWidth, isDragging, columnSizeService, updateRowWidth, columns },\n) {\n const [tableNode, tableRefCallback] = useState();\n\n useResizeObserver(({ width }) => {\n if (!refs.header.current) return;\n if (typeof scrollbarWidth.current !== 'number')\n scrollbarWidth.current = getScrollbarSizeFromHeaderAndBody(refs, width);\n if (typeof bodyWidth.current !== 'number') bodyWidth.current = refs.body.offsetWidth;\n // DataGrid: header with width 0 after redirect from details page (https://jira.elliemae.io/browse/PUI-2162)\n // if (scrollbarWidth.current !== 0 && width - scrollbarWidth.current > 0) {\n // refs.header.current.style.width = `${width - scrollbarWidth.current}px`\n // }\n\n if (isDragging.current) return;\n columnSizeService.updateMissingWidths(width);\n updateRowWidth(width);\n }, tableNode);\n\n useEffect(() => {\n if (tableNode) {\n columnSizeService.updateMissingWidths(tableNode.clientWidth);\n updateRowWidth(tableNode.clientWidth);\n }\n if (typeof bodyWidth.current !== 'number') bodyWidth.current = refs.body.clientWidth;\n }, [columns, tableNode]);\n\n return {\n ...tableProps,\n innerRef: mergeRefs(tableRefCallback, tableProps.innerRef, tableRef),\n };\n}\n"],"names":["getTableProps","tableProps","refs","tableRef","bodyWidth","scrollbarWidth","isDragging","columnSizeService","updateRowWidth","columns","useState","tableNode","tableRefCallback","useResizeObserver","width","header","current","getScrollbarSizeFromHeaderAndBody","body","offsetWidth","updateMissingWidths","useEffect","clientWidth","innerRef","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;AAIO,SAASA,aAAT,CACLC,UADK,QAGL;AAAA,MADEC,IACF,QADEA,IACF;AAAA,MADQC,QACR,QADQA,QACR;AAAA,MADkBC,SAClB,QADkBA,SAClB;AAAA,MAD6BC,cAC7B,QAD6BA,cAC7B;AAAA,MAD6CC,UAC7C,QAD6CA,UAC7C;AAAA,MADyDC,iBACzD,QADyDA,iBACzD;AAAA,MAD4EC,cAC5E,QAD4EA,cAC5E;AAAA,MAD4FC,OAC5F,QAD4FA,OAC5F;;AACA,kBAAsCC,cAAQ,EAA9C;AAAA;AAAA,MAAOC,SAAP;AAAA,MAAkBC,gBAAlB;;AAEAC,EAAAA,6BAAiB,CAAC,iBAAe;AAAA,QAAZC,KAAY,SAAZA,KAAY;AAC/B,QAAI,CAACZ,IAAI,CAACa,MAAL,CAAYC,OAAjB,EAA0B;AAC1B,QAAI,OAAOX,cAAc,CAACW,OAAtB,KAAkC,QAAtC,EACEX,cAAc,CAACW,OAAf,GAAyBC,4DAAiC,CAACf,IAAD,CAA1D;AACF,QAAI,OAAOE,SAAS,CAACY,OAAjB,KAA6B,QAAjC,EAA2CZ,SAAS,CAACY,OAAV,GAAoBd,IAAI,CAACgB,IAAL,CAAUC,WAA9B,CAJZ;AAM/B;AACA;AACA;;AAEA,QAAIb,UAAU,CAACU,OAAf,EAAwB;AACxBT,IAAAA,iBAAiB,CAACa,mBAAlB,CAAsCN,KAAtC;AACAN,IAAAA,cAAc,CAACM,KAAD,CAAd;AACD,GAbgB,EAadH,SAbc,CAAjB;AAeAU,EAAAA,eAAS,CAAC,YAAM;AACd,QAAIV,SAAJ,EAAe;AACbJ,MAAAA,iBAAiB,CAACa,mBAAlB,CAAsCT,SAAS,CAACW,WAAhD;AACAd,MAAAA,cAAc,CAACG,SAAS,CAACW,WAAX,CAAd;AACD;;AACD,QAAI,OAAOlB,SAAS,CAACY,OAAjB,KAA6B,QAAjC,EAA2CZ,SAAS,CAACY,OAAV,GAAoBd,IAAI,CAACgB,IAAL,CAAUI,WAA9B;AAC5C,GANQ,EAMN,CAACb,OAAD,EAAUE,SAAV,CANM,CAAT;AAQA,yCACKV,UADL;AAEEsB,IAAAA,QAAQ,EAAEC,qBAAS,CAACZ,gBAAD,EAAmBX,UAAU,CAACsB,QAA9B,EAAwCpB,QAAxC;AAFrB;AAID;;;;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var plugins_columnSizing_ColumnSizingPlugin = require('./ColumnSizingPlugin.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@elliemae/ds-utilities
|
|
7
|
+
require('@elliemae/ds-utilities');
|
|
8
8
|
require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
9
9
|
require('./useStylesheetHelpers.js');
|
|
10
10
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -15,8 +15,6 @@ require('./useColumnSizeService.js');
|
|
|
15
15
|
require('@babel/runtime/helpers/defineProperty');
|
|
16
16
|
require('./utils.js');
|
|
17
17
|
require('./ext-points/getTableProps.js');
|
|
18
|
-
require('@elliemae/ds-utilities/hooks/useResizeObserver');
|
|
19
|
-
require('@elliemae/ds-utilities/system');
|
|
20
18
|
require('./ext-points/decorateColumn.js');
|
|
21
19
|
require('./columnMeasurerTransformer.js');
|
|
22
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|