@elliemae/ds-datagrids 2.2.0-next.3 → 2.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DSDataGrid.js +395 -635
- package/cjs/DSDataGrid.js.map +7 -0
- package/cjs/DataGridImpl.js +103 -128
- package/cjs/DataGridImpl.js.map +7 -0
- package/cjs/PaginatedDataGrid.js +68 -68
- package/cjs/PaginatedDataGrid.js.map +7 -0
- package/cjs/blockNames.js +39 -11
- package/cjs/blockNames.js.map +7 -0
- package/cjs/columns/IconColumn.js +78 -62
- package/cjs/columns/IconColumn.js.map +7 -0
- package/cjs/columns/NumberColumn.js +35 -5
- package/cjs/columns/NumberColumn.js.map +7 -0
- package/cjs/components/BodyCell.js +83 -80
- package/cjs/components/BodyCell.js.map +7 -0
- package/cjs/components/BodyList.js +52 -52
- package/cjs/components/BodyList.js.map +7 -0
- package/cjs/components/ColumnVisibilityMenuOption.js +53 -31
- package/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/cjs/components/ColumnsOptionsMenuSection.js +59 -44
- package/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/cjs/components/EmptyState.js +81 -50
- package/cjs/components/EmptyState.js.map +7 -0
- package/cjs/components/HeaderCell.js +64 -58
- package/cjs/components/HeaderCell.js.map +7 -0
- package/cjs/components/List.js +41 -29
- package/cjs/components/List.js.map +7 -0
- package/cjs/components/ListItem.js +43 -36
- package/cjs/components/ListItem.js.map +7 -0
- package/cjs/components/NoResults.js +55 -51
- package/cjs/components/NoResults.js.map +7 -0
- package/cjs/components/RowsLoader.js +42 -22
- package/cjs/components/RowsLoader.js.map +7 -0
- package/cjs/components/Table.js +78 -87
- package/cjs/components/Table.js.map +7 -0
- package/cjs/components/TableBody.js +61 -60
- package/cjs/components/TableBody.js.map +7 -0
- package/cjs/components/TableHeader.js +47 -30
- package/cjs/components/TableHeader.js.map +7 -0
- package/cjs/components/footer/addOptionalFooterComponents.js +53 -43
- package/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/cjs/components/header/PrimaryControls.js +49 -35
- package/cjs/components/header/PrimaryControls.js.map +7 -0
- package/cjs/components/header/addOptionalHeaderComponents.js +54 -43
- package/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/cjs/components/index.js +43 -17
- package/cjs/components/index.js.map +7 -0
- package/cjs/components/renderers/defaultClassedRenderers.js +64 -57
- package/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/cjs/components/renderers/index.js +44 -17
- package/cjs/components/renderers/index.js.map +7 -0
- package/cjs/components/renderers/renderRowsLoader.js +39 -18
- package/cjs/components/renderers/renderRowsLoader.js.map +7 -0
- package/cjs/components/tableContext.js +36 -13
- package/cjs/components/tableContext.js.map +7 -0
- package/cjs/defaultPlugins.js +44 -12
- package/cjs/defaultPlugins.js.map +7 -0
- package/cjs/index.js +72 -67
- package/cjs/index.js.map +7 -0
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -114
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/cjs/plugins/body-header-scroll-sync/index.js +35 -9
- package/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +107 -86
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +43 -27
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/cjs/plugins/column-dnd/index.js +35 -9
- package/cjs/plugins/column-dnd/index.js.map +7 -0
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +59 -55
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +48 -53
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +40 -13
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +55 -54
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -9
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/cjs/plugins/column-sizing/index.js +35 -9
- package/cjs/plugins/column-sizing/index.js.map +7 -0
- package/cjs/plugins/column-sizing/useColumnSizeService.js +72 -86
- package/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +96 -199
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/cjs/plugins/column-sizing/utils.js +52 -29
- package/cjs/plugins/column-sizing/utils.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +38 -16
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +61 -56
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +58 -60
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/cjs/plugins/custom-cell-renderer/index.js +35 -9
- package/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +50 -53
- package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/TextBox.js +56 -76
- package/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/cjs/plugins/editable/EditableComponents/index.js +37 -11
- package/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
- package/cjs/plugins/editable/EditablePlugin.js +60 -75
- package/cjs/plugins/editable/EditablePlugin.js.map +7 -0
- package/cjs/plugins/editable/decorateEditable.js +61 -98
- package/cjs/plugins/editable/decorateEditable.js.map +7 -0
- package/cjs/plugins/editable/getEditorComponent.js +70 -76
- package/cjs/plugins/editable/getEditorComponent.js.map +7 -0
- package/cjs/plugins/editable/index.js +38 -13
- package/cjs/plugins/editable/index.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +112 -144
- package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +118 -180
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandedRow.js +117 -139
- package/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +54 -52
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/cjs/plugins/expandable-grid/index.js +37 -11
- package/cjs/plugins/expandable-grid/index.js.map +7 -0
- package/cjs/plugins/expandable-grid/useExpandGridState.js +45 -31
- package/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/cjs/plugins/export-data/ExportDataPlugin.js +82 -116
- package/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/cjs/plugins/export-data/index.js +35 -12
- package/cjs/plugins/export-data/index.js.map +7 -0
- package/cjs/plugins/filterable/FilterablePlugin.js +54 -55
- package/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/cjs/plugins/filterable/addFilterToColumn.js +40 -28
- package/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/cjs/plugins/filterable/components/FilterableHeader.js +119 -107
- package/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +116 -116
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +97 -73
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +138 -132
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +115 -119
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -7
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +46 -15
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/cjs/plugins/filterable/filterableFormatter.js +61 -51
- package/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +60 -55
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +43 -22
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/cjs/plugins/filterable/helper.js +68 -79
- package/cjs/plugins/filterable/helper.js.map +7 -0
- package/cjs/plugins/filterable/index.js +35 -9
- package/cjs/plugins/filterable/index.js.map +7 -0
- package/cjs/plugins/filterable/useFilterableState.js +62 -66
- package/cjs/plugins/filterable/useFilterableState.js.map +7 -0
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +40 -23
- package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +86 -109
- package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/cjs/plugins/grouping-grid/walkStrategy.js +46 -26
- package/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/cjs/plugins/index.js +68 -48
- package/cjs/plugins/index.js.map +7 -0
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +64 -88
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/cjs/plugins/infinite-scrolling/index.js +35 -9
- package/cjs/plugins/infinite-scrolling/index.js.map +7 -0
- package/cjs/plugins/pagination/PaginationPlugin.js +73 -90
- package/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/cjs/plugins/pagination/components/Pagination.js +54 -35
- package/cjs/plugins/pagination/components/Pagination.js.map +7 -0
- package/cjs/plugins/pagination/components/Paginator.js +59 -44
- package/cjs/plugins/pagination/components/Paginator.js.map +7 -0
- package/cjs/plugins/pagination/components/PerPageDropdown.js +51 -63
- package/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/cjs/plugins/pagination/helper.js +45 -24
- package/cjs/plugins/pagination/helper.js.map +7 -0
- package/cjs/plugins/pagination/index.js +35 -9
- package/cjs/plugins/pagination/index.js.map +7 -0
- package/cjs/plugins/pagination/usePaginationState.js +46 -38
- package/cjs/plugins/pagination/usePaginationState.js.map +7 -0
- package/cjs/plugins/resizable/ResizablePlugin.js +51 -55
- package/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/cjs/plugins/resizable/decorateResizable.js +49 -53
- package/cjs/plugins/resizable/decorateResizable.js.map +7 -0
- package/cjs/plugins/resizable/index.js +35 -9
- package/cjs/plugins/resizable/index.js.map +7 -0
- package/cjs/plugins/resizable/useResizeHandle.js +56 -50
- package/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
- package/cjs/plugins/resizable/utils.js +49 -28
- package/cjs/plugins/resizable/utils.js.map +7 -0
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +103 -82
- package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/cjs/plugins/row-dnd/index.js +35 -9
- package/cjs/plugins/row-dnd/index.js.map +7 -0
- package/cjs/plugins/selectable/SelectablePlugin.js +101 -134
- package/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/cjs/plugins/selectable/addSelectableColumn.js +67 -68
- package/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/cjs/plugins/selectable/helper.js +50 -39
- package/cjs/plugins/selectable/helper.js.map +7 -0
- package/cjs/plugins/selectable/index.js +35 -9
- package/cjs/plugins/selectable/index.js.map +7 -0
- package/cjs/plugins/selectable/selectableFormatter.js +83 -105
- package/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
- package/cjs/plugins/selectable/useSelectableState.js +67 -94
- package/cjs/plugins/selectable/useSelectableState.js.map +7 -0
- package/cjs/plugins/sortable/SortablePlugin.js +62 -76
- package/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
- package/cjs/plugins/sortable/checkIfSortable.js +37 -14
- package/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
- package/cjs/plugins/sortable/index.js +35 -9
- package/cjs/plugins/sortable/index.js.map +7 -0
- package/cjs/plugins/sortable/sortHeaderFormatter.js +56 -50
- package/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/cjs/plugins/sortable/sortTree.js +40 -47
- package/cjs/plugins/sortable/sortTree.js.map +7 -0
- package/cjs/plugins/sortable/sorter.js +140 -172
- package/cjs/plugins/sortable/sorter.js.map +7 -0
- package/cjs/plugins/sortable/useSortableState.js +53 -79
- package/cjs/plugins/sortable/useSortableState.js.map +7 -0
- package/cjs/plugins/toolbar/RowRenderer.js +75 -76
- package/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
- package/cjs/plugins/toolbar/ToolbarPlugin.js +49 -33
- package/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/cjs/plugins/toolbar/ToolbarTrigger.js +89 -70
- package/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/cjs/plugins/toolbar/index.js +35 -9
- package/cjs/plugins/toolbar/index.js.map +7 -0
- package/cjs/plugins/virtualization/AutoHeightList.js +64 -52
- package/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +86 -97
- package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizedBody.js +139 -155
- package/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +39 -17
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/cjs/plugins/virtualization/helper.js +35 -7
- package/cjs/plugins/virtualization/helper.js.map +7 -0
- package/cjs/plugins/virtualization/index.js +35 -9
- package/cjs/plugins/virtualization/index.js.map +7 -0
- package/cjs/renders/CellWithAddons.js +98 -50
- package/cjs/renders/CellWithAddons.js.map +7 -0
- package/cjs/renders/index.js +37 -11
- package/cjs/renders/index.js.map +7 -0
- package/cjs/renders/styled.js +78 -27
- package/cjs/renders/styled.js.map +7 -0
- package/cjs/rowSizes.js +44 -12
- package/cjs/rowSizes.js.map +7 -0
- package/cjs/utilities/DataGridUtilities.json +1315 -0
- package/cjs/utilities/getPluginsFromProps.js +67 -39
- package/cjs/utilities/getPluginsFromProps.js.map +7 -0
- package/cjs/utilities/getScrollbarSize.js +44 -25
- package/cjs/utilities/getScrollbarSize.js.map +7 -0
- package/cjs/utilities/normalizeData.js +44 -34
- package/cjs/utilities/normalizeData.js.map +7 -0
- package/esm/DSDataGrid.js +337 -597
- package/esm/DSDataGrid.js.map +7 -0
- package/esm/DataGridImpl.js +68 -113
- package/esm/DataGridImpl.js.map +7 -0
- package/esm/PaginatedDataGrid.js +39 -59
- package/esm/PaginatedDataGrid.js.map +7 -0
- package/esm/blockNames.js +10 -5
- package/esm/blockNames.js.map +7 -0
- package/esm/columns/IconColumn.js +49 -54
- package/esm/columns/IconColumn.js.map +7 -0
- package/esm/columns/NumberColumn.js +6 -3
- package/esm/columns/NumberColumn.js.map +7 -0
- package/esm/components/BodyCell.js +51 -68
- package/esm/components/BodyCell.js.map +7 -0
- package/esm/components/BodyList.js +23 -43
- package/esm/components/BodyList.js.map +7 -0
- package/esm/components/ColumnVisibilityMenuOption.js +24 -27
- package/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/esm/components/ColumnsOptionsMenuSection.js +30 -38
- package/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/esm/components/EmptyState.js +52 -40
- package/esm/components/EmptyState.js.map +7 -0
- package/esm/components/HeaderCell.js +33 -48
- package/esm/components/HeaderCell.js.map +7 -0
- package/esm/components/List.js +12 -23
- package/esm/components/List.js.map +7 -0
- package/esm/components/ListItem.js +14 -30
- package/esm/components/ListItem.js.map +7 -0
- package/esm/components/NoResults.js +26 -43
- package/esm/components/NoResults.js.map +7 -0
- package/esm/components/RowsLoader.js +13 -15
- package/esm/components/RowsLoader.js.map +7 -0
- package/esm/components/Table.js +45 -76
- package/esm/components/Table.js.map +7 -0
- package/esm/components/TableBody.js +32 -52
- package/esm/components/TableBody.js.map +7 -0
- package/esm/components/TableHeader.js +17 -23
- package/esm/components/TableHeader.js.map +7 -0
- package/esm/components/footer/addOptionalFooterComponents.js +24 -37
- package/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/esm/components/header/PrimaryControls.js +20 -29
- package/esm/components/header/PrimaryControls.js.map +7 -0
- package/esm/components/header/addOptionalHeaderComponents.js +25 -36
- package/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/esm/components/index.js +14 -5
- package/esm/components/index.js.map +7 -0
- package/esm/components/renderers/defaultClassedRenderers.js +41 -46
- package/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/esm/components/renderers/index.js +16 -5
- package/esm/components/renderers/index.js.map +7 -0
- package/esm/components/renderers/renderRowsLoader.js +10 -10
- package/esm/components/renderers/renderRowsLoader.js.map +7 -0
- package/esm/components/tableContext.js +7 -5
- package/esm/components/tableContext.js.map +7 -0
- package/esm/defaultPlugins.js +15 -8
- package/esm/defaultPlugins.js.map +7 -0
- package/esm/index.js +63 -27
- package/esm/index.js.map +7 -0
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +71 -101
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/esm/plugins/body-header-scroll-sync/index.js +6 -1
- package/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +69 -68
- package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +16 -18
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/esm/plugins/column-dnd/index.js +6 -1
- package/esm/plugins/column-dnd/index.js.map +7 -0
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +20 -37
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +16 -42
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +9 -7
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +23 -43
- package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -7
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/esm/plugins/column-sizing/index.js +6 -1
- package/esm/plugins/column-sizing/index.js.map +7 -0
- package/esm/plugins/column-sizing/useColumnSizeService.js +34 -71
- package/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +64 -171
- package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/esm/plugins/column-sizing/utils.js +23 -21
- package/esm/plugins/column-sizing/utils.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +8 -7
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +28 -43
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +22 -44
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/esm/plugins/custom-cell-renderer/index.js +6 -1
- package/esm/plugins/custom-cell-renderer/index.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/ComboBox.js +20 -46
- package/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/TextBox.js +26 -68
- package/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/esm/plugins/editable/EditableComponents/index.js +8 -2
- package/esm/plugins/editable/EditableComponents/index.js.map +7 -0
- package/esm/plugins/editable/EditablePlugin.js +27 -63
- package/esm/plugins/editable/EditablePlugin.js.map +7 -0
- package/esm/plugins/editable/decorateEditable.js +32 -68
- package/esm/plugins/editable/decorateEditable.js.map +7 -0
- package/esm/plugins/editable/getEditorComponent.js +39 -66
- package/esm/plugins/editable/getEditorComponent.js.map +7 -0
- package/esm/plugins/editable/index.js +9 -3
- package/esm/plugins/editable/index.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandableColumn.js +82 -133
- package/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +81 -160
- package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandedRow.js +86 -124
- package/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +25 -44
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/esm/plugins/expandable-grid/index.js +8 -2
- package/esm/plugins/expandable-grid/index.js.map +7 -0
- package/esm/plugins/expandable-grid/useExpandGridState.js +14 -25
- package/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/esm/plugins/export-data/ExportDataPlugin.js +52 -103
- package/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/esm/plugins/export-data/index.js +6 -1
- package/esm/plugins/export-data/index.js.map +7 -0
- package/esm/plugins/filterable/FilterablePlugin.js +22 -44
- package/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/esm/plugins/filterable/addFilterToColumn.js +11 -20
- package/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/esm/plugins/filterable/components/FilterableHeader.js +85 -95
- package/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +83 -103
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +68 -63
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +108 -116
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +84 -106
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -3
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +16 -12
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/esm/plugins/filterable/filterableFormatter.js +32 -45
- package/esm/plugins/filterable/filterableFormatter.js.map +7 -0
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -44
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +11 -13
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/esm/plugins/filterable/helper.js +42 -62
- package/esm/plugins/filterable/helper.js.map +7 -0
- package/esm/plugins/filterable/index.js +6 -1
- package/esm/plugins/filterable/index.js.map +7 -0
- package/esm/plugins/filterable/useFilterableState.js +33 -54
- package/esm/plugins/filterable/useFilterableState.js.map +7 -0
- package/esm/plugins/grouping-by/GroupingByPlugin.js +10 -14
- package/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/esm/plugins/grouping-grid/GroupingPlugin.js +53 -94
- package/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/esm/plugins/grouping-grid/walkStrategy.js +17 -22
- package/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/esm/plugins/index.js +39 -19
- package/esm/plugins/index.js.map +7 -0
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +31 -74
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/esm/plugins/infinite-scrolling/index.js +6 -1
- package/esm/plugins/infinite-scrolling/index.js.map +7 -0
- package/esm/plugins/pagination/PaginationPlugin.js +42 -75
- package/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/esm/plugins/pagination/components/Pagination.js +25 -27
- package/esm/plugins/pagination/components/Pagination.js.map +7 -0
- package/esm/plugins/pagination/components/Paginator.js +29 -35
- package/esm/plugins/pagination/components/Paginator.js.map +7 -0
- package/esm/plugins/pagination/components/PerPageDropdown.js +22 -54
- package/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/esm/plugins/pagination/helper.js +16 -19
- package/esm/plugins/pagination/helper.js.map +7 -0
- package/esm/plugins/pagination/index.js +6 -1
- package/esm/plugins/pagination/index.js.map +7 -0
- package/esm/plugins/pagination/usePaginationState.js +15 -28
- package/esm/plugins/pagination/usePaginationState.js.map +7 -0
- package/esm/plugins/resizable/ResizablePlugin.js +20 -45
- package/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/esm/plugins/resizable/decorateResizable.js +19 -41
- package/esm/plugins/resizable/decorateResizable.js.map +7 -0
- package/esm/plugins/resizable/index.js +6 -1
- package/esm/plugins/resizable/index.js.map +7 -0
- package/esm/plugins/resizable/useResizeHandle.js +24 -39
- package/esm/plugins/resizable/useResizeHandle.js.map +7 -0
- package/esm/plugins/resizable/utils.js +20 -18
- package/esm/plugins/resizable/utils.js.map +7 -0
- package/esm/plugins/row-dnd/DndRowsPlugin.js +73 -71
- package/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/esm/plugins/row-dnd/index.js +6 -1
- package/esm/plugins/row-dnd/index.js.map +7 -0
- package/esm/plugins/selectable/SelectablePlugin.js +64 -117
- package/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/esm/plugins/selectable/addSelectableColumn.js +39 -57
- package/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/esm/plugins/selectable/helper.js +19 -25
- package/esm/plugins/selectable/helper.js.map +7 -0
- package/esm/plugins/selectable/index.js +6 -1
- package/esm/plugins/selectable/index.js.map +7 -0
- package/esm/plugins/selectable/selectableFormatter.js +54 -97
- package/esm/plugins/selectable/selectableFormatter.js.map +7 -0
- package/esm/plugins/selectable/useSelectableState.js +34 -78
- package/esm/plugins/selectable/useSelectableState.js.map +7 -0
- package/esm/plugins/sortable/SortablePlugin.js +30 -43
- package/esm/plugins/sortable/SortablePlugin.js.map +7 -0
- package/esm/plugins/sortable/checkIfSortable.js +8 -9
- package/esm/plugins/sortable/checkIfSortable.js.map +7 -0
- package/esm/plugins/sortable/index.js +6 -1
- package/esm/plugins/sortable/index.js.map +7 -0
- package/esm/plugins/sortable/sortHeaderFormatter.js +27 -43
- package/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/esm/plugins/sortable/sortTree.js +13 -24
- package/esm/plugins/sortable/sortTree.js.map +7 -0
- package/esm/plugins/sortable/sorter.js +112 -163
- package/esm/plugins/sortable/sorter.js.map +7 -0
- package/esm/plugins/sortable/useSortableState.js +22 -49
- package/esm/plugins/sortable/useSortableState.js.map +7 -0
- package/esm/plugins/toolbar/RowRenderer.js +40 -61
- package/esm/plugins/toolbar/RowRenderer.js.map +7 -0
- package/esm/plugins/toolbar/ToolbarPlugin.js +19 -23
- package/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/esm/plugins/toolbar/ToolbarTrigger.js +59 -57
- package/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/esm/plugins/toolbar/index.js +6 -1
- package/esm/plugins/toolbar/index.js.map +7 -0
- package/esm/plugins/virtualization/AutoHeightList.js +30 -40
- package/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizationPlugin.js +55 -84
- package/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizedBody.js +94 -132
- package/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +10 -15
- package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/esm/plugins/virtualization/helper.js +6 -3
- package/esm/plugins/virtualization/helper.js.map +7 -0
- package/esm/plugins/virtualization/index.js +6 -1
- package/esm/plugins/virtualization/index.js.map +7 -0
- package/esm/renders/CellWithAddons.js +69 -40
- package/esm/renders/CellWithAddons.js.map +7 -0
- package/esm/renders/index.js +8 -2
- package/esm/renders/index.js.map +7 -0
- package/esm/renders/styled.js +49 -16
- package/esm/renders/styled.js.map +7 -0
- package/esm/rowSizes.js +15 -6
- package/esm/rowSizes.js.map +7 -0
- package/esm/utilities/DataGridUtilities.json +1315 -0
- package/esm/utilities/getPluginsFromProps.js +25 -24
- package/esm/utilities/getPluginsFromProps.js.map +7 -0
- package/esm/utilities/getScrollbarSize.js +15 -21
- package/esm/utilities/getScrollbarSize.js.map +7 -0
- package/esm/utilities/normalizeData.js +15 -24
- package/esm/utilities/normalizeData.js.map +7 -0
- package/package.json +20 -20
- package/types/DSDataGrid.d.ts +2 -116
- package/types/DataGridImpl.d.ts +3 -2
- package/types/PaginatedDataGrid.d.ts +1 -2
- package/types/columns/IconColumn.d.ts +3 -2
- package/types/components/BodyCell.d.ts +13 -12
- package/types/components/ColumnVisibilityMenuOption.d.ts +2 -2
- package/types/components/ColumnsOptionsMenuSection.d.ts +1 -0
- package/types/components/HeaderCell.d.ts +10 -10
- package/types/components/NoResults.d.ts +2 -2
- package/types/components/RowsLoader.d.ts +2 -2
- package/types/components/Table.d.ts +6 -11
- package/types/components/TableBody.d.ts +3 -8
- package/types/components/TableHeader.d.ts +2 -1
- package/types/components/footer/addOptionalFooterComponents.d.ts +1 -0
- package/types/components/header/PrimaryControls.d.ts +1 -0
- package/types/components/header/addOptionalHeaderComponents.d.ts +1 -1
- package/types/components/renderers/index.d.ts +1 -1
- package/types/components/renderers/renderRowsLoader.d.ts +1 -1
- package/types/index.d.ts +7 -8
- package/types/plugins/body-header-scroll-sync/index.d.ts +1 -1
- package/types/plugins/column-dnd/index.d.ts +1 -1
- package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -1
- package/types/plugins/column-sizing/index.d.ts +1 -1
- package/types/plugins/column-sizing/useColumnSizeService.d.ts +2 -1
- package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +1 -0
- package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +1 -0
- package/types/plugins/custom-cell-renderer/index.d.ts +1 -1
- package/types/plugins/editable/EditableComponents/ComboBox.d.ts +3 -1
- package/types/plugins/editable/EditableComponents/TextBox.d.ts +3 -1
- package/types/plugins/editable/getEditorComponent.d.ts +1 -0
- package/types/plugins/editable/index.d.ts +2 -2
- package/types/plugins/expandable-grid/ExpandableColumn.d.ts +3 -2
- package/types/plugins/expandable-grid/ExpandedRow.d.ts +1 -0
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -0
- package/types/plugins/expandable-grid/index.d.ts +2 -2
- package/types/plugins/export-data/index.d.ts +1 -1
- package/types/plugins/filterable/components/FilterableHeader.d.ts +15 -15
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +2 -1
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -1
- package/types/plugins/filterable/filterableFormatter.d.ts +3 -2
- package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -1
- package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -2
- package/types/plugins/filterable/index.d.ts +1 -1
- package/types/plugins/index.d.ts +16 -16
- package/types/plugins/infinite-scrolling/index.d.ts +1 -1
- package/types/plugins/pagination/components/Paginator.d.ts +1 -0
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -0
- package/types/plugins/pagination/helper.d.ts +3 -2
- package/types/plugins/pagination/index.d.ts +1 -1
- package/types/plugins/resizable/index.d.ts +1 -1
- package/types/plugins/row-dnd/index.d.ts +1 -1
- package/types/plugins/selectable/index.d.ts +1 -1
- package/types/plugins/selectable/selectableFormatter.d.ts +1 -0
- package/types/plugins/sortable/index.d.ts +1 -1
- package/types/plugins/sortable/sortHeaderFormatter.d.ts +1 -0
- package/types/plugins/sortable/sortTree.d.ts +1 -0
- package/types/plugins/sortable/sorter.d.ts +1 -1
- package/types/plugins/toolbar/index.d.ts +1 -1
- package/types/plugins/virtualization/AutoHeightList.d.ts +1 -1
- package/types/plugins/virtualization/VirtualizedBody.d.ts +1 -0
- package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +2 -2
- package/types/plugins/virtualization/index.d.ts +1 -1
- package/types/utilities/getPluginsFromProps.d.ts +2 -1
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { GroupingPlugin } from '../plugins/grouping-grid/GroupingPlugin.js';
|
|
16
|
-
import { GroupingByPlugin } from '../plugins/grouping-by/GroupingByPlugin.js';
|
|
17
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DndRowsPlugin } from "../plugins/row-dnd/DndRowsPlugin";
|
|
3
|
+
import { DndColumnsPlugin } from "../plugins/column-dnd/DndColumnsPlugin";
|
|
4
|
+
import { InfiniteScrollPlugin } from "../plugins/infinite-scrolling/InfiniteScrollPlugin";
|
|
5
|
+
import { EditablePlugin } from "../plugins/editable/EditablePlugin";
|
|
6
|
+
import { SortablePlugin } from "../plugins/sortable/SortablePlugin";
|
|
7
|
+
import { SelectablePlugin } from "../plugins/selectable/SelectablePlugin";
|
|
8
|
+
import { FilterablePlugin } from "../plugins/filterable/FilterablePlugin";
|
|
9
|
+
import { ToolbarPlugin } from "../plugins/toolbar/ToolbarPlugin";
|
|
10
|
+
import { PaginationPlugin } from "../plugins/pagination/PaginationPlugin";
|
|
11
|
+
import { VirtualizationPlugin } from "../plugins/virtualization/VirtualizationPlugin";
|
|
12
|
+
import { ExpandablePlugin } from "../plugins/expandable-grid/ExpandablePlugin";
|
|
13
|
+
import { GroupingPlugin } from "../plugins/grouping-grid/GroupingPlugin";
|
|
14
|
+
import { GroupingByPlugin } from "../plugins/grouping-by/GroupingByPlugin";
|
|
18
15
|
const mapPropToPlugin = {
|
|
19
16
|
dragAndDropColumns: DndColumnsPlugin,
|
|
20
17
|
editable: EditablePlugin,
|
|
@@ -30,13 +27,17 @@ const mapPropToPlugin = {
|
|
|
30
27
|
groupedRows: GroupingPlugin,
|
|
31
28
|
dragAndDropRows: DndRowsPlugin
|
|
32
29
|
};
|
|
33
|
-
|
|
34
|
-
let omit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
30
|
+
const getPluginsFromProps = (props, omit = {}) => {
|
|
35
31
|
const plugins = [];
|
|
36
|
-
Object.keys(mapPropToPlugin).forEach(key => {
|
|
37
|
-
if (props[key] && !omit[key])
|
|
32
|
+
Object.keys(mapPropToPlugin).forEach((key) => {
|
|
33
|
+
if (props[key] && !omit[key])
|
|
34
|
+
plugins.push(mapPropToPlugin[key]);
|
|
38
35
|
});
|
|
39
36
|
return plugins;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export {
|
|
37
|
+
};
|
|
38
|
+
var getPluginsFromProps_default = getPluginsFromProps;
|
|
39
|
+
export {
|
|
40
|
+
getPluginsFromProps_default as default,
|
|
41
|
+
getPluginsFromProps
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=getPluginsFromProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utilities/getPluginsFromProps.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DndRowsPlugin } from '../plugins/row-dnd/DndRowsPlugin';\nimport { DndColumnsPlugin } from '../plugins/column-dnd/DndColumnsPlugin';\nimport { InfiniteScrollPlugin } from '../plugins/infinite-scrolling/InfiniteScrollPlugin';\nimport { EditablePlugin } from '../plugins/editable/EditablePlugin';\nimport { SortablePlugin } from '../plugins/sortable/SortablePlugin';\nimport { SelectablePlugin } from '../plugins/selectable/SelectablePlugin';\nimport { FilterablePlugin } from '../plugins/filterable/FilterablePlugin';\nimport { ToolbarPlugin } from '../plugins/toolbar/ToolbarPlugin';\nimport { PaginationPlugin } from '../plugins/pagination/PaginationPlugin';\nimport { VirtualizationPlugin } from '../plugins/virtualization/VirtualizationPlugin';\nimport { ExpandablePlugin } from '../plugins/expandable-grid/ExpandablePlugin';\nimport { GroupingPlugin } from '../plugins/grouping-grid/GroupingPlugin';\nimport { GroupingByPlugin } from '../plugins/grouping-by/GroupingByPlugin';\n\nconst mapPropToPlugin = {\n dragAndDropColumns: DndColumnsPlugin,\n editable: EditablePlugin,\n selectable: SelectablePlugin,\n sortable: SortablePlugin,\n searchFilters: FilterablePlugin,\n renderToolbar: ToolbarPlugin,\n infiniteScrolling: InfiniteScrollPlugin,\n paginated: PaginationPlugin,\n virtualized: VirtualizationPlugin,\n expandable: ExpandablePlugin,\n groupedBy: GroupingByPlugin,\n groupedRows: GroupingPlugin,\n dragAndDropRows: DndRowsPlugin,\n};\n\nexport const getPluginsFromProps = (props, omit = {}) => {\n const plugins = [];\n\n Object.keys(mapPropToPlugin).forEach((key) => {\n if (props[key] && !omit[key]) plugins.push(mapPropToPlugin[key]);\n });\n return plugins;\n};\n\nexport default getPluginsFromProps;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,kBAAkB;AAAA,EACtB,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,eAAe;AAAA,EACf,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,iBAAiB;AAAA;AAGZ,MAAM,sBAAsB,CAAC,OAAO,OAAO,OAAO;AACvD,QAAM,UAAU;AAEhB,SAAO,KAAK,iBAAiB,QAAQ,CAAC,QAAQ;AAC5C,QAAI,MAAM,QAAQ,CAAC,KAAK;AAAM,cAAQ,KAAK,gBAAgB;AAAA;AAE7D,SAAO;AAAA;AAGT,IAAO,8BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
outer.style.
|
|
6
|
-
outer.style.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const inner = document.createElement('div');
|
|
13
|
-
outer.appendChild(inner); // Calculating difference between container's full width and the child width
|
|
14
|
-
|
|
15
|
-
const scrollbarWidth = outer.offsetWidth - inner.offsetWidth; // Removing temporary elements from the DOM
|
|
16
|
-
|
|
17
|
-
outer.parentNode.removeChild(outer); // compensatePixels to check for MacOS's show
|
|
18
|
-
// scrollbar only when moving it
|
|
19
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
function getScrollbarWidth(compensatePixels = 0) {
|
|
3
|
+
const outer = document.createElement("div");
|
|
4
|
+
outer.style.visibility = "hidden";
|
|
5
|
+
outer.style.overflow = "scroll";
|
|
6
|
+
outer.style.msOverflowStyle = "scrollbar";
|
|
7
|
+
document.body.appendChild(outer);
|
|
8
|
+
const inner = document.createElement("div");
|
|
9
|
+
outer.appendChild(inner);
|
|
10
|
+
const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;
|
|
11
|
+
outer.parentNode.removeChild(outer);
|
|
20
12
|
return scrollbarWidth + compensatePixels;
|
|
21
13
|
}
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
export {
|
|
15
|
+
getScrollbarWidth
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=getScrollbarSize.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utilities/getScrollbarSize.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export function getScrollbarWidth(compensatePixels = 0) {\n // Creating invisible container\n const outer = document.createElement('div');\n outer.style.visibility = 'hidden';\n outer.style.overflow = 'scroll'; // forcing scrollbar to appear\n outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps\n document.body.appendChild(outer);\n\n // Creating inner element and placing it in the container\n const inner = document.createElement('div');\n outer.appendChild(inner);\n\n // Calculating difference between container's full width and the child width\n const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;\n\n // Removing temporary elements from the DOM\n outer.parentNode.removeChild(outer);\n\n // compensatePixels to check for MacOS's show\n // scrollbar only when moving it\n return scrollbarWidth + compensatePixels;\n}\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,2BAA2B,mBAAmB,GAAG;AAEtD,QAAM,QAAQ,SAAS,cAAc;AACrC,QAAM,MAAM,aAAa;AACzB,QAAM,MAAM,WAAW;AACvB,QAAM,MAAM,kBAAkB;AAC9B,WAAS,KAAK,YAAY;AAG1B,QAAM,QAAQ,SAAS,cAAc;AACrC,QAAM,YAAY;AAGlB,QAAM,iBAAiB,MAAM,cAAc,MAAM;AAGjD,QAAM,WAAW,YAAY;AAI7B,SAAO,iBAAiB;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
6
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
7
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
|
-
import 'core-js/modules/es.string.replace.js';
|
|
10
|
-
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
|
|
13
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
const normalizeRows = rows => rows.map(row => {
|
|
15
|
-
Object.keys(row).forEach(key => row[normalizeText(key)] = row[key]);
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const normalizeRows = (rows) => rows.map((row) => {
|
|
3
|
+
Object.keys(row).forEach((key) => row[normalizeText(key)] = row[key]);
|
|
16
4
|
return row;
|
|
17
5
|
});
|
|
18
|
-
const normalizeColumns = columns => columns.map(column => {
|
|
19
|
-
const {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return _objectSpread(_objectSpread({}, column), {}, {
|
|
6
|
+
const normalizeColumns = (columns) => columns.map((column) => {
|
|
7
|
+
const { property } = column;
|
|
8
|
+
return {
|
|
9
|
+
...column,
|
|
23
10
|
originalProperty: column.property,
|
|
24
11
|
property: normalizeText(property)
|
|
25
|
-
}
|
|
12
|
+
};
|
|
26
13
|
});
|
|
27
|
-
const normalizeText = text => text.replace(/\s+/g,
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
const normalizeText = (text) => text.replace(/\s+/g, "");
|
|
15
|
+
export {
|
|
16
|
+
normalizeColumns,
|
|
17
|
+
normalizeRows,
|
|
18
|
+
normalizeText
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=normalizeData.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/utilities/normalizeData.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const normalizeRows = rows =>\n rows.map(row => {\n Object.keys(row).forEach(key => (row[normalizeText(key)] = row[key]));\n return row;\n });\n\nexport const normalizeColumns = columns =>\n columns.map(column => {\n const { property } = column;\n return {\n ...column,\n originalProperty: column.property,\n property: normalizeText(property),\n };\n });\n\nexport const normalizeText = text => text.replace(/\\s+/g, '');\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,gBAAgB,UAC3B,KAAK,IAAI,SAAO;AACd,SAAO,KAAK,KAAK,QAAQ,SAAQ,IAAI,cAAc,QAAQ,IAAI;AAC/D,SAAO;AAAA;AAGJ,MAAM,mBAAmB,aAC9B,QAAQ,IAAI,YAAU;AACpB,QAAM,EAAE,aAAa;AACrB,SAAO;AAAA,OACF;AAAA,IACH,kBAAkB,OAAO;AAAA,IACzB,UAAU,cAAc;AAAA;AAAA;AAIvB,MAAM,gBAAgB,UAAQ,KAAK,QAAQ,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-datagrids",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Grids",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -541,25 +541,25 @@
|
|
|
541
541
|
"generateSubmodules": true
|
|
542
542
|
},
|
|
543
543
|
"dependencies": {
|
|
544
|
-
"@elliemae/ds-basic": "2.
|
|
545
|
-
"@elliemae/ds-button": "2.
|
|
546
|
-
"@elliemae/ds-classnames": "2.
|
|
547
|
-
"@elliemae/ds-controlled-form": "2.
|
|
548
|
-
"@elliemae/ds-datagrids": "2.
|
|
549
|
-
"@elliemae/ds-dropdownmenu": "2.
|
|
550
|
-
"@elliemae/ds-filterbar": "2.
|
|
551
|
-
"@elliemae/ds-form": "2.
|
|
552
|
-
"@elliemae/ds-grid": "2.
|
|
553
|
-
"@elliemae/ds-icons": "2.
|
|
554
|
-
"@elliemae/ds-menu": "2.
|
|
555
|
-
"@elliemae/ds-popper": "2.
|
|
556
|
-
"@elliemae/ds-separator": "2.
|
|
557
|
-
"@elliemae/ds-shared": "2.
|
|
558
|
-
"@elliemae/ds-spinner": "2.
|
|
559
|
-
"@elliemae/ds-system": "2.
|
|
560
|
-
"@elliemae/ds-toolbar": "2.
|
|
561
|
-
"@elliemae/ds-truncated-tooltip-text": "2.
|
|
562
|
-
"@elliemae/ds-utilities": "2.
|
|
544
|
+
"@elliemae/ds-basic": "2.3.0-alpha.1",
|
|
545
|
+
"@elliemae/ds-button": "2.3.0-alpha.1",
|
|
546
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.1",
|
|
547
|
+
"@elliemae/ds-controlled-form": "2.3.0-alpha.1",
|
|
548
|
+
"@elliemae/ds-datagrids": "2.3.0-alpha.1",
|
|
549
|
+
"@elliemae/ds-dropdownmenu": "2.3.0-alpha.1",
|
|
550
|
+
"@elliemae/ds-filterbar": "2.3.0-alpha.1",
|
|
551
|
+
"@elliemae/ds-form": "2.3.0-alpha.1",
|
|
552
|
+
"@elliemae/ds-grid": "2.3.0-alpha.1",
|
|
553
|
+
"@elliemae/ds-icons": "2.3.0-alpha.1",
|
|
554
|
+
"@elliemae/ds-menu": "2.3.0-alpha.1",
|
|
555
|
+
"@elliemae/ds-popper": "2.3.0-alpha.1",
|
|
556
|
+
"@elliemae/ds-separator": "2.3.0-alpha.1",
|
|
557
|
+
"@elliemae/ds-shared": "2.3.0-alpha.1",
|
|
558
|
+
"@elliemae/ds-spinner": "2.3.0-alpha.1",
|
|
559
|
+
"@elliemae/ds-system": "2.3.0-alpha.1",
|
|
560
|
+
"@elliemae/ds-toolbar": "2.3.0-alpha.1",
|
|
561
|
+
"@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.1",
|
|
562
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.1",
|
|
563
563
|
"comparejs": "~1.0.3",
|
|
564
564
|
"memoize-one": "~5.1.1",
|
|
565
565
|
"moment": "~2.29.1",
|
package/types/DSDataGrid.d.ts
CHANGED
|
@@ -855,123 +855,9 @@ declare const DSDataGrids: {
|
|
|
855
855
|
};
|
|
856
856
|
};
|
|
857
857
|
declare const DSDataGridsWithSchema: {
|
|
858
|
-
(props?:
|
|
859
|
-
containerProps?: {} | undefined;
|
|
860
|
-
instanceRef: any;
|
|
861
|
-
className?: string | undefined;
|
|
862
|
-
columns?: never[] | undefined;
|
|
863
|
-
rows?: never[] | undefined;
|
|
864
|
-
rowKey?: string | undefined;
|
|
865
|
-
infiniteScrolling?: boolean | undefined;
|
|
866
|
-
editable?: boolean | undefined;
|
|
867
|
-
sortable?: boolean | undefined;
|
|
868
|
-
sortEmptyLast?: boolean | undefined;
|
|
869
|
-
paginated?: boolean | undefined;
|
|
870
|
-
dragAndDropRows?: boolean | undefined;
|
|
871
|
-
selectable?: boolean | undefined;
|
|
872
|
-
resizeableColumns?: boolean | undefined;
|
|
873
|
-
searchFilters?: boolean | undefined;
|
|
874
|
-
dragAndDropColumns?: boolean | undefined;
|
|
875
|
-
useTreeData?: boolean | undefined;
|
|
876
|
-
autoScrollToId: any;
|
|
877
|
-
overscanCount?: number | undefined;
|
|
878
|
-
selectAll?: boolean | undefined;
|
|
879
|
-
selectedRows?: never[] | undefined;
|
|
880
|
-
filters?: undefined;
|
|
881
|
-
onAddFilter?: (() => null) | undefined;
|
|
882
|
-
onRemoveFilter?: (() => null) | undefined;
|
|
883
|
-
onFiltersChange?: (() => null) | undefined;
|
|
884
|
-
showFilterBar?: boolean | undefined;
|
|
885
|
-
multiSelectFilterOptions?: {
|
|
886
|
-
id: string;
|
|
887
|
-
label: string;
|
|
888
|
-
}[] | undefined;
|
|
889
|
-
multiSelectFilterLabels?: undefined;
|
|
890
|
-
multiSelectFilterLabel?: string | undefined;
|
|
891
|
-
aggregations?: {} | undefined;
|
|
892
|
-
groupingColumn?: undefined;
|
|
893
|
-
sortingColumns?: {} | undefined;
|
|
894
|
-
minPerPage?: number | undefined;
|
|
895
|
-
maxPerPage?: number | undefined;
|
|
896
|
-
onPerPageChange?: (() => null) | undefined;
|
|
897
|
-
onPageChange?: (() => null) | undefined;
|
|
898
|
-
paginationStep?: number | undefined;
|
|
899
|
-
pagination?: {
|
|
900
|
-
page: number;
|
|
901
|
-
perPage: number;
|
|
902
|
-
} | undefined;
|
|
903
|
-
showHeader?: boolean | undefined;
|
|
904
|
-
fixedHeader?: boolean | undefined;
|
|
905
|
-
wrapText?: boolean | undefined;
|
|
906
|
-
height?: undefined;
|
|
907
|
-
minColumnWidth?: number | undefined;
|
|
908
|
-
showRowsLoader?: boolean | undefined;
|
|
909
|
-
visibleColumns?: undefined;
|
|
910
|
-
showSelectHighlight?: boolean | undefined;
|
|
911
|
-
showSelectColumn?: boolean | undefined;
|
|
912
|
-
selectColumnSortable?: boolean | undefined;
|
|
913
|
-
selectColumnFilterable?: boolean | undefined;
|
|
914
|
-
selectionColumnDefinition?: {} | undefined;
|
|
915
|
-
filterBarOptions?: undefined;
|
|
916
|
-
renderToolbar?: undefined;
|
|
917
|
-
toolbarDelayClose?: number | undefined;
|
|
918
|
-
renderFilterToolbar?: undefined;
|
|
919
|
-
multiSelectComponent?: undefined;
|
|
920
|
-
noResultsRender: any;
|
|
921
|
-
noResultsPlaceholder: any;
|
|
922
|
-
fluidHeight?: boolean | undefined;
|
|
923
|
-
customHandlers?: {} | undefined;
|
|
924
|
-
groupedBy?: undefined;
|
|
925
|
-
onDefaultFiltersLoad?: (() => null) | undefined;
|
|
926
|
-
onReorder?: (() => null) | undefined;
|
|
927
|
-
onMoveRowEnd?: (() => null) | undefined;
|
|
928
|
-
onMoveRowStart?: (() => null) | undefined;
|
|
929
|
-
onMoveColumnOver?: (() => null) | undefined;
|
|
930
|
-
onMoveColumnStart?: (() => null) | undefined;
|
|
931
|
-
onMoveColumnEnd?: (() => null) | undefined;
|
|
932
|
-
onColumnResize?: (() => null) | undefined;
|
|
933
|
-
onExpandChange?: (() => null) | undefined;
|
|
934
|
-
onToggleExpand?: (() => null) | undefined;
|
|
935
|
-
onExpandRow?: (() => null) | undefined;
|
|
936
|
-
onFilter?: (() => null) | undefined;
|
|
937
|
-
onSort?: (() => null) | undefined;
|
|
938
|
-
onColumnRowEdited?: (() => null) | undefined;
|
|
939
|
-
onColumnRowEdit?: (() => null) | undefined;
|
|
940
|
-
onSelectRow?: (() => null) | undefined;
|
|
941
|
-
onSelectAll?: (() => null) | undefined;
|
|
942
|
-
onInfiniteScrolling?: (() => null) | undefined;
|
|
943
|
-
onFilterMenuClose?: (() => null) | undefined;
|
|
944
|
-
onFilterMenuOpen?: (() => null) | undefined;
|
|
945
|
-
getData?: undefined;
|
|
946
|
-
serverSideData?: boolean | undefined;
|
|
947
|
-
isDataSorted?: boolean | undefined;
|
|
948
|
-
isDataFiltered?: boolean | undefined;
|
|
949
|
-
virtualized?: boolean | undefined;
|
|
950
|
-
numRowsVisible?: undefined;
|
|
951
|
-
isColumnEditable?: ((column: any) => any) | undefined;
|
|
952
|
-
groupedRows?: boolean | undefined;
|
|
953
|
-
groupedRowsRenderHeader?: undefined;
|
|
954
|
-
renderExpandedDetails?: (() => null) | undefined;
|
|
955
|
-
detailColumns: any;
|
|
956
|
-
expandable?: boolean | undefined;
|
|
957
|
-
getChildrenRows?: ((row: any) => any) | undefined;
|
|
958
|
-
expandableSubrowsVisible?: number | undefined;
|
|
959
|
-
renderRowDetails?: (() => null) | undefined;
|
|
960
|
-
getExpandedRowSize?: undefined;
|
|
961
|
-
getExpandedRowMinSize: any;
|
|
962
|
-
rowSize?: string | undefined;
|
|
963
|
-
subRowSize?: string | undefined;
|
|
964
|
-
bindColumnsSizeTo?: undefined;
|
|
965
|
-
bindRowSizeTo?: undefined;
|
|
966
|
-
onToggleShowAllRows: any;
|
|
967
|
-
expandedRows: any;
|
|
968
|
-
autoHeight?: boolean | undefined;
|
|
969
|
-
noColumnsPlaceholder: any;
|
|
970
|
-
plugins?: never[] | undefined;
|
|
971
|
-
normalizeDataKeys?: boolean | undefined;
|
|
972
|
-
} | undefined): JSX.Element;
|
|
858
|
+
(props?: unknown): JSX.Element;
|
|
973
859
|
propTypes: unknown;
|
|
974
860
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
975
861
|
};
|
|
976
|
-
export { DSDataGridsWithSchema };
|
|
862
|
+
export { DSDataGridsWithSchema, DSDataGrids, DSDataGrids as DSDataGrid };
|
|
977
863
|
export default DSDataGrids;
|
package/types/DataGridImpl.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare
|
|
2
|
+
declare const DataGridImpl: ({ className, renderers, columns, rows, containerProps, plugins: pluginsProp, normalizeDataKeys, ...otherProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
className: any;
|
|
5
5
|
renderers: any;
|
|
@@ -8,5 +8,6 @@ declare function DataGridImpl({ className, renderers, columns, rows, containerPr
|
|
|
8
8
|
containerProps: any;
|
|
9
9
|
plugins: any;
|
|
10
10
|
normalizeDataKeys: any;
|
|
11
|
-
})
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export { DataGridImpl };
|
|
12
13
|
export default DataGridImpl;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { renderRowsLoader } from './components/renderers';
|
|
3
2
|
declare function PaginatedDataGrid({ columns, rows, showRowsLoader, noResultsPlaceholder, rowsLoaderRenderer, maxPerPage, minPerPage, onPageSelect, onPerPage, pagination, ...otherProps }: {
|
|
4
3
|
[x: string]: any;
|
|
5
4
|
columns: any;
|
|
6
5
|
rows: any;
|
|
7
6
|
showRowsLoader: any;
|
|
8
7
|
noResultsPlaceholder: any;
|
|
9
|
-
rowsLoaderRenderer?:
|
|
8
|
+
rowsLoaderRenderer?: (() => JSX.Element) | undefined;
|
|
10
9
|
maxPerPage: any;
|
|
11
10
|
minPerPage: any;
|
|
12
11
|
onPageSelect: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export declare const IconColumn: ({ property, label, headerIcon, getRowIcon, isVisited, intent, width, onClick, visible, resizable, sortable, searchable, }: {
|
|
3
3
|
property: any;
|
|
4
4
|
label: any;
|
|
5
5
|
headerIcon: any;
|
|
@@ -12,7 +12,7 @@ export default function createColumn({ property, label, headerIcon, getRowIcon,
|
|
|
12
12
|
resizable: any;
|
|
13
13
|
sortable: any;
|
|
14
14
|
searchable: any;
|
|
15
|
-
})
|
|
15
|
+
}) => {
|
|
16
16
|
property: any;
|
|
17
17
|
label: any;
|
|
18
18
|
headerStyle: {
|
|
@@ -33,3 +33,4 @@ export default function createColumn({ property, label, headerIcon, getRowIcon,
|
|
|
33
33
|
sortable: any;
|
|
34
34
|
searchable: any;
|
|
35
35
|
};
|
|
36
|
+
export default IconColumn;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
declare
|
|
4
|
-
component:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
declare const BodyCell: {
|
|
4
|
+
({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid }: {
|
|
5
|
+
component: any;
|
|
6
|
+
classProps: any;
|
|
7
|
+
rowProps: any;
|
|
8
|
+
column: any;
|
|
9
|
+
columnIndex: any;
|
|
10
|
+
rowIndex: any;
|
|
11
|
+
grid: any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
14
|
component: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
15
15
|
classProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
16
|
wrapText: PropTypes.Requireable<boolean>;
|
|
@@ -29,5 +29,6 @@ declare namespace BodyCell {
|
|
|
29
29
|
rowIndex: PropTypes.Requireable<number>;
|
|
30
30
|
grid: PropTypes.Requireable<any>;
|
|
31
31
|
};
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
|
+
export { BodyCell };
|
|
33
34
|
export default BodyCell;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const getColumnVisibilityMenuOption: ({ columns, onColumnVisibilityChange, searchable, height, }: {
|
|
2
2
|
columns: any;
|
|
3
3
|
onColumnVisibilityChange: any;
|
|
4
4
|
searchable: any;
|
|
5
5
|
height: any;
|
|
6
|
-
})
|
|
6
|
+
}) => {
|
|
7
7
|
type: string;
|
|
8
8
|
id: string;
|
|
9
9
|
multi: boolean;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
declare
|
|
4
|
-
column:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export declare const HeaderCell: {
|
|
4
|
+
({ column, columnIndex, component: Component, classProps, grid }: {
|
|
5
|
+
column: any;
|
|
6
|
+
columnIndex: any;
|
|
7
|
+
component: any;
|
|
8
|
+
classProps: any;
|
|
9
|
+
grid: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
12
|
column: PropTypes.Requireable<any>;
|
|
13
13
|
columnIndex: PropTypes.Requireable<number>;
|
|
14
14
|
component: PropTypes.Requireable<any>;
|
|
15
15
|
classProps: PropTypes.Requireable<any>;
|
|
16
16
|
grid: PropTypes.Requireable<any>;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
export default HeaderCell;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare
|
|
2
|
+
export declare const NoResults: ({ innerRef, rowRenderer, children, ...rest }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
innerRef: any;
|
|
5
5
|
rowRenderer: any;
|
|
6
6
|
children: any;
|
|
7
|
-
})
|
|
7
|
+
}) => JSX.Element;
|
|
8
8
|
export default NoResults;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
rows: any;
|
|
9
|
-
noResultsPlaceholder?: string | undefined;
|
|
10
|
-
isPlaceholderActive?: boolean | undefined;
|
|
11
|
-
}) => JSX.Element>;
|
|
12
|
-
}
|
|
2
|
+
declare const Table: {
|
|
3
|
+
(props: any): JSX.Element;
|
|
4
|
+
Header: (props: any) => JSX.Element;
|
|
5
|
+
Body: React.NamedExoticComponent<object>;
|
|
6
|
+
};
|
|
7
|
+
export { Table };
|
|
13
8
|
export default Table;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
noResultsPlaceholder?: string | undefined;
|
|
6
|
-
isPlaceholderActive?: boolean | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
declare const _default: React.MemoExoticComponent<typeof TableBody>;
|
|
9
|
-
export default _default;
|
|
2
|
+
declare const TableBody: React.NamedExoticComponent<object>;
|
|
3
|
+
export { TableBody };
|
|
4
|
+
export default TableBody;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export { renderRowsLoader } from './renderRowsLoader';
|
|
3
3
|
export declare const defaultRenderers: {
|
|
4
4
|
table: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
5
|
header: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare
|
|
2
|
+
export declare const renderRowsLoader: () => JSX.Element;
|
package/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { DSDataGrid } from './DSDataGrid';
|
|
2
2
|
export { DSDataGridsWithSchema } from './DSDataGrid';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export {
|
|
8
|
-
export
|
|
9
|
-
export * from './rowSizes';
|
|
3
|
+
export { ColumnsOptionsMenuSection } from './components/ColumnsOptionsMenuSection';
|
|
4
|
+
export { getColumnVisibilityMenuOption } from './components/ColumnVisibilityMenuOption';
|
|
5
|
+
export { EmptyState } from './components/EmptyState';
|
|
6
|
+
export { IconColumn } from './columns/IconColumn';
|
|
7
|
+
export { BodyHeaderScrollSyncPlugin, DndColumnsPlugin, ColumnSizingPlugin, CustomRendererPlugin, EditablePlugin, ComboBox, TextBox, ExpandablePlugin, ExpandableColumn, FilterablePlugin, InfiniteScrollPlugin, PaginationPlugin, ResizablePlugin, DndRowsPlugin, SelectablePlugin, SortablePlugin, ToolbarPlugin, ExportDataPlugin, VirtualizationPlugin, } from './plugins';
|
|
8
|
+
export { RowSizes, RowSizesOptions, RowSizesOptionsArr } from './rowSizes';
|
|
10
9
|
export { CellWithAddons, CellContainer } from './renders';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BodyHeaderScrollSyncPlugin } from './BodyHeaderScrollSyncPlugin';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DndColumnsPlugin } from './DndColumnsPlugin';
|