@elliemae/ds-datagrids 3.27.0-next.1 → 3.27.0-next.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -39
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +3 -59
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +2 -9
- package/package.json +6 -540
- package/dist/cjs/DSDataGrid.js +0 -589
- package/dist/cjs/DSDataGrid.js.map +0 -7
- package/dist/cjs/DataGridImpl.js +0 -156
- package/dist/cjs/DataGridImpl.js.map +0 -7
- package/dist/cjs/PaginatedDataGrid.js +0 -84
- package/dist/cjs/PaginatedDataGrid.js.map +0 -7
- package/dist/cjs/blockNames.js +0 -40
- package/dist/cjs/blockNames.js.map +0 -7
- package/dist/cjs/columns/IconColumn.js +0 -109
- package/dist/cjs/columns/IconColumn.js.map +0 -7
- package/dist/cjs/columns/NumberColumn.js +0 -37
- package/dist/cjs/columns/NumberColumn.js.map +0 -7
- package/dist/cjs/components/BodyCell.js +0 -114
- package/dist/cjs/components/BodyCell.js.map +0 -7
- package/dist/cjs/components/BodyList.js +0 -48
- package/dist/cjs/components/BodyList.js.map +0 -7
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +0 -65
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +0 -7
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +0 -63
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +0 -7
- package/dist/cjs/components/EmptyState.js +0 -81
- package/dist/cjs/components/EmptyState.js.map +0 -7
- package/dist/cjs/components/HeaderCell.js +0 -79
- package/dist/cjs/components/HeaderCell.js.map +0 -7
- package/dist/cjs/components/List.js +0 -43
- package/dist/cjs/components/List.js.map +0 -7
- package/dist/cjs/components/ListItem.js +0 -49
- package/dist/cjs/components/ListItem.js.map +0 -7
- package/dist/cjs/components/NoResults.js +0 -53
- package/dist/cjs/components/NoResults.js.map +0 -7
- package/dist/cjs/components/RowsLoader.js +0 -41
- package/dist/cjs/components/RowsLoader.js.map +0 -7
- package/dist/cjs/components/Table.js +0 -125
- package/dist/cjs/components/Table.js.map +0 -7
- package/dist/cjs/components/TableBody.js +0 -71
- package/dist/cjs/components/TableBody.js.map +0 -7
- package/dist/cjs/components/TableHeader.js +0 -60
- package/dist/cjs/components/TableHeader.js.map +0 -7
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +0 -60
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +0 -7
- package/dist/cjs/components/header/PrimaryControls.js +0 -54
- package/dist/cjs/components/header/PrimaryControls.js.map +0 -7
- package/dist/cjs/components/header/addOptionalHeaderComponents.js +0 -62
- package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +0 -7
- package/dist/cjs/components/index.js +0 -44
- package/dist/cjs/components/index.js.map +0 -7
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +0 -67
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +0 -7
- package/dist/cjs/components/renderers/index.js +0 -51
- package/dist/cjs/components/renderers/index.js.map +0 -7
- package/dist/cjs/components/renderers/renderRowsLoader.js +0 -38
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +0 -7
- package/dist/cjs/components/tableContext.js +0 -37
- package/dist/cjs/components/tableContext.js.map +0 -7
- package/dist/cjs/defaultPlugins.js +0 -40
- package/dist/cjs/defaultPlugins.js.map +0 -7
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -145
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +0 -36
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +0 -7
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -159
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -48
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
- package/dist/cjs/plugins/column-dnd/index.js +0 -36
- package/dist/cjs/plugins/column-dnd/index.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -93
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -70
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -45
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -65
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -38
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/index.js +0 -36
- package/dist/cjs/plugins/column-sizing/index.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +0 -148
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -181
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
- package/dist/cjs/plugins/column-sizing/utils.js +0 -69
- package/dist/cjs/plugins/column-sizing/utils.js.map +0 -7
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -41
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -79
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -60
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
- package/dist/cjs/plugins/custom-cell-renderer/index.js +0 -36
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +0 -7
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -73
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +0 -95
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -7
- package/dist/cjs/plugins/editable/EditableComponents/index.js +0 -38
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +0 -7
- package/dist/cjs/plugins/editable/EditablePlugin.js +0 -112
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +0 -7
- package/dist/cjs/plugins/editable/decorateEditable.js +0 -96
- package/dist/cjs/plugins/editable/decorateEditable.js.map +0 -7
- package/dist/cjs/plugins/editable/getEditorComponent.js +0 -60
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +0 -7
- package/dist/cjs/plugins/editable/index.js +0 -39
- package/dist/cjs/plugins/editable/index.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -131
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -197
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +0 -147
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -57
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/index.js +0 -38
- package/dist/cjs/plugins/expandable-grid/index.js.map +0 -7
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +0 -94
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -7
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js +0 -135
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -7
- package/dist/cjs/plugins/export-data/index.js +0 -36
- package/dist/cjs/plugins/export-data/index.js.map +0 -7
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +0 -84
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +0 -7
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +0 -44
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +0 -133
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -179
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -133
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -231
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -183
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -36
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -48
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
- package/dist/cjs/plugins/filterable/filterableFormatter.js +0 -69
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +0 -7
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -83
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -45
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
- package/dist/cjs/plugins/filterable/helper.js +0 -113
- package/dist/cjs/plugins/filterable/helper.js.map +0 -7
- package/dist/cjs/plugins/filterable/index.js +0 -36
- package/dist/cjs/plugins/filterable/index.js.map +0 -7
- package/dist/cjs/plugins/filterable/useFilterableState.js +0 -112
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +0 -7
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -58
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -134
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js +0 -77
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -7
- package/dist/cjs/plugins/index.js +0 -69
- package/dist/cjs/plugins/index.js.map +0 -7
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -101
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
- package/dist/cjs/plugins/infinite-scrolling/index.js +0 -36
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +0 -7
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +0 -90
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +0 -7
- package/dist/cjs/plugins/pagination/components/Pagination.js +0 -57
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +0 -7
- package/dist/cjs/plugins/pagination/components/Paginator.js +0 -73
- package/dist/cjs/plugins/pagination/components/Paginator.js.map +0 -7
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +0 -74
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -7
- package/dist/cjs/plugins/pagination/helper.js +0 -63
- package/dist/cjs/plugins/pagination/helper.js.map +0 -7
- package/dist/cjs/plugins/pagination/index.js +0 -36
- package/dist/cjs/plugins/pagination/index.js.map +0 -7
- package/dist/cjs/plugins/pagination/usePaginationState.js +0 -83
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +0 -7
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +0 -116
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +0 -7
- package/dist/cjs/plugins/resizable/decorateResizable.js +0 -57
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +0 -7
- package/dist/cjs/plugins/resizable/index.js +0 -36
- package/dist/cjs/plugins/resizable/index.js.map +0 -7
- package/dist/cjs/plugins/resizable/useResizeHandle.js +0 -75
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +0 -7
- package/dist/cjs/plugins/resizable/utils.js +0 -55
- package/dist/cjs/plugins/resizable/utils.js.map +0 -7
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -140
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
- package/dist/cjs/plugins/row-dnd/index.js +0 -36
- package/dist/cjs/plugins/row-dnd/index.js.map +0 -7
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +0 -170
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +0 -7
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +0 -105
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +0 -7
- package/dist/cjs/plugins/selectable/helper.js +0 -55
- package/dist/cjs/plugins/selectable/helper.js.map +0 -7
- package/dist/cjs/plugins/selectable/index.js +0 -36
- package/dist/cjs/plugins/selectable/index.js.map +0 -7
- package/dist/cjs/plugins/selectable/selectableFormatter.js +0 -99
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +0 -7
- package/dist/cjs/plugins/selectable/useSelectableState.js +0 -128
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +0 -7
- package/dist/cjs/plugins/sortable/SortablePlugin.js +0 -98
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +0 -7
- package/dist/cjs/plugins/sortable/checkIfSortable.js +0 -46
- package/dist/cjs/plugins/sortable/checkIfSortable.js.map +0 -7
- package/dist/cjs/plugins/sortable/index.js +0 -36
- package/dist/cjs/plugins/sortable/index.js.map +0 -7
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +0 -66
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -7
- package/dist/cjs/plugins/sortable/sortTree.js +0 -49
- package/dist/cjs/plugins/sortable/sortTree.js.map +0 -7
- package/dist/cjs/plugins/sortable/sorter.js +0 -154
- package/dist/cjs/plugins/sortable/sorter.js.map +0 -7
- package/dist/cjs/plugins/sortable/useSortableState.js +0 -74
- package/dist/cjs/plugins/sortable/useSortableState.js.map +0 -7
- package/dist/cjs/plugins/toolbar/RowRenderer.js +0 -109
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +0 -7
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +0 -63
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -7
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +0 -115
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -7
- package/dist/cjs/plugins/toolbar/index.js +0 -36
- package/dist/cjs/plugins/toolbar/index.js.map +0 -7
- package/dist/cjs/plugins/virtualization/AutoHeightList.js +0 -78
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +0 -7
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -109
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -7
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -58
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
- package/dist/cjs/plugins/virtualization/helper.js +0 -36
- package/dist/cjs/plugins/virtualization/helper.js.map +0 -7
- package/dist/cjs/plugins/virtualization/index.js +0 -36
- package/dist/cjs/plugins/virtualization/index.js.map +0 -7
- package/dist/cjs/renders/CellWithAddons.js +0 -113
- package/dist/cjs/renders/CellWithAddons.js.map +0 -7
- package/dist/cjs/renders/index.js +0 -38
- package/dist/cjs/renders/index.js.map +0 -7
- package/dist/cjs/renders/styled.js +0 -79
- package/dist/cjs/renders/styled.js.map +0 -7
- package/dist/cjs/rowSizes.js +0 -48
- package/dist/cjs/rowSizes.js.map +0 -7
- package/dist/cjs/utilities/DataGridUtilities.json +0 -1315
- package/dist/cjs/utilities/getPluginsFromProps.js +0 -73
- package/dist/cjs/utilities/getPluginsFromProps.js.map +0 -7
- package/dist/cjs/utilities/getScrollbarSize.js +0 -47
- package/dist/cjs/utilities/getScrollbarSize.js.map +0 -7
- package/dist/cjs/utilities/normalizeData.js +0 -50
- package/dist/cjs/utilities/normalizeData.js.map +0 -7
- package/dist/esm/DSDataGrid.js +0 -559
- package/dist/esm/DSDataGrid.js.map +0 -7
- package/dist/esm/DataGridImpl.js +0 -126
- package/dist/esm/DataGridImpl.js.map +0 -7
- package/dist/esm/PaginatedDataGrid.js +0 -54
- package/dist/esm/PaginatedDataGrid.js.map +0 -7
- package/dist/esm/blockNames.js +0 -10
- package/dist/esm/blockNames.js.map +0 -7
- package/dist/esm/columns/IconColumn.js +0 -79
- package/dist/esm/columns/IconColumn.js.map +0 -7
- package/dist/esm/columns/NumberColumn.js +0 -7
- package/dist/esm/columns/NumberColumn.js.map +0 -7
- package/dist/esm/components/BodyCell.js +0 -84
- package/dist/esm/components/BodyCell.js.map +0 -7
- package/dist/esm/components/BodyList.js +0 -18
- package/dist/esm/components/BodyList.js.map +0 -7
- package/dist/esm/components/ColumnVisibilityMenuOption.js +0 -35
- package/dist/esm/components/ColumnVisibilityMenuOption.js.map +0 -7
- package/dist/esm/components/ColumnsOptionsMenuSection.js +0 -33
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +0 -7
- package/dist/esm/components/EmptyState.js +0 -51
- package/dist/esm/components/EmptyState.js.map +0 -7
- package/dist/esm/components/HeaderCell.js +0 -49
- package/dist/esm/components/HeaderCell.js.map +0 -7
- package/dist/esm/components/List.js +0 -13
- package/dist/esm/components/List.js.map +0 -7
- package/dist/esm/components/ListItem.js +0 -19
- package/dist/esm/components/ListItem.js.map +0 -7
- package/dist/esm/components/NoResults.js +0 -23
- package/dist/esm/components/NoResults.js.map +0 -7
- package/dist/esm/components/RowsLoader.js +0 -11
- package/dist/esm/components/RowsLoader.js.map +0 -7
- package/dist/esm/components/Table.js +0 -95
- package/dist/esm/components/Table.js.map +0 -7
- package/dist/esm/components/TableBody.js +0 -41
- package/dist/esm/components/TableBody.js.map +0 -7
- package/dist/esm/components/TableHeader.js +0 -30
- package/dist/esm/components/TableHeader.js.map +0 -7
- package/dist/esm/components/footer/addOptionalFooterComponents.js +0 -30
- package/dist/esm/components/footer/addOptionalFooterComponents.js.map +0 -7
- package/dist/esm/components/header/PrimaryControls.js +0 -24
- package/dist/esm/components/header/PrimaryControls.js.map +0 -7
- package/dist/esm/components/header/addOptionalHeaderComponents.js +0 -32
- package/dist/esm/components/header/addOptionalHeaderComponents.js.map +0 -7
- package/dist/esm/components/index.js +0 -14
- package/dist/esm/components/index.js.map +0 -7
- package/dist/esm/components/renderers/defaultClassedRenderers.js +0 -37
- package/dist/esm/components/renderers/defaultClassedRenderers.js.map +0 -7
- package/dist/esm/components/renderers/index.js +0 -29
- package/dist/esm/components/renderers/index.js.map +0 -7
- package/dist/esm/components/renderers/renderRowsLoader.js +0 -8
- package/dist/esm/components/renderers/renderRowsLoader.js.map +0 -7
- package/dist/esm/components/tableContext.js +0 -7
- package/dist/esm/components/tableContext.js.map +0 -7
- package/dist/esm/defaultPlugins.js +0 -10
- package/dist/esm/defaultPlugins.js.map +0 -7
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -115
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
- package/dist/esm/plugins/body-header-scroll-sync/index.js +0 -6
- package/dist/esm/plugins/body-header-scroll-sync/index.js.map +0 -7
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -129
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -18
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
- package/dist/esm/plugins/column-dnd/index.js +0 -6
- package/dist/esm/plugins/column-dnd/index.js.map +0 -7
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -63
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -40
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -15
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -35
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -8
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
- package/dist/esm/plugins/column-sizing/index.js +0 -6
- package/dist/esm/plugins/column-sizing/index.js.map +0 -7
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js +0 -118
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -7
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -151
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
- package/dist/esm/plugins/column-sizing/utils.js +0 -39
- package/dist/esm/plugins/column-sizing/utils.js.map +0 -7
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -11
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -49
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -30
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
- package/dist/esm/plugins/custom-cell-renderer/index.js +0 -6
- package/dist/esm/plugins/custom-cell-renderer/index.js.map +0 -7
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +0 -43
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js +0 -65
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -7
- package/dist/esm/plugins/editable/EditableComponents/index.js +0 -8
- package/dist/esm/plugins/editable/EditableComponents/index.js.map +0 -7
- package/dist/esm/plugins/editable/EditablePlugin.js +0 -82
- package/dist/esm/plugins/editable/EditablePlugin.js.map +0 -7
- package/dist/esm/plugins/editable/decorateEditable.js +0 -66
- package/dist/esm/plugins/editable/decorateEditable.js.map +0 -7
- package/dist/esm/plugins/editable/getEditorComponent.js +0 -30
- package/dist/esm/plugins/editable/getEditorComponent.js.map +0 -7
- package/dist/esm/plugins/editable/index.js +0 -9
- package/dist/esm/plugins/editable/index.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +0 -101
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -167
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js +0 -117
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -27
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/index.js +0 -8
- package/dist/esm/plugins/expandable-grid/index.js.map +0 -7
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js +0 -64
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -7
- package/dist/esm/plugins/export-data/ExportDataPlugin.js +0 -105
- package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +0 -7
- package/dist/esm/plugins/export-data/index.js +0 -6
- package/dist/esm/plugins/export-data/index.js.map +0 -7
- package/dist/esm/plugins/filterable/FilterablePlugin.js +0 -54
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +0 -7
- package/dist/esm/plugins/filterable/addFilterToColumn.js +0 -14
- package/dist/esm/plugins/filterable/addFilterToColumn.js.map +0 -7
- package/dist/esm/plugins/filterable/components/FilterableHeader.js +0 -103
- package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -149
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -103
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -205
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -153
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -6
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
- package/dist/esm/plugins/filterable/filterableFormatter.js +0 -39
- package/dist/esm/plugins/filterable/filterableFormatter.js.map +0 -7
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -53
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -15
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
- package/dist/esm/plugins/filterable/helper.js +0 -83
- package/dist/esm/plugins/filterable/helper.js.map +0 -7
- package/dist/esm/plugins/filterable/index.js +0 -6
- package/dist/esm/plugins/filterable/index.js.map +0 -7
- package/dist/esm/plugins/filterable/useFilterableState.js +0 -82
- package/dist/esm/plugins/filterable/useFilterableState.js.map +0 -7
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +0 -28
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +0 -104
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
- package/dist/esm/plugins/grouping-grid/walkStrategy.js +0 -47
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +0 -7
- package/dist/esm/plugins/index.js +0 -39
- package/dist/esm/plugins/index.js.map +0 -7
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -71
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
- package/dist/esm/plugins/infinite-scrolling/index.js +0 -6
- package/dist/esm/plugins/infinite-scrolling/index.js.map +0 -7
- package/dist/esm/plugins/pagination/PaginationPlugin.js +0 -60
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +0 -7
- package/dist/esm/plugins/pagination/components/Pagination.js +0 -27
- package/dist/esm/plugins/pagination/components/Pagination.js.map +0 -7
- package/dist/esm/plugins/pagination/components/Paginator.js +0 -43
- package/dist/esm/plugins/pagination/components/Paginator.js.map +0 -7
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js +0 -44
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -7
- package/dist/esm/plugins/pagination/helper.js +0 -33
- package/dist/esm/plugins/pagination/helper.js.map +0 -7
- package/dist/esm/plugins/pagination/index.js +0 -6
- package/dist/esm/plugins/pagination/index.js.map +0 -7
- package/dist/esm/plugins/pagination/usePaginationState.js +0 -53
- package/dist/esm/plugins/pagination/usePaginationState.js.map +0 -7
- package/dist/esm/plugins/resizable/ResizablePlugin.js +0 -86
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +0 -7
- package/dist/esm/plugins/resizable/decorateResizable.js +0 -27
- package/dist/esm/plugins/resizable/decorateResizable.js.map +0 -7
- package/dist/esm/plugins/resizable/index.js +0 -6
- package/dist/esm/plugins/resizable/index.js.map +0 -7
- package/dist/esm/plugins/resizable/useResizeHandle.js +0 -45
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +0 -7
- package/dist/esm/plugins/resizable/utils.js +0 -25
- package/dist/esm/plugins/resizable/utils.js.map +0 -7
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +0 -110
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
- package/dist/esm/plugins/row-dnd/index.js +0 -6
- package/dist/esm/plugins/row-dnd/index.js.map +0 -7
- package/dist/esm/plugins/selectable/SelectablePlugin.js +0 -140
- package/dist/esm/plugins/selectable/SelectablePlugin.js.map +0 -7
- package/dist/esm/plugins/selectable/addSelectableColumn.js +0 -75
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +0 -7
- package/dist/esm/plugins/selectable/helper.js +0 -25
- package/dist/esm/plugins/selectable/helper.js.map +0 -7
- package/dist/esm/plugins/selectable/index.js +0 -6
- package/dist/esm/plugins/selectable/index.js.map +0 -7
- package/dist/esm/plugins/selectable/selectableFormatter.js +0 -69
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +0 -7
- package/dist/esm/plugins/selectable/useSelectableState.js +0 -98
- package/dist/esm/plugins/selectable/useSelectableState.js.map +0 -7
- package/dist/esm/plugins/sortable/SortablePlugin.js +0 -68
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +0 -7
- package/dist/esm/plugins/sortable/checkIfSortable.js +0 -16
- package/dist/esm/plugins/sortable/checkIfSortable.js.map +0 -7
- package/dist/esm/plugins/sortable/index.js +0 -6
- package/dist/esm/plugins/sortable/index.js.map +0 -7
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js +0 -36
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -7
- package/dist/esm/plugins/sortable/sortTree.js +0 -19
- package/dist/esm/plugins/sortable/sortTree.js.map +0 -7
- package/dist/esm/plugins/sortable/sorter.js +0 -124
- package/dist/esm/plugins/sortable/sorter.js.map +0 -7
- package/dist/esm/plugins/sortable/useSortableState.js +0 -44
- package/dist/esm/plugins/sortable/useSortableState.js.map +0 -7
- package/dist/esm/plugins/toolbar/RowRenderer.js +0 -79
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +0 -7
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -7
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js +0 -85
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -7
- package/dist/esm/plugins/toolbar/index.js +0 -6
- package/dist/esm/plugins/toolbar/index.js.map +0 -7
- package/dist/esm/plugins/virtualization/AutoHeightList.js +0 -48
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +0 -7
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +0 -79
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +0 -245
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +0 -7
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
- package/dist/esm/plugins/virtualization/helper.js +0 -6
- package/dist/esm/plugins/virtualization/helper.js.map +0 -7
- package/dist/esm/plugins/virtualization/index.js +0 -6
- package/dist/esm/plugins/virtualization/index.js.map +0 -7
- package/dist/esm/renders/CellWithAddons.js +0 -83
- package/dist/esm/renders/CellWithAddons.js.map +0 -7
- package/dist/esm/renders/index.js +0 -8
- package/dist/esm/renders/index.js.map +0 -7
- package/dist/esm/renders/styled.js +0 -49
- package/dist/esm/renders/styled.js.map +0 -7
- package/dist/esm/rowSizes.js +0 -18
- package/dist/esm/rowSizes.js.map +0 -7
- package/dist/esm/utilities/DataGridUtilities.json +0 -1315
- package/dist/esm/utilities/getPluginsFromProps.js +0 -43
- package/dist/esm/utilities/getPluginsFromProps.js.map +0 -7
- package/dist/esm/utilities/getScrollbarSize.js +0 -17
- package/dist/esm/utilities/getScrollbarSize.js.map +0 -7
- package/dist/esm/utilities/normalizeData.js +0 -20
- package/dist/esm/utilities/normalizeData.js.map +0 -7
- package/dist/types/DSDataGrid.d.ts +0 -452
- package/dist/types/DataGridImpl.d.ts +0 -12
- package/dist/types/PaginatedDataGrid.d.ts +0 -14
- package/dist/types/blockNames.d.ts +0 -4
- package/dist/types/columns/IconColumn.d.ts +0 -35
- package/dist/types/columns/NumberColumn.d.ts +0 -4
- package/dist/types/components/BodyCell.d.ts +0 -33
- package/dist/types/components/BodyList.d.ts +0 -11
- package/dist/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
- package/dist/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
- package/dist/types/components/EmptyState.d.ts +0 -6
- package/dist/types/components/HeaderCell.d.ts +0 -18
- package/dist/types/components/List.d.ts +0 -2
- package/dist/types/components/ListItem.d.ts +0 -2
- package/dist/types/components/NoResults.d.ts +0 -7
- package/dist/types/components/RowsLoader.d.ts +0 -4
- package/dist/types/components/Table.d.ts +0 -8
- package/dist/types/components/TableBody.d.ts +0 -4
- package/dist/types/components/TableHeader.d.ts +0 -3
- package/dist/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
- package/dist/types/components/header/PrimaryControls.d.ts +0 -5
- package/dist/types/components/header/addOptionalHeaderComponents.d.ts +0 -10
- package/dist/types/components/index.d.ts +0 -5
- package/dist/types/components/renderers/defaultClassedRenderers.d.ts +0 -11
- package/dist/types/components/renderers/index.d.ts +0 -15
- package/dist/types/components/renderers/renderRowsLoader.d.ts +0 -1
- package/dist/types/components/tableContext.d.ts +0 -2
- package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +0 -1
- package/dist/types/defaultPlugins.d.ts +0 -1
- package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -1
- package/dist/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
- package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -1
- package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -2
- package/dist/types/plugins/column-dnd/index.d.ts +0 -1
- package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -1
- package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -6
- package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -1
- package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -10
- package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -2
- package/dist/types/plugins/column-sizing/index.d.ts +0 -1
- package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -18
- package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -22
- package/dist/types/plugins/column-sizing/utils.d.ts +0 -5
- package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -1
- package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -4
- package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
- package/dist/types/plugins/custom-cell-renderer/index.d.ts +0 -1
- package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -12
- package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -24
- package/dist/types/plugins/editable/EditableComponents/index.d.ts +0 -2
- package/dist/types/plugins/editable/EditablePlugin.d.ts +0 -1
- package/dist/types/plugins/editable/decorateEditable.d.ts +0 -7
- package/dist/types/plugins/editable/getEditorComponent.d.ts +0 -7
- package/dist/types/plugins/editable/index.d.ts +0 -2
- package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
- package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -1
- package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
- package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
- package/dist/types/plugins/expandable-grid/index.d.ts +0 -2
- package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -1
- package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +0 -16
- package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +0 -4
- package/dist/types/plugins/export-data/index.d.ts +0 -1
- package/dist/types/plugins/filterable/FilterablePlugin.d.ts +0 -1
- package/dist/types/plugins/filterable/addFilterToColumn.d.ts +0 -1
- package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +0 -28
- package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
- package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
- package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -31
- package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
- package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -1
- package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -2
- package/dist/types/plugins/filterable/filterableFormatter.d.ts +0 -11
- package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -3
- package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
- package/dist/types/plugins/filterable/helper.d.ts +0 -22
- package/dist/types/plugins/filterable/index.d.ts +0 -1
- package/dist/types/plugins/filterable/useFilterableState.d.ts +0 -18
- package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +0 -1
- package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +0 -1
- package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +0 -9
- package/dist/types/plugins/index.d.ts +0 -16
- package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -1
- package/dist/types/plugins/infinite-scrolling/index.d.ts +0 -1
- package/dist/types/plugins/pagination/PaginationPlugin.d.ts +0 -1
- package/dist/types/plugins/pagination/components/Pagination.d.ts +0 -10
- package/dist/types/plugins/pagination/components/Paginator.d.ts +0 -9
- package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
- package/dist/types/plugins/pagination/helper.d.ts +0 -18
- package/dist/types/plugins/pagination/index.d.ts +0 -1
- package/dist/types/plugins/pagination/usePaginationState.d.ts +0 -9
- package/dist/types/plugins/resizable/ResizablePlugin.d.ts +0 -1
- package/dist/types/plugins/resizable/decorateResizable.d.ts +0 -3
- package/dist/types/plugins/resizable/index.d.ts +0 -1
- package/dist/types/plugins/resizable/useResizeHandle.d.ts +0 -13
- package/dist/types/plugins/resizable/utils.d.ts +0 -3
- package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +0 -1
- package/dist/types/plugins/row-dnd/index.d.ts +0 -1
- package/dist/types/plugins/selectable/SelectablePlugin.d.ts +0 -1
- package/dist/types/plugins/selectable/addSelectableColumn.d.ts +0 -30
- package/dist/types/plugins/selectable/helper.d.ts +0 -6
- package/dist/types/plugins/selectable/index.d.ts +0 -1
- package/dist/types/plugins/selectable/selectableFormatter.d.ts +0 -9
- package/dist/types/plugins/selectable/useSelectableState.d.ts +0 -12
- package/dist/types/plugins/sortable/SortablePlugin.d.ts +0 -1
- package/dist/types/plugins/sortable/checkIfSortable.d.ts +0 -2
- package/dist/types/plugins/sortable/index.d.ts +0 -1
- package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
- package/dist/types/plugins/sortable/sortTree.d.ts +0 -3
- package/dist/types/plugins/sortable/sorter.d.ts +0 -12
- package/dist/types/plugins/sortable/useSortableState.d.ts +0 -8
- package/dist/types/plugins/toolbar/RowRenderer.d.ts +0 -10
- package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +0 -1
- package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +0 -7
- package/dist/types/plugins/toolbar/index.d.ts +0 -1
- package/dist/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
- package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +0 -1
- package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
- package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
- package/dist/types/plugins/virtualization/helper.d.ts +0 -1
- package/dist/types/plugins/virtualization/index.d.ts +0 -1
- package/dist/types/renders/CellWithAddons.d.ts +0 -51
- package/dist/types/renders/index.d.ts +0 -2
- package/dist/types/renders/styled.d.ts +0 -4
- package/dist/types/rowSizes.d.ts +0 -11
- package/dist/types/tests/DataGrid-Columns.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Editable.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Export.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-RowDnd.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Selectable.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Sortable.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Toolbar.test.d.ts +0 -1
- package/dist/types/tests/DataGrid-Virtualization.test.d.ts +0 -1
- package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +0 -1
- package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +0 -1
- package/dist/types/tests/DataGrids-Rows.test.d.ts +0 -1
- package/dist/types/tests/DataGrids.test.d.ts +0 -1
- package/dist/types/utilities/getPluginsFromProps.d.ts +0 -2
- package/dist/types/utilities/getScrollbarSize.d.ts +0 -1
- package/dist/types/utilities/normalizeData.d.ts +0 -3
@@ -1,105 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var addSelectableColumn_exports = {};
|
30
|
-
__export(addSelectableColumn_exports, {
|
31
|
-
selectionColumnCreator: () => selectionColumnCreator
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(addSelectableColumn_exports);
|
34
|
-
var React = __toESM(require("react"));
|
35
|
-
var import_ds_shared = require("@elliemae/ds-shared");
|
36
|
-
var import_selectableFormatter = require("./selectableFormatter.js");
|
37
|
-
function selectionColumnCreator({
|
38
|
-
grid,
|
39
|
-
selectAll,
|
40
|
-
selectionComponent,
|
41
|
-
onSelectRow,
|
42
|
-
onSelectAll,
|
43
|
-
multiple,
|
44
|
-
// backward compatibility: later this needed to be passed through column definition
|
45
|
-
multiSelectFilterLabel,
|
46
|
-
multiSelectFilterOptions,
|
47
|
-
multiSelectFilterLabels,
|
48
|
-
multiSelectComponent
|
49
|
-
// favor selectionComponent
|
50
|
-
}) {
|
51
|
-
const {
|
52
|
-
props: { rowKey }
|
53
|
-
} = grid;
|
54
|
-
return ({
|
55
|
-
visible = true,
|
56
|
-
isDataColumn = false,
|
57
|
-
width = 40,
|
58
|
-
minWidth,
|
59
|
-
cellRenderer,
|
60
|
-
headerCellRenderer,
|
61
|
-
customRenderer,
|
62
|
-
header,
|
63
|
-
...column
|
64
|
-
} = {}) => {
|
65
|
-
let selectionColumn = {
|
66
|
-
...column,
|
67
|
-
property: "metaData.selected",
|
68
|
-
filterLabel: multiSelectFilterLabel,
|
69
|
-
filterOptions: multiSelectFilterOptions,
|
70
|
-
filterLabels: multiSelectFilterLabels,
|
71
|
-
visible,
|
72
|
-
width,
|
73
|
-
minWidth: minWidth || width,
|
74
|
-
isDataColumn
|
75
|
-
};
|
76
|
-
selectionColumn = (0, import_ds_shared.appendCellFormatter)(
|
77
|
-
(0, import_selectableFormatter.selectableFormatter)(
|
78
|
-
{
|
79
|
-
isMultiSelect: multiple,
|
80
|
-
renderer: selectionComponent || multiSelectComponent,
|
81
|
-
onSelect: onSelectRow
|
82
|
-
},
|
83
|
-
grid
|
84
|
-
)
|
85
|
-
)(selectionColumn);
|
86
|
-
if (multiple) {
|
87
|
-
selectionColumn = (0, import_ds_shared.appendHeaderFormatter)(
|
88
|
-
(0, import_selectableFormatter.selectableFormatter)(
|
89
|
-
{
|
90
|
-
rowKey,
|
91
|
-
selectAll,
|
92
|
-
isMultiSelect: true,
|
93
|
-
isHeader: true,
|
94
|
-
className: "multi-select-wrapper",
|
95
|
-
renderer: selectionComponent || multiSelectComponent,
|
96
|
-
onSelect: onSelectAll
|
97
|
-
},
|
98
|
-
grid
|
99
|
-
)
|
100
|
-
)(selectionColumn);
|
101
|
-
}
|
102
|
-
return selectionColumn;
|
103
|
-
};
|
104
|
-
}
|
105
|
-
//# sourceMappingURL=addSelectableColumn.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/selectable/addSelectableColumn.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import { appendCellFormatter, appendHeaderFormatter } from '@elliemae/ds-shared';\nimport { selectableFormatter } from './selectableFormatter.js';\n\nexport function selectionColumnCreator({\n grid,\n selectAll,\n selectionComponent,\n onSelectRow,\n onSelectAll,\n multiple,\n\n // backward compatibility: later this needed to be passed through column definition\n multiSelectFilterLabel,\n multiSelectFilterOptions,\n multiSelectFilterLabels,\n multiSelectComponent, // favor selectionComponent\n}) {\n const {\n props: { rowKey },\n } = grid;\n\n return ({\n visible = true,\n isDataColumn = false,\n width = 40,\n minWidth,\n cellRenderer,\n headerCellRenderer,\n customRenderer,\n header,\n ...column\n } = {}) => {\n let selectionColumn = {\n ...column,\n property: 'metaData.selected',\n filterLabel: multiSelectFilterLabel,\n filterOptions: multiSelectFilterOptions,\n filterLabels: multiSelectFilterLabels,\n visible,\n width,\n minWidth: minWidth || width,\n isDataColumn,\n };\n selectionColumn = appendCellFormatter(\n selectableFormatter(\n {\n isMultiSelect: multiple,\n renderer: selectionComponent || multiSelectComponent,\n onSelect: onSelectRow,\n },\n grid,\n ),\n )(selectionColumn);\n\n if (multiple) {\n selectionColumn = appendHeaderFormatter(\n selectableFormatter(\n {\n rowKey,\n selectAll,\n isMultiSelect: true,\n isHeader: true,\n className: 'multi-select-wrapper',\n renderer: selectionComponent || multiSelectComponent,\n onSelect: onSelectAll,\n },\n grid,\n ),\n )(selectionColumn);\n }\n return selectionColumn;\n };\n}\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA2D;AAC3D,iCAAoC;AAE7B,SAAS,uBAAuB;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AACF,GAAG;AACD,QAAM;AAAA,IACJ,OAAO,EAAE,OAAO;AAAA,EAClB,IAAI;AAEJ,SAAO,CAAC;AAAA,IACN,UAAU;AAAA,IACV,eAAe;AAAA,IACf,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI,CAAC,MAAM;AACT,QAAI,kBAAkB;AAAA,MACpB,GAAG;AAAA,MACH,UAAU;AAAA,MACV,aAAa;AAAA,MACb,eAAe;AAAA,MACf,cAAc;AAAA,MACd;AAAA,MACA;AAAA,MACA,UAAU,YAAY;AAAA,MACtB;AAAA,IACF;AACA,0BAAkB;AAAA,UAChB;AAAA,QACE;AAAA,UACE,eAAe;AAAA,UACf,UAAU,sBAAsB;AAAA,UAChC,UAAU;AAAA,QACZ;AAAA,QACA;AAAA,MACF;AAAA,IACF,EAAE,eAAe;AAEjB,QAAI,UAAU;AACZ,4BAAkB;AAAA,YAChB;AAAA,UACE;AAAA,YACE;AAAA,YACA;AAAA,YACA,eAAe;AAAA,YACf,UAAU;AAAA,YACV,WAAW;AAAA,YACX,UAAU,sBAAsB;AAAA,YAChC,UAAU;AAAA,UACZ;AAAA,UACA;AAAA,QACF;AAAA,MACF,EAAE,eAAe;AAAA,IACnB;AACA,WAAO;AAAA,EACT;AACF;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var helper_exports = {};
|
30
|
-
__export(helper_exports, {
|
31
|
-
checkAllRowsSelected: () => checkAllRowsSelected,
|
32
|
-
selectMultipleRow: () => selectMultipleRow,
|
33
|
-
selectSingleRow: () => selectSingleRow,
|
34
|
-
toggleSelectAll: () => toggleSelectAll,
|
35
|
-
toggleSingleSelectable: () => toggleSingleSelectable
|
36
|
-
});
|
37
|
-
module.exports = __toCommonJS(helper_exports);
|
38
|
-
var React = __toESM(require("react"));
|
39
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
40
|
-
const checkAllRowsSelected = (rows, selectedRows) => {
|
41
|
-
if (rows.length && selectedRows.length === rows.length)
|
42
|
-
return true;
|
43
|
-
if (selectedRows.length)
|
44
|
-
return "mixed";
|
45
|
-
return false;
|
46
|
-
};
|
47
|
-
const toggleSelectAll = (rows, checked) => !checked ? {} : rows.reduce((nextSelRows, row) => (0, import_ds_utilities.toggleInObject)(nextSelRows, row.id, true), {});
|
48
|
-
const toggleSingleSelectable = (selectedRows, id) => !selectedRows[id] ? (0, import_ds_utilities.toggleInObject)({}, id, true) : {};
|
49
|
-
const mergeSelectedToMetaData = (selected) => (row) => ({
|
50
|
-
...row,
|
51
|
-
"metaData.selected": selected
|
52
|
-
});
|
53
|
-
const selectSingleRow = (rows, filter) => rows.map((row) => mergeSelectedToMetaData(filter(row))(row));
|
54
|
-
const selectMultipleRow = (rows, isRowSelectedPredicate) => rows.map((row) => mergeSelectedToMetaData(isRowSelectedPredicate(row))(row));
|
55
|
-
//# sourceMappingURL=helper.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/selectable/helper.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import { toggleInObject } from '@elliemae/ds-utilities';\n\nexport const checkAllRowsSelected = (rows, selectedRows) => {\n if (rows.length && selectedRows.length === rows.length) return true;\n if (selectedRows.length) return 'mixed';\n return false;\n};\n\nexport const toggleSelectAll = (rows, checked) =>\n !checked ? {} : rows.reduce((nextSelRows, row) => toggleInObject(nextSelRows, row.id, true), {});\n\nexport const toggleSingleSelectable = (selectedRows, id) => (!selectedRows[id] ? toggleInObject({}, id, true) : {});\n\nconst mergeSelectedToMetaData = (selected) => (row) => ({\n ...row,\n 'metaData.selected': selected,\n});\n\nexport const selectSingleRow = (rows, filter) => rows.map((row) => mergeSelectedToMetaData(filter(row))(row));\n\nexport const selectMultipleRow = (rows, isRowSelectedPredicate) =>\n rows.map((row) => mergeSelectedToMetaData(isRowSelectedPredicate(row))(row));\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA+B;AAExB,MAAM,uBAAuB,CAAC,MAAM,iBAAiB;AAC1D,MAAI,KAAK,UAAU,aAAa,WAAW,KAAK;AAAQ,WAAO;AAC/D,MAAI,aAAa;AAAQ,WAAO;AAChC,SAAO;AACT;AAEO,MAAM,kBAAkB,CAAC,MAAM,YACpC,CAAC,UAAU,CAAC,IAAI,KAAK,OAAO,CAAC,aAAa,YAAQ,oCAAe,aAAa,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC;AAE1F,MAAM,yBAAyB,CAAC,cAAc,OAAQ,CAAC,aAAa,EAAE,QAAI,oCAAe,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC;AAEjH,MAAM,0BAA0B,CAAC,aAAa,CAAC,SAAS;AAAA,EACtD,GAAG;AAAA,EACH,qBAAqB;AACvB;AAEO,MAAM,kBAAkB,CAAC,MAAM,WAAW,KAAK,IAAI,CAAC,QAAQ,wBAAwB,OAAO,GAAG,CAAC,EAAE,GAAG,CAAC;AAErG,MAAM,oBAAoB,CAAC,MAAM,2BACtC,KAAK,IAAI,CAAC,QAAQ,wBAAwB,uBAAuB,GAAG,CAAC,EAAE,GAAG,CAAC;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var selectable_exports = {};
|
30
|
-
__export(selectable_exports, {
|
31
|
-
SelectablePlugin: () => import_SelectablePlugin.SelectablePlugin
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(selectable_exports);
|
34
|
-
var React = __toESM(require("react"));
|
35
|
-
var import_SelectablePlugin = require("./SelectablePlugin.js");
|
36
|
-
//# sourceMappingURL=index.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/selectable/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["export { SelectablePlugin } from './SelectablePlugin.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAiC;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,99 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var selectableFormatter_exports = {};
|
30
|
-
__export(selectableFormatter_exports, {
|
31
|
-
default: () => selectableFormatter_default,
|
32
|
-
selectableFormatter: () => selectableFormatter
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(selectableFormatter_exports);
|
35
|
-
var React = __toESM(require("react"));
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
37
|
-
var import_react = __toESM(require("react"));
|
38
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
39
|
-
var import_ds_form = require("@elliemae/ds-form");
|
40
|
-
const SelectableWrapper = ({ className, children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className, onClick: (e) => e.stopPropagation(), children });
|
41
|
-
const SelectableComponent = import_react.default.memo(
|
42
|
-
(0, import_react.forwardRef)(
|
43
|
-
({ className, isMultiSelect, isHeader, onSelect, isSelected, value }, ref) => {
|
44
|
-
const SelectComponent = isMultiSelect || isHeader ? import_ds_form.DSCheckbox : import_ds_form.DSRadio;
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectableWrapper, { className, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
46
|
-
SelectComponent,
|
47
|
-
{
|
48
|
-
checked: isSelected,
|
49
|
-
"data-testid": "column-selectable-component",
|
50
|
-
innerRef: ref,
|
51
|
-
onChange: onSelect,
|
52
|
-
tabIndex: -1,
|
53
|
-
value
|
54
|
-
}
|
55
|
-
) });
|
56
|
-
},
|
57
|
-
(prev, next) => next.isScrolling
|
58
|
-
)
|
59
|
-
);
|
60
|
-
const selectableFormatter = ({ isMultiSelect = false, renderer, className, isHeader, onSelect }, grid) => function(valueRender, extraParams) {
|
61
|
-
const { registerFocus } = extraParams;
|
62
|
-
const ref = (0, import_react.useRef)();
|
63
|
-
const {
|
64
|
-
props: { rowKey },
|
65
|
-
state: { selection },
|
66
|
-
shiftPressed,
|
67
|
-
lastSelectedRow
|
68
|
-
} = grid.getInstance();
|
69
|
-
const { rowData, isScrolling } = extraParams;
|
70
|
-
(0, import_react.useEffect)(() => {
|
71
|
-
if (registerFocus)
|
72
|
-
registerFocus(ref.current);
|
73
|
-
}, [ref.current]);
|
74
|
-
const isSelected = isHeader ? selection.selectAll : !!selection.selectedRows[rowData[rowKey]];
|
75
|
-
const handleSelect = isHeader ? () => onSelect(!isSelected) : () => onSelect(rowData[rowKey], extraParams.rowIndex, shiftPressed, lastSelectedRow);
|
76
|
-
if ((0, import_ds_utilities.isFunction)(renderer)) {
|
77
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectableWrapper, { className, children: renderer({
|
78
|
-
rowData: {},
|
79
|
-
...extraParams,
|
80
|
-
value: isSelected,
|
81
|
-
isHeader,
|
82
|
-
onSelect: handleSelect
|
83
|
-
}) });
|
84
|
-
}
|
85
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
86
|
-
SelectableComponent,
|
87
|
-
{
|
88
|
-
ref,
|
89
|
-
className,
|
90
|
-
isMultiSelect,
|
91
|
-
isScrolling,
|
92
|
-
isSelected,
|
93
|
-
onSelect: handleSelect,
|
94
|
-
value: !isHeader ? rowData[rowKey] : "header-select-all"
|
95
|
-
}
|
96
|
-
);
|
97
|
-
};
|
98
|
-
var selectableFormatter_default = selectableFormatter;
|
99
|
-
//# sourceMappingURL=selectableFormatter.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/selectable/selectableFormatter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable react/prop-types */\n/* eslint-disable indent */\n/* eslint-disable jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events,react/display-name */\nimport React, { forwardRef, useEffect, useRef } from 'react';\nimport { isFunction } from '@elliemae/ds-utilities';\nimport { DSCheckbox, DSRadio } from '@elliemae/ds-form';\n\nconst SelectableWrapper = ({ className, children }) => (\n <div className={className} onClick={(e) => e.stopPropagation()}>\n {children}\n </div>\n);\n\nconst SelectableComponent = React.memo(\n forwardRef(\n ({ className, isMultiSelect, isHeader, onSelect, isSelected, value }, ref) => {\n const SelectComponent = isMultiSelect || isHeader ? DSCheckbox : DSRadio;\n\n return (\n <SelectableWrapper className={className}>\n <SelectComponent\n checked={isSelected}\n data-testid=\"column-selectable-component\"\n innerRef={ref}\n onChange={onSelect}\n tabIndex={-1}\n value={value}\n />\n </SelectableWrapper>\n );\n },\n (prev, next) => next.isScrolling,\n ),\n);\n\nconst selectableFormatter = ({ isMultiSelect = false, renderer, className, isHeader, onSelect }, grid) =>\n function (valueRender, extraParams) {\n const { registerFocus } = extraParams;\n const ref = useRef();\n const {\n props: { rowKey },\n state: { selection },\n shiftPressed,\n lastSelectedRow,\n } = grid.getInstance();\n const { rowData, isScrolling } = extraParams;\n\n useEffect(() => {\n if (registerFocus) registerFocus(ref.current);\n }, [ref.current]);\n\n const isSelected = isHeader ? selection.selectAll : !!selection.selectedRows[rowData[rowKey]];\n\n const handleSelect = isHeader\n ? () => onSelect(!isSelected)\n : () => onSelect(rowData[rowKey], extraParams.rowIndex, shiftPressed, lastSelectedRow);\n\n if (isFunction(renderer)) {\n return (\n <SelectableWrapper className={className}>\n {renderer({\n rowData: {},\n ...extraParams,\n value: isSelected,\n isHeader,\n onSelect: handleSelect,\n })}\n </SelectableWrapper>\n );\n }\n\n return (\n <SelectableComponent\n ref={ref}\n className={className}\n isMultiSelect={isMultiSelect}\n isScrolling={isScrolling}\n isSelected={isSelected}\n onSelect={handleSelect}\n value={!isHeader ? rowData[rowKey] : 'header-select-all'}\n />\n );\n };\n\nexport { selectableFormatter };\nexport default selectableFormatter;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQrB;AALF,mBAAqD;AACrD,0BAA2B;AAC3B,qBAAoC;AAEpC,MAAM,oBAAoB,CAAC,EAAE,WAAW,SAAS,MAC/C,4CAAC,SAAI,WAAsB,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAC1D,UACH;AAGF,MAAM,sBAAsB,aAAAA,QAAM;AAAA,MAChC;AAAA,IACE,CAAC,EAAE,WAAW,eAAe,UAAU,UAAU,YAAY,MAAM,GAAG,QAAQ;AAC5E,YAAM,kBAAkB,iBAAiB,WAAW,4BAAa;AAEjE,aACE,4CAAC,qBAAkB,WACjB;AAAA,QAAC;AAAA;AAAA,UACC,SAAS;AAAA,UACT,eAAY;AAAA,UACZ,UAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAU;AAAA,UACV;AAAA;AAAA,MACF,GACF;AAAA,IAEJ;AAAA,IACA,CAAC,MAAM,SAAS,KAAK;AAAA,EACvB;AACF;AAEA,MAAM,sBAAsB,CAAC,EAAE,gBAAgB,OAAO,UAAU,WAAW,UAAU,SAAS,GAAG,SAC/F,SAAU,aAAa,aAAa;AAClC,QAAM,EAAE,cAAc,IAAI;AAC1B,QAAM,UAAM,qBAAO;AACnB,QAAM;AAAA,IACJ,OAAO,EAAE,OAAO;AAAA,IAChB,OAAO,EAAE,UAAU;AAAA,IACnB;AAAA,IACA;AAAA,EACF,IAAI,KAAK,YAAY;AACrB,QAAM,EAAE,SAAS,YAAY,IAAI;AAEjC,8BAAU,MAAM;AACd,QAAI;AAAe,oBAAc,IAAI,OAAO;AAAA,EAC9C,GAAG,CAAC,IAAI,OAAO,CAAC;AAEhB,QAAM,aAAa,WAAW,UAAU,YAAY,CAAC,CAAC,UAAU,aAAa,QAAQ,MAAM,CAAC;AAE5F,QAAM,eAAe,WACjB,MAAM,SAAS,CAAC,UAAU,IAC1B,MAAM,SAAS,QAAQ,MAAM,GAAG,YAAY,UAAU,cAAc,eAAe;AAEvF,UAAI,gCAAW,QAAQ,GAAG;AACxB,WACE,4CAAC,qBAAkB,WAChB,mBAAS;AAAA,MACR,SAAS,CAAC;AAAA,MACV,GAAG;AAAA,MACH,OAAO;AAAA,MACP;AAAA,MACA,UAAU;AAAA,IACZ,CAAC,GACH;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,OAAO,CAAC,WAAW,QAAQ,MAAM,IAAI;AAAA;AAAA,EACvC;AAEJ;AAGF,IAAO,8BAAQ;",
|
6
|
-
"names": ["React"]
|
7
|
-
}
|
@@ -1,128 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var useSelectableState_exports = {};
|
30
|
-
__export(useSelectableState_exports, {
|
31
|
-
useSelectableState: () => useSelectableState
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(useSelectableState_exports);
|
34
|
-
var React = __toESM(require("react"));
|
35
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
36
|
-
var import_ds_utilities2 = require("@elliemae/ds-utilities");
|
37
|
-
var import_helper = require("./helper.js");
|
38
|
-
function deriveSelectedStateFromPropsOnUpdate(rows) {
|
39
|
-
return (nextProp = {}, prevProp = {}) => {
|
40
|
-
if (nextProp.selectAll !== prevProp.selectAll) {
|
41
|
-
const nextSelectedRows = nextProp.selectAll ? (0, import_helper.toggleSelectAll)(rows, true) : (0, import_ds_utilities2.hashArray)(nextProp.selectedRows || []);
|
42
|
-
return {
|
43
|
-
selectedRows: nextSelectedRows,
|
44
|
-
selectAll: (0, import_helper.checkAllRowsSelected)(rows, Object.keys(nextSelectedRows))
|
45
|
-
};
|
46
|
-
}
|
47
|
-
return {
|
48
|
-
selectedRows: (0, import_ds_utilities2.hashArray)(nextProp.selectedRows || []),
|
49
|
-
selectAll: (0, import_helper.checkAllRowsSelected)(rows, Object.keys(nextProp.selectedRows))
|
50
|
-
};
|
51
|
-
};
|
52
|
-
}
|
53
|
-
function useSelectableState(grid) {
|
54
|
-
const {
|
55
|
-
props: { rowKey = "id", selectedRows, selectAll, selectable, onSelectRow, onSelectAll },
|
56
|
-
rows,
|
57
|
-
setLastSelectedRow
|
58
|
-
} = grid.getInstance();
|
59
|
-
const multiple = selectable === "multi";
|
60
|
-
const [selection, setSelectedRowsState] = (0, import_ds_utilities.useDerivedStateFromProps)(
|
61
|
-
{ selectedRows, selectAll },
|
62
|
-
{ onUpdate: deriveSelectedStateFromPropsOnUpdate(rows) }
|
63
|
-
);
|
64
|
-
const handleSelectRow = (id, index, shift = false, lastSelectedRow = null) => {
|
65
|
-
setSelectedRowsState((prevState) => {
|
66
|
-
const { rows: nextRows } = grid.getInstance();
|
67
|
-
const wasSelected = Object.keys(prevState.selectedRows).some(
|
68
|
-
// we need to match softly as the id may be a number
|
69
|
-
// eslint-disable-next-line eqeqeq
|
70
|
-
(elem) => elem == id
|
71
|
-
);
|
72
|
-
let nextSelectedRows = multiple ? (0, import_ds_utilities2.toggleInObject)(prevState.selectedRows, id, true) : (0, import_helper.toggleSingleSelectable)(prevState.selectedRows, id);
|
73
|
-
setLastSelectedRow({ index, mode: wasSelected ? "deselect" : "select" });
|
74
|
-
if (shift && lastSelectedRow) {
|
75
|
-
const prevSmallest = lastSelectedRow.index < index + 1;
|
76
|
-
const sliceStart = prevSmallest ? lastSelectedRow.index : index;
|
77
|
-
const sliceEnd = prevSmallest ? index + 1 : lastSelectedRow.index + 1;
|
78
|
-
const rowSegment = nextRows.slice(sliceStart, sliceEnd).map((row) => row[rowKey]);
|
79
|
-
if (lastSelectedRow.mode === "deselect") {
|
80
|
-
nextSelectedRows = (0, import_ds_utilities2.omit)(prevState.selectedRows, rowSegment);
|
81
|
-
} else {
|
82
|
-
const selectedSegment = rowSegment.reduce((o, key) => ({ ...o, [key]: true }), {});
|
83
|
-
nextSelectedRows = {
|
84
|
-
...prevState.selectedRows,
|
85
|
-
...selectedSegment
|
86
|
-
};
|
87
|
-
}
|
88
|
-
}
|
89
|
-
const nextState = {
|
90
|
-
selectedRows: nextSelectedRows,
|
91
|
-
selectAll: (0, import_helper.checkAllRowsSelected)(nextRows, Object.keys(nextSelectedRows))
|
92
|
-
};
|
93
|
-
if (index !== null && index !== void 0) {
|
94
|
-
onSelectRow(
|
95
|
-
nextRows.filter((row) => nextState.selectedRows[row[rowKey]]),
|
96
|
-
nextState.selectAll,
|
97
|
-
index
|
98
|
-
);
|
99
|
-
}
|
100
|
-
return nextState;
|
101
|
-
});
|
102
|
-
};
|
103
|
-
const handleSelectAll = (checked) => {
|
104
|
-
if (!multiple)
|
105
|
-
return;
|
106
|
-
setLastSelectedRow(null);
|
107
|
-
setSelectedRowsState(() => {
|
108
|
-
const { composedRows: nextRows } = grid.getInstance();
|
109
|
-
const nextState = {
|
110
|
-
selectAll: checked,
|
111
|
-
selectedRows: (0, import_helper.toggleSelectAll)(nextRows, checked)
|
112
|
-
};
|
113
|
-
onSelectAll(nextState.selectAll);
|
114
|
-
onSelectRow(checked ? nextRows : [], nextState.selectAll);
|
115
|
-
return nextState;
|
116
|
-
});
|
117
|
-
};
|
118
|
-
return {
|
119
|
-
actions: {
|
120
|
-
selectRow: handleSelectRow,
|
121
|
-
selectAll: handleSelectAll
|
122
|
-
},
|
123
|
-
state: {
|
124
|
-
selection
|
125
|
-
}
|
126
|
-
};
|
127
|
-
}
|
128
|
-
//# sourceMappingURL=useSelectableState.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/selectable/useSelectableState.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport { useDerivedStateFromProps } from '@elliemae/ds-utilities';\nimport { toggleInObject, hashArray, omit } from '@elliemae/ds-utilities';\nimport { checkAllRowsSelected, toggleSelectAll, toggleSingleSelectable } from './helper.js';\n\nfunction deriveSelectedStateFromPropsOnUpdate(rows) {\n return (nextProp = {}, prevProp = {}) => {\n if (nextProp.selectAll !== prevProp.selectAll) {\n const nextSelectedRows = nextProp.selectAll\n ? toggleSelectAll(rows, true)\n : hashArray(nextProp.selectedRows || []);\n return {\n selectedRows: nextSelectedRows,\n selectAll: checkAllRowsSelected(rows, Object.keys(nextSelectedRows)),\n };\n }\n return {\n selectedRows: hashArray(nextProp.selectedRows || []),\n selectAll: checkAllRowsSelected(rows, Object.keys(nextProp.selectedRows)),\n };\n };\n}\n\nexport function useSelectableState(grid) {\n const {\n props: { rowKey = 'id', selectedRows, selectAll, selectable, onSelectRow, onSelectAll },\n rows,\n setLastSelectedRow,\n } = grid.getInstance();\n\n const multiple = selectable === 'multi';\n const [selection, setSelectedRowsState] = useDerivedStateFromProps(\n { selectedRows, selectAll },\n { onUpdate: deriveSelectedStateFromPropsOnUpdate(rows) },\n );\n\n // ACTIONS\n const handleSelectRow = (\n id,\n index,\n shift = false,\n lastSelectedRow = null,\n // eslint-disable-next-line max-params\n ) => {\n setSelectedRowsState((prevState) => {\n const { rows: nextRows } = grid.getInstance();\n const wasSelected = Object.keys(prevState.selectedRows).some(\n // we need to match softly as the id may be a number\n // eslint-disable-next-line eqeqeq\n (elem) => elem == id,\n );\n let nextSelectedRows = multiple\n ? toggleInObject(prevState.selectedRows, id, true)\n : toggleSingleSelectable(prevState.selectedRows, id);\n setLastSelectedRow({ index, mode: wasSelected ? 'deselect' : 'select' });\n if (shift && lastSelectedRow) {\n const prevSmallest = lastSelectedRow.index < index + 1;\n const sliceStart = prevSmallest ? lastSelectedRow.index : index;\n const sliceEnd = prevSmallest ? index + 1 : lastSelectedRow.index + 1;\n const rowSegment = nextRows.slice(sliceStart, sliceEnd).map((row) => row[rowKey]);\n if (lastSelectedRow.mode === 'deselect') {\n nextSelectedRows = omit(prevState.selectedRows, rowSegment);\n } else {\n const selectedSegment = rowSegment.reduce((o, key) => ({ ...o, [key]: true }), {});\n nextSelectedRows = {\n ...prevState.selectedRows,\n ...selectedSegment,\n };\n }\n }\n\n const nextState = {\n selectedRows: nextSelectedRows,\n selectAll: checkAllRowsSelected(nextRows, Object.keys(nextSelectedRows)),\n };\n if (index !== null && index !== undefined) {\n onSelectRow(\n nextRows.filter((row) => nextState.selectedRows[row[rowKey]]),\n nextState.selectAll,\n index,\n );\n }\n\n return nextState;\n });\n };\n\n const handleSelectAll = (checked) => {\n if (!multiple) return;\n setLastSelectedRow(null);\n setSelectedRowsState(() => {\n const { composedRows: nextRows } = grid.getInstance();\n\n const nextState = {\n selectAll: checked,\n selectedRows: toggleSelectAll(nextRows, checked),\n };\n\n onSelectAll(nextState.selectAll);\n onSelectRow(checked ? nextRows : [], nextState.selectAll);\n\n return nextState;\n });\n };\n\n return {\n actions: {\n selectRow: handleSelectRow,\n selectAll: handleSelectAll,\n },\n state: {\n selection,\n },\n };\n}\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAyC;AACzC,IAAAA,uBAAgD;AAChD,oBAA8E;AAE9E,SAAS,qCAAqC,MAAM;AAClD,SAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,MAAM;AACvC,QAAI,SAAS,cAAc,SAAS,WAAW;AAC7C,YAAM,mBAAmB,SAAS,gBAC9B,+BAAgB,MAAM,IAAI,QAC1B,gCAAU,SAAS,gBAAgB,CAAC,CAAC;AACzC,aAAO;AAAA,QACL,cAAc;AAAA,QACd,eAAW,oCAAqB,MAAM,OAAO,KAAK,gBAAgB,CAAC;AAAA,MACrE;AAAA,IACF;AACA,WAAO;AAAA,MACL,kBAAc,gCAAU,SAAS,gBAAgB,CAAC,CAAC;AAAA,MACnD,eAAW,oCAAqB,MAAM,OAAO,KAAK,SAAS,YAAY,CAAC;AAAA,IAC1E;AAAA,EACF;AACF;AAEO,SAAS,mBAAmB,MAAM;AACvC,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS,MAAM,cAAc,WAAW,YAAY,aAAa,YAAY;AAAA,IACtF;AAAA,IACA;AAAA,EACF,IAAI,KAAK,YAAY;AAErB,QAAM,WAAW,eAAe;AAChC,QAAM,CAAC,WAAW,oBAAoB,QAAI;AAAA,IACxC,EAAE,cAAc,UAAU;AAAA,IAC1B,EAAE,UAAU,qCAAqC,IAAI,EAAE;AAAA,EACzD;AAGA,QAAM,kBAAkB,CACtB,IACA,OACA,QAAQ,OACR,kBAAkB,SAEf;AACH,yBAAqB,CAAC,cAAc;AAClC,YAAM,EAAE,MAAM,SAAS,IAAI,KAAK,YAAY;AAC5C,YAAM,cAAc,OAAO,KAAK,UAAU,YAAY,EAAE;AAAA;AAAA;AAAA,QAGtD,CAAC,SAAS,QAAQ;AAAA,MACpB;AACA,UAAI,mBAAmB,eACnB,qCAAe,UAAU,cAAc,IAAI,IAAI,QAC/C,sCAAuB,UAAU,cAAc,EAAE;AACrD,yBAAmB,EAAE,OAAO,MAAM,cAAc,aAAa,SAAS,CAAC;AACvE,UAAI,SAAS,iBAAiB;AAC5B,cAAM,eAAe,gBAAgB,QAAQ,QAAQ;AACrD,cAAM,aAAa,eAAe,gBAAgB,QAAQ;AAC1D,cAAM,WAAW,eAAe,QAAQ,IAAI,gBAAgB,QAAQ;AACpE,cAAM,aAAa,SAAS,MAAM,YAAY,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC;AAChF,YAAI,gBAAgB,SAAS,YAAY;AACvC,iCAAmB,2BAAK,UAAU,cAAc,UAAU;AAAA,QAC5D,OAAO;AACL,gBAAM,kBAAkB,WAAW,OAAO,CAAC,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,IAAI,CAAC,CAAC;AACjF,6BAAmB;AAAA,YACjB,GAAG,UAAU;AAAA,YACb,GAAG;AAAA,UACL;AAAA,QACF;AAAA,MACF;AAEA,YAAM,YAAY;AAAA,QAChB,cAAc;AAAA,QACd,eAAW,oCAAqB,UAAU,OAAO,KAAK,gBAAgB,CAAC;AAAA,MACzE;AACA,UAAI,UAAU,QAAQ,UAAU,QAAW;AACzC;AAAA,UACE,SAAS,OAAO,CAAC,QAAQ,UAAU,aAAa,IAAI,MAAM,CAAC,CAAC;AAAA,UAC5D,UAAU;AAAA,UACV;AAAA,QACF;AAAA,MACF;AAEA,aAAO;AAAA,IACT,CAAC;AAAA,EACH;AAEA,QAAM,kBAAkB,CAAC,YAAY;AACnC,QAAI,CAAC;AAAU;AACf,uBAAmB,IAAI;AACvB,yBAAqB,MAAM;AACzB,YAAM,EAAE,cAAc,SAAS,IAAI,KAAK,YAAY;AAEpD,YAAM,YAAY;AAAA,QAChB,WAAW;AAAA,QACX,kBAAc,+BAAgB,UAAU,OAAO;AAAA,MACjD;AAEA,kBAAY,UAAU,SAAS;AAC/B,kBAAY,UAAU,WAAW,CAAC,GAAG,UAAU,SAAS;AAExD,aAAO;AAAA,IACT,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL,SAAS;AAAA,MACP,WAAW;AAAA,MACX,WAAW;AAAA,IACb;AAAA,IACA,OAAO;AAAA,MACL;AAAA,IACF;AAAA,EACF;AACF;",
|
6
|
-
"names": ["import_ds_utilities"]
|
7
|
-
}
|
@@ -1,98 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var SortablePlugin_exports = {};
|
30
|
-
__export(SortablePlugin_exports, {
|
31
|
-
SortablePlugin: () => SortablePlugin
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(SortablePlugin_exports);
|
34
|
-
var React = __toESM(require("react"));
|
35
|
-
var sortabular = __toESM(require("sortabular"));
|
36
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
37
|
-
var import_ds_shared = require("@elliemae/ds-shared");
|
38
|
-
var import_sortHeaderFormatter = require("./sortHeaderFormatter.js");
|
39
|
-
var import_useSortableState = require("./useSortableState.js");
|
40
|
-
var import_sorter = require("./sorter.js");
|
41
|
-
const decorateColumn = (column, grid) => {
|
42
|
-
const {
|
43
|
-
props: { isSortableColumnActive = (col) => col.sortable, groupedRows }
|
44
|
-
} = grid;
|
45
|
-
if (groupedRows)
|
46
|
-
return column;
|
47
|
-
if (!isSortableColumnActive(column))
|
48
|
-
return column;
|
49
|
-
const formatter = (0, import_sortHeaderFormatter.sortHeaderFormatter)(
|
50
|
-
sortabular.sort({
|
51
|
-
getSortingColumns: () => grid.getState().sortingColumns || [],
|
52
|
-
onSort: grid.actions.sort,
|
53
|
-
strategy: sortabular.strategies.byProperty
|
54
|
-
}),
|
55
|
-
grid
|
56
|
-
);
|
57
|
-
return (0, import_ds_utilities.compose)((0, import_ds_shared.appendHeaderFormatter)(formatter), (0, import_ds_shared.mergeClassNameToColumnHeader)("with-sortable"))(column);
|
58
|
-
};
|
59
|
-
const composeRows = (rows, grid) => {
|
60
|
-
const {
|
61
|
-
state: { sortingColumns },
|
62
|
-
props: { isDataSorted, groupedRows, groupedBy, sortEmptyLast },
|
63
|
-
rows: rowsData,
|
64
|
-
composedRows,
|
65
|
-
decoratedColumns
|
66
|
-
} = grid.getInstance();
|
67
|
-
const sortingConfig = {
|
68
|
-
columns: decoratedColumns,
|
69
|
-
sortingColumns: !(0, import_ds_utilities.isEmpty)(sortingColumns) && sortingColumns,
|
70
|
-
sort: import_ds_utilities.orderBy,
|
71
|
-
emptyLast: sortEmptyLast
|
72
|
-
};
|
73
|
-
if (groupedRows && !groupedBy) {
|
74
|
-
return !isDataSorted ? (0, import_sorter.sorterGroups)(sortingConfig)(composedRows, rowsData, groupedBy) : rows;
|
75
|
-
}
|
76
|
-
return !isDataSorted ? (0, import_sorter.sorter)(sortingConfig)(rows) : rows;
|
77
|
-
};
|
78
|
-
const SortablePlugin = (0, import_ds_shared.createInstancePlugin)("sortable", {
|
79
|
-
registerStateHook: import_useSortableState.useSortableState,
|
80
|
-
decorateColumn,
|
81
|
-
composeRows,
|
82
|
-
registerHotKeys(grid) {
|
83
|
-
return {
|
84
|
-
key: "ctrl+s",
|
85
|
-
handler: ({ cellIndex }) => {
|
86
|
-
const {
|
87
|
-
actions: { sort },
|
88
|
-
decoratedColumns
|
89
|
-
} = grid.getInstance();
|
90
|
-
const column = decoratedColumns[cellIndex];
|
91
|
-
if (!column)
|
92
|
-
return;
|
93
|
-
sort(column.property);
|
94
|
-
}
|
95
|
-
};
|
96
|
-
}
|
97
|
-
});
|
98
|
-
//# sourceMappingURL=SortablePlugin.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/sortable/SortablePlugin.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import * as sortabular from 'sortabular';\nimport { compose, isEmpty, orderBy } from '@elliemae/ds-utilities';\nimport { createInstancePlugin, appendHeaderFormatter, mergeClassNameToColumnHeader } from '@elliemae/ds-shared';\nimport { sortHeaderFormatter } from './sortHeaderFormatter.js';\nimport { useSortableState } from './useSortableState.js';\nimport { sorter, sorterGroups } from './sorter.js';\n\nconst decorateColumn = (column, grid) => {\n const {\n props: { isSortableColumnActive = (col) => col.sortable, groupedRows },\n } = grid;\n\n if (groupedRows) return column;\n if (!isSortableColumnActive(column)) return column;\n\n const formatter = sortHeaderFormatter(\n sortabular.sort({\n getSortingColumns: () => grid.getState().sortingColumns || [],\n onSort: grid.actions.sort,\n strategy: sortabular.strategies.byProperty,\n }),\n grid,\n );\n\n return compose(appendHeaderFormatter(formatter), mergeClassNameToColumnHeader('with-sortable'))(column);\n};\n\nconst composeRows = (rows, grid) => {\n const {\n state: { sortingColumns },\n props: { isDataSorted, groupedRows, groupedBy, sortEmptyLast },\n rows: rowsData,\n composedRows,\n decoratedColumns,\n } = grid.getInstance();\n\n const sortingConfig = {\n columns: decoratedColumns,\n sortingColumns: !isEmpty(sortingColumns) && sortingColumns,\n sort: orderBy,\n emptyLast: sortEmptyLast,\n };\n\n // TODO: 1572 FIX\n if (groupedRows && !groupedBy) {\n return !isDataSorted ? sorterGroups(sortingConfig)(composedRows, rowsData, groupedBy) : rows;\n }\n\n return !isDataSorted ? sorter(sortingConfig)(rows) : rows;\n};\n\nexport const SortablePlugin = createInstancePlugin('sortable', {\n registerStateHook: useSortableState,\n decorateColumn,\n composeRows,\n registerHotKeys(grid) {\n return {\n key: 'ctrl+s',\n handler: ({ cellIndex }) => {\n const {\n actions: { sort },\n decoratedColumns,\n } = grid.getInstance();\n const column = decoratedColumns[cellIndex];\n if (!column) return;\n sort(column.property);\n },\n };\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,iBAA4B;AAC5B,0BAA0C;AAC1C,uBAA0F;AAC1F,iCAAoC;AACpC,8BAAiC;AACjC,oBAAqC;AAErC,MAAM,iBAAiB,CAAC,QAAQ,SAAS;AACvC,QAAM;AAAA,IACJ,OAAO,EAAE,yBAAyB,CAAC,QAAQ,IAAI,UAAU,YAAY;AAAA,EACvE,IAAI;AAEJ,MAAI;AAAa,WAAO;AACxB,MAAI,CAAC,uBAAuB,MAAM;AAAG,WAAO;AAE5C,QAAM,gBAAY;AAAA,IAChB,WAAW,KAAK;AAAA,MACd,mBAAmB,MAAM,KAAK,SAAS,EAAE,kBAAkB,CAAC;AAAA,MAC5D,QAAQ,KAAK,QAAQ;AAAA,MACrB,UAAU,WAAW,WAAW;AAAA,IAClC,CAAC;AAAA,IACD;AAAA,EACF;AAEA,aAAO,iCAAQ,wCAAsB,SAAS,OAAG,+CAA6B,eAAe,CAAC,EAAE,MAAM;AACxG;AAEA,MAAM,cAAc,CAAC,MAAM,SAAS;AAClC,QAAM;AAAA,IACJ,OAAO,EAAE,eAAe;AAAA,IACxB,OAAO,EAAE,cAAc,aAAa,WAAW,cAAc;AAAA,IAC7D,MAAM;AAAA,IACN;AAAA,IACA;AAAA,EACF,IAAI,KAAK,YAAY;AAErB,QAAM,gBAAgB;AAAA,IACpB,SAAS;AAAA,IACT,gBAAgB,KAAC,6BAAQ,cAAc,KAAK;AAAA,IAC5C,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAGA,MAAI,eAAe,CAAC,WAAW;AAC7B,WAAO,CAAC,mBAAe,4BAAa,aAAa,EAAE,cAAc,UAAU,SAAS,IAAI;AAAA,EAC1F;AAEA,SAAO,CAAC,mBAAe,sBAAO,aAAa,EAAE,IAAI,IAAI;AACvD;AAEO,MAAM,qBAAiB,uCAAqB,YAAY;AAAA,EAC7D,mBAAmB;AAAA,EACnB;AAAA,EACA;AAAA,EACA,gBAAgB,MAAM;AACpB,WAAO;AAAA,MACL,KAAK;AAAA,MACL,SAAS,CAAC,EAAE,UAAU,MAAM;AAC1B,cAAM;AAAA,UACJ,SAAS,EAAE,KAAK;AAAA,UAChB;AAAA,QACF,IAAI,KAAK,YAAY;AACrB,cAAM,SAAS,iBAAiB,SAAS;AACzC,YAAI,CAAC;AAAQ;AACb,aAAK,OAAO,QAAQ;AAAA,MACtB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var checkIfSortable_exports = {};
|
30
|
-
__export(checkIfSortable_exports, {
|
31
|
-
checkIfSortable: () => checkIfSortable,
|
32
|
-
default: () => checkIfSortable_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(checkIfSortable_exports);
|
35
|
-
var React = __toESM(require("react"));
|
36
|
-
const checkIfSortable = (column, rows) => {
|
37
|
-
for (let index = 0; index < rows.length; index++) {
|
38
|
-
const element = rows[index][column];
|
39
|
-
if (!(element === null || element === void 0)) {
|
40
|
-
return true;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
return false;
|
44
|
-
};
|
45
|
-
var checkIfSortable_default = checkIfSortable;
|
46
|
-
//# sourceMappingURL=checkIfSortable.js.map
|