@elliemae/ds-datagrids 2.3.0-next.3 → 3.0.0-alpha.0
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/dist/cjs/DSDataGrid.js +399 -0
- package/dist/cjs/DSDataGrid.js.map +7 -0
- package/dist/cjs/DataGridImpl.js +144 -0
- package/dist/cjs/DataGridImpl.js.map +7 -0
- package/dist/cjs/PaginatedDataGrid.js +77 -0
- package/dist/cjs/PaginatedDataGrid.js.map +7 -0
- package/dist/cjs/blockNames.js +39 -0
- package/dist/cjs/blockNames.js.map +7 -0
- package/dist/cjs/columns/IconColumn.js +111 -0
- package/dist/cjs/columns/IconColumn.js.map +7 -0
- package/dist/cjs/columns/NumberColumn.js +36 -0
- package/dist/cjs/columns/NumberColumn.js.map +7 -0
- package/dist/cjs/components/BodyCell.js +104 -0
- package/dist/cjs/components/BodyCell.js.map +7 -0
- package/dist/cjs/components/BodyList.js +54 -0
- package/dist/cjs/components/BodyList.js.map +7 -0
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +66 -0
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +64 -0
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/dist/cjs/components/EmptyState.js +82 -0
- package/dist/cjs/components/EmptyState.js.map +7 -0
- package/dist/cjs/components/HeaderCell.js +76 -0
- package/dist/cjs/components/HeaderCell.js.map +7 -0
- package/dist/cjs/components/List.js +44 -0
- package/dist/cjs/components/List.js.map +7 -0
- package/dist/cjs/components/ListItem.js +51 -0
- package/dist/cjs/components/ListItem.js.map +7 -0
- package/dist/cjs/components/NoResults.js +55 -0
- package/dist/cjs/components/NoResults.js.map +7 -0
- package/dist/cjs/components/RowsLoader.js +42 -0
- package/dist/cjs/components/RowsLoader.js.map +7 -0
- package/dist/cjs/components/Table.js +113 -0
- package/dist/cjs/components/Table.js.map +7 -0
- package/dist/cjs/components/TableBody.js +70 -0
- package/dist/cjs/components/TableBody.js.map +7 -0
- package/dist/cjs/components/TableHeader.js +54 -0
- package/dist/cjs/components/TableHeader.js.map +7 -0
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +56 -0
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/dist/cjs/components/header/PrimaryControls.js +50 -0
- package/dist/cjs/components/header/PrimaryControls.js.map +7 -0
- package/dist/cjs/components/header/addOptionalHeaderComponents.js +58 -0
- package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/dist/cjs/components/index.js +43 -0
- package/dist/cjs/components/index.js.map +7 -0
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +66 -0
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/dist/cjs/components/renderers/index.js +50 -0
- package/dist/cjs/components/renderers/index.js.map +7 -0
- package/dist/cjs/components/renderers/renderRowsLoader.js +39 -0
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +7 -0
- package/dist/cjs/components/tableContext.js +36 -0
- package/dist/cjs/components/tableContext.js.map +7 -0
- package/dist/cjs/defaultPlugins.js +44 -0
- package/dist/cjs/defaultPlugins.js.map +7 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +131 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +35 -0
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +155 -0
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +46 -0
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/dist/cjs/plugins/column-dnd/index.js +35 -0
- package/dist/cjs/plugins/column-dnd/index.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +92 -0
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +69 -0
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +44 -0
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +64 -0
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -0
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/index.js +35 -0
- package/dist/cjs/plugins/column-sizing/index.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +148 -0
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +167 -0
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/dist/cjs/plugins/column-sizing/utils.js +68 -0
- package/dist/cjs/plugins/column-sizing/utils.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +40 -0
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +77 -0
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +63 -0
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/dist/cjs/plugins/custom-cell-renderer/index.js +35 -0
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +68 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +90 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/dist/cjs/plugins/editable/EditableComponents/index.js +37 -0
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
- package/dist/cjs/plugins/editable/EditablePlugin.js +108 -0
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +7 -0
- package/dist/cjs/plugins/editable/decorateEditable.js +85 -0
- package/dist/cjs/plugins/editable/decorateEditable.js.map +7 -0
- package/dist/cjs/plugins/editable/getEditorComponent.js +76 -0
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +7 -0
- package/dist/cjs/plugins/editable/index.js +38 -0
- package/dist/cjs/plugins/editable/index.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +124 -0
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +181 -0
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +134 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +56 -0
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/index.js +37 -0
- package/dist/cjs/plugins/expandable-grid/index.js.map +7 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +93 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js +134 -0
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/dist/cjs/plugins/export-data/index.js +35 -0
- package/dist/cjs/plugins/export-data/index.js.map +7 -0
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +80 -0
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +43 -0
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +132 -0
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +157 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +131 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +201 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +170 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +49 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/dist/cjs/plugins/filterable/filterableFormatter.js +73 -0
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +79 -0
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +44 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/dist/cjs/plugins/filterable/helper.js +109 -0
- package/dist/cjs/plugins/filterable/helper.js.map +7 -0
- package/dist/cjs/plugins/filterable/index.js +35 -0
- package/dist/cjs/plugins/filterable/index.js.map +7 -0
- package/dist/cjs/plugins/filterable/useFilterableState.js +113 -0
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +7 -0
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +57 -0
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +126 -0
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js +76 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/dist/cjs/plugins/index.js +68 -0
- package/dist/cjs/plugins/index.js.map +7 -0
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +100 -0
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/dist/cjs/plugins/infinite-scrolling/index.js +35 -0
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +7 -0
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +92 -0
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/Pagination.js +63 -0
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/Paginator.js +82 -0
- package/dist/cjs/plugins/pagination/components/Paginator.js.map +7 -0
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +68 -0
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/dist/cjs/plugins/pagination/helper.js +62 -0
- package/dist/cjs/plugins/pagination/helper.js.map +7 -0
- package/dist/cjs/plugins/pagination/index.js +35 -0
- package/dist/cjs/plugins/pagination/index.js.map +7 -0
- package/dist/cjs/plugins/pagination/usePaginationState.js +82 -0
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +7 -0
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +109 -0
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/dist/cjs/plugins/resizable/decorateResizable.js +56 -0
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +7 -0
- package/dist/cjs/plugins/resizable/index.js +35 -0
- package/dist/cjs/plugins/resizable/index.js.map +7 -0
- package/dist/cjs/plugins/resizable/useResizeHandle.js +79 -0
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
- package/dist/cjs/plugins/resizable/utils.js +54 -0
- package/dist/cjs/plugins/resizable/utils.js.map +7 -0
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +136 -0
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/dist/cjs/plugins/row-dnd/index.js +35 -0
- package/dist/cjs/plugins/row-dnd/index.js.map +7 -0
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +166 -0
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +92 -0
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/dist/cjs/plugins/selectable/helper.js +54 -0
- package/dist/cjs/plugins/selectable/helper.js.map +7 -0
- package/dist/cjs/plugins/selectable/index.js +35 -0
- package/dist/cjs/plugins/selectable/index.js.map +7 -0
- package/dist/cjs/plugins/selectable/selectableFormatter.js +93 -0
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
- package/dist/cjs/plugins/selectable/useSelectableState.js +116 -0
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +7 -0
- package/dist/cjs/plugins/sortable/SortablePlugin.js +95 -0
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
- package/dist/cjs/plugins/sortable/checkIfSortable.js +45 -0
- package/dist/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
- package/dist/cjs/plugins/sortable/index.js +35 -0
- package/dist/cjs/plugins/sortable/index.js.map +7 -0
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +66 -0
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/dist/cjs/plugins/sortable/sortTree.js +44 -0
- package/dist/cjs/plugins/sortable/sortTree.js.map +7 -0
- package/dist/cjs/plugins/sortable/sorter.js +144 -0
- package/dist/cjs/plugins/sortable/sorter.js.map +7 -0
- package/dist/cjs/plugins/sortable/useSortableState.js +73 -0
- package/dist/cjs/plugins/sortable/useSortableState.js.map +7 -0
- package/dist/cjs/plugins/toolbar/RowRenderer.js +96 -0
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +58 -0
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +105 -0
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/dist/cjs/plugins/toolbar/index.js +35 -0
- package/dist/cjs/plugins/toolbar/index.js.map +7 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js +71 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +97 -0
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +259 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +52 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/dist/cjs/plugins/virtualization/helper.js +35 -0
- package/dist/cjs/plugins/virtualization/helper.js.map +7 -0
- package/dist/cjs/plugins/virtualization/index.js +35 -0
- package/dist/cjs/plugins/virtualization/index.js.map +7 -0
- package/dist/cjs/renders/CellWithAddons.js +111 -0
- package/dist/cjs/renders/CellWithAddons.js.map +7 -0
- package/dist/cjs/renders/index.js +37 -0
- package/dist/cjs/renders/index.js.map +7 -0
- package/dist/cjs/renders/styled.js +78 -0
- package/dist/cjs/renders/styled.js.map +7 -0
- package/dist/cjs/rowSizes.js +51 -0
- package/dist/cjs/rowSizes.js.map +7 -0
- package/dist/cjs/utilities/DataGridUtilities.json +1315 -0
- package/dist/cjs/utilities/getPluginsFromProps.js +72 -0
- package/dist/cjs/utilities/getPluginsFromProps.js.map +7 -0
- package/dist/cjs/utilities/getScrollbarSize.js +46 -0
- package/dist/cjs/utilities/getScrollbarSize.js.map +7 -0
- package/dist/cjs/utilities/normalizeData.js +49 -0
- package/dist/cjs/utilities/normalizeData.js.map +7 -0
- package/dist/esm/DSDataGrid.js +370 -0
- package/dist/esm/DSDataGrid.js.map +7 -0
- package/dist/esm/DataGridImpl.js +115 -0
- package/dist/esm/DataGridImpl.js.map +7 -0
- package/dist/esm/PaginatedDataGrid.js +48 -0
- package/dist/esm/PaginatedDataGrid.js.map +7 -0
- package/dist/esm/blockNames.js +10 -0
- package/dist/esm/blockNames.js.map +7 -0
- package/dist/esm/columns/IconColumn.js +82 -0
- package/dist/esm/columns/IconColumn.js.map +7 -0
- package/dist/esm/columns/NumberColumn.js +7 -0
- package/dist/esm/columns/NumberColumn.js.map +7 -0
- package/dist/esm/components/BodyCell.js +75 -0
- package/dist/esm/components/BodyCell.js.map +7 -0
- package/dist/esm/components/BodyList.js +25 -0
- package/dist/esm/components/BodyList.js.map +7 -0
- package/dist/esm/components/ColumnVisibilityMenuOption.js +37 -0
- package/dist/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
- package/dist/esm/components/ColumnsOptionsMenuSection.js +35 -0
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
- package/dist/esm/components/EmptyState.js +53 -0
- package/dist/esm/components/EmptyState.js.map +7 -0
- package/dist/esm/components/HeaderCell.js +47 -0
- package/dist/esm/components/HeaderCell.js.map +7 -0
- package/dist/esm/components/List.js +15 -0
- package/dist/esm/components/List.js.map +7 -0
- package/dist/esm/components/ListItem.js +22 -0
- package/dist/esm/components/ListItem.js.map +7 -0
- package/dist/esm/components/NoResults.js +26 -0
- package/dist/esm/components/NoResults.js.map +7 -0
- package/dist/esm/components/RowsLoader.js +13 -0
- package/dist/esm/components/RowsLoader.js.map +7 -0
- package/dist/esm/components/Table.js +84 -0
- package/dist/esm/components/Table.js.map +7 -0
- package/dist/esm/components/TableBody.js +41 -0
- package/dist/esm/components/TableBody.js.map +7 -0
- package/dist/esm/components/TableHeader.js +25 -0
- package/dist/esm/components/TableHeader.js.map +7 -0
- package/dist/esm/components/footer/addOptionalFooterComponents.js +27 -0
- package/dist/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
- package/dist/esm/components/header/PrimaryControls.js +21 -0
- package/dist/esm/components/header/PrimaryControls.js.map +7 -0
- package/dist/esm/components/header/addOptionalHeaderComponents.js +29 -0
- package/dist/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
- package/dist/esm/components/index.js +14 -0
- package/dist/esm/components/index.js.map +7 -0
- package/dist/esm/components/renderers/defaultClassedRenderers.js +41 -0
- package/dist/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
- package/dist/esm/components/renderers/index.js +29 -0
- package/dist/esm/components/renderers/index.js.map +7 -0
- package/dist/esm/components/renderers/renderRowsLoader.js +10 -0
- package/dist/esm/components/renderers/renderRowsLoader.js.map +7 -0
- package/dist/esm/components/tableContext.js +7 -0
- package/dist/esm/components/tableContext.js.map +7 -0
- package/dist/esm/defaultPlugins.js +15 -0
- package/dist/esm/defaultPlugins.js.map +7 -0
- package/dist/esm/index.js +63 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/index.js +6 -0
- package/dist/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +126 -0
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +20 -0
- package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
- package/dist/esm/plugins/column-dnd/index.js +6 -0
- package/dist/esm/plugins/column-dnd/index.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +63 -0
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +40 -0
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +15 -0
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +35 -0
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -0
- package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
- package/dist/esm/plugins/column-sizing/index.js +6 -0
- package/dist/esm/plugins/column-sizing/index.js.map +7 -0
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js +119 -0
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +138 -0
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
- package/dist/esm/plugins/column-sizing/utils.js +39 -0
- package/dist/esm/plugins/column-sizing/utils.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +11 -0
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +48 -0
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +34 -0
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
- package/dist/esm/plugins/custom-cell-renderer/index.js +6 -0
- package/dist/esm/plugins/custom-cell-renderer/index.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +39 -0
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js +61 -0
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
- package/dist/esm/plugins/editable/EditableComponents/index.js +8 -0
- package/dist/esm/plugins/editable/EditableComponents/index.js.map +7 -0
- package/dist/esm/plugins/editable/EditablePlugin.js +79 -0
- package/dist/esm/plugins/editable/EditablePlugin.js.map +7 -0
- package/dist/esm/plugins/editable/decorateEditable.js +56 -0
- package/dist/esm/plugins/editable/decorateEditable.js.map +7 -0
- package/dist/esm/plugins/editable/getEditorComponent.js +47 -0
- package/dist/esm/plugins/editable/getEditorComponent.js.map +7 -0
- package/dist/esm/plugins/editable/index.js +9 -0
- package/dist/esm/plugins/editable/index.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +95 -0
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +152 -0
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js +105 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +27 -0
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/index.js +8 -0
- package/dist/esm/plugins/expandable-grid/index.js.map +7 -0
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js +64 -0
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
- package/dist/esm/plugins/export-data/ExportDataPlugin.js +105 -0
- package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
- package/dist/esm/plugins/export-data/index.js +6 -0
- package/dist/esm/plugins/export-data/index.js.map +7 -0
- package/dist/esm/plugins/filterable/FilterablePlugin.js +51 -0
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
- package/dist/esm/plugins/filterable/addFilterToColumn.js +14 -0
- package/dist/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
- package/dist/esm/plugins/filterable/components/FilterableHeader.js +103 -0
- package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +128 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +102 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +176 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +141 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +20 -0
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
- package/dist/esm/plugins/filterable/filterableFormatter.js +44 -0
- package/dist/esm/plugins/filterable/filterableFormatter.js.map +7 -0
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +50 -0
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +15 -0
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
- package/dist/esm/plugins/filterable/helper.js +86 -0
- package/dist/esm/plugins/filterable/helper.js.map +7 -0
- package/dist/esm/plugins/filterable/index.js +6 -0
- package/dist/esm/plugins/filterable/index.js.map +7 -0
- package/dist/esm/plugins/filterable/useFilterableState.js +88 -0
- package/dist/esm/plugins/filterable/useFilterableState.js.map +7 -0
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +28 -0
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +97 -0
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
- package/dist/esm/plugins/grouping-grid/walkStrategy.js +47 -0
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
- package/dist/esm/plugins/index.js +39 -0
- package/dist/esm/plugins/index.js.map +7 -0
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +71 -0
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
- package/dist/esm/plugins/infinite-scrolling/index.js +6 -0
- package/dist/esm/plugins/infinite-scrolling/index.js.map +7 -0
- package/dist/esm/plugins/pagination/PaginationPlugin.js +63 -0
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
- package/dist/esm/plugins/pagination/components/Pagination.js +34 -0
- package/dist/esm/plugins/pagination/components/Pagination.js.map +7 -0
- package/dist/esm/plugins/pagination/components/Paginator.js +53 -0
- package/dist/esm/plugins/pagination/components/Paginator.js.map +7 -0
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js +39 -0
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
- package/dist/esm/plugins/pagination/helper.js +33 -0
- package/dist/esm/plugins/pagination/helper.js.map +7 -0
- package/dist/esm/plugins/pagination/index.js +6 -0
- package/dist/esm/plugins/pagination/index.js.map +7 -0
- package/dist/esm/plugins/pagination/usePaginationState.js +53 -0
- package/dist/esm/plugins/pagination/usePaginationState.js.map +7 -0
- package/dist/esm/plugins/resizable/ResizablePlugin.js +80 -0
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
- package/dist/esm/plugins/resizable/decorateResizable.js +27 -0
- package/dist/esm/plugins/resizable/decorateResizable.js.map +7 -0
- package/dist/esm/plugins/resizable/index.js +6 -0
- package/dist/esm/plugins/resizable/index.js.map +7 -0
- package/dist/esm/plugins/resizable/useResizeHandle.js +50 -0
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +7 -0
- package/dist/esm/plugins/resizable/utils.js +25 -0
- package/dist/esm/plugins/resizable/utils.js.map +7 -0
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +107 -0
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
- package/dist/esm/plugins/row-dnd/index.js +6 -0
- package/dist/esm/plugins/row-dnd/index.js.map +7 -0
- package/dist/esm/plugins/selectable/SelectablePlugin.js +137 -0
- package/dist/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
- package/dist/esm/plugins/selectable/addSelectableColumn.js +66 -0
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
- package/dist/esm/plugins/selectable/helper.js +25 -0
- package/dist/esm/plugins/selectable/helper.js.map +7 -0
- package/dist/esm/plugins/selectable/index.js +6 -0
- package/dist/esm/plugins/selectable/index.js.map +7 -0
- package/dist/esm/plugins/selectable/selectableFormatter.js +64 -0
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +7 -0
- package/dist/esm/plugins/selectable/useSelectableState.js +91 -0
- package/dist/esm/plugins/selectable/useSelectableState.js.map +7 -0
- package/dist/esm/plugins/sortable/SortablePlugin.js +69 -0
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +7 -0
- package/dist/esm/plugins/sortable/checkIfSortable.js +16 -0
- package/dist/esm/plugins/sortable/checkIfSortable.js.map +7 -0
- package/dist/esm/plugins/sortable/index.js +6 -0
- package/dist/esm/plugins/sortable/index.js.map +7 -0
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js +37 -0
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
- package/dist/esm/plugins/sortable/sortTree.js +15 -0
- package/dist/esm/plugins/sortable/sortTree.js.map +7 -0
- package/dist/esm/plugins/sortable/sorter.js +115 -0
- package/dist/esm/plugins/sortable/sorter.js.map +7 -0
- package/dist/esm/plugins/sortable/useSortableState.js +44 -0
- package/dist/esm/plugins/sortable/useSortableState.js.map +7 -0
- package/dist/esm/plugins/toolbar/RowRenderer.js +67 -0
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +7 -0
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js +29 -0
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js +76 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
- package/dist/esm/plugins/toolbar/index.js +6 -0
- package/dist/esm/plugins/toolbar/index.js.map +7 -0
- package/dist/esm/plugins/virtualization/AutoHeightList.js +42 -0
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +68 -0
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +230 -0
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +23 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
- package/dist/esm/plugins/virtualization/helper.js +6 -0
- package/dist/esm/plugins/virtualization/helper.js.map +7 -0
- package/dist/esm/plugins/virtualization/index.js +6 -0
- package/dist/esm/plugins/virtualization/index.js.map +7 -0
- package/dist/esm/renders/CellWithAddons.js +82 -0
- package/dist/esm/renders/CellWithAddons.js.map +7 -0
- package/dist/esm/renders/index.js +8 -0
- package/dist/esm/renders/index.js.map +7 -0
- package/dist/esm/renders/styled.js +49 -0
- package/dist/esm/renders/styled.js.map +7 -0
- package/dist/esm/rowSizes.js +22 -0
- package/dist/esm/rowSizes.js.map +7 -0
- package/dist/esm/utilities/DataGridUtilities.json +1315 -0
- package/dist/esm/utilities/getPluginsFromProps.js +43 -0
- package/dist/esm/utilities/getPluginsFromProps.js.map +7 -0
- package/dist/esm/utilities/getScrollbarSize.js +17 -0
- package/dist/esm/utilities/getScrollbarSize.js.map +7 -0
- package/dist/esm/utilities/normalizeData.js +20 -0
- package/dist/esm/utilities/normalizeData.js.map +7 -0
- package/dist/types/DSDataGrid.d.ts +863 -0
- package/dist/types/DataGridImpl.d.ts +13 -0
- package/dist/types/PaginatedDataGrid.d.ts +15 -0
- package/{types → dist/types}/blockNames.d.ts +0 -0
- package/dist/types/columns/IconColumn.d.ts +36 -0
- package/{types → dist/types}/columns/NumberColumn.d.ts +0 -0
- package/dist/types/components/BodyCell.d.ts +34 -0
- package/{types → dist/types}/components/BodyList.d.ts +0 -0
- package/dist/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
- package/dist/types/components/ColumnsOptionsMenuSection.d.ts +9 -0
- package/{types → dist/types}/components/EmptyState.d.ts +0 -0
- package/dist/types/components/HeaderCell.d.ts +19 -0
- package/{types → dist/types}/components/List.d.ts +0 -0
- package/{types → dist/types}/components/ListItem.d.ts +0 -0
- package/dist/types/components/NoResults.d.ts +8 -0
- package/dist/types/components/RowsLoader.d.ts +5 -0
- package/dist/types/components/Table.d.ts +8 -0
- package/dist/types/components/TableBody.d.ts +4 -0
- package/dist/types/components/TableHeader.d.ts +4 -0
- package/dist/types/components/footer/addOptionalFooterComponents.d.ts +7 -0
- package/dist/types/components/header/PrimaryControls.d.ts +6 -0
- package/dist/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
- package/{types → dist/types}/components/index.d.ts +0 -0
- package/{types → dist/types}/components/renderers/defaultClassedRenderers.d.ts +0 -0
- package/dist/types/components/renderers/index.d.ts +15 -0
- package/dist/types/components/renderers/renderRowsLoader.d.ts +2 -0
- package/{types → dist/types}/components/tableContext.d.ts +0 -0
- package/{types → dist/types}/components/tests/ColumnVisibilityMenu.test.d.ts +0 -0
- package/{types → dist/types}/defaultPlugins.d.ts +0 -0
- package/dist/types/index.d.ts +9 -0
- package/{types → dist/types}/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +0 -0
- package/dist/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
- package/{types → dist/types}/plugins/column-dnd/DndColumnsPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/column-dnd/decorateGridWithDndColumns.d.ts +0 -0
- package/dist/types/plugins/column-dnd/index.d.ts +1 -0
- package/{types → dist/types}/plugins/column-sizing/ColumnSizingPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/column-sizing/columnMeasurerTransformer.d.ts +0 -0
- package/{types → dist/types}/plugins/column-sizing/ext-points/decorateColumn.d.ts +0 -0
- package/{types → dist/types}/plugins/column-sizing/ext-points/getTableProps.d.ts +0 -0
- package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -0
- package/dist/types/plugins/column-sizing/index.d.ts +1 -0
- package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +18 -0
- package/{types → dist/types}/plugins/column-sizing/useStylesheetHelpers.d.ts +0 -0
- package/{types → dist/types}/plugins/column-sizing/utils.d.ts +0 -0
- package/{types → dist/types}/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +0 -0
- package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +4 -0
- package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +12 -0
- package/dist/types/plugins/custom-cell-renderer/index.d.ts +1 -0
- package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +12 -0
- package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +24 -0
- package/{types → dist/types}/plugins/editable/EditableComponents/index.d.ts +0 -0
- package/{types → dist/types}/plugins/editable/EditablePlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/editable/decorateEditable.d.ts +0 -0
- package/dist/types/plugins/editable/getEditorComponent.d.ts +7 -0
- package/dist/types/plugins/editable/index.d.ts +2 -0
- package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +29 -0
- package/{types → dist/types}/plugins/expandable-grid/ExpandablePlugin.d.ts +0 -0
- package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +12 -0
- package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +10 -0
- package/dist/types/plugins/expandable-grid/index.d.ts +2 -0
- package/{types → dist/types}/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +0 -0
- package/{types → dist/types}/plugins/expandable-grid/useExpandGridState.d.ts +0 -0
- package/{types → dist/types}/plugins/export-data/ExportDataPlugin.d.ts +0 -0
- package/dist/types/plugins/export-data/index.d.ts +1 -0
- package/{types → dist/types}/plugins/filterable/FilterablePlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/filterable/addFilterToColumn.d.ts +0 -0
- package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
- package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +31 -0
- package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +28 -0
- package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +31 -0
- package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +36 -0
- package/{types → dist/types}/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +0 -0
- package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -0
- package/dist/types/plugins/filterable/filterableFormatter.d.ts +12 -0
- package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +3 -0
- package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
- package/{types → dist/types}/plugins/filterable/helper.d.ts +0 -0
- package/dist/types/plugins/filterable/index.d.ts +1 -0
- package/{types → dist/types}/plugins/filterable/useFilterableState.d.ts +0 -0
- package/{types → dist/types}/plugins/grouping-by/GroupingByPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/grouping-grid/GroupingPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/grouping-grid/walkStrategy.d.ts +0 -0
- package/dist/types/plugins/index.d.ts +16 -0
- package/{types → dist/types}/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +0 -0
- package/dist/types/plugins/infinite-scrolling/index.d.ts +1 -0
- package/{types → dist/types}/plugins/pagination/PaginationPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/pagination/components/Pagination.d.ts +0 -0
- package/dist/types/plugins/pagination/components/Paginator.d.ts +10 -0
- package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +10 -0
- package/dist/types/plugins/pagination/helper.d.ts +18 -0
- package/dist/types/plugins/pagination/index.d.ts +1 -0
- package/{types → dist/types}/plugins/pagination/usePaginationState.d.ts +0 -0
- package/{types → dist/types}/plugins/resizable/ResizablePlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/resizable/decorateResizable.d.ts +0 -0
- package/dist/types/plugins/resizable/index.d.ts +1 -0
- package/{types → dist/types}/plugins/resizable/useResizeHandle.d.ts +0 -0
- package/{types → dist/types}/plugins/resizable/utils.d.ts +0 -0
- package/{types → dist/types}/plugins/row-dnd/DndRowsPlugin.d.ts +0 -0
- package/dist/types/plugins/row-dnd/index.d.ts +1 -0
- package/{types → dist/types}/plugins/selectable/SelectablePlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/selectable/addSelectableColumn.d.ts +0 -0
- package/{types → dist/types}/plugins/selectable/helper.d.ts +0 -0
- package/dist/types/plugins/selectable/index.d.ts +1 -0
- package/dist/types/plugins/selectable/selectableFormatter.d.ts +10 -0
- package/{types → dist/types}/plugins/selectable/useSelectableState.d.ts +0 -0
- package/{types → dist/types}/plugins/sortable/SortablePlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/sortable/checkIfSortable.d.ts +0 -0
- package/dist/types/plugins/sortable/index.d.ts +1 -0
- package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +7 -0
- package/dist/types/plugins/sortable/sortTree.d.ts +3 -0
- package/dist/types/plugins/sortable/sorter.d.ts +12 -0
- package/{types → dist/types}/plugins/sortable/useSortableState.d.ts +0 -0
- package/{types → dist/types}/plugins/toolbar/RowRenderer.d.ts +0 -0
- package/{types → dist/types}/plugins/toolbar/ToolbarPlugin.d.ts +0 -0
- package/{types → dist/types}/plugins/toolbar/ToolbarTrigger.d.ts +0 -0
- package/dist/types/plugins/toolbar/index.d.ts +1 -0
- package/dist/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
- package/{types → dist/types}/plugins/virtualization/VirtualizationPlugin.d.ts +0 -0
- package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +33 -0
- package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
- package/{types → dist/types}/plugins/virtualization/helper.d.ts +0 -0
- package/dist/types/plugins/virtualization/index.d.ts +1 -0
- package/{types → dist/types}/renders/CellWithAddons.d.ts +0 -0
- package/{types → dist/types}/renders/index.d.ts +0 -0
- package/dist/types/renders/styled.d.ts +4 -0
- package/{types → dist/types}/rowSizes.d.ts +0 -0
- package/{types → dist/types}/stories/datagrids-export.stories.d.ts +0 -0
- package/{types → dist/types}/stories/datagrids-selectable-multi.stories.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Columns.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Editable.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Export.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Filter-helper.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Filterable-Dates.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Filterable-State.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-RowDnd.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Selectable.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Sortable.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Toolbar.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrid-Virtualization.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrids-ColumnSizing.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrids-ConditionalPagination.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrids-Rows.test.d.ts +0 -0
- package/{types → dist/types}/tests/DataGrids.test.d.ts +0 -0
- package/dist/types/utilities/getPluginsFromProps.d.ts +2 -0
- package/{types → dist/types}/utilities/getScrollbarSize.d.ts +0 -0
- package/{types → dist/types}/utilities/normalizeData.d.ts +0 -0
- package/package.json +294 -287
- package/cjs/DSDataGrid.js +0 -639
- package/cjs/DataGridImpl.js +0 -169
- package/cjs/PaginatedDataGrid.js +0 -77
- package/cjs/blockNames.js +0 -11
- package/cjs/columns/IconColumn.js +0 -95
- package/cjs/columns/NumberColumn.js +0 -6
- package/cjs/components/BodyCell.js +0 -101
- package/cjs/components/BodyList.js +0 -54
- package/cjs/components/ColumnVisibilityMenuOption.js +0 -44
- package/cjs/components/ColumnsOptionsMenuSection.js +0 -49
- package/cjs/components/EmptyState.js +0 -51
- package/cjs/components/HeaderCell.js +0 -70
- package/cjs/components/List.js +0 -32
- package/cjs/components/ListItem.js +0 -44
- package/cjs/components/NoResults.js +0 -51
- package/cjs/components/RowsLoader.js +0 -22
- package/cjs/components/Table.js +0 -122
- package/cjs/components/TableBody.js +0 -69
- package/cjs/components/TableHeader.js +0 -37
- package/cjs/components/footer/addOptionalFooterComponents.js +0 -46
- package/cjs/components/header/PrimaryControls.js +0 -36
- package/cjs/components/header/addOptionalHeaderComponents.js +0 -47
- package/cjs/components/index.js +0 -17
- package/cjs/components/renderers/defaultClassedRenderers.js +0 -59
- package/cjs/components/renderers/index.js +0 -23
- package/cjs/components/renderers/renderRowsLoader.js +0 -18
- package/cjs/components/tableContext.js +0 -13
- package/cjs/defaultPlugins.js +0 -12
- package/cjs/index.js +0 -67
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -143
- package/cjs/plugins/body-header-scroll-sync/index.js +0 -9
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +0 -134
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +0 -30
- package/cjs/plugins/column-dnd/index.js +0 -9
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +0 -88
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +0 -74
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +0 -17
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +0 -63
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +0 -9
- package/cjs/plugins/column-sizing/index.js +0 -9
- package/cjs/plugins/column-sizing/useColumnSizeService.js +0 -162
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +0 -270
- package/cjs/plugins/column-sizing/utils.js +0 -45
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -18
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -72
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +0 -65
- package/cjs/plugins/custom-cell-renderer/index.js +0 -9
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +0 -71
- package/cjs/plugins/editable/EditableComponents/TextBox.js +0 -110
- package/cjs/plugins/editable/EditableComponents/index.js +0 -11
- package/cjs/plugins/editable/EditablePlugin.js +0 -123
- package/cjs/plugins/editable/decorateEditable.js +0 -122
- package/cjs/plugins/editable/getEditorComponent.js +0 -82
- package/cjs/plugins/editable/index.js +0 -13
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +0 -156
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +0 -243
- package/cjs/plugins/expandable-grid/ExpandedRow.js +0 -156
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +0 -54
- package/cjs/plugins/expandable-grid/index.js +0 -11
- package/cjs/plugins/expandable-grid/useExpandGridState.js +0 -79
- package/cjs/plugins/export-data/ExportDataPlugin.js +0 -168
- package/cjs/plugins/export-data/index.js +0 -12
- package/cjs/plugins/filterable/FilterablePlugin.js +0 -81
- package/cjs/plugins/filterable/addFilterToColumn.js +0 -31
- package/cjs/plugins/filterable/components/FilterableHeader.js +0 -120
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -157
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -107
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -195
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -174
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -7
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -18
- package/cjs/plugins/filterable/filterableFormatter.js +0 -63
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -74
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +0 -23
- package/cjs/plugins/filterable/helper.js +0 -120
- package/cjs/plugins/filterable/index.js +0 -9
- package/cjs/plugins/filterable/useFilterableState.js +0 -117
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +0 -40
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +0 -149
- package/cjs/plugins/grouping-grid/walkStrategy.js +0 -56
- package/cjs/plugins/index.js +0 -48
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -124
- package/cjs/plugins/infinite-scrolling/index.js +0 -9
- package/cjs/plugins/pagination/PaginationPlugin.js +0 -109
- package/cjs/plugins/pagination/components/Pagination.js +0 -44
- package/cjs/plugins/pagination/components/Paginator.js +0 -67
- package/cjs/plugins/pagination/components/PerPageDropdown.js +0 -80
- package/cjs/plugins/pagination/helper.js +0 -41
- package/cjs/plugins/pagination/index.js +0 -9
- package/cjs/plugins/pagination/usePaginationState.js +0 -74
- package/cjs/plugins/resizable/ResizablePlugin.js +0 -113
- package/cjs/plugins/resizable/decorateResizable.js +0 -60
- package/cjs/plugins/resizable/index.js +0 -9
- package/cjs/plugins/resizable/useResizeHandle.js +0 -73
- package/cjs/plugins/resizable/utils.js +0 -33
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +0 -115
- package/cjs/plugins/row-dnd/index.js +0 -9
- package/cjs/plugins/selectable/SelectablePlugin.js +0 -199
- package/cjs/plugins/selectable/addSelectableColumn.js +0 -93
- package/cjs/plugins/selectable/helper.js +0 -43
- package/cjs/plugins/selectable/index.js +0 -9
- package/cjs/plugins/selectable/selectableFormatter.js +0 -115
- package/cjs/plugins/selectable/useSelectableState.js +0 -143
- package/cjs/plugins/sortable/SortablePlugin.js +0 -109
- package/cjs/plugins/sortable/checkIfSortable.js +0 -22
- package/cjs/plugins/sortable/index.js +0 -9
- package/cjs/plugins/sortable/sortHeaderFormatter.js +0 -60
- package/cjs/plugins/sortable/sortTree.js +0 -51
- package/cjs/plugins/sortable/sorter.js +0 -176
- package/cjs/plugins/sortable/useSortableState.js +0 -99
- package/cjs/plugins/toolbar/RowRenderer.js +0 -97
- package/cjs/plugins/toolbar/ToolbarPlugin.js +0 -42
- package/cjs/plugins/toolbar/ToolbarTrigger.js +0 -86
- package/cjs/plugins/toolbar/index.js +0 -9
- package/cjs/plugins/virtualization/AutoHeightList.js +0 -59
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +0 -108
- package/cjs/plugins/virtualization/VirtualizedBody.js +0 -275
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +0 -30
- package/cjs/plugins/virtualization/helper.js +0 -7
- package/cjs/plugins/virtualization/index.js +0 -9
- package/cjs/renders/CellWithAddons.js +0 -63
- package/cjs/renders/index.js +0 -11
- package/cjs/renders/styled.js +0 -27
- package/cjs/rowSizes.js +0 -19
- package/cjs/utilities/getPluginsFromProps.js +0 -44
- package/cjs/utilities/getScrollbarSize.js +0 -27
- package/cjs/utilities/normalizeData.js +0 -39
- package/esm/DSDataGrid.js +0 -630
- package/esm/DataGridImpl.js +0 -160
- package/esm/PaginatedDataGrid.js +0 -68
- package/esm/blockNames.js +0 -5
- package/esm/columns/IconColumn.js +0 -87
- package/esm/columns/NumberColumn.js +0 -4
- package/esm/components/BodyCell.js +0 -92
- package/esm/components/BodyList.js +0 -45
- package/esm/components/ColumnVisibilityMenuOption.js +0 -40
- package/esm/components/ColumnsOptionsMenuSection.js +0 -43
- package/esm/components/EmptyState.js +0 -41
- package/esm/components/HeaderCell.js +0 -62
- package/esm/components/List.js +0 -26
- package/esm/components/ListItem.js +0 -38
- package/esm/components/NoResults.js +0 -43
- package/esm/components/RowsLoader.js +0 -15
- package/esm/components/Table.js +0 -115
- package/esm/components/TableBody.js +0 -61
- package/esm/components/TableHeader.js +0 -31
- package/esm/components/footer/addOptionalFooterComponents.js +0 -40
- package/esm/components/header/PrimaryControls.js +0 -30
- package/esm/components/header/addOptionalHeaderComponents.js +0 -40
- package/esm/components/index.js +0 -5
- package/esm/components/renderers/defaultClassedRenderers.js +0 -46
- package/esm/components/renderers/index.js +0 -18
- package/esm/components/renderers/renderRowsLoader.js +0 -10
- package/esm/components/tableContext.js +0 -5
- package/esm/defaultPlugins.js +0 -8
- package/esm/index.js +0 -27
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +0 -132
- package/esm/plugins/body-header-scroll-sync/index.js +0 -1
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +0 -125
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +0 -22
- package/esm/plugins/column-dnd/index.js +0 -1
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +0 -80
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +0 -66
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +0 -13
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +0 -55
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js +0 -7
- package/esm/plugins/column-sizing/index.js +0 -1
- package/esm/plugins/column-sizing/useColumnSizeService.js +0 -156
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +0 -245
- package/esm/plugins/column-sizing/utils.js +0 -37
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +0 -10
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +0 -63
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +0 -56
- package/esm/plugins/custom-cell-renderer/index.js +0 -1
- package/esm/plugins/editable/EditableComponents/ComboBox.js +0 -65
- package/esm/plugins/editable/EditableComponents/TextBox.js +0 -103
- package/esm/plugins/editable/EditableComponents/index.js +0 -2
- package/esm/plugins/editable/EditablePlugin.js +0 -115
- package/esm/plugins/editable/decorateEditable.js +0 -92
- package/esm/plugins/editable/getEditorComponent.js +0 -74
- package/esm/plugins/editable/index.js +0 -3
- package/esm/plugins/expandable-grid/ExpandableColumn.js +0 -146
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +0 -231
- package/esm/plugins/expandable-grid/ExpandedRow.js +0 -143
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +0 -46
- package/esm/plugins/expandable-grid/index.js +0 -2
- package/esm/plugins/expandable-grid/useExpandGridState.js +0 -75
- package/esm/plugins/export-data/ExportDataPlugin.js +0 -156
- package/esm/plugins/export-data/index.js +0 -1
- package/esm/plugins/filterable/FilterablePlugin.js +0 -73
- package/esm/plugins/filterable/addFilterToColumn.js +0 -23
- package/esm/plugins/filterable/components/FilterableHeader.js +0 -113
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +0 -148
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +0 -97
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +0 -184
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +0 -163
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +0 -3
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +0 -16
- package/esm/plugins/filterable/filterableFormatter.js +0 -57
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +0 -65
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +0 -17
- package/esm/plugins/filterable/helper.js +0 -106
- package/esm/plugins/filterable/index.js +0 -1
- package/esm/plugins/filterable/useFilterableState.js +0 -109
- package/esm/plugins/grouping-by/GroupingByPlugin.js +0 -32
- package/esm/plugins/grouping-grid/GroupingPlugin.js +0 -138
- package/esm/plugins/grouping-grid/walkStrategy.js +0 -52
- package/esm/plugins/index.js +0 -19
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +0 -114
- package/esm/plugins/infinite-scrolling/index.js +0 -1
- package/esm/plugins/pagination/PaginationPlugin.js +0 -96
- package/esm/plugins/pagination/components/Pagination.js +0 -36
- package/esm/plugins/pagination/components/Paginator.js +0 -59
- package/esm/plugins/pagination/components/PerPageDropdown.js +0 -71
- package/esm/plugins/pagination/helper.js +0 -36
- package/esm/plugins/pagination/index.js +0 -1
- package/esm/plugins/pagination/usePaginationState.js +0 -66
- package/esm/plugins/resizable/ResizablePlugin.js +0 -105
- package/esm/plugins/resizable/decorateResizable.js +0 -49
- package/esm/plugins/resizable/index.js +0 -1
- package/esm/plugins/resizable/useResizeHandle.js +0 -65
- package/esm/plugins/resizable/utils.js +0 -23
- package/esm/plugins/row-dnd/DndRowsPlugin.js +0 -105
- package/esm/plugins/row-dnd/index.js +0 -1
- package/esm/plugins/selectable/SelectablePlugin.js +0 -190
- package/esm/plugins/selectable/addSelectableColumn.js +0 -84
- package/esm/plugins/selectable/helper.js +0 -31
- package/esm/plugins/selectable/index.js +0 -1
- package/esm/plugins/selectable/selectableFormatter.js +0 -107
- package/esm/plugins/selectable/useSelectableState.js +0 -135
- package/esm/plugins/sortable/SortablePlugin.js +0 -82
- package/esm/plugins/sortable/checkIfSortable.js +0 -17
- package/esm/plugins/sortable/index.js +0 -1
- package/esm/plugins/sortable/sortHeaderFormatter.js +0 -53
- package/esm/plugins/sortable/sortTree.js +0 -26
- package/esm/plugins/sortable/sorter.js +0 -166
- package/esm/plugins/sortable/useSortableState.js +0 -71
- package/esm/plugins/toolbar/RowRenderer.js +0 -88
- package/esm/plugins/toolbar/ToolbarPlugin.js +0 -33
- package/esm/plugins/toolbar/ToolbarTrigger.js +0 -74
- package/esm/plugins/toolbar/index.js +0 -1
- package/esm/plugins/virtualization/AutoHeightList.js +0 -52
- package/esm/plugins/virtualization/VirtualizationPlugin.js +0 -97
- package/esm/plugins/virtualization/VirtualizedBody.js +0 -268
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +0 -28
- package/esm/plugins/virtualization/helper.js +0 -3
- package/esm/plugins/virtualization/index.js +0 -1
- package/esm/renders/CellWithAddons.js +0 -53
- package/esm/renders/index.js +0 -2
- package/esm/renders/styled.js +0 -16
- package/esm/rowSizes.js +0 -13
- package/esm/utilities/getPluginsFromProps.js +0 -42
- package/esm/utilities/getScrollbarSize.js +0 -23
- package/esm/utilities/normalizeData.js +0 -29
- package/types/DSDataGrid.d.ts +0 -863
- package/types/DataGridImpl.d.ts +0 -12
- package/types/PaginatedDataGrid.d.ts +0 -16
- package/types/columns/IconColumn.d.ts +0 -35
- package/types/components/BodyCell.d.ts +0 -33
- package/types/components/ColumnVisibilityMenuOption.d.ts +0 -15
- package/types/components/ColumnsOptionsMenuSection.d.ts +0 -8
- package/types/components/HeaderCell.d.ts +0 -19
- package/types/components/NoResults.d.ts +0 -8
- package/types/components/RowsLoader.d.ts +0 -5
- package/types/components/Table.d.ts +0 -13
- package/types/components/TableBody.d.ts +0 -9
- package/types/components/TableHeader.d.ts +0 -3
- package/types/components/footer/addOptionalFooterComponents.d.ts +0 -6
- package/types/components/header/PrimaryControls.d.ts +0 -5
- package/types/components/header/addOptionalHeaderComponents.d.ts +0 -11
- package/types/components/renderers/index.d.ts +0 -15
- package/types/components/renderers/renderRowsLoader.d.ts +0 -2
- package/types/index.d.ts +0 -10
- package/types/plugins/body-header-scroll-sync/index.d.ts +0 -1
- package/types/plugins/column-dnd/index.d.ts +0 -1
- package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +0 -1
- package/types/plugins/column-sizing/index.d.ts +0 -1
- package/types/plugins/column-sizing/useColumnSizeService.d.ts +0 -17
- package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -3
- package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -11
- package/types/plugins/custom-cell-renderer/index.d.ts +0 -1
- package/types/plugins/editable/EditableComponents/ComboBox.d.ts +0 -10
- package/types/plugins/editable/EditableComponents/TextBox.d.ts +0 -22
- package/types/plugins/editable/getEditorComponent.d.ts +0 -6
- package/types/plugins/editable/index.d.ts +0 -2
- package/types/plugins/expandable-grid/ExpandableColumn.d.ts +0 -28
- package/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -11
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -9
- package/types/plugins/expandable-grid/index.d.ts +0 -2
- package/types/plugins/export-data/index.d.ts +0 -1
- package/types/plugins/filterable/components/FilterableHeader.d.ts +0 -29
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -30
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -27
- package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +0 -30
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -35
- package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +0 -1
- package/types/plugins/filterable/filterableFormatter.d.ts +0 -11
- package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +0 -2
- package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +0 -2
- package/types/plugins/filterable/index.d.ts +0 -1
- package/types/plugins/index.d.ts +0 -16
- package/types/plugins/infinite-scrolling/index.d.ts +0 -1
- package/types/plugins/pagination/components/Paginator.d.ts +0 -9
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -9
- package/types/plugins/pagination/helper.d.ts +0 -17
- package/types/plugins/pagination/index.d.ts +0 -1
- package/types/plugins/resizable/index.d.ts +0 -1
- package/types/plugins/row-dnd/index.d.ts +0 -1
- package/types/plugins/selectable/index.d.ts +0 -1
- package/types/plugins/selectable/selectableFormatter.d.ts +0 -9
- package/types/plugins/sortable/index.d.ts +0 -1
- package/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -6
- package/types/plugins/sortable/sortTree.d.ts +0 -2
- package/types/plugins/sortable/sorter.d.ts +0 -12
- package/types/plugins/toolbar/index.d.ts +0 -1
- package/types/plugins/virtualization/AutoHeightList.d.ts +0 -3
- package/types/plugins/virtualization/VirtualizedBody.d.ts +0 -32
- package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +0 -8
- package/types/plugins/virtualization/index.d.ts +0 -1
- package/types/renders/styled.d.ts +0 -3
- package/types/utilities/getPluginsFromProps.d.ts +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var TextBox_exports = {};
|
|
29
|
+
__export(TextBox_exports, {
|
|
30
|
+
TextBox: () => TextBox,
|
|
31
|
+
default: () => TextBox_default
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_ds_form = require("@elliemae/ds-form");
|
|
36
|
+
class TextBox extends import_react.Component {
|
|
37
|
+
constructor(props) {
|
|
38
|
+
super(props);
|
|
39
|
+
this.inputRef = import_react.default.createRef();
|
|
40
|
+
this.state = { value: props.value };
|
|
41
|
+
}
|
|
42
|
+
componentDidMount() {
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
if (this.inputRef && this.inputRef.current) {
|
|
45
|
+
this.inputRef.current.focus();
|
|
46
|
+
}
|
|
47
|
+
}, 50);
|
|
48
|
+
}
|
|
49
|
+
handleKeyUp({ key, target: { value } }) {
|
|
50
|
+
const { onValue } = this.props;
|
|
51
|
+
if (key === "Enter") {
|
|
52
|
+
onValue(value);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
handleKeyDown(e) {
|
|
56
|
+
if (e.key === "Enter") {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleBlur(e) {
|
|
61
|
+
const { onValue } = this.props;
|
|
62
|
+
const {
|
|
63
|
+
target: { value }
|
|
64
|
+
} = e;
|
|
65
|
+
onValue(value);
|
|
66
|
+
}
|
|
67
|
+
handleChange({ target: { value } }) {
|
|
68
|
+
this.setState({ value });
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
const { value } = this.state;
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ds_form.DSTextBox, {
|
|
73
|
+
"data-testid": "ds-datagrids-editable-text-box",
|
|
74
|
+
...this.props,
|
|
75
|
+
innerRef: this.inputRef,
|
|
76
|
+
onBlur: this.handleBlur,
|
|
77
|
+
onChange: this.handleChange,
|
|
78
|
+
onClick: (e) => e.stopPropagation(),
|
|
79
|
+
onKeyUp: this.handleKeyUp,
|
|
80
|
+
onKeyDown: this.handleKeyDown,
|
|
81
|
+
value
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
TextBox.defaultProps = {
|
|
86
|
+
onValue: () => null
|
|
87
|
+
};
|
|
88
|
+
var TextBox_default = TextBox;
|
|
89
|
+
module.exports = __toCommonJS(TextBox_exports);
|
|
90
|
+
//# sourceMappingURL=TextBox.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/plugins/editable/EditableComponents/TextBox.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable react/prop-types */\n/* eslint-disable react/static-property-placement */\nimport React, { Component } from 'react';\nimport { DSTextBox } from '@elliemae/ds-form';\n\n// todo: redo with hooks\nclass TextBox extends Component {\n static defaultProps = {\n onValue: () => null,\n };\n\n constructor(props) {\n super(props);\n this.inputRef = React.createRef();\n this.state = { value: props.value };\n }\n\n componentDidMount() {\n setTimeout(() => {\n if (this.inputRef && this.inputRef.current) {\n this.inputRef.current.focus();\n }\n }, 50);\n }\n\n handleKeyUp({ key, target: { value } }) {\n const { onValue } = this.props;\n if (key === 'Enter') {\n onValue(value);\n }\n }\n\n handleKeyDown(e) {\n // PUI-2553 prevent form submit on `Enter` keypress\n if (e.key === 'Enter') {\n e.preventDefault();\n }\n }\n\n handleBlur(e) {\n const { onValue } = this.props;\n const {\n target: { value },\n } = e;\n onValue(value);\n }\n\n handleChange({ target: { value } }) {\n this.setState({ value });\n }\n\n render() {\n const { value } = this.state;\n return (\n <DSTextBox\n data-testid=\"ds-datagrids-editable-text-box\"\n {...this.props}\n innerRef={this.inputRef}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onClick={(e) => e.stopPropagation()}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n value={value}\n />\n );\n }\n}\n\nexport { TextBox };\nexport default TextBox;\n\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAAiC;AACjC,qBAA0B;AAG1B,sBAAsB,uBAAU;AAAA,EAK9B,YAAY,OAAO;AACjB,UAAM;AACN,SAAK,WAAW,qBAAM;AACtB,SAAK,QAAQ,EAAE,OAAO,MAAM;AAAA;AAAA,EAG9B,oBAAoB;AAClB,eAAW,MAAM;AACf,UAAI,KAAK,YAAY,KAAK,SAAS,SAAS;AAC1C,aAAK,SAAS,QAAQ;AAAA;AAAA,OAEvB;AAAA;AAAA,EAGL,YAAY,EAAE,KAAK,QAAQ,EAAE,WAAW;AACtC,UAAM,EAAE,YAAY,KAAK;AACzB,QAAI,QAAQ,SAAS;AACnB,cAAQ;AAAA;AAAA;AAAA,EAIZ,cAAc,GAAG;AAEf,QAAI,EAAE,QAAQ,SAAS;AACrB,QAAE;AAAA;AAAA;AAAA,EAIN,WAAW,GAAG;AACZ,UAAM,EAAE,YAAY,KAAK;AACzB,UAAM;AAAA,MACJ,QAAQ,EAAE;AAAA,QACR;AACJ,YAAQ;AAAA;AAAA,EAGV,aAAa,EAAE,QAAQ,EAAE,WAAW;AAClC,SAAK,SAAS,EAAE;AAAA;AAAA,EAGlB,SAAS;AACP,UAAM,EAAE,UAAU,KAAK;AACvB,WACE,mDAAC,0BAAD;AAAA,MACE,eAAY;AAAA,SACR,KAAK;AAAA,MACT,UAAU,KAAK;AAAA,MACf,QAAQ,KAAK;AAAA,MACb,UAAU,KAAK;AAAA,MACf,SAAS,CAAC,MAAM,EAAE;AAAA,MAClB,SAAS,KAAK;AAAA,MACd,WAAW,KAAK;AAAA,MAChB;AAAA;AAAA;AAAA;AAxDC,AADT,QACS,eAAe;AAAA,EACpB,SAAS,MAAM;AAAA;AA8DnB,IAAO,kBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var EditableComponents_exports = {};
|
|
29
|
+
__export(EditableComponents_exports, {
|
|
30
|
+
ComboBox: () => import_ComboBox.default,
|
|
31
|
+
TextBox: () => import_TextBox.default
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_ComboBox = __toESM(require("./ComboBox"));
|
|
35
|
+
var import_TextBox = __toESM(require("./TextBox"));
|
|
36
|
+
module.exports = __toCommonJS(EditableComponents_exports);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/plugins/editable/EditableComponents/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export { default as ComboBox } from './ComboBox';\nexport { default as TextBox } from './TextBox';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,sBAAoC;AACpC,qBAAmC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var EditablePlugin_exports = {};
|
|
29
|
+
__export(EditablePlugin_exports, {
|
|
30
|
+
EditablePlugin: () => EditablePlugin
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
34
|
+
var import_createInstancePlugin = require("@elliemae/ds-shared/createDataInstance/createInstancePlugin");
|
|
35
|
+
var import_decorateEditable = require("./decorateEditable");
|
|
36
|
+
const registerStateHook = (grid) => {
|
|
37
|
+
const { rowKey = "id", editingRows: editingRowsProp, onColumnRowEdited, onColumnRowEdit } = grid.props;
|
|
38
|
+
const [editingRows, setEditingRows] = (0, import_ds_utilities.useDerivedStateFromProps)(editingRowsProp || {});
|
|
39
|
+
const activateEdit = (editParams) => {
|
|
40
|
+
const { shouldRefocus } = grid.getInstance();
|
|
41
|
+
const { rowData, columnIndex } = editParams;
|
|
42
|
+
shouldRefocus.current = { forced: true, value: false };
|
|
43
|
+
setEditingRows((prevEditingRows) => {
|
|
44
|
+
onColumnRowEdit(editParams);
|
|
45
|
+
return (0, import_ds_utilities.toggleInObject)(prevEditingRows, rowData[rowKey], columnIndex);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const editValue = ({ value, rowData, property, rowIndex }) => {
|
|
49
|
+
setEditingRows({});
|
|
50
|
+
onColumnRowEdited({
|
|
51
|
+
value,
|
|
52
|
+
rowData,
|
|
53
|
+
property,
|
|
54
|
+
rowIndex
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
state: { editingRows },
|
|
59
|
+
actions: {
|
|
60
|
+
activateEdit,
|
|
61
|
+
editValue
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const decorateColumn = (column, grid) => {
|
|
66
|
+
const {
|
|
67
|
+
props: { isColumnEditable = (col) => col.editable, customHandlers }
|
|
68
|
+
} = grid;
|
|
69
|
+
const editableConfig = (0, import_decorateEditable.makeEditableConfig)(grid);
|
|
70
|
+
return isColumnEditable(column) ? (0, import_decorateEditable.addEditableToCell)({
|
|
71
|
+
column,
|
|
72
|
+
config: editableConfig,
|
|
73
|
+
handlers: customHandlers
|
|
74
|
+
}, grid) : column;
|
|
75
|
+
};
|
|
76
|
+
const EditablePlugin = (0, import_createInstancePlugin.createInstancePlugin)("editable", {
|
|
77
|
+
registerStateHook,
|
|
78
|
+
decorateColumn,
|
|
79
|
+
registerHotKeys(grid) {
|
|
80
|
+
return {
|
|
81
|
+
key: "enter",
|
|
82
|
+
handler: ({ rowIndex, cellIndex }) => {
|
|
83
|
+
const {
|
|
84
|
+
composedRows,
|
|
85
|
+
decoratedColumns,
|
|
86
|
+
actions: { activateEdit },
|
|
87
|
+
props: { isColumnEditable }
|
|
88
|
+
} = grid.getInstance();
|
|
89
|
+
if (!isColumnEditable(decoratedColumns[cellIndex]))
|
|
90
|
+
return;
|
|
91
|
+
const rows = composedRows.rows || composedRows;
|
|
92
|
+
const row = rows[rowIndex];
|
|
93
|
+
if (!row)
|
|
94
|
+
return;
|
|
95
|
+
activateEdit({
|
|
96
|
+
rowData: row,
|
|
97
|
+
columnIndex: cellIndex
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
options: {
|
|
101
|
+
keydown: false,
|
|
102
|
+
keyup: true
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
module.exports = __toCommonJS(EditablePlugin_exports);
|
|
108
|
+
//# sourceMappingURL=EditablePlugin.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/plugins/editable/EditablePlugin.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { useDerivedStateFromProps, toggleInObject } from '@elliemae/ds-utilities';\nimport { createInstancePlugin } from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';\nimport { addEditableToCell, makeEditableConfig } from './decorateEditable';\n\nconst registerStateHook = (grid) => {\n const { rowKey = 'id', editingRows: editingRowsProp, onColumnRowEdited, onColumnRowEdit } = grid.props;\n const [editingRows, setEditingRows] = useDerivedStateFromProps(editingRowsProp || {});\n\n const activateEdit = (editParams) => {\n const { shouldRefocus } = grid.getInstance();\n const { rowData, columnIndex } = editParams;\n shouldRefocus.current = { forced: true, value: false };\n setEditingRows((prevEditingRows) => {\n onColumnRowEdit(editParams);\n return toggleInObject(prevEditingRows, rowData[rowKey], columnIndex);\n });\n };\n\n const editValue = ({ value, rowData, property, rowIndex }) => {\n setEditingRows({});\n onColumnRowEdited({\n value,\n rowData,\n property,\n rowIndex,\n });\n };\n\n return {\n state: { editingRows },\n actions: {\n activateEdit,\n editValue,\n },\n };\n};\n\nconst decorateColumn = (column, grid) => {\n const {\n props: { isColumnEditable = (col) => col.editable, customHandlers },\n } = grid;\n\n const editableConfig = makeEditableConfig(grid);\n\n return isColumnEditable(column)\n ? addEditableToCell(\n {\n column,\n config: editableConfig,\n handlers: customHandlers,\n },\n grid,\n )\n : column;\n};\n\nexport const EditablePlugin = createInstancePlugin('editable', {\n registerStateHook,\n decorateColumn,\n registerHotKeys(grid) {\n return {\n key: 'enter',\n handler: ({ rowIndex, cellIndex }) => {\n const {\n composedRows,\n decoratedColumns,\n actions: { activateEdit },\n props: { isColumnEditable },\n } = grid.getInstance();\n\n if (!isColumnEditable(decoratedColumns[cellIndex])) return;\n\n const rows = composedRows.rows || composedRows;\n const row = rows[rowIndex];\n if (!row) return;\n\n activateEdit({\n rowData: row,\n columnIndex: cellIndex,\n });\n },\n options: {\n keydown: false,\n keyup: true,\n },\n };\n },\n});\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAyD;AACzD,kCAAqC;AACrC,8BAAsD;AAEtD,MAAM,oBAAoB,CAAC,SAAS;AAClC,QAAM,EAAE,SAAS,MAAM,aAAa,iBAAiB,mBAAmB,oBAAoB,KAAK;AACjG,QAAM,CAAC,aAAa,kBAAkB,kDAAyB,mBAAmB;AAElF,QAAM,eAAe,CAAC,eAAe;AACnC,UAAM,EAAE,kBAAkB,KAAK;AAC/B,UAAM,EAAE,SAAS,gBAAgB;AACjC,kBAAc,UAAU,EAAE,QAAQ,MAAM,OAAO;AAC/C,mBAAe,CAAC,oBAAoB;AAClC,sBAAgB;AAChB,aAAO,wCAAe,iBAAiB,QAAQ,SAAS;AAAA;AAAA;AAI5D,QAAM,YAAY,CAAC,EAAE,OAAO,SAAS,UAAU,eAAe;AAC5D,mBAAe;AACf,sBAAkB;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAIJ,SAAO;AAAA,IACL,OAAO,EAAE;AAAA,IACT,SAAS;AAAA,MACP;AAAA,MACA;AAAA;AAAA;AAAA;AAKN,MAAM,iBAAiB,CAAC,QAAQ,SAAS;AACvC,QAAM;AAAA,IACJ,OAAO,EAAE,mBAAmB,CAAC,QAAQ,IAAI,UAAU;AAAA,MACjD;AAEJ,QAAM,iBAAiB,gDAAmB;AAE1C,SAAO,iBAAiB,UACpB,+CACE;AAAA,IACE;AAAA,IACA,QAAQ;AAAA,IACR,UAAU;AAAA,KAEZ,QAEF;AAAA;AAGC,MAAM,iBAAiB,sDAAqB,YAAY;AAAA,EAC7D;AAAA,EACA;AAAA,EACA,gBAAgB,MAAM;AACpB,WAAO;AAAA,MACL,KAAK;AAAA,MACL,SAAS,CAAC,EAAE,UAAU,gBAAgB;AACpC,cAAM;AAAA,UACJ;AAAA,UACA;AAAA,UACA,SAAS,EAAE;AAAA,UACX,OAAO,EAAE;AAAA,YACP,KAAK;AAET,YAAI,CAAC,iBAAiB,iBAAiB;AAAa;AAEpD,cAAM,OAAO,aAAa,QAAQ;AAClC,cAAM,MAAM,KAAK;AACjB,YAAI,CAAC;AAAK;AAEV,qBAAa;AAAA,UACX,SAAS;AAAA,UACT,aAAa;AAAA;AAAA;AAAA,MAGjB,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var decorateEditable_exports = {};
|
|
29
|
+
__export(decorateEditable_exports, {
|
|
30
|
+
addEditableToCell: () => addEditableToCell,
|
|
31
|
+
makeEditableConfig: () => makeEditableConfig
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var edit = __toESM(require("react-edit"));
|
|
36
|
+
var import_ds_icons = require("@elliemae/ds-icons");
|
|
37
|
+
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
38
|
+
var import_initColumnDefinition = require("@elliemae/ds-shared/useDataGrid/initColumnDefinition");
|
|
39
|
+
var import_getEditorComponent = require("./getEditorComponent");
|
|
40
|
+
const makeEditableConfig = (grid) => edit.edit({
|
|
41
|
+
isEditing: ({ columnIndex, rowData, column = {}, ...rest }) => {
|
|
42
|
+
const {
|
|
43
|
+
state: { editingRows },
|
|
44
|
+
props: { rowKey }
|
|
45
|
+
} = grid.getInstance();
|
|
46
|
+
let isCustomEditing;
|
|
47
|
+
if (typeof column.isEditing === "function") {
|
|
48
|
+
isCustomEditing = column.isEditing({
|
|
49
|
+
columnIndex,
|
|
50
|
+
rowData,
|
|
51
|
+
column,
|
|
52
|
+
...rest
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return editingRows[rowData[rowKey]] === columnIndex || column.alwaysEditing || isCustomEditing;
|
|
56
|
+
},
|
|
57
|
+
onActivate: () => null,
|
|
58
|
+
onValue: (...args) => grid.getInstance().actions.editValue(...args)
|
|
59
|
+
});
|
|
60
|
+
const addEditableToCell = ({ column, config, handlers }, grid) => {
|
|
61
|
+
column.cell.transforms.push(config((0, import_getEditorComponent.getEditorComponent)(column.customEditor, handlers)));
|
|
62
|
+
column.cell.props.className = (0, import_ds_utilities.cx)(column.cell.props.className, `editable${column.customEditor ? " customEditor" : ""}`);
|
|
63
|
+
return (0, import_initColumnDefinition.appendCellFormatter)([
|
|
64
|
+
(value, extraParams) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
65
|
+
onClick: (e) => {
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
grid.getInstance().actions.activateEdit(extraParams);
|
|
68
|
+
},
|
|
69
|
+
onKeyUp: (e) => {
|
|
70
|
+
e.stopPropagation();
|
|
71
|
+
if (e.keyCode === 33) {
|
|
72
|
+
grid.getInstance().actions.activateEdit(extraParams);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
role: "gridcell",
|
|
76
|
+
tabIndex: 0
|
|
77
|
+
}, value, /* @__PURE__ */ import_react.default.createElement(import_ds_icons.EditPencil, {
|
|
78
|
+
className: "edit-pencil"
|
|
79
|
+
}), /* @__PURE__ */ import_react.default.createElement("span", {
|
|
80
|
+
className: "edit-separator"
|
|
81
|
+
}, " ")))
|
|
82
|
+
], column);
|
|
83
|
+
};
|
|
84
|
+
module.exports = __toCommonJS(decorateEditable_exports);
|
|
85
|
+
//# sourceMappingURL=decorateEditable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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/useDataGrid/initColumnDefinition';\nimport { getEditorComponent } from './getEditorComponent';\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;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,WAAsB;AACtB,sBAA2B;AAC3B,0BAAmB;AACnB,kCAAoC;AACpC,gCAAmC;AAEnC,MAAM,qBAAqB,CAAC,SAC1B,KAAK,KAAK;AAAA,EACR,WAAW,CAAC,EAAE,aAAa,SAAS,SAAS,OAAO,WAAW;AAC7D,UAAM;AAAA,MACJ,OAAO,EAAE;AAAA,MACT,OAAO,EAAE;AAAA,QACP,KAAK;AACT,QAAI;AAEJ,QAAI,OAAO,OAAO,cAAc,YAAY;AAC1C,wBAAkB,OAAO,UAAU;AAAA,QACjC;AAAA,QACA;AAAA,QACA;AAAA,WACG;AAAA;AAAA;AAGP,WAAO,YAAY,QAAQ,aAAa,eAAe,OAAO,iBAAiB;AAAA;AAAA,EAEjF,YAAY,MAAM;AAAA,EAClB,SAAS,IAAI,SAAS,KAAK,cAAc,QAAQ,UAAU,GAAG;AAAA;AAElE,MAAM,oBAAoB,CAAC,EAAE,QAAQ,QAAQ,YAAY,SAAS;AAChE,SAAO,KAAK,WAAW,KAAK,OAAO,kDAAmB,OAAO,cAAc;AAC3E,SAAO,KAAK,MAAM,YAAY,4BAC5B,OAAO,KAAK,MAAM,WAClB,WAAW,OAAO,eAAe,kBAAkB;AAErD,SAAO,qDACL;AAAA,IACE,CAAC,OAAO,gBACN,wFACE,mDAAC,OAAD;AAAA,MACE,SAAS,CAAC,MAAM;AACd,UAAE;AACF,aAAK,cAAc,QAAQ,aAAa;AAAA;AAAA,MAE1C,SAAS,CAAC,MAAM;AACd,UAAE;AACF,YAAI,EAAE,YAAY,IAAI;AACpB,eAAK,cAAc,QAAQ,aAAa;AAAA;AAAA;AAAA,MAG5C,MAAK;AAAA,MACL,UAAU;AAAA,OAET,OACD,mDAAC,4BAAD;AAAA,MAAY,WAAU;AAAA,QACtB,mDAAC,QAAD;AAAA,MAAM,WAAU;AAAA,OAAiB;AAAA,KAKzC;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var getEditorComponent_exports = {};
|
|
29
|
+
__export(getEditorComponent_exports, {
|
|
30
|
+
default: () => getEditorComponent_default,
|
|
31
|
+
getEditorComponent: () => getEditorComponent
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_EditableComponents = require("./EditableComponents");
|
|
36
|
+
const components = {
|
|
37
|
+
DSComboBox: import_EditableComponents.ComboBox,
|
|
38
|
+
DSTextBox: import_EditableComponents.TextBox
|
|
39
|
+
};
|
|
40
|
+
const getEditorComponent = (editorComponent = {}, handlers) => ({
|
|
41
|
+
value,
|
|
42
|
+
onValue,
|
|
43
|
+
extraParameters
|
|
44
|
+
}) => {
|
|
45
|
+
if (typeof editorComponent === "function") {
|
|
46
|
+
return editorComponent({
|
|
47
|
+
value,
|
|
48
|
+
onValue,
|
|
49
|
+
customHandlers: handlers,
|
|
50
|
+
...extraParameters
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const { type = "DSTextBox", ...restEditorProps } = editorComponent;
|
|
54
|
+
const Component = components[type];
|
|
55
|
+
if (type === "DSComboBox") {
|
|
56
|
+
const maxOptions = restEditorProps?.options?.length || 100;
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
58
|
+
style: { zIndex: 0 }
|
|
59
|
+
}, /* @__PURE__ */ import_react.default.createElement(Component, {
|
|
60
|
+
autoFocus: true,
|
|
61
|
+
onValue,
|
|
62
|
+
value,
|
|
63
|
+
maxOptions,
|
|
64
|
+
...restEditorProps
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
return /* @__PURE__ */ import_react.default.createElement(Component, {
|
|
68
|
+
autoFocus: true,
|
|
69
|
+
onValue,
|
|
70
|
+
value,
|
|
71
|
+
...restEditorProps
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
var getEditorComponent_default = getEditorComponent;
|
|
75
|
+
module.exports = __toCommonJS(getEditorComponent_exports);
|
|
76
|
+
//# sourceMappingURL=getEditorComponent.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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';\n\nconst components = {\n DSComboBox: ComboBox,\n DSTextBox: TextBox,\n};\n\nconst getEditorComponent = (editorComponent = {}, handlers) => ({\n value,\n onValue,\n extraParameters,\n}) => {\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\n autoFocus\n onValue={onValue}\n value={value}\n maxOptions={maxOptions}\n {...restEditorProps}\n />\n </div>\n );\n }\n\n return (\n <Component autoFocus onValue={onValue} value={value} {...restEditorProps} />\n );\n};\n\nexport { getEditorComponent };\nexport default getEditorComponent;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,gCAAkC;AAElC,MAAM,aAAa;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AAAA;AAGb,MAAM,qBAAqB,CAAC,kBAAkB,IAAI,aAAa,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,MAAI,OAAO,oBAAoB,YAAY;AACzC,WAAO,gBAAgB;AAAA,MACrB;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,SACb;AAAA;AAAA;AAIP,QAAM,EAAE,OAAO,gBAAgB,oBAAoB;AACnD,QAAM,YAAY,WAAW;AAE7B,MAAI,SAAS,cAAc;AAEzB,UAAM,aAAa,iBAAiB,SAAS,UAAU;AACvD,WACE,mDAAC,OAAD;AAAA,MAAK,OAAO,EAAE,QAAQ;AAAA,OACpB,mDAAC,WAAD;AAAA,MACE,WAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,SACI;AAAA;AAAA;AAMZ,SACE,mDAAC,WAAD;AAAA,IAAW,WAAS;AAAA,IAAC;AAAA,IAAkB;AAAA,OAAkB;AAAA;AAAA;AAK7D,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var editable_exports = {};
|
|
29
|
+
__export(editable_exports, {
|
|
30
|
+
ComboBox: () => import_EditableComponents.ComboBox,
|
|
31
|
+
EditablePlugin: () => import_EditablePlugin.EditablePlugin,
|
|
32
|
+
TextBox: () => import_EditableComponents.TextBox
|
|
33
|
+
});
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_EditablePlugin = require("./EditablePlugin");
|
|
36
|
+
var import_EditableComponents = require("./EditableComponents");
|
|
37
|
+
module.exports = __toCommonJS(editable_exports);
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/plugins/editable/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export { EditablePlugin } from './EditablePlugin';\nexport { ComboBox, TextBox } from './EditableComponents';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,4BAA+B;AAC/B,gCAAkC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var ExpandableColumn_exports = {};
|
|
29
|
+
__export(ExpandableColumn_exports, {
|
|
30
|
+
ExpandableColumn: () => ExpandableColumn,
|
|
31
|
+
default: () => ExpandableColumn_default
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_ds_icons = require("@elliemae/ds-icons");
|
|
36
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
|
+
var import_ds_button = require("@elliemae/ds-button");
|
|
38
|
+
var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
|
|
39
|
+
var import_blockNames = require("../../blockNames");
|
|
40
|
+
var import_rowSizes = require("../../rowSizes");
|
|
41
|
+
const blockName = `${import_blockNames.dataGridBlockName}-expandable-column`;
|
|
42
|
+
const ExpandableColumnWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
|
|
43
|
+
const LabelDescriptionWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "label-description-wrapper");
|
|
44
|
+
const Label = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "label");
|
|
45
|
+
const Description = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "description");
|
|
46
|
+
const ExtraColumnData = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "extra-column-data");
|
|
47
|
+
const ExpandableMasterWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-master-wrapper`);
|
|
48
|
+
const ExpandableDetailsWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-details-wrapper`);
|
|
49
|
+
function ExpandableColumnCell({ label, description, isExpanded, expandableDetails, extraData, onToggleExpand }) {
|
|
50
|
+
const ref = (0, import_react.useRef)();
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement(ExpandableColumnWrapper, {
|
|
52
|
+
ref,
|
|
53
|
+
tabindex: 0
|
|
54
|
+
}, /* @__PURE__ */ import_react.default.createElement(ExpandableMasterWrapper, {
|
|
55
|
+
style: { height: import_rowSizes.RowSizes.extend }
|
|
56
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_ds_button.DSButton, {
|
|
57
|
+
buttonType: "text",
|
|
58
|
+
className: "expandable-arrow",
|
|
59
|
+
icon: isExpanded ? /* @__PURE__ */ import_react.default.createElement(import_ds_icons.ArrowheadDown, null) : /* @__PURE__ */ import_react.default.createElement(import_ds_icons.ArrowheadRight, null),
|
|
60
|
+
onClick: (e) => {
|
|
61
|
+
onToggleExpand(e);
|
|
62
|
+
if (ref && ref.current) {
|
|
63
|
+
ref.current.focus();
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
size: "s"
|
|
67
|
+
}), /* @__PURE__ */ import_react.default.createElement(LabelDescriptionWrapper, null, /* @__PURE__ */ import_react.default.createElement(Label, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
|
|
68
|
+
value: label
|
|
69
|
+
})), /* @__PURE__ */ import_react.default.createElement(Description, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
|
|
70
|
+
value: description
|
|
71
|
+
}))), /* @__PURE__ */ import_react.default.createElement(ExtraColumnData, null, extraData)), isExpanded && /* @__PURE__ */ import_react.default.createElement(ExpandableDetailsWrapper, null, expandableDetails));
|
|
72
|
+
}
|
|
73
|
+
const expandableColumnRenderer = ({ renderRowLabel, renderRowDescription, renderExtraData }) => (value, { rowData, isExpanded }, grid) => {
|
|
74
|
+
const {
|
|
75
|
+
props: { renderExpandedDetails },
|
|
76
|
+
actions: { toggleExpand }
|
|
77
|
+
} = grid.getInstance();
|
|
78
|
+
const expandableDetails = renderExpandedDetails({ rowData });
|
|
79
|
+
return /* @__PURE__ */ import_react.default.createElement(ExpandableColumnCell, {
|
|
80
|
+
description: renderRowDescription({ rowData }),
|
|
81
|
+
expandableDetails,
|
|
82
|
+
extraData: renderExtraData({ rowData }),
|
|
83
|
+
isExpanded,
|
|
84
|
+
label: renderRowLabel({ rowData }),
|
|
85
|
+
onToggleExpand: () => toggleExpand(rowData)
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const noop = () => null;
|
|
89
|
+
const ExpandableColumn = ({
|
|
90
|
+
property,
|
|
91
|
+
label,
|
|
92
|
+
renderRowLabel = () => "----",
|
|
93
|
+
renderRowDescription = noop,
|
|
94
|
+
renderExtraData = noop,
|
|
95
|
+
width,
|
|
96
|
+
resizable,
|
|
97
|
+
sortable,
|
|
98
|
+
searchable,
|
|
99
|
+
customRenderer,
|
|
100
|
+
...rest
|
|
101
|
+
}) => {
|
|
102
|
+
return {
|
|
103
|
+
...rest,
|
|
104
|
+
label,
|
|
105
|
+
property,
|
|
106
|
+
cell: {
|
|
107
|
+
formatters: [
|
|
108
|
+
expandableColumnRenderer({
|
|
109
|
+
renderRowLabel,
|
|
110
|
+
renderRowDescription,
|
|
111
|
+
renderExtraData
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
width: width || "50%",
|
|
116
|
+
expandableColumn: true,
|
|
117
|
+
resizable,
|
|
118
|
+
sortable,
|
|
119
|
+
searchable
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
var ExpandableColumn_default = ExpandableColumn;
|
|
123
|
+
module.exports = __toCommonJS(ExpandableColumn_exports);
|
|
124
|
+
//# sourceMappingURL=ExpandableColumn.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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';\nimport { RowSizes } from '../../rowSizes';\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\nfunction 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 return {\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};\n\nexport default ExpandableColumn;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAA8B;AAC9B,sBAA8C;AAC9C,2BAAkC;AAClC,uBAAyB;AACzB,uCAAuC;AACvC,wBAAkC;AAClC,sBAAyB;AAEzB,MAAM,YAAY,GAAG;AAGrB,MAAM,0BAA0B,4CAAkB,OAAO;AACzD,MAAM,0BAA0B,4CAAkB,OAAO,WAAW;AACpE,MAAM,QAAQ,4CAAkB,QAAQ,WAAW;AACnD,MAAM,cAAc,4CAAkB,QAAQ,WAAW;AACzD,MAAM,kBAAkB,4CAAkB,OAAO,WAAW;AAC5D,MAAM,0BAA0B,4CAAkB,OAAO,GAAG;AAC5D,MAAM,2BAA2B,4CAAkB,OAAO,GAAG;AAE7D,8BAA8B,EAAE,OAAO,aAAa,YAAY,mBAAmB,WAAW,kBAAkB;AAC9G,QAAM,MAAM;AACZ,SACE,mDAAC,yBAAD;AAAA,IAAyB;AAAA,IAAU,UAAU;AAAA,KAC3C,mDAAC,yBAAD;AAAA,IAAyB,OAAO,EAAE,QAAQ,yBAAS;AAAA,KACjD,mDAAC,2BAAD;AAAA,IACE,YAAW;AAAA,IACX,WAAU;AAAA,IACV,MAAM,aAAa,mDAAC,+BAAD,QAAoB,mDAAC,gCAAD;AAAA,IACvC,SAAS,CAAC,MAAM;AACd,qBAAe;AACf,UAAI,OAAO,IAAI,SAAS;AACtB,YAAI,QAAQ;AAAA;AAAA;AAAA,IAGhB,MAAK;AAAA,MAEP,mDAAC,yBAAD,MACE,mDAAC,OAAD,MACE,mDAAC,yDAAD;AAAA,IAAwB,OAAO;AAAA,OAEjC,mDAAC,aAAD,MACE,mDAAC,yDAAD;AAAA,IAAwB,OAAO;AAAA,QAGnC,mDAAC,iBAAD,MAAkB,aAEnB,cAAc,mDAAC,0BAAD,MAA2B;AAAA;AAKhD,MAAM,2BACJ,CAAC,EAAE,gBAAgB,sBAAsB,sBACzC,CAAC,OAAO,EAAE,SAAS,cAAc,SAAS;AACxC,QAAM;AAAA,IACJ,OAAO,EAAE;AAAA,IACT,SAAS,EAAE;AAAA,MACT,KAAK;AAET,QAAM,oBAAoB,sBAAsB,EAAE;AAClD,SACE,mDAAC,sBAAD;AAAA,IACE,aAAa,qBAAqB,EAAE;AAAA,IACpC;AAAA,IACA,WAAW,gBAAgB,EAAE;AAAA,IAC7B;AAAA,IACA,OAAO,eAAe,EAAE;AAAA,IACxB,gBAAgB,MAAM,aAAa;AAAA;AAAA;AAI3C,MAAM,OAAO,MAAM;AACZ,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,iBAAiB,MAAM;AAAA,EACvB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MACC;AACJ,SAAO;AAAA,OACF;AAAA,IACH;AAAA,IACA;AAAA,IACA,MAAM;AAAA,MACJ,YAAY;AAAA,QACV,yBAAyB;AAAA,UACvB;AAAA,UACA;AAAA,UACA;AAAA;AAAA;AAAA;AAAA,IAIN,OAAO,SAAS;AAAA,IAChB,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAIJ,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|