@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,96 +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 decorateEditable_exports = {};
|
30
|
-
__export(decorateEditable_exports, {
|
31
|
-
addEditableToCell: () => addEditableToCell,
|
32
|
-
makeEditableConfig: () => makeEditableConfig
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(decorateEditable_exports);
|
35
|
-
var React = __toESM(require("react"));
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
37
|
-
var edit = __toESM(require("react-edit"));
|
38
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
39
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
40
|
-
var import_ds_shared = require("@elliemae/ds-shared");
|
41
|
-
var import_getEditorComponent = require("./getEditorComponent.js");
|
42
|
-
const makeEditableConfig = (grid) => edit.edit({
|
43
|
-
isEditing: ({ columnIndex, rowData, column = {}, ...rest }) => {
|
44
|
-
const {
|
45
|
-
state: { editingRows },
|
46
|
-
props: { rowKey }
|
47
|
-
} = grid.getInstance();
|
48
|
-
let isCustomEditing;
|
49
|
-
if (typeof column.isEditing === "function") {
|
50
|
-
isCustomEditing = column.isEditing({
|
51
|
-
columnIndex,
|
52
|
-
rowData,
|
53
|
-
column,
|
54
|
-
...rest
|
55
|
-
});
|
56
|
-
}
|
57
|
-
return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;
|
58
|
-
},
|
59
|
-
onActivate: () => null,
|
60
|
-
onValue: (...args) => grid.getInstance().actions.editValue(...args)
|
61
|
-
});
|
62
|
-
const addEditableToCell = ({ column, config, handlers }, grid) => {
|
63
|
-
column.cell.transforms.push(config((0, import_getEditorComponent.getEditorComponent)(column.customEditor, handlers)));
|
64
|
-
column.cell.props.className = (0, import_ds_utilities.cx)(
|
65
|
-
column.cell.props.className,
|
66
|
-
`editable${column.customEditor ? " customEditor" : ""}`
|
67
|
-
);
|
68
|
-
return (0, import_ds_shared.appendCellFormatter)(
|
69
|
-
[
|
70
|
-
(value, extraParams) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
71
|
-
"div",
|
72
|
-
{
|
73
|
-
onClick: (e) => {
|
74
|
-
e.stopPropagation();
|
75
|
-
grid.getInstance().actions.activateEdit(extraParams);
|
76
|
-
},
|
77
|
-
onKeyUp: (e) => {
|
78
|
-
e.stopPropagation();
|
79
|
-
if (e.keyCode === 33) {
|
80
|
-
grid.getInstance().actions.activateEdit(extraParams);
|
81
|
-
}
|
82
|
-
},
|
83
|
-
role: "gridcell",
|
84
|
-
tabIndex: 0,
|
85
|
-
children: [
|
86
|
-
value,
|
87
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.EditPencil, { className: "edit-pencil" }),
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "edit-separator", children: " " })
|
89
|
-
]
|
90
|
-
}
|
91
|
-
) })
|
92
|
-
],
|
93
|
-
column
|
94
|
-
);
|
95
|
-
};
|
96
|
-
//# sourceMappingURL=decorateEditable.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/editable/decorateEditable.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport * as edit from 'react-edit';\nimport { EditPencil } from '@elliemae/ds-icons';\nimport { cx } from '@elliemae/ds-utilities';\nimport { appendCellFormatter } from '@elliemae/ds-shared';\nimport { getEditorComponent } from './getEditorComponent.js';\n\nconst makeEditableConfig = (grid) =>\n edit.edit({\n isEditing: ({ columnIndex, rowData, column = {}, ...rest }) => {\n const {\n state: { editingRows },\n props: { rowKey },\n } = grid.getInstance();\n let isCustomEditing;\n\n if (typeof column.isEditing === 'function') {\n isCustomEditing = column.isEditing({\n columnIndex,\n rowData,\n column,\n ...rest,\n });\n }\n return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;\n },\n onActivate: () => null,\n onValue: (...args) => grid.getInstance().actions.editValue(...args),\n });\nconst addEditableToCell = ({ column, config, handlers }, grid) => {\n column.cell.transforms.push(config(getEditorComponent(column.customEditor, handlers)));\n column.cell.props.className = cx(\n column.cell.props.className,\n `editable${column.customEditor ? ' customEditor' : ''}`,\n );\n return appendCellFormatter(\n [\n (value, extraParams) => (\n <>\n <div\n onClick={(e) => {\n e.stopPropagation();\n grid.getInstance().actions.activateEdit(extraParams);\n }}\n onKeyUp={(e) => {\n e.stopPropagation();\n if (e.keyCode === 33) {\n grid.getInstance().actions.activateEdit(extraParams);\n }\n }}\n role=\"gridcell\"\n tabIndex={0}\n >\n {value}\n <EditPencil className=\"edit-pencil\" />\n <span className=\"edit-separator\"> </span>\n </div>\n </>\n ),\n ],\n column,\n );\n};\n\nexport { makeEditableConfig, addEditableToCell };\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsCf;AArCR,WAAsB;AACtB,sBAA2B;AAC3B,0BAAmB;AACnB,uBAAoC;AACpC,gCAAmC;AAEnC,MAAM,qBAAqB,CAAC,SAC1B,KAAK,KAAK;AAAA,EACR,WAAW,CAAC,EAAE,aAAa,SAAS,SAAS,CAAC,GAAG,GAAG,KAAK,MAAM;AAC7D,UAAM;AAAA,MACJ,OAAO,EAAE,YAAY;AAAA,MACrB,OAAO,EAAE,OAAO;AAAA,IAClB,IAAI,KAAK,YAAY;AACrB,QAAI;AAEJ,QAAI,OAAO,OAAO,cAAc,YAAY;AAC1C,wBAAkB,OAAO,UAAU;AAAA,QACjC;AAAA,QACA;AAAA,QACA;AAAA,QACA,GAAG;AAAA,MACL,CAAC;AAAA,IACH;AACA,WAAO,YAAY,QAAQ,MAAM,CAAC,MAAM,eAAe,OAAO,iBAAiB;AAAA,EACjF;AAAA,EACA,YAAY,MAAM;AAAA,EAClB,SAAS,IAAI,SAAS,KAAK,YAAY,EAAE,QAAQ,UAAU,GAAG,IAAI;AACpE,CAAC;AACH,MAAM,oBAAoB,CAAC,EAAE,QAAQ,QAAQ,SAAS,GAAG,SAAS;AAChE,SAAO,KAAK,WAAW,KAAK,WAAO,8CAAmB,OAAO,cAAc,QAAQ,CAAC,CAAC;AACrF,SAAO,KAAK,MAAM,gBAAY;AAAA,IAC5B,OAAO,KAAK,MAAM;AAAA,IAClB,WAAW,OAAO,eAAe,kBAAkB;AAAA,EACrD;AACA,aAAO;AAAA,IACL;AAAA,MACE,CAAC,OAAO,gBACN,2EACE;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,CAAC,MAAM;AACd,cAAE,gBAAgB;AAClB,iBAAK,YAAY,EAAE,QAAQ,aAAa,WAAW;AAAA,UACrD;AAAA,UACA,SAAS,CAAC,MAAM;AACd,cAAE,gBAAgB;AAClB,gBAAI,EAAE,YAAY,IAAI;AACpB,mBAAK,YAAY,EAAE,QAAQ,aAAa,WAAW;AAAA,YACrD;AAAA,UACF;AAAA,UACA,MAAK;AAAA,UACL,UAAU;AAAA,UAET;AAAA;AAAA,YACD,4CAAC,8BAAW,WAAU,eAAc;AAAA,YACpC,4CAAC,UAAK,WAAU,kBAAiB,eAAC;AAAA;AAAA;AAAA,MACpC,GACF;AAAA,IAEJ;AAAA,IACA;AAAA,EACF;AACF;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,60 +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 getEditorComponent_exports = {};
|
30
|
-
__export(getEditorComponent_exports, {
|
31
|
-
default: () => getEditorComponent_default,
|
32
|
-
getEditorComponent: () => getEditorComponent
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(getEditorComponent_exports);
|
35
|
-
var React = __toESM(require("react"));
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
37
|
-
var import_EditableComponents = require("./EditableComponents/index.js");
|
38
|
-
const components = {
|
39
|
-
DSComboBox: import_EditableComponents.ComboBox,
|
40
|
-
DSTextBox: import_EditableComponents.TextBox
|
41
|
-
};
|
42
|
-
const getEditorComponent = (editorComponent = {}, handlers) => ({ value, onValue, extraParameters }) => {
|
43
|
-
if (typeof editorComponent === "function") {
|
44
|
-
return editorComponent({
|
45
|
-
value,
|
46
|
-
onValue,
|
47
|
-
customHandlers: handlers,
|
48
|
-
...extraParameters
|
49
|
-
});
|
50
|
-
}
|
51
|
-
const { type = "DSTextBox", ...restEditorProps } = editorComponent;
|
52
|
-
const Component = components[type];
|
53
|
-
if (type === "DSComboBox") {
|
54
|
-
const maxOptions = restEditorProps?.options?.length || 100;
|
55
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { zIndex: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { autoFocus: true, onValue, value, maxOptions, ...restEditorProps }) });
|
56
|
-
}
|
57
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { autoFocus: true, onValue, value, ...restEditorProps });
|
58
|
-
};
|
59
|
-
var getEditorComponent_default = getEditorComponent;
|
60
|
-
//# sourceMappingURL=getEditorComponent.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/editable/getEditorComponent.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable react/display-name */\nimport React from 'react';\nimport { ComboBox, TextBox } from './EditableComponents/index.js';\n\nconst components = {\n DSComboBox: ComboBox,\n DSTextBox: TextBox,\n};\n\nconst getEditorComponent =\n (editorComponent = {}, handlers) =>\n ({ value, onValue, extraParameters }) => {\n if (typeof editorComponent === 'function') {\n return editorComponent({\n value,\n onValue,\n customHandlers: handlers,\n ...extraParameters,\n });\n }\n\n const { type = 'DSTextBox', ...restEditorProps } = editorComponent;\n const Component = components[type];\n\n if (type === 'DSComboBox') {\n // TODO: remove this whole condition when combobox v3 is out and fully working without \"maxOptions\" parameter\n const maxOptions = restEditorProps?.options?.length || 100;\n return (\n <div style={{ zIndex: 0 }}>\n <Component autoFocus onValue={onValue} value={value} maxOptions={maxOptions} {...restEditorProps} />\n </div>\n );\n }\n\n return <Component autoFocus onValue={onValue} value={value} {...restEditorProps} />;\n };\n\nexport { getEditorComponent };\nexport default getEditorComponent;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6BX;AA3BZ,gCAAkC;AAElC,MAAM,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AACb;AAEA,MAAM,qBACJ,CAAC,kBAAkB,CAAC,GAAG,aACrB,CAAC,EAAE,OAAO,SAAS,gBAAgB,MAAM;AACvC,MAAI,OAAO,oBAAoB,YAAY;AACzC,WAAO,gBAAgB;AAAA,MACrB;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,MAChB,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AAEA,QAAM,EAAE,OAAO,aAAa,GAAG,gBAAgB,IAAI;AACnD,QAAM,YAAY,WAAW,IAAI;AAEjC,MAAI,SAAS,cAAc;AAEzB,UAAM,aAAa,iBAAiB,SAAS,UAAU;AACvD,WACE,4CAAC,SAAI,OAAO,EAAE,QAAQ,EAAE,GACtB,sDAAC,aAAU,WAAS,MAAC,SAAkB,OAAc,YAAyB,GAAG,iBAAiB,GACpG;AAAA,EAEJ;AAEA,SAAO,4CAAC,aAAU,WAAS,MAAC,SAAkB,OAAe,GAAG,iBAAiB;AACnF;AAGJ,IAAO,6BAAQ;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,39 +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 editable_exports = {};
|
30
|
-
__export(editable_exports, {
|
31
|
-
ComboBox: () => import_EditableComponents.ComboBox,
|
32
|
-
EditablePlugin: () => import_EditablePlugin.EditablePlugin,
|
33
|
-
TextBox: () => import_EditableComponents.TextBox
|
34
|
-
});
|
35
|
-
module.exports = __toCommonJS(editable_exports);
|
36
|
-
var React = __toESM(require("react"));
|
37
|
-
var import_EditablePlugin = require("./EditablePlugin.js");
|
38
|
-
var import_EditableComponents = require("./EditableComponents/index.js");
|
39
|
-
//# sourceMappingURL=index.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/editable/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["export { EditablePlugin } from './EditablePlugin.js';\nexport { ComboBox, TextBox } from './EditableComponents/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,4BAA+B;AAC/B,gCAAkC;",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,131 +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 ExpandableColumn_exports = {};
|
30
|
-
__export(ExpandableColumn_exports, {
|
31
|
-
ExpandableColumn: () => ExpandableColumn,
|
32
|
-
default: () => ExpandableColumn_default
|
33
|
-
});
|
34
|
-
module.exports = __toCommonJS(ExpandableColumn_exports);
|
35
|
-
var React = __toESM(require("react"));
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
37
|
-
var import_react = require("react");
|
38
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
39
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
40
|
-
var import_ds_button = require("@elliemae/ds-button");
|
41
|
-
var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
|
42
|
-
var import_blockNames = require("../../blockNames.js");
|
43
|
-
var import_rowSizes = require("../../rowSizes.js");
|
44
|
-
const blockName = `${import_blockNames.dataGridBlockName}-expandable-column`;
|
45
|
-
const ExpandableColumnWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
|
46
|
-
const LabelDescriptionWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "label-description-wrapper");
|
47
|
-
const Label = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "label");
|
48
|
-
const Description = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "description");
|
49
|
-
const ExtraColumnData = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "extra-column-data");
|
50
|
-
const ExpandableMasterWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-master-wrapper`);
|
51
|
-
const ExpandableDetailsWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-details-wrapper`);
|
52
|
-
const ExpandableColumnCell = ({ label, description, isExpanded, expandableDetails, extraData, onToggleExpand }) => {
|
53
|
-
const ref = (0, import_react.useRef)();
|
54
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ExpandableColumnWrapper, { ref, tabindex: 0, children: [
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ExpandableMasterWrapper, { style: { height: import_rowSizes.RowSizes.extend }, children: [
|
56
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
57
|
-
import_ds_button.DSButton,
|
58
|
-
{
|
59
|
-
buttonType: "text",
|
60
|
-
className: "expandable-arrow",
|
61
|
-
icon: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadRight, {}),
|
62
|
-
onClick: (e) => {
|
63
|
-
onToggleExpand(e);
|
64
|
-
if (ref && ref.current) {
|
65
|
-
ref.current.focus();
|
66
|
-
}
|
67
|
-
},
|
68
|
-
size: "s"
|
69
|
-
}
|
70
|
-
),
|
71
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LabelDescriptionWrapper, { children: [
|
72
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, { value: label }) }),
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, { value: description }) })
|
74
|
-
] }),
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExtraColumnData, { children: extraData })
|
76
|
-
] }),
|
77
|
-
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExpandableDetailsWrapper, { children: expandableDetails })
|
78
|
-
] });
|
79
|
-
};
|
80
|
-
const expandableColumnRenderer = ({ renderRowLabel, renderRowDescription, renderExtraData }) => (value, { rowData, isExpanded }, grid) => {
|
81
|
-
const {
|
82
|
-
props: { renderExpandedDetails },
|
83
|
-
actions: { toggleExpand }
|
84
|
-
} = grid.getInstance();
|
85
|
-
const expandableDetails = renderExpandedDetails({ rowData });
|
86
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
87
|
-
ExpandableColumnCell,
|
88
|
-
{
|
89
|
-
description: renderRowDescription({ rowData }),
|
90
|
-
expandableDetails,
|
91
|
-
extraData: renderExtraData({ rowData }),
|
92
|
-
isExpanded,
|
93
|
-
label: renderRowLabel({ rowData }),
|
94
|
-
onToggleExpand: () => toggleExpand(rowData)
|
95
|
-
}
|
96
|
-
);
|
97
|
-
};
|
98
|
-
const noop = () => null;
|
99
|
-
const ExpandableColumn = ({
|
100
|
-
property,
|
101
|
-
label,
|
102
|
-
renderRowLabel = () => "----",
|
103
|
-
renderRowDescription = noop,
|
104
|
-
renderExtraData = noop,
|
105
|
-
width,
|
106
|
-
resizable,
|
107
|
-
sortable,
|
108
|
-
searchable,
|
109
|
-
customRenderer,
|
110
|
-
...rest
|
111
|
-
}) => ({
|
112
|
-
...rest,
|
113
|
-
label,
|
114
|
-
property,
|
115
|
-
cell: {
|
116
|
-
formatters: [
|
117
|
-
expandableColumnRenderer({
|
118
|
-
renderRowLabel,
|
119
|
-
renderRowDescription,
|
120
|
-
renderExtraData
|
121
|
-
})
|
122
|
-
]
|
123
|
-
},
|
124
|
-
width: width || "50%",
|
125
|
-
expandableColumn: true,
|
126
|
-
resizable,
|
127
|
-
sortable,
|
128
|
-
searchable
|
129
|
-
});
|
130
|
-
var ExpandableColumn_default = ExpandableColumn;
|
131
|
-
//# sourceMappingURL=ExpandableColumn.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/expandable-grid/ExpandableColumn.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable react/display-name */\nimport React, { useRef } from 'react';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSButton } from '@elliemae/ds-button';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { dataGridBlockName } from '../../blockNames.js';\nimport { RowSizes } from '../../rowSizes.js';\n\nconst blockName = `${dataGridBlockName}-expandable-column`;\n\n// todo: clean this when we move to css-js\nconst ExpandableColumnWrapper = aggregatedClasses('div')(blockName);\nconst LabelDescriptionWrapper = aggregatedClasses('div')(blockName, 'label-description-wrapper');\nconst Label = aggregatedClasses('span')(blockName, 'label');\nconst Description = aggregatedClasses('span')(blockName, 'description');\nconst ExtraColumnData = aggregatedClasses('div')(blockName, 'extra-column-data');\nconst ExpandableMasterWrapper = aggregatedClasses('div')(`${blockName}-master-wrapper`);\nconst ExpandableDetailsWrapper = aggregatedClasses('div')(`${blockName}-details-wrapper`);\n\nconst ExpandableColumnCell = ({ label, description, isExpanded, expandableDetails, extraData, onToggleExpand }) => {\n const ref = useRef();\n return (\n <ExpandableColumnWrapper ref={ref} tabindex={0}>\n <ExpandableMasterWrapper style={{ height: RowSizes.extend }}>\n <DSButton\n buttonType=\"text\"\n className=\"expandable-arrow\"\n icon={isExpanded ? <ArrowheadDown /> : <ArrowheadRight />}\n onClick={(e) => {\n onToggleExpand(e);\n if (ref && ref.current) {\n ref.current.focus();\n }\n }}\n size=\"s\"\n />\n <LabelDescriptionWrapper>\n <Label>\n <DSTruncatedTooltipText value={label} />\n </Label>\n <Description>\n <DSTruncatedTooltipText value={description} />\n </Description>\n </LabelDescriptionWrapper>\n <ExtraColumnData>{extraData}</ExtraColumnData>\n </ExpandableMasterWrapper>\n {isExpanded && <ExpandableDetailsWrapper>{expandableDetails}</ExpandableDetailsWrapper>}\n </ExpandableColumnWrapper>\n );\n};\n\nconst expandableColumnRenderer =\n ({ renderRowLabel, renderRowDescription, renderExtraData }) =>\n (value, { rowData, isExpanded }, grid) => {\n const {\n props: { renderExpandedDetails },\n actions: { toggleExpand },\n } = grid.getInstance();\n\n const expandableDetails = renderExpandedDetails({ rowData });\n return (\n <ExpandableColumnCell\n description={renderRowDescription({ rowData })}\n expandableDetails={expandableDetails}\n extraData={renderExtraData({ rowData })}\n isExpanded={isExpanded}\n label={renderRowLabel({ rowData })}\n onToggleExpand={() => toggleExpand(rowData)}\n />\n );\n };\nconst noop = () => null;\nexport const ExpandableColumn = ({\n property,\n label,\n renderRowLabel = () => '----',\n renderRowDescription = noop,\n renderExtraData = noop,\n width,\n resizable,\n sortable,\n searchable,\n customRenderer,\n ...rest\n}) => ({\n ...rest,\n label,\n property,\n cell: {\n formatters: [\n expandableColumnRenderer({\n renderRowLabel,\n renderRowDescription,\n renderExtraData,\n }),\n ],\n },\n width: width || '50%',\n expandableColumn: true,\n resizable,\n sortable,\n searchable,\n});\n\nexport default ExpandableColumn;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "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",
|
6
|
-
"names": []
|
7
|
-
}
|
@@ -1,197 +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 ExpandablePlugin_exports = {};
|
30
|
-
__export(ExpandablePlugin_exports, {
|
31
|
-
ExpandablePlugin: () => ExpandablePlugin
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(ExpandablePlugin_exports);
|
34
|
-
var React = __toESM(require("react"));
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
36
|
-
var import_react = require("react");
|
37
|
-
var import_ds_utilities = require("@elliemae/ds-utilities");
|
38
|
-
var import_react_window = require("react-window");
|
39
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
40
|
-
var import_ds_button = require("@elliemae/ds-button");
|
41
|
-
var import_ds_shared = require("@elliemae/ds-shared");
|
42
|
-
var import_ExpandedRow = require("./ExpandedRow.js");
|
43
|
-
var import_ExpandedRowExtra = require("./ExpandedRowExtra.js");
|
44
|
-
var import_rowSizes = require("../../rowSizes.js");
|
45
|
-
var import_useExpandGridState = require("./useExpandGridState.js");
|
46
|
-
const getExpandedRowSizeBySubrows = ({ totalAmount, amountVisible, isShowingAll, size = 36 }) => isShowingAll ? size * (totalAmount + 1) - 6 : size * (amountVisible + 1) + 32;
|
47
|
-
const ExpandedRows = {
|
48
|
-
SingleColumn: import_ExpandedRow.ExpandedRow,
|
49
|
-
Master: import_ExpandedRowExtra.ExpandedRowExtra
|
50
|
-
};
|
51
|
-
const createExpandedRow = (type) => ExpandedRows[type] || ExpandedRows.Master;
|
52
|
-
const isExpandableSingleColumn = (columns) => columns.some((column) => column.expandableColumn);
|
53
|
-
const ExpandablePlugin = (0, import_ds_shared.createInstancePlugin)("expandable", {
|
54
|
-
registerStateHook: import_useExpandGridState.useExpandGridState,
|
55
|
-
decorateGrid(grid) {
|
56
|
-
const { decoratedColumns, columns } = grid.getInstance();
|
57
|
-
const detailColumns = (0, import_react.useMemo)(
|
58
|
-
() => decoratedColumns.map((column) => ({
|
59
|
-
...column,
|
60
|
-
customRenderer: column.detailCustomRenderer
|
61
|
-
})).filter((col) => !col.expandableColumn),
|
62
|
-
[columns]
|
63
|
-
);
|
64
|
-
return {
|
65
|
-
detailColumns
|
66
|
-
};
|
67
|
-
},
|
68
|
-
decorateColumns(columns, grid) {
|
69
|
-
if (isExpandableSingleColumn(columns))
|
70
|
-
return columns;
|
71
|
-
const firstColumnIndex = columns.findIndex((column) => column.isUserColumn);
|
72
|
-
const firstColumn = columns[firstColumnIndex];
|
73
|
-
firstColumn.formatExpandable = true;
|
74
|
-
return [
|
75
|
-
...columns.slice(0, firstColumnIndex),
|
76
|
-
(0, import_ds_shared.appendCellFormatter)((value, { isExpanded, rowData }) => {
|
77
|
-
const {
|
78
|
-
actions: { toggleExpand }
|
79
|
-
} = grid.getInstance();
|
80
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
81
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
82
|
-
import_ds_button.DSButton,
|
83
|
-
{
|
84
|
-
buttonType: "text",
|
85
|
-
className: "expandable-arrow",
|
86
|
-
icon: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadRight, {}),
|
87
|
-
onClick: (e) => {
|
88
|
-
e.stopPropagation();
|
89
|
-
toggleExpand(rowData);
|
90
|
-
},
|
91
|
-
size: "s"
|
92
|
-
}
|
93
|
-
),
|
94
|
-
value
|
95
|
-
] });
|
96
|
-
}, firstColumn),
|
97
|
-
...columns.slice(firstColumnIndex + 1)
|
98
|
-
];
|
99
|
-
},
|
100
|
-
getBodyProps(bodyProps, grid) {
|
101
|
-
const {
|
102
|
-
composedRows: rows,
|
103
|
-
props: {
|
104
|
-
rowKey,
|
105
|
-
getChildrenRows,
|
106
|
-
rowSize = "normal",
|
107
|
-
subrowSize = "normal",
|
108
|
-
getExpandedRowMinSize,
|
109
|
-
getExpandedRowSize,
|
110
|
-
expandableSubrowsVisible
|
111
|
-
},
|
112
|
-
state: { expandedRows }
|
113
|
-
} = grid.getInstance();
|
114
|
-
const rowSizePx = import_rowSizes.RowSizes[rowSize];
|
115
|
-
const subrowSizePx = import_rowSizes.RowSizes[subrowSize];
|
116
|
-
const listRef = (0, import_react.useRef)();
|
117
|
-
(0, import_react.useEffect)(() => {
|
118
|
-
if (listRef.current)
|
119
|
-
listRef.current.resetAfterIndex(0, true);
|
120
|
-
});
|
121
|
-
const getItemSize = (index) => {
|
122
|
-
const rowData = rows[index];
|
123
|
-
const key = rowData[rowKey];
|
124
|
-
const children = getChildrenRows({ rowData });
|
125
|
-
const expandedSize = getExpandedRowSize ? getExpandedRowSize(index, { rowData }) : getExpandedRowSizeBySubrows({
|
126
|
-
totalAmount: children.length,
|
127
|
-
amountVisible: children.length > expandableSubrowsVisible ? expandableSubrowsVisible : children.length,
|
128
|
-
isShowingAll: children.length < expandableSubrowsVisible || expandedRows[key] && expandedRows[key].showAllRows,
|
129
|
-
size: subrowSizePx
|
130
|
-
});
|
131
|
-
const expandedMinSize = (0, import_ds_utilities.isFunction)(getExpandedRowMinSize) && getExpandedRowMinSize(index);
|
132
|
-
return expandedRows[key] ? expandedMinSize > expandedSize ? expandedMinSize : expandedSize : rowSizePx;
|
133
|
-
};
|
134
|
-
return {
|
135
|
-
...bodyProps,
|
136
|
-
className: (0, import_ds_utilities.cx)(bodyProps.className, "expandable"),
|
137
|
-
listComponent: import_react_window.VariableSizeList,
|
138
|
-
listProps: { ref: listRef, itemSize: getItemSize }
|
139
|
-
};
|
140
|
-
},
|
141
|
-
decorateRenderers(renderers, grid) {
|
142
|
-
const Row = renderers.body.row;
|
143
|
-
const Cell = renderers.body.cell;
|
144
|
-
renderers.body.row = (0, import_react.useMemo)(() => {
|
145
|
-
const expandedRowType = isExpandableSingleColumn(grid.decoratedColumns) ? "SingleColumn" : "Master";
|
146
|
-
const ExpandedRowComponent = createExpandedRow(expandedRowType);
|
147
|
-
return function({ isExpanded, ...rowProps }) {
|
148
|
-
if (isExpanded) {
|
149
|
-
const {
|
150
|
-
props: { detailColumns, getChildrenRows, renderRowDetails },
|
151
|
-
composedRows
|
152
|
-
} = grid.getInstance();
|
153
|
-
const rowData = composedRows[rowProps.index] ? composedRows[rowProps.index] : rowProps.rowData;
|
154
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
155
|
-
ExpandedRowComponent,
|
156
|
-
{
|
157
|
-
cellComponent: Cell,
|
158
|
-
detailColumns,
|
159
|
-
parentGrid: grid,
|
160
|
-
renderRowDetails,
|
161
|
-
rowComponent: Row,
|
162
|
-
rowData,
|
163
|
-
rowProps: {
|
164
|
-
rowData,
|
165
|
-
isExpanded,
|
166
|
-
...rowProps
|
167
|
-
},
|
168
|
-
rows: getChildrenRows({ rowData }),
|
169
|
-
children: rowProps.children
|
170
|
-
}
|
171
|
-
);
|
172
|
-
}
|
173
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, { ...rowProps });
|
174
|
-
};
|
175
|
-
}, []);
|
176
|
-
return renderers;
|
177
|
-
},
|
178
|
-
getRowProps(rowProps, grid, { rowData }) {
|
179
|
-
const {
|
180
|
-
props: { rowKey },
|
181
|
-
state: { expandedRows }
|
182
|
-
} = grid.getInstance();
|
183
|
-
const key = rowData[rowKey];
|
184
|
-
const isExpanded = !!expandedRows[key];
|
185
|
-
return {
|
186
|
-
...rowProps,
|
187
|
-
className: (0, import_ds_utilities.cx)(
|
188
|
-
rowProps.className,
|
189
|
-
Object.keys(expandedRows).length > 0 && "expandable-row",
|
190
|
-
isExpanded && "expanded"
|
191
|
-
),
|
192
|
-
isExpanded,
|
193
|
-
showAllRows: expandedRows[key] && expandedRows[key].showAllRows
|
194
|
-
};
|
195
|
-
}
|
196
|
-
});
|
197
|
-
//# sourceMappingURL=ExpandablePlugin.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../../src/plugins/expandable-grid/ExpandablePlugin.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { cx, isFunction } from '@elliemae/ds-utilities';\nimport { VariableSizeList } from 'react-window';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport { DSButton } from '@elliemae/ds-button';\nimport { createInstancePlugin, appendCellFormatter } from '@elliemae/ds-shared';\nimport { ExpandedRow } from './ExpandedRow.js';\nimport { ExpandedRowExtra } from './ExpandedRowExtra.js';\nimport { RowSizes } from '../../rowSizes.js';\nimport { useExpandGridState } from './useExpandGridState.js';\n\nconst getExpandedRowSizeBySubrows = ({ totalAmount, amountVisible, isShowingAll, size = 36 }) =>\n isShowingAll ? size * (totalAmount + 1) - 6 : size * (amountVisible + 1) + 32;\n\nconst ExpandedRows = {\n SingleColumn: ExpandedRow,\n Master: ExpandedRowExtra,\n};\n\nconst createExpandedRow = (type) => ExpandedRows[type] || ExpandedRows.Master;\n\nconst isExpandableSingleColumn = (columns) => columns.some((column) => column.expandableColumn);\n\nexport const ExpandablePlugin = createInstancePlugin('expandable', {\n registerStateHook: useExpandGridState,\n decorateGrid(grid) {\n const { decoratedColumns, columns } = grid.getInstance();\n const detailColumns = useMemo(\n () =>\n decoratedColumns\n .map((column) => ({\n ...column,\n customRenderer: column.detailCustomRenderer,\n }))\n .filter((col) => !col.expandableColumn),\n [columns],\n );\n return {\n detailColumns,\n };\n },\n\n decorateColumns(columns, grid) {\n if (isExpandableSingleColumn(columns)) return columns;\n // get first column from user\n const firstColumnIndex = columns.findIndex((column) => column.isUserColumn);\n const firstColumn = columns[firstColumnIndex];\n firstColumn.formatExpandable = true;\n\n return [\n ...columns.slice(0, firstColumnIndex),\n appendCellFormatter((value, { isExpanded, rowData }) => {\n const {\n actions: { toggleExpand },\n } = grid.getInstance();\n /*\n * should return only 2 elements ../custom-cell-renderer/addCustomRendererToCell.js\n * getRenderer it's checking that length to apply the custom render to value only\n */\n return (\n <>\n <DSButton\n buttonType=\"text\"\n className=\"expandable-arrow\"\n icon={isExpanded ? <ArrowheadDown /> : <ArrowheadRight />}\n onClick={(e) => {\n e.stopPropagation();\n toggleExpand(rowData);\n }}\n size=\"s\"\n />\n {value}\n </>\n );\n }, firstColumn),\n ...columns.slice(firstColumnIndex + 1),\n ];\n },\n\n getBodyProps(bodyProps, grid) {\n const {\n composedRows: rows,\n props: {\n rowKey,\n getChildrenRows,\n rowSize = 'normal',\n subrowSize = 'normal',\n getExpandedRowMinSize,\n getExpandedRowSize,\n expandableSubrowsVisible,\n },\n state: { expandedRows },\n } = grid.getInstance();\n const rowSizePx = RowSizes[rowSize];\n const subrowSizePx = RowSizes[subrowSize];\n const listRef = useRef();\n\n useEffect(() => {\n if (listRef.current) listRef.current.resetAfterIndex(0, true);\n });\n\n // implementation of expandable row single column with aggregation\n const getItemSize = (index) => {\n const rowData = rows[index];\n const key = rowData[rowKey];\n const children = getChildrenRows({ rowData });\n\n const expandedSize = getExpandedRowSize\n ? getExpandedRowSize(index, { rowData }) // https://jira.elliemae.io/browse/PUI-1659\n : getExpandedRowSizeBySubrows({\n totalAmount: children.length,\n amountVisible: children.length > expandableSubrowsVisible ? expandableSubrowsVisible : children.length,\n isShowingAll:\n children.length < expandableSubrowsVisible || (expandedRows[key] && expandedRows[key].showAllRows),\n size: subrowSizePx,\n });\n\n const expandedMinSize = isFunction(getExpandedRowMinSize) && getExpandedRowMinSize(index);\n\n // eslint-disable-next-line no-nested-ternary\n return expandedRows[key] ? (expandedMinSize > expandedSize ? expandedMinSize : expandedSize) : rowSizePx;\n };\n\n return {\n ...bodyProps,\n className: cx(bodyProps.className, 'expandable'),\n listComponent: VariableSizeList,\n listProps: { ref: listRef, itemSize: getItemSize },\n };\n },\n\n decorateRenderers(renderers, grid) {\n const Row = renderers.body.row;\n const Cell = renderers.body.cell;\n\n // eslint-disable-next-line react/display-name\n renderers.body.row = useMemo(() => {\n // todo: the expandable grid should be created from another specific grid component\n const expandedRowType = isExpandableSingleColumn(grid.decoratedColumns) ? 'SingleColumn' : 'Master';\n const ExpandedRowComponent = createExpandedRow(expandedRowType);\n // eslint-disable-next-line react/display-name\n return function ({ isExpanded, ...rowProps }) {\n if (isExpanded) {\n const {\n props: { detailColumns, getChildrenRows, renderRowDetails },\n composedRows,\n } = grid.getInstance();\n // https://jira.elliemae.io/browse/PUI-1667\n const rowData = composedRows[rowProps.index] ? composedRows[rowProps.index] : rowProps.rowData;\n return (\n <ExpandedRowComponent\n cellComponent={Cell}\n detailColumns={detailColumns}\n parentGrid={grid}\n renderRowDetails={renderRowDetails}\n rowComponent={Row}\n rowData={rowData}\n rowProps={{\n rowData,\n isExpanded,\n ...rowProps,\n }}\n rows={getChildrenRows({ rowData })}\n >\n {rowProps.children}\n </ExpandedRowComponent>\n );\n }\n return <Row {...rowProps} />;\n };\n }, []);\n\n return renderers;\n },\n\n getRowProps(rowProps, grid, { rowData }) {\n const {\n props: { rowKey },\n state: { expandedRows },\n } = grid.getInstance();\n const key = rowData[rowKey];\n const isExpanded = !!expandedRows[key];\n return {\n ...rowProps,\n className: cx(\n rowProps.className,\n Object.keys(expandedRows).length > 0 && 'expandable-row',\n isExpanded && 'expanded',\n ),\n isExpanded,\n showAllRows: expandedRows[key] && expandedRows[key].showAllRows,\n };\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "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",
|
6
|
-
"names": []
|
7
|
-
}
|