@elliemae/ds-datagrids 3.15.0 → 3.16.0-next.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/DSDataGrid.js +249 -241
- package/dist/cjs/DSDataGrid.js.map +2 -2
- package/dist/cjs/DataGridImpl.js +11 -11
- package/dist/cjs/DataGridImpl.js.map +1 -1
- package/dist/cjs/PaginatedDataGrid.js +9 -9
- package/dist/cjs/PaginatedDataGrid.js.map +2 -2
- package/dist/cjs/components/BodyList.js +3 -5
- package/dist/cjs/components/BodyList.js.map +2 -2
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +1 -6
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +2 -2
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +2 -11
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +2 -2
- package/dist/cjs/components/EmptyState.js +5 -6
- package/dist/cjs/components/EmptyState.js.map +3 -3
- package/dist/cjs/components/List.js +2 -2
- package/dist/cjs/components/List.js.map +2 -2
- package/dist/cjs/components/ListItem.js +3 -6
- package/dist/cjs/components/ListItem.js.map +2 -2
- package/dist/cjs/components/NoResults.js +4 -10
- package/dist/cjs/components/NoResults.js.map +2 -2
- package/dist/cjs/components/RowsLoader.js +1 -1
- package/dist/cjs/components/RowsLoader.js.map +1 -1
- package/dist/cjs/components/Table.js +5 -5
- package/dist/cjs/components/Table.js.map +1 -1
- package/dist/cjs/components/TableBody.js +2 -7
- package/dist/cjs/components/TableBody.js.map +2 -2
- package/dist/cjs/components/TableHeader.js +1 -1
- package/dist/cjs/components/TableHeader.js.map +2 -2
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +1 -1
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +1 -1
- package/dist/cjs/components/index.js +5 -5
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +16 -36
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +2 -2
- package/dist/cjs/components/renderers/index.js +2 -2
- package/dist/cjs/components/renderers/index.js.map +1 -1
- package/dist/cjs/components/renderers/renderRowsLoader.js +2 -4
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +2 -2
- package/dist/cjs/defaultPlugins.js +5 -10
- package/dist/cjs/defaultPlugins.js.map +2 -2
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +1 -1
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +1 -1
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +1 -1
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- package/dist/cjs/plugins/column-dnd/index.js +1 -1
- package/dist/cjs/plugins/column-dnd/index.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/index.js +1 -1
- package/dist/cjs/plugins/column-sizing/index.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +7 -26
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +2 -2
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/index.js +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/dist/cjs/plugins/editable/EditableComponents/index.js +2 -2
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +1 -1
- package/dist/cjs/plugins/editable/EditablePlugin.js +1 -1
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +1 -1
- package/dist/cjs/plugins/editable/decorateEditable.js +1 -1
- package/dist/cjs/plugins/editable/decorateEditable.js.map +1 -1
- package/dist/cjs/plugins/editable/getEditorComponent.js +3 -16
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +2 -2
- package/dist/cjs/plugins/editable/index.js +2 -2
- package/dist/cjs/plugins/editable/index.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +23 -25
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +5 -5
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +6 -6
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/index.js +2 -2
- package/dist/cjs/plugins/expandable-grid/index.js.map +1 -1
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +2 -2
- package/dist/cjs/plugins/export-data/index.js +1 -1
- package/dist/cjs/plugins/export-data/index.js.map +1 -1
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +3 -3
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +2 -2
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +1 -1
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +1 -1
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +45 -47
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +43 -45
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
- package/dist/cjs/plugins/filterable/filterableFormatter.js +29 -37
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +2 -2
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
- package/dist/cjs/plugins/filterable/helper.js.map +2 -2
- package/dist/cjs/plugins/filterable/index.js +1 -1
- package/dist/cjs/plugins/filterable/index.js.map +1 -1
- package/dist/cjs/plugins/filterable/useFilterableState.js +3 -7
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +2 -2
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +4 -4
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +2 -2
- package/dist/cjs/plugins/index.js +16 -16
- package/dist/cjs/plugins/index.js.map +1 -1
- package/dist/cjs/plugins/infinite-scrolling/index.js +1 -1
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +1 -1
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +4 -4
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +2 -2
- package/dist/cjs/plugins/pagination/components/Pagination.js +5 -24
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +2 -2
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +2 -2
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +2 -2
- package/dist/cjs/plugins/pagination/helper.js.map +2 -2
- package/dist/cjs/plugins/pagination/index.js +1 -1
- package/dist/cjs/plugins/pagination/index.js.map +1 -1
- package/dist/cjs/plugins/pagination/usePaginationState.js +1 -1
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +1 -1
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +1 -1
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/dist/cjs/plugins/resizable/decorateResizable.js +4 -2
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +2 -2
- package/dist/cjs/plugins/resizable/index.js +1 -1
- package/dist/cjs/plugins/resizable/index.js.map +1 -1
- package/dist/cjs/plugins/resizable/useResizeHandle.js +2 -12
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +2 -2
- package/dist/cjs/plugins/row-dnd/index.js +1 -1
- package/dist/cjs/plugins/row-dnd/index.js.map +1 -1
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +3 -3
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +1 -1
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +1 -1
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +1 -1
- package/dist/cjs/plugins/selectable/index.js +1 -1
- package/dist/cjs/plugins/selectable/index.js.map +1 -1
- package/dist/cjs/plugins/selectable/selectableFormatter.js +1 -1
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +2 -2
- package/dist/cjs/plugins/selectable/useSelectableState.js +1 -1
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +2 -2
- package/dist/cjs/plugins/sortable/SortablePlugin.js +3 -3
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +1 -1
- package/dist/cjs/plugins/sortable/index.js +1 -1
- package/dist/cjs/plugins/sortable/index.js.map +1 -1
- package/dist/cjs/plugins/sortable/sortTree.js.map +2 -2
- package/dist/cjs/plugins/sortable/useSortableState.js +2 -4
- package/dist/cjs/plugins/sortable/useSortableState.js.map +2 -2
- package/dist/cjs/plugins/toolbar/RowRenderer.js +2 -2
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +1 -1
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +1 -1
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +1 -1
- package/dist/cjs/plugins/toolbar/index.js +1 -1
- package/dist/cjs/plugins/toolbar/index.js.map +1 -1
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +4 -4
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +1 -1
- package/dist/cjs/plugins/virtualization/index.js +1 -1
- package/dist/cjs/plugins/virtualization/index.js.map +1 -1
- package/dist/cjs/renders/CellWithAddons.js +1 -1
- package/dist/cjs/renders/CellWithAddons.js.map +1 -1
- package/dist/cjs/renders/index.js +2 -2
- package/dist/cjs/renders/index.js.map +1 -1
- package/dist/cjs/rowSizes.js +1 -5
- package/dist/cjs/rowSizes.js.map +2 -2
- package/dist/cjs/utilities/getPluginsFromProps.js +13 -13
- package/dist/cjs/utilities/getPluginsFromProps.js.map +1 -1
- package/dist/cjs/utilities/normalizeData.js.map +2 -2
- package/dist/esm/DSDataGrid.js +125 -117
- package/dist/esm/DSDataGrid.js.map +2 -2
- package/dist/esm/DataGridImpl.js +11 -11
- package/dist/esm/DataGridImpl.js.map +1 -1
- package/dist/esm/PaginatedDataGrid.js +9 -9
- package/dist/esm/PaginatedDataGrid.js.map +2 -2
- package/dist/esm/components/BodyList.js +3 -5
- package/dist/esm/components/BodyList.js.map +2 -2
- package/dist/esm/components/ColumnVisibilityMenuOption.js +1 -6
- package/dist/esm/components/ColumnVisibilityMenuOption.js.map +2 -2
- package/dist/esm/components/ColumnsOptionsMenuSection.js +2 -11
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +2 -2
- package/dist/esm/components/EmptyState.js +1 -2
- package/dist/esm/components/EmptyState.js.map +2 -2
- package/dist/esm/components/List.js +2 -2
- package/dist/esm/components/List.js.map +2 -2
- package/dist/esm/components/ListItem.js +3 -6
- package/dist/esm/components/ListItem.js.map +2 -2
- package/dist/esm/components/NoResults.js +4 -10
- package/dist/esm/components/NoResults.js.map +2 -2
- package/dist/esm/components/RowsLoader.js +1 -1
- package/dist/esm/components/RowsLoader.js.map +1 -1
- package/dist/esm/components/Table.js +5 -5
- package/dist/esm/components/Table.js.map +1 -1
- package/dist/esm/components/TableBody.js +2 -7
- package/dist/esm/components/TableBody.js.map +2 -2
- package/dist/esm/components/TableHeader.js +1 -1
- package/dist/esm/components/TableHeader.js.map +2 -2
- package/dist/esm/components/footer/addOptionalFooterComponents.js +1 -1
- package/dist/esm/components/footer/addOptionalFooterComponents.js.map +1 -1
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/renderers/defaultClassedRenderers.js +16 -40
- package/dist/esm/components/renderers/defaultClassedRenderers.js.map +2 -2
- package/dist/esm/components/renderers/index.js +2 -2
- package/dist/esm/components/renderers/index.js.map +1 -1
- package/dist/esm/components/renderers/renderRowsLoader.js +2 -4
- package/dist/esm/components/renderers/renderRowsLoader.js.map +2 -2
- package/dist/esm/defaultPlugins.js +5 -10
- package/dist/esm/defaultPlugins.js.map +2 -2
- package/dist/esm/index.js +9 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/package.json +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
- package/dist/esm/plugins/body-header-scroll-sync/index.js +1 -1
- package/dist/esm/plugins/body-header-scroll-sync/index.js.map +1 -1
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +1 -1
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +1 -1
- package/dist/esm/plugins/column-dnd/index.js +1 -1
- package/dist/esm/plugins/column-dnd/index.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- package/dist/esm/plugins/column-sizing/index.js +1 -1
- package/dist/esm/plugins/column-sizing/index.js.map +1 -1
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js +7 -26
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +2 -2
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +2 -2
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/index.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/index.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/index.js +2 -2
- package/dist/esm/plugins/editable/EditableComponents/index.js.map +1 -1
- package/dist/esm/plugins/editable/EditablePlugin.js +1 -1
- package/dist/esm/plugins/editable/EditablePlugin.js.map +1 -1
- package/dist/esm/plugins/editable/decorateEditable.js +1 -1
- package/dist/esm/plugins/editable/decorateEditable.js.map +1 -1
- package/dist/esm/plugins/editable/getEditorComponent.js +3 -16
- package/dist/esm/plugins/editable/getEditorComponent.js.map +2 -2
- package/dist/esm/plugins/editable/index.js +2 -2
- package/dist/esm/plugins/editable/index.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +23 -25
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +5 -5
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js +6 -6
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/index.js +2 -2
- package/dist/esm/plugins/expandable-grid/index.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +2 -2
- package/dist/esm/plugins/export-data/index.js +1 -1
- package/dist/esm/plugins/export-data/index.js.map +1 -1
- package/dist/esm/plugins/filterable/FilterablePlugin.js +3 -3
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +2 -2
- package/dist/esm/plugins/filterable/addFilterToColumn.js +1 -1
- package/dist/esm/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/dist/esm/plugins/filterable/components/FilterableHeader.js +1 -1
- package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +45 -47
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +43 -45
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
- package/dist/esm/plugins/filterable/filterableFormatter.js +29 -37
- package/dist/esm/plugins/filterable/filterableFormatter.js.map +2 -2
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
- package/dist/esm/plugins/filterable/helper.js +1 -7
- package/dist/esm/plugins/filterable/helper.js.map +2 -2
- package/dist/esm/plugins/filterable/index.js +1 -1
- package/dist/esm/plugins/filterable/index.js.map +1 -1
- package/dist/esm/plugins/filterable/useFilterableState.js +3 -11
- package/dist/esm/plugins/filterable/useFilterableState.js.map +2 -2
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +4 -4
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +2 -2
- package/dist/esm/plugins/index.js +16 -16
- package/dist/esm/plugins/index.js.map +1 -1
- package/dist/esm/plugins/infinite-scrolling/index.js +1 -1
- package/dist/esm/plugins/infinite-scrolling/index.js.map +1 -1
- package/dist/esm/plugins/pagination/PaginationPlugin.js +4 -4
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +2 -2
- package/dist/esm/plugins/pagination/components/Pagination.js +5 -24
- package/dist/esm/plugins/pagination/components/Pagination.js.map +2 -2
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js +2 -2
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +2 -2
- package/dist/esm/plugins/pagination/helper.js.map +2 -2
- package/dist/esm/plugins/pagination/index.js +1 -1
- package/dist/esm/plugins/pagination/index.js.map +1 -1
- package/dist/esm/plugins/pagination/usePaginationState.js +1 -1
- package/dist/esm/plugins/pagination/usePaginationState.js.map +1 -1
- package/dist/esm/plugins/resizable/ResizablePlugin.js +1 -1
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +1 -1
- package/dist/esm/plugins/resizable/decorateResizable.js +4 -2
- package/dist/esm/plugins/resizable/decorateResizable.js.map +2 -2
- package/dist/esm/plugins/resizable/index.js +1 -1
- package/dist/esm/plugins/resizable/index.js.map +1 -1
- package/dist/esm/plugins/resizable/useResizeHandle.js +2 -12
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +2 -2
- package/dist/esm/plugins/row-dnd/index.js +1 -1
- package/dist/esm/plugins/row-dnd/index.js.map +1 -1
- package/dist/esm/plugins/selectable/SelectablePlugin.js +3 -3
- package/dist/esm/plugins/selectable/SelectablePlugin.js.map +1 -1
- package/dist/esm/plugins/selectable/addSelectableColumn.js +1 -1
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +1 -1
- package/dist/esm/plugins/selectable/index.js +1 -1
- package/dist/esm/plugins/selectable/index.js.map +1 -1
- package/dist/esm/plugins/selectable/selectableFormatter.js +1 -1
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +2 -2
- package/dist/esm/plugins/selectable/useSelectableState.js +1 -5
- package/dist/esm/plugins/selectable/useSelectableState.js.map +2 -2
- package/dist/esm/plugins/sortable/SortablePlugin.js +3 -3
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +1 -1
- package/dist/esm/plugins/sortable/index.js +1 -1
- package/dist/esm/plugins/sortable/index.js.map +1 -1
- package/dist/esm/plugins/sortable/sortTree.js.map +2 -2
- package/dist/esm/plugins/sortable/useSortableState.js +2 -4
- package/dist/esm/plugins/sortable/useSortableState.js.map +2 -2
- package/dist/esm/plugins/toolbar/RowRenderer.js +2 -2
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +1 -1
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js +1 -1
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +1 -1
- package/dist/esm/plugins/toolbar/index.js +1 -1
- package/dist/esm/plugins/toolbar/index.js.map +1 -1
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +2 -2
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +2 -2
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +4 -4
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +1 -1
- package/dist/esm/plugins/virtualization/index.js +1 -1
- package/dist/esm/plugins/virtualization/index.js.map +1 -1
- package/dist/esm/renders/CellWithAddons.js +1 -1
- package/dist/esm/renders/CellWithAddons.js.map +1 -1
- package/dist/esm/renders/index.js +2 -2
- package/dist/esm/renders/index.js.map +1 -1
- package/dist/esm/rowSizes.js +1 -5
- package/dist/esm/rowSizes.js.map +2 -2
- package/dist/esm/utilities/getPluginsFromProps.js +13 -13
- package/dist/esm/utilities/getPluginsFromProps.js.map +1 -1
- package/dist/esm/utilities/normalizeData.js.map +2 -2
- package/package.json +22 -21
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/RowsLoader.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSSpinner } from '@elliemae/ds-spinner';\nimport { SpinnerContainer } from './renderers/defaultClassedRenderers';\n\nexport const RowsLoader = ({ size = 'm' }) => (\n <SpinnerContainer>\n <DSSpinner size={size} />\n </SpinnerContainer>\n);\n\nexport default RowsLoader;\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSSpinner } from '@elliemae/ds-spinner';\nimport { SpinnerContainer } from './renderers/defaultClassedRenderers.js';\n\nexport const RowsLoader = ({ size = 'm' }) => (\n <SpinnerContainer>\n <DSSpinner size={size} />\n </SpinnerContainer>\n);\n\nexport default RowsLoader;\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACMnB;AALJ,SAAS,iBAAiB;AAC1B,SAAS,wBAAwB;AAE1B,MAAM,aAAa,CAAC,EAAE,OAAO,IAAI,MACtC,oBAAC,oBACC,8BAAC,aAAU,MAAY,GACzB;AAGF,IAAO,qBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
3
3
|
import { useCallback, useEffect } from "react";
|
4
|
-
import { TableHeader } from "./TableHeader";
|
5
|
-
import { TableBody } from "./TableBody";
|
6
|
-
import { HeaderCell } from "./HeaderCell";
|
7
|
-
import { BodyCell } from "./BodyCell";
|
8
|
-
import { TableContext } from "./tableContext";
|
4
|
+
import { TableHeader } from "./TableHeader.js";
|
5
|
+
import { TableBody } from "./TableBody.js";
|
6
|
+
import { HeaderCell } from "./HeaderCell.js";
|
7
|
+
import { BodyCell } from "./BodyCell.js";
|
8
|
+
import { TableContext } from "./tableContext.js";
|
9
9
|
const { Provider } = TableContext;
|
10
10
|
const Table = (props) => {
|
11
11
|
const {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Table.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-loops/no-loops,no-plusplus */\nimport React, { useCallback, useMemo, useEffect } from 'react';\nimport { TableHeader } from './TableHeader';\nimport { TableBody } from './TableBody';\nimport { HeaderCell } from './HeaderCell';\nimport { BodyCell } from './BodyCell';\nimport { TableContext } from './tableContext';\n\nconst { Provider } = TableContext;\n\nconst Table = (props) => {\n const {\n decoratedRenderers: renderers,\n decoratedColumns: columns,\n getRowProps,\n getHeaderRowProps,\n getTableProps,\n children,\n tableRef,\n props: { wrapText },\n style,\n onDefaultFiltersLoad = () => null,\n } = props;\n\n useEffect(() => {\n onDefaultFiltersLoad(props.composedRows);\n }, [onDefaultFiltersLoad]);\n\n const headerRowRenderer = () => {\n const Row = renderers.header.row;\n const Cell = renderers.header.cell;\n const cells = [];\n\n // optimize the rendering using for loop\n for (let index = 0; index < columns.length; index++) {\n cells.push(\n <HeaderCell\n key={index}\n classProps={{ wrapText }}\n column={columns[index]}\n columnIndex={index}\n component={Cell}\n grid={props}\n />,\n );\n }\n\n const rowProps = getHeaderRowProps({}, {});\n return <Row {...rowProps}>{cells}</Row>;\n };\n\n const bodyRowRenderer = useCallback(\n (rowData, rowProps, extraParams) => {\n const Row = renderers.body.row;\n const Cell = renderers.body.cell;\n\n const nextRowProps = getRowProps(rowProps, { ...extraParams, rowData });\n\n // get cells from columns api\n const cells = [];\n\n // optimize the rendering using for loop\n for (let index = 0; index < columns.length; index++) {\n cells.push(\n <BodyCell\n key={index}\n classProps={{ wrapText }}\n column={columns[index]}\n columnIndex={index}\n component={Cell}\n grid={props}\n rowIndex={extraParams.rowIndex}\n rowProps={{ rowData, ...nextRowProps }}\n />,\n );\n }\n\n return (\n <Row {...nextRowProps} rowData={rowData}>\n {cells}\n </Row>\n );\n },\n [columns, renderers],\n );\n\n const TableComponent = renderers.table;\n\n const value = { ...props, bodyRowRenderer, headerRowRenderer };\n\n return (\n <Provider value={value}>\n <TableComponent\n {...getTableProps({\n innerRef: tableRef,\n style,\n })}\n >\n {children}\n </TableComponent>\n </Provider>\n );\n};\n\nTable.Header = TableHeader;\nTable.Body = TableBody;\n\nexport { Table };\nexport default Table;\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-loops/no-loops,no-plusplus */\nimport React, { useCallback, useMemo, useEffect } from 'react';\nimport { TableHeader } from './TableHeader.js';\nimport { TableBody } from './TableBody.js';\nimport { HeaderCell } from './HeaderCell.js';\nimport { BodyCell } from './BodyCell.js';\nimport { TableContext } from './tableContext.js';\n\nconst { Provider } = TableContext;\n\nconst Table = (props) => {\n const {\n decoratedRenderers: renderers,\n decoratedColumns: columns,\n getRowProps,\n getHeaderRowProps,\n getTableProps,\n children,\n tableRef,\n props: { wrapText },\n style,\n onDefaultFiltersLoad = () => null,\n } = props;\n\n useEffect(() => {\n onDefaultFiltersLoad(props.composedRows);\n }, [onDefaultFiltersLoad]);\n\n const headerRowRenderer = () => {\n const Row = renderers.header.row;\n const Cell = renderers.header.cell;\n const cells = [];\n\n // optimize the rendering using for loop\n for (let index = 0; index < columns.length; index++) {\n cells.push(\n <HeaderCell\n key={index}\n classProps={{ wrapText }}\n column={columns[index]}\n columnIndex={index}\n component={Cell}\n grid={props}\n />,\n );\n }\n\n const rowProps = getHeaderRowProps({}, {});\n return <Row {...rowProps}>{cells}</Row>;\n };\n\n const bodyRowRenderer = useCallback(\n (rowData, rowProps, extraParams) => {\n const Row = renderers.body.row;\n const Cell = renderers.body.cell;\n\n const nextRowProps = getRowProps(rowProps, { ...extraParams, rowData });\n\n // get cells from columns api\n const cells = [];\n\n // optimize the rendering using for loop\n for (let index = 0; index < columns.length; index++) {\n cells.push(\n <BodyCell\n key={index}\n classProps={{ wrapText }}\n column={columns[index]}\n columnIndex={index}\n component={Cell}\n grid={props}\n rowIndex={extraParams.rowIndex}\n rowProps={{ rowData, ...nextRowProps }}\n />,\n );\n }\n\n return (\n <Row {...nextRowProps} rowData={rowData}>\n {cells}\n </Row>\n );\n },\n [columns, renderers],\n );\n\n const TableComponent = renderers.table;\n\n const value = { ...props, bodyRowRenderer, headerRowRenderer };\n\n return (\n <Provider value={value}>\n <TableComponent\n {...getTableProps({\n innerRef: tableRef,\n style,\n })}\n >\n {children}\n </TableComponent>\n </Provider>\n );\n};\n\nTable.Header = TableHeader;\nTable.Body = TableBody;\n\nexport { Table };\nexport default Table;\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACoCf;AAnCR,SAAgB,aAAsB,iBAAiB;AACvD,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAE7B,MAAM,EAAE,SAAS,IAAI;AAErB,MAAM,QAAQ,CAAC,UAAU;AACvB,QAAM;AAAA,IACJ,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO,EAAE,SAAS;AAAA,IAClB;AAAA,IACA,uBAAuB,MAAM;AAAA,EAC/B,IAAI;AAEJ,YAAU,MAAM;AACd,yBAAqB,MAAM,YAAY;AAAA,EACzC,GAAG,CAAC,oBAAoB,CAAC;AAEzB,QAAM,oBAAoB,MAAM;AAC9B,UAAM,MAAM,UAAU,OAAO;AAC7B,UAAM,OAAO,UAAU,OAAO;AAC9B,UAAM,QAAQ,CAAC;AAGf,aAAS,QAAQ,GAAG,QAAQ,QAAQ,QAAQ,SAAS;AACnD,YAAM;AAAA,QACJ;AAAA,UAAC;AAAA;AAAA,YAEC,YAAY,EAAE,SAAS;AAAA,YACvB,QAAQ,QAAQ;AAAA,YAChB,aAAa;AAAA,YACb,WAAW;AAAA,YACX,MAAM;AAAA;AAAA,UALD;AAAA,QAMP;AAAA,MACF;AAAA,IACF;AAEA,UAAM,WAAW,kBAAkB,CAAC,GAAG,CAAC,CAAC;AACzC,WAAO,oBAAC,OAAK,GAAG,UAAW,iBAAM;AAAA,EACnC;AAEA,QAAM,kBAAkB;AAAA,IACtB,CAAC,SAAS,UAAU,gBAAgB;AAClC,YAAM,MAAM,UAAU,KAAK;AAC3B,YAAM,OAAO,UAAU,KAAK;AAE5B,YAAM,eAAe,YAAY,UAAU,EAAE,GAAG,aAAa,QAAQ,CAAC;AAGtE,YAAM,QAAQ,CAAC;AAGf,eAAS,QAAQ,GAAG,QAAQ,QAAQ,QAAQ,SAAS;AACnD,cAAM;AAAA,UACJ;AAAA,YAAC;AAAA;AAAA,cAEC,YAAY,EAAE,SAAS;AAAA,cACvB,QAAQ,QAAQ;AAAA,cAChB,aAAa;AAAA,cACb,WAAW;AAAA,cACX,MAAM;AAAA,cACN,UAAU,YAAY;AAAA,cACtB,UAAU,EAAE,SAAS,GAAG,aAAa;AAAA;AAAA,YAPhC;AAAA,UAQP;AAAA,QACF;AAAA,MACF;AAEA,aACE,oBAAC,OAAK,GAAG,cAAc,SACpB,iBACH;AAAA,IAEJ;AAAA,IACA,CAAC,SAAS,SAAS;AAAA,EACrB;AAEA,QAAM,iBAAiB,UAAU;AAEjC,QAAM,QAAQ,EAAE,GAAG,OAAO,iBAAiB,kBAAkB;AAE7D,SACE,oBAAC,YAAS,OACR;AAAA,IAAC;AAAA;AAAA,MACE,GAAG,cAAc;AAAA,QAChB,UAAU;AAAA,QACV;AAAA,MACF,CAAC;AAAA,MAEA;AAAA;AAAA,EACH,GACF;AAEJ;AAEA,MAAM,SAAS;AACf,MAAM,OAAO;AAGb,IAAO,gBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,13 +1,8 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
3
3
|
import { useContext, memo } from "react";
|
4
|
-
import { TableContext } from "./tableContext";
|
5
|
-
const TableBody = memo(({
|
6
|
-
rows,
|
7
|
-
noResultsPlaceholder = "No data",
|
8
|
-
isPlaceholderActive = false,
|
9
|
-
...props
|
10
|
-
}) => {
|
4
|
+
import { TableContext } from "./tableContext.js";
|
5
|
+
const TableBody = memo(({ rows, noResultsPlaceholder = "No data", isPlaceholderActive = false, ...props }) => {
|
11
6
|
const {
|
12
7
|
refs,
|
13
8
|
decoratedColumns,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/TableBody.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext, memo } from 'react';\nimport { TableContext } from './tableContext';\n\nconst TableBody = memo(({
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext, memo } from 'react';\nimport { TableContext } from './tableContext.js';\n\nconst TableBody = memo(({ rows, noResultsPlaceholder = 'No data', isPlaceholderActive = false, ...props }) => {\n const {\n refs,\n decoratedColumns,\n decoratedRenderers: renderers,\n composedRows,\n getBodyProps,\n bodyRowRenderer: rowRenderer,\n props: { rowKey, numRowsVisible, groupedRows },\n } = useContext(TableContext);\n\n const BodyWrapperComponent = renderers.body.wrapper;\n return (\n <BodyWrapperComponent\n classProps={{ grouped: groupedRows }}\n {...getBodyProps({\n ...props,\n innerRef: refs.body,\n innerBodyRef: refs.innerBody,\n rows: rows || composedRows.rows || composedRows,\n noResultsPlaceholder,\n rowRenderer,\n columns: decoratedColumns,\n rowKey,\n numRowsVisible,\n isPlaceholderActive,\n })}\n >\n kajsd;klfajsd;fj\n </BodyWrapperComponent>\n );\n});\n\nexport { TableBody };\nexport default TableBody;\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACgBnB;AAhBJ,SAAgB,YAAY,YAAY;AACxC,SAAS,oBAAoB;AAE7B,MAAM,YAAY,KAAK,CAAC,EAAE,MAAM,uBAAuB,WAAW,sBAAsB,UAAU,MAAM,MAAM;AAC5G,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,IACpB;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB,OAAO,EAAE,QAAQ,gBAAgB,YAAY;AAAA,EAC/C,IAAI,WAAW,YAAY;AAE3B,QAAM,uBAAuB,UAAU,KAAK;AAC5C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY,EAAE,SAAS,YAAY;AAAA,MAClC,GAAG,aAAa;AAAA,QACf,GAAG;AAAA,QACH,UAAU,KAAK;AAAA,QACf,cAAc,KAAK;AAAA,QACnB,MAAM,QAAQ,aAAa,QAAQ;AAAA,QACnC;AAAA,QACA;AAAA,QACA,SAAS;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF,CAAC;AAAA,MACF;AAAA;AAAA,EAED;AAEJ,CAAC;AAGD,IAAO,oBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
3
3
|
import { useContext } from "react";
|
4
|
-
import { TableContext } from "./tableContext";
|
4
|
+
import { TableContext } from "./tableContext.js";
|
5
5
|
const TableHeader = (props) => {
|
6
6
|
const {
|
7
7
|
decoratedRenderers: renderers,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/TableHeader.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { TableContext } from './tableContext';\n\nconst TableHeader = (props) =>{\n const {\n decoratedRenderers: renderers,\n decoratedColumns: columns,\n headerRowRenderer,\n getHeaderProps,\n refs,\n } = useContext(TableContext);\n\n const HeaderWrapper = renderers.header.wrapper;\n return (\n <HeaderWrapper\n {...getHeaderProps({\n ...props,\n innerRef: refs.header,\n })}\n >\n {headerRowRenderer(columns, {})}\n </HeaderWrapper>\n );\n};\n\nexport { TableHeader };\nexport default TableHeader;\n"],
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACcnB;AAdJ,SAAgB,kBAAkB;AAClC,SAAS,oBAAoB;AAE7B,MAAM,cAAc,CAAC,
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { TableContext } from './tableContext.js';\n\nconst TableHeader = (props) => {\n const {\n decoratedRenderers: renderers,\n decoratedColumns: columns,\n headerRowRenderer,\n getHeaderProps,\n refs,\n } = useContext(TableContext);\n\n const HeaderWrapper = renderers.header.wrapper;\n return (\n <HeaderWrapper\n {...getHeaderProps({\n ...props,\n innerRef: refs.header,\n })}\n >\n {headerRowRenderer(columns, {})}\n </HeaderWrapper>\n );\n};\n\nexport { TableHeader };\nexport default TableHeader;\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACcnB;AAdJ,SAAgB,kBAAkB;AAClC,SAAS,oBAAoB;AAE7B,MAAM,cAAc,CAAC,UAAU;AAC7B,QAAM;AAAA,IACJ,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,WAAW,YAAY;AAE3B,QAAM,gBAAgB,UAAU,OAAO;AACvC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG,eAAe;AAAA,QACjB,GAAG;AAAA,QACH,UAAU,KAAK;AAAA,MACjB,CAAC;AAAA,MAEA,4BAAkB,SAAS,CAAC,CAAC;AAAA;AAAA,EAChC;AAEJ;AAGA,IAAO,sBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
3
|
-
import { Pagination } from "../../plugins/pagination/components/Pagination";
|
3
|
+
import { Pagination } from "../../plugins/pagination/components/Pagination.js";
|
4
4
|
const addOptionalFooterComponents = ({ grid, rows }) => {
|
5
5
|
const {
|
6
6
|
props: { maxPerPage, minPerPage, paginated, paginationStep },
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/footer/addOptionalFooterComponents.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { Pagination } from '../../plugins/pagination/components/Pagination';\n\nconst addOptionalFooterComponents = ({ grid, rows }) => {\n const {\n props: { maxPerPage, minPerPage, paginated, paginationStep },\n state: { pagination },\n actions: { onPerPage, onPageSelect },\n } = grid;\n if (!paginated) return null;\n return (\n <>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginationStep={paginationStep}\n paginated={rows}\n pagination={pagination}\n />\n </>\n );\n};\n\nexport { addOptionalFooterComponents };\nexport default addOptionalFooterComponents;\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { Pagination } from '../../plugins/pagination/components/Pagination.js';\n\nconst addOptionalFooterComponents = ({ grid, rows }) => {\n const {\n props: { maxPerPage, minPerPage, paginated, paginationStep },\n state: { pagination },\n actions: { onPerPage, onPageSelect },\n } = grid;\n if (!paginated) return null;\n return (\n <>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginationStep={paginationStep}\n paginated={rows}\n pagination={pagination}\n />\n </>\n );\n};\n\nexport { addOptionalFooterComponents };\nexport default addOptionalFooterComponents;\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACWnB,mBACE,WADF;AAVJ,SAAS,kBAAkB;AAE3B,MAAM,8BAA8B,CAAC,EAAE,MAAM,KAAK,MAAM;AACtD,QAAM;AAAA,IACJ,OAAO,EAAE,YAAY,YAAY,WAAW,eAAe;AAAA,IAC3D,OAAO,EAAE,WAAW;AAAA,IACpB,SAAS,EAAE,WAAW,aAAa;AAAA,EACrC,IAAI;AACJ,MAAI,CAAC;AAAW,WAAO;AACvB,SACE,gCACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW;AAAA,MACX;AAAA;AAAA,EACF,GACF;AAEJ;AAGA,IAAO,sCAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { default as default2 } from "./HeaderCell";
|
3
|
-
import { default as default3 } from "./BodyCell";
|
4
|
-
import { default as default4 } from "./TableBody";
|
5
|
-
import { default as default5 } from "./TableHeader";
|
6
|
-
import { default as default6 } from "./Table";
|
2
|
+
import { default as default2 } from "./HeaderCell.js";
|
3
|
+
import { default as default3 } from "./BodyCell.js";
|
4
|
+
import { default as default4 } from "./TableBody.js";
|
5
|
+
import { default as default5 } from "./TableHeader.js";
|
6
|
+
import { default as default6 } from "./Table.js";
|
7
7
|
export {
|
8
8
|
default3 as BodyCell,
|
9
9
|
default2 as HeaderCell,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/index.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { default as HeaderCell } from './HeaderCell';\nexport { default as BodyCell } from './BodyCell';\nexport { default as TableBody } from './TableBody';\nexport { default as TableHeader } from './TableHeader';\nexport { default as Table } from './Table';\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { default as HeaderCell } from './HeaderCell.js';\nexport { default as BodyCell } from './BodyCell.js';\nexport { default as TableBody } from './TableBody.js';\nexport { default as TableHeader } from './TableHeader.js';\nexport { default as Table } from './Table.js';\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAA2B;AACpC,SAAoB,WAAXA,gBAA4B;AACrC,SAAoB,WAAXA,gBAA8B;AACvC,SAAoB,WAAXA,gBAAwB;",
|
6
6
|
"names": ["default"]
|
7
7
|
}
|
@@ -1,51 +1,27 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
`${dataGridBlockName}-no-results`
|
10
|
-
);
|
11
|
-
const SpinnerContainer = aggregatedClasses("div")(
|
12
|
-
`${dataGridBlockName}-spinner`
|
13
|
-
);
|
14
|
-
const DatagridWrapper = aggregatedClasses("div")(
|
15
|
-
`${dataGridBlockName}-wrapper`,
|
16
|
-
null,
|
17
|
-
({ fluidHeight }) => ({
|
18
|
-
fluid: fluidHeight
|
19
|
-
})
|
20
|
-
);
|
3
|
+
import { bodyBlockName, dataGridBlockName, headerBlockName } from "../../blockNames.js";
|
4
|
+
const NoResultsContainer = aggregatedClasses("div")(`${dataGridBlockName}-no-results`);
|
5
|
+
const SpinnerContainer = aggregatedClasses("div")(`${dataGridBlockName}-spinner`);
|
6
|
+
const DatagridWrapper = aggregatedClasses("div")(`${dataGridBlockName}-wrapper`, null, ({ fluidHeight }) => ({
|
7
|
+
fluid: fluidHeight
|
8
|
+
}));
|
21
9
|
const TableWrapper = aggregatedClasses("div")(dataGridBlockName);
|
22
10
|
const HeaderWrapper = aggregatedClasses("div")(headerBlockName);
|
23
11
|
const HeaderRow = aggregatedClasses("div")(headerBlockName, "row");
|
24
|
-
const HeaderCell = aggregatedClasses("div")(
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
);
|
31
|
-
const BodyWrapper = aggregatedClasses("div")(
|
32
|
-
bodyBlockName,
|
33
|
-
null,
|
34
|
-
({ grouped }) => ({
|
35
|
-
"ie-flex-basis-auto": true,
|
36
|
-
"is-grouped": grouped
|
37
|
-
})
|
38
|
-
);
|
12
|
+
const HeaderCell = aggregatedClasses("div")(headerBlockName, "cell", ({ wrapText }) => ({
|
13
|
+
wrapText
|
14
|
+
}));
|
15
|
+
const BodyWrapper = aggregatedClasses("div")(bodyBlockName, null, ({ grouped }) => ({
|
16
|
+
"ie-flex-basis-auto": true,
|
17
|
+
"is-grouped": grouped
|
18
|
+
}));
|
39
19
|
const BodyRow = aggregatedClasses("div", {
|
40
20
|
"data-testid": "datagrid-row"
|
41
21
|
})(bodyBlockName, "row");
|
42
|
-
const BodyCell = aggregatedClasses("div")(
|
43
|
-
|
44
|
-
|
45
|
-
({ wrapText }) => ({
|
46
|
-
wrapText
|
47
|
-
})
|
48
|
-
);
|
22
|
+
const BodyCell = aggregatedClasses("div")(bodyBlockName, "cell", ({ wrapText }) => ({
|
23
|
+
wrapText
|
24
|
+
}));
|
49
25
|
export {
|
50
26
|
BodyCell,
|
51
27
|
BodyRow,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/renderers/defaultClassedRenderers.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\nimport {
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,yBAAyB;AAClC
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { bodyBlockName, dataGridBlockName, headerBlockName } from '../../blockNames.js';\n\nexport const NoResultsContainer = aggregatedClasses('div')(`${dataGridBlockName}-no-results`);\nexport const SpinnerContainer = aggregatedClasses('div')(`${dataGridBlockName}-spinner`);\nexport const DatagridWrapper = aggregatedClasses('div')(`${dataGridBlockName}-wrapper`, null, ({ fluidHeight }) => ({\n fluid: fluidHeight,\n}));\n\nexport const TableWrapper = aggregatedClasses('div')(dataGridBlockName);\nexport const HeaderWrapper = aggregatedClasses('div')(headerBlockName);\nexport const HeaderRow = aggregatedClasses('div')(headerBlockName, 'row');\nexport const HeaderCell = aggregatedClasses('div')(headerBlockName, 'cell', ({ wrapText }) => ({\n wrapText,\n}));\nexport const BodyWrapper = aggregatedClasses('div')(bodyBlockName, null, ({ grouped }) => ({\n 'ie-flex-basis-auto': true,\n 'is-grouped': grouped,\n}));\nexport const BodyRow = aggregatedClasses('div', {\n 'data-testid': 'datagrid-row',\n})(bodyBlockName, 'row');\nexport const BodyCell = aggregatedClasses('div')(bodyBlockName, 'cell', ({ wrapText }) => ({\n wrapText,\n}));\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,yBAAyB;AAClC,SAAS,eAAe,mBAAmB,uBAAuB;AAE3D,MAAM,qBAAqB,kBAAkB,KAAK,EAAE,GAAG,8BAA8B;AACrF,MAAM,mBAAmB,kBAAkB,KAAK,EAAE,GAAG,2BAA2B;AAChF,MAAM,kBAAkB,kBAAkB,KAAK,EAAE,GAAG,6BAA6B,MAAM,CAAC,EAAE,YAAY,OAAO;AAAA,EAClH,OAAO;AACT,EAAE;AAEK,MAAM,eAAe,kBAAkB,KAAK,EAAE,iBAAiB;AAC/D,MAAM,gBAAgB,kBAAkB,KAAK,EAAE,eAAe;AAC9D,MAAM,YAAY,kBAAkB,KAAK,EAAE,iBAAiB,KAAK;AACjE,MAAM,aAAa,kBAAkB,KAAK,EAAE,iBAAiB,QAAQ,CAAC,EAAE,SAAS,OAAO;AAAA,EAC7F;AACF,EAAE;AACK,MAAM,cAAc,kBAAkB,KAAK,EAAE,eAAe,MAAM,CAAC,EAAE,QAAQ,OAAO;AAAA,EACzF,sBAAsB;AAAA,EACtB,cAAc;AAChB,EAAE;AACK,MAAM,UAAU,kBAAkB,OAAO;AAAA,EAC9C,eAAe;AACjB,CAAC,EAAE,eAAe,KAAK;AAChB,MAAM,WAAW,kBAAkB,KAAK,EAAE,eAAe,QAAQ,CAAC,EAAE,SAAS,OAAO;AAAA,EACzF;AACF,EAAE;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -7,8 +7,8 @@ import {
|
|
7
7
|
HeaderRow,
|
8
8
|
HeaderWrapper,
|
9
9
|
TableWrapper
|
10
|
-
} from "./defaultClassedRenderers";
|
11
|
-
import { renderRowsLoader } from "./renderRowsLoader";
|
10
|
+
} from "./defaultClassedRenderers.js";
|
11
|
+
import { renderRowsLoader } from "./renderRowsLoader.js";
|
12
12
|
const defaultRenderers = {
|
13
13
|
table: TableWrapper,
|
14
14
|
header: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/renderers/index.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n BodyCell,\n BodyRow,\n BodyWrapper,\n HeaderCell,\n HeaderRow,\n HeaderWrapper,\n TableWrapper,\n} from './defaultClassedRenderers';\n\nexport { renderRowsLoader } from './renderRowsLoader';\n\nexport const defaultRenderers = {\n table: TableWrapper,\n header: {\n wrapper: HeaderWrapper,\n row: HeaderRow,\n cell: HeaderCell,\n },\n body: {\n wrapper: BodyWrapper,\n row: BodyRow,\n cell: BodyCell,\n },\n};\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n BodyCell,\n BodyRow,\n BodyWrapper,\n HeaderCell,\n HeaderRow,\n HeaderWrapper,\n TableWrapper,\n} from './defaultClassedRenderers.js';\n\nexport { renderRowsLoader } from './renderRowsLoader.js';\n\nexport const defaultRenderers = {\n table: TableWrapper,\n header: {\n wrapper: HeaderWrapper,\n row: HeaderRow,\n cell: HeaderCell,\n },\n body: {\n wrapper: BodyWrapper,\n row: BodyRow,\n cell: BodyCell,\n },\n};\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,wBAAwB;AAE1B,MAAM,mBAAmB;AAAA,EAC9B,OAAO;AAAA,EACP,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AACF;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
3
|
-
import { RowsLoader } from "../RowsLoader";
|
4
|
-
const renderRowsLoader = () => {
|
5
|
-
return /* @__PURE__ */ jsx(RowsLoader, {});
|
6
|
-
};
|
3
|
+
import { RowsLoader } from "../RowsLoader.js";
|
4
|
+
const renderRowsLoader = () => /* @__PURE__ */ jsx(RowsLoader, {});
|
7
5
|
export {
|
8
6
|
renderRowsLoader
|
9
7
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/renderers/renderRowsLoader.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { RowsLoader } from '../RowsLoader';\n\nexport const renderRowsLoader = () =>
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { RowsLoader } from '../RowsLoader.js';\n\nexport const renderRowsLoader = () => <RowsLoader />;\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGe;AAFtC,SAAS,kBAAkB;AAEpB,MAAM,mBAAmB,MAAM,oBAAC,cAAW;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { BodyHeaderScrollSyncPlugin } from "./plugins/body-header-scroll-sync";
|
3
|
-
import { ResizablePlugin } from "./plugins/resizable";
|
4
|
-
import { CustomRendererPlugin } from "./plugins/custom-cell-renderer";
|
5
|
-
import { ColumnSizingPlugin } from "./plugins/column-sizing";
|
6
|
-
const defaultPlugins = [
|
7
|
-
BodyHeaderScrollSyncPlugin,
|
8
|
-
ResizablePlugin,
|
9
|
-
CustomRendererPlugin,
|
10
|
-
ColumnSizingPlugin
|
11
|
-
];
|
2
|
+
import { BodyHeaderScrollSyncPlugin } from "./plugins/body-header-scroll-sync/index.js";
|
3
|
+
import { ResizablePlugin } from "./plugins/resizable/index.js";
|
4
|
+
import { CustomRendererPlugin } from "./plugins/custom-cell-renderer/index.js";
|
5
|
+
import { ColumnSizingPlugin } from "./plugins/column-sizing/index.js";
|
6
|
+
const defaultPlugins = [BodyHeaderScrollSyncPlugin, ResizablePlugin, CustomRendererPlugin, ColumnSizingPlugin];
|
12
7
|
export {
|
13
8
|
defaultPlugins
|
14
9
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/defaultPlugins.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { BodyHeaderScrollSyncPlugin } from './plugins/body-header-scroll-sync';\nimport { ResizablePlugin } from './plugins/resizable';\nimport { CustomRendererPlugin } from './plugins/custom-cell-renderer';\nimport { ColumnSizingPlugin } from './plugins/column-sizing';\n\nexport const defaultPlugins = [
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AAE5B,MAAM,iBAAiB
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { BodyHeaderScrollSyncPlugin } from './plugins/body-header-scroll-sync/index.js';\nimport { ResizablePlugin } from './plugins/resizable/index.js';\nimport { CustomRendererPlugin } from './plugins/custom-cell-renderer/index.js';\nimport { ColumnSizingPlugin } from './plugins/column-sizing/index.js';\n\nexport const defaultPlugins = [BodyHeaderScrollSyncPlugin, ResizablePlugin, CustomRendererPlugin, ColumnSizingPlugin];\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AAE5B,MAAM,iBAAiB,CAAC,4BAA4B,iBAAiB,sBAAsB,kBAAkB;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { DSDataGrid } from "./DSDataGrid";
|
3
|
-
import { DSDataGridsWithSchema } from "./DSDataGrid";
|
4
|
-
import { ColumnsOptionsMenuSection } from "./components/ColumnsOptionsMenuSection";
|
5
|
-
import { getColumnVisibilityMenuOption } from "./components/ColumnVisibilityMenuOption";
|
6
|
-
import { EmptyState } from "./components/EmptyState";
|
7
|
-
import { IconColumn } from "./columns/IconColumn";
|
2
|
+
import { DSDataGrid } from "./DSDataGrid.js";
|
3
|
+
import { DSDataGridsWithSchema } from "./DSDataGrid.js";
|
4
|
+
import { ColumnsOptionsMenuSection } from "./components/ColumnsOptionsMenuSection.js";
|
5
|
+
import { getColumnVisibilityMenuOption } from "./components/ColumnVisibilityMenuOption.js";
|
6
|
+
import { EmptyState } from "./components/EmptyState.js";
|
7
|
+
import { IconColumn } from "./columns/IconColumn.js";
|
8
8
|
import {
|
9
9
|
BodyHeaderScrollSyncPlugin,
|
10
10
|
DndColumnsPlugin,
|
@@ -25,9 +25,9 @@ import {
|
|
25
25
|
ToolbarPlugin,
|
26
26
|
ExportDataPlugin,
|
27
27
|
VirtualizationPlugin
|
28
|
-
} from "./plugins";
|
29
|
-
import { RowSizes, RowSizesOptions, RowSizesOptionsArr } from "./rowSizes";
|
30
|
-
import { CellWithAddons, CellContainer } from "./renders";
|
28
|
+
} from "./plugins/index.js";
|
29
|
+
import { RowSizes, RowSizesOptions, RowSizesOptionsArr } from "./rowSizes.js";
|
30
|
+
import { CellWithAddons, CellContainer } from "./renders/index.js";
|
31
31
|
export {
|
32
32
|
BodyHeaderScrollSyncPlugin,
|
33
33
|
CellContainer,
|
package/dist/esm/index.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSDataGrid } from './DSDataGrid';\n\nexport { DSDataGridsWithSchema } from './DSDataGrid';\nexport { ColumnsOptionsMenuSection } from './components/ColumnsOptionsMenuSection';\n\nexport { getColumnVisibilityMenuOption } from './components/ColumnVisibilityMenuOption';\n\nexport { EmptyState } from './components/EmptyState';\n\nexport { IconColumn } from './columns/IconColumn';\n\nexport {\n BodyHeaderScrollSyncPlugin,\n DndColumnsPlugin,\n ColumnSizingPlugin,\n CustomRendererPlugin,\n EditablePlugin,\n ComboBox,\n TextBox,\n ExpandablePlugin,\n ExpandableColumn,\n FilterablePlugin,\n InfiniteScrollPlugin,\n PaginationPlugin,\n ResizablePlugin,\n DndRowsPlugin,\n SelectablePlugin,\n SortablePlugin,\n ToolbarPlugin,\n ExportDataPlugin,\n VirtualizationPlugin,\n} from './plugins';\n\nexport { RowSizes, RowSizesOptions, RowSizesOptionsArr } from './rowSizes';\n\nexport { CellWithAddons, CellContainer } from './renders';\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSDataGrid } from './DSDataGrid.js';\n\nexport { DSDataGridsWithSchema } from './DSDataGrid.js';\nexport { ColumnsOptionsMenuSection } from './components/ColumnsOptionsMenuSection.js';\n\nexport { getColumnVisibilityMenuOption } from './components/ColumnVisibilityMenuOption.js';\n\nexport { EmptyState } from './components/EmptyState.js';\n\nexport { IconColumn } from './columns/IconColumn.js';\n\nexport {\n BodyHeaderScrollSyncPlugin,\n DndColumnsPlugin,\n ColumnSizingPlugin,\n CustomRendererPlugin,\n EditablePlugin,\n ComboBox,\n TextBox,\n ExpandablePlugin,\n ExpandableColumn,\n FilterablePlugin,\n InfiniteScrollPlugin,\n PaginationPlugin,\n ResizablePlugin,\n DndRowsPlugin,\n SelectablePlugin,\n SortablePlugin,\n ToolbarPlugin,\n ExportDataPlugin,\n VirtualizationPlugin,\n} from './plugins/index.js';\n\nexport { RowSizes, RowSizesOptions, RowSizesOptionsArr } from './rowSizes.js';\n\nexport { CellWithAddons, CellContainer } from './renders/index.js';\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kBAAkB;AAE3B,SAAS,6BAA6B;AACtC,SAAS,iCAAiC;AAE1C,SAAS,qCAAqC;AAE9C,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB;AAE3B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,UAAU,iBAAiB,0BAA0B;AAE9D,SAAS,gBAAgB,qBAAqB;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -3,10 +3,12 @@ import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo, useRef, useEffect } from "react";
|
4
4
|
import { mergeRefs } from "@elliemae/ds-utilities";
|
5
5
|
import { ScrollSync, ScrollSyncPane, createInstancePlugin } from "@elliemae/ds-shared";
|
6
|
-
import { getScrollbarWidth } from "../../utilities/getScrollbarSize";
|
6
|
+
import { getScrollbarWidth } from "../../utilities/getScrollbarSize.js";
|
7
7
|
const SCROLLBAR_WIDTH = getScrollbarWidth(2);
|
8
|
-
const HeaderSyncHoc = (Component) => (props)
|
9
|
-
|
8
|
+
const HeaderSyncHoc = (Component) => function(props) {
|
9
|
+
return /* @__PURE__ */ jsx(ScrollSyncPane, { children: ({ registerPane }) => /* @__PURE__ */ jsx(Component, { ...props, innerRef: mergeRefs(props.innerRef, registerPane) }) });
|
10
|
+
};
|
11
|
+
const BodySyncHoc = (Component, notPaginated, grid) => function({
|
10
12
|
children,
|
11
13
|
classProps,
|
12
14
|
columns,
|
@@ -29,7 +31,7 @@ const BodySyncHoc = (Component, notPaginated, grid) => ({
|
|
29
31
|
className,
|
30
32
|
listComponent,
|
31
33
|
...rest
|
32
|
-
})
|
34
|
+
}) {
|
33
35
|
const t = useRef();
|
34
36
|
const repositionToolbarBasedOnBodyScrollPosition = (SCROLLBAR_WIDTH2) => () => {
|
35
37
|
grid.refs.body.current.style.setProperty(
|
@@ -78,20 +80,22 @@ const BodySyncHoc = (Component, notPaginated, grid) => ({
|
|
78
80
|
}
|
79
81
|
) });
|
80
82
|
};
|
81
|
-
const TableSyncHoc = (Component) => (props)
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
83
|
+
const TableSyncHoc = (Component) => function(props) {
|
84
|
+
return /* @__PURE__ */ jsx(
|
85
|
+
ScrollSync,
|
86
|
+
{
|
87
|
+
proportional: false,
|
88
|
+
onScroll: (e) => {
|
89
|
+
e.target.style.setProperty("--toolbar-scroll", `${e.target.offsetWidth + e.target.scrollLeft - 15}px`);
|
90
|
+
e.target.style.setProperty(
|
91
|
+
"--toolbar-scroll-paginated",
|
92
|
+
`${e.target.offsetWidth + e.target.scrollLeft - 19}px`
|
93
|
+
);
|
94
|
+
},
|
95
|
+
children: /* @__PURE__ */ jsx(Component, { ...props })
|
96
|
+
}
|
97
|
+
);
|
98
|
+
};
|
95
99
|
const decorateRenderers = (renderers, grid) => {
|
96
100
|
const HeaderWrapper = renderers.header.wrapper;
|
97
101
|
const BodyWrapper = renderers.body.wrapper;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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, createInstancePlugin } from '@elliemae/ds-shared';\nimport { getScrollbarWidth } from '../../utilities/getScrollbarSize';\n\nconst SCROLLBAR_WIDTH = getScrollbarWidth(2);\n\nconst HeaderSyncHoc = (Component)
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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, createInstancePlugin } from '@elliemae/ds-shared';\nimport { getScrollbarWidth } from '../../utilities/getScrollbarSize.js';\n\nconst SCROLLBAR_WIDTH = getScrollbarWidth(2);\n\nconst HeaderSyncHoc = (Component) =>\n function (props) {\n return (\n <ScrollSyncPane>\n {({ registerPane }) => <Component {...props} innerRef={mergeRefs(props.innerRef, registerPane)} />}\n </ScrollSyncPane>\n );\n };\nconst BodySyncHoc = (Component, notPaginated, grid) =>\n function ({\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) =>\n function (props) {\n return (\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 };\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"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACmBQ;AAX/B,SAAgB,SAAS,QAAQ,iBAAiB;AAClD,SAAS,iBAAiB;AAC1B,SAAS,YAAY,gBAAgB,4BAA4B;AACjE,SAAS,yBAAyB;AAElC,MAAM,kBAAkB,kBAAkB,CAAC;AAE3C,MAAM,gBAAgB,CAAC,cACrB,SAAU,OAAO;AACf,SACE,oBAAC,kBACE,WAAC,EAAE,aAAa,MAAM,oBAAC,aAAW,GAAG,OAAO,UAAU,UAAU,MAAM,UAAU,YAAY,GAAG,GAClG;AAEJ;AACF,MAAM,cAAc,CAAC,WAAW,cAAc,SAC5C,SAAU;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,GAAG;AACD,QAAM,IAAI,OAAO;AACjB,QAAM,6CAA6C,CAACA,qBAAoB,MAAM;AAC5E,SAAK,KAAK,KAAK,QAAQ,MAAM;AAAA,MAC3B;AAAA,MACA,GAAG,KAAK,KAAK,KAAK,QAAQ,cAAc,KAAK,KAAK,KAAK,QAAQ,aAAa;AAAA,IAC9E;AACA,SAAK,KAAK,KAAK,QAAQ,MAAM;AAAA,MAC3B;AAAA,MACA,GAAG,KAAK,KAAK,KAAK,QAAQ,cAAc,KAAK,KAAK,KAAK,QAAQ,aAAa;AAAA,IAC9E;AAAA,EACF;AACA,YAAU,MAAM;AACd,eAAW,2CAA2C,CAAC,eAAe,GAAG,GAAG;AAAA,EAC9E,GAAG,CAAC,CAAC;AACL,YAAU,MAAM;AACd,WAAO,iBAAiB,UAAU,2CAA2C,CAAC,eAAe,CAAC;AAC9F,WAAO,MAAM;AACX,aAAO,oBAAoB,UAAU,2CAA2C,CAAC,eAAe,CAAC;AAAA,IACnG;AAAA,EACF,CAAC;AACD,SACE,oBAAC,kBAAe,cACb,WAAC,EAAE,aAAa,MACf;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,UAAU,UAAU,cAAc,CAAC;AAAA,MAC5C,GAAG;AAAA;AAAA,EACN,GAEJ;AAEJ;AAEF,MAAM,eAAe,CAAC,cACpB,SAAU,OAAO;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAc;AAAA,MACd,UAAU,CAAC,MAAM;AACf,UAAE,OAAO,MAAM,YAAY,oBAAoB,GAAG,EAAE,OAAO,cAAc,EAAE,OAAO,aAAa,MAAM;AACrG,UAAE,OAAO,MAAM;AAAA,UACb;AAAA,UACA,GAAG,EAAE,OAAO,cAAc,EAAE,OAAO,aAAa;AAAA,QAClD;AAAA,MACF;AAAA,MAEA,8BAAC,aAAW,GAAG,OAAO;AAAA;AAAA,EACxB;AAEJ;AAEF,MAAM,oBAAoB,CAAC,WAAW,SAAS;AAC7C,QAAM,gBAAgB,UAAU,OAAO;AACvC,QAAM,cAAc,UAAU,KAAK;AACnC,QAAM,QAAQ,UAAU;AACxB,QAAM,EAAE,UAAU,IAAI,KAAK;AAE3B,YAAU,QAAQ,QAAQ,MAAM,aAAa,KAAK,GAAG,CAAC,CAAC;AACvD,YAAU,OAAO,UAAU,QAAQ,MAAM,cAAc,aAAa,GAAG,CAAC,CAAC;AACzE,YAAU,KAAK,UAAU,QAAQ,MAAM,YAAY,aAAa,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC;AAErF,SAAO;AACT;AAEO,MAAM,6BAA6B,qBAAqB,2BAA2B;AAAA,EACxF;AACF,CAAC;",
|
6
6
|
"names": ["SCROLLBAR_WIDTH"]
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/body-header-scroll-sync/index.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin';\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin.js';\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kCAAkC;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { SortableContainer, SortableElement } from "react-sortable-hoc";
|
5
5
|
import { arrayMove, omit, mergeRefs } from "@elliemae/ds-utilities";
|
6
6
|
import { createInstancePlugin } from "@elliemae/ds-shared";
|
7
|
-
import { addDragAndDropToColumn } from "./decorateGridWithDndColumns";
|
7
|
+
import { addDragAndDropToColumn } from "./decorateGridWithDndColumns.js";
|
8
8
|
const keysToOmit = [
|
9
9
|
"axis",
|
10
10
|
"contentWindow",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-dnd/DndColumnsPlugin.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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';\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"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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';\nimport { addDragAndDropToColumn } from './decorateGridWithDndColumns.js';\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"],
|
5
5
|
"mappings": "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",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/column-dnd/index.tsx"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DndColumnsPlugin } from './DndColumnsPlugin';\n"],
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DndColumnsPlugin } from './DndColumnsPlugin.js';\n"],
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,wBAAwB;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -2,10 +2,10 @@ import * as React from "react";
|
|
2
2
|
import { useRef } from "react";
|
3
3
|
import { cx } from "@elliemae/ds-utilities";
|
4
4
|
import { createInstancePlugin } from "@elliemae/ds-shared";
|
5
|
-
import { useStylesheetHelpers } from "./useStylesheetHelpers";
|
6
|
-
import { useColumnSizeService } from "./useColumnSizeService";
|
7
|
-
import { getTableProps } from "./ext-points/getTableProps";
|
8
|
-
import { decorateColumn } from "./ext-points/decorateColumn";
|
5
|
+
import { useStylesheetHelpers } from "./useStylesheetHelpers.js";
|
6
|
+
import { useColumnSizeService } from "./useColumnSizeService.js";
|
7
|
+
import { getTableProps } from "./ext-points/getTableProps.js";
|
8
|
+
import { decorateColumn } from "./ext-points/decorateColumn.js";
|
9
9
|
const getHeaderRowProps = (rowProps, { rowsStylesheet }) => {
|
10
10
|
rowProps.className = `${rowsStylesheet.getRowClassName()}-header`;
|
11
11
|
return rowProps;
|