@elliemae/ds-datagrids 3.16.0-rc.5 → 3.16.0-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/DSDataGrid.js +145 -2
- package/dist/cjs/DSDataGrid.js.map +2 -2
- package/dist/cjs/DataGridImpl.js +15 -11
- package/dist/cjs/DataGridImpl.js.map +2 -2
- package/dist/cjs/PaginatedDataGrid.js +13 -9
- package/dist/cjs/PaginatedDataGrid.js.map +2 -2
- package/dist/cjs/blockNames.js +4 -0
- package/dist/cjs/blockNames.js.map +1 -1
- package/dist/cjs/columns/IconColumn.js +4 -0
- package/dist/cjs/columns/IconColumn.js.map +1 -1
- package/dist/cjs/columns/NumberColumn.js +4 -0
- package/dist/cjs/columns/NumberColumn.js.map +1 -1
- package/dist/cjs/components/BodyCell.js +6 -0
- package/dist/cjs/components/BodyCell.js.map +1 -1
- package/dist/cjs/components/BodyList.js +7 -5
- package/dist/cjs/components/BodyList.js.map +2 -2
- package/dist/cjs/components/ColumnVisibilityMenuOption.js +5 -6
- package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +2 -2
- package/dist/cjs/components/ColumnsOptionsMenuSection.js +7 -11
- package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +2 -2
- package/dist/cjs/components/EmptyState.js +9 -6
- package/dist/cjs/components/EmptyState.js.map +3 -3
- package/dist/cjs/components/HeaderCell.js +4 -0
- package/dist/cjs/components/HeaderCell.js.map +1 -1
- package/dist/cjs/components/List.js +6 -2
- package/dist/cjs/components/List.js.map +2 -2
- package/dist/cjs/components/ListItem.js +7 -6
- package/dist/cjs/components/ListItem.js.map +2 -2
- package/dist/cjs/components/NoResults.js +8 -10
- package/dist/cjs/components/NoResults.js.map +2 -2
- package/dist/cjs/components/RowsLoader.js +5 -1
- package/dist/cjs/components/RowsLoader.js.map +2 -2
- package/dist/cjs/components/Table.js +9 -5
- package/dist/cjs/components/Table.js.map +2 -2
- package/dist/cjs/components/TableBody.js +6 -7
- package/dist/cjs/components/TableBody.js.map +2 -2
- package/dist/cjs/components/TableHeader.js +5 -1
- package/dist/cjs/components/TableHeader.js.map +2 -2
- package/dist/cjs/components/footer/addOptionalFooterComponents.js +5 -1
- package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +2 -2
- package/dist/cjs/components/header/PrimaryControls.js +4 -0
- package/dist/cjs/components/header/PrimaryControls.js.map +1 -1
- package/dist/cjs/components/header/addOptionalHeaderComponents.js +4 -0
- package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +1 -1
- package/dist/cjs/components/index.js +9 -5
- package/dist/cjs/components/index.js.map +2 -2
- package/dist/cjs/components/renderers/defaultClassedRenderers.js +20 -36
- package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +2 -2
- package/dist/cjs/components/renderers/index.js +6 -2
- package/dist/cjs/components/renderers/index.js.map +2 -2
- package/dist/cjs/components/renderers/renderRowsLoader.js +6 -4
- package/dist/cjs/components/renderers/renderRowsLoader.js.map +2 -2
- package/dist/cjs/components/tableContext.js +4 -0
- package/dist/cjs/components/tableContext.js.map +1 -1
- package/dist/cjs/defaultPlugins.js +9 -10
- package/dist/cjs/defaultPlugins.js.map +2 -2
- package/dist/cjs/index.js +13 -9
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +26 -18
- package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
- package/dist/cjs/plugins/body-header-scroll-sync/index.js +5 -1
- package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +2 -2
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +5 -1
- package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +2 -2
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +4 -0
- package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +1 -1
- package/dist/cjs/plugins/column-dnd/index.js +5 -1
- package/dist/cjs/plugins/column-dnd/index.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +8 -4
- package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +4 -0
- package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +5 -1
- package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +5 -1
- package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +4 -0
- package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +1 -1
- package/dist/cjs/plugins/column-sizing/index.js +5 -1
- package/dist/cjs/plugins/column-sizing/index.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +11 -26
- package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +7 -2
- package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +2 -2
- package/dist/cjs/plugins/column-sizing/utils.js +4 -0
- package/dist/cjs/plugins/column-sizing/utils.js.map +1 -1
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +5 -1
- package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +2 -2
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +6 -1
- package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +2 -2
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +5 -1
- package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +2 -2
- package/dist/cjs/plugins/custom-cell-renderer/index.js +5 -1
- package/dist/cjs/plugins/custom-cell-renderer/index.js.map +2 -2
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +4 -0
- package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +2 -2
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +4 -0
- package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +2 -2
- package/dist/cjs/plugins/editable/EditableComponents/index.js +6 -2
- package/dist/cjs/plugins/editable/EditableComponents/index.js.map +2 -2
- package/dist/cjs/plugins/editable/EditablePlugin.js +5 -1
- package/dist/cjs/plugins/editable/EditablePlugin.js.map +2 -2
- package/dist/cjs/plugins/editable/decorateEditable.js +5 -1
- package/dist/cjs/plugins/editable/decorateEditable.js.map +2 -2
- package/dist/cjs/plugins/editable/getEditorComponent.js +7 -16
- package/dist/cjs/plugins/editable/getEditorComponent.js.map +2 -2
- package/dist/cjs/plugins/editable/index.js +6 -2
- package/dist/cjs/plugins/editable/index.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +27 -25
- package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +9 -5
- package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +10 -6
- package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +16 -8
- package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/index.js +6 -2
- package/dist/cjs/plugins/expandable-grid/index.js.map +2 -2
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +4 -0
- package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +2 -2
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js +4 -0
- package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +1 -1
- package/dist/cjs/plugins/export-data/index.js +5 -1
- package/dist/cjs/plugins/export-data/index.js.map +2 -2
- package/dist/cjs/plugins/filterable/FilterablePlugin.js +7 -3
- package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +2 -2
- package/dist/cjs/plugins/filterable/addFilterToColumn.js +5 -1
- package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js +5 -1
- package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +50 -47
- package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +50 -48
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +48 -45
- package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +7 -3
- package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +4 -0
- package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +1 -1
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +9 -7
- package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
- package/dist/cjs/plugins/filterable/filterableFormatter.js +33 -37
- package/dist/cjs/plugins/filterable/filterableFormatter.js.map +2 -2
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +6 -4
- package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +4 -0
- package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
- package/dist/cjs/plugins/filterable/helper.js +4 -0
- package/dist/cjs/plugins/filterable/helper.js.map +2 -2
- package/dist/cjs/plugins/filterable/index.js +5 -1
- package/dist/cjs/plugins/filterable/index.js.map +2 -2
- package/dist/cjs/plugins/filterable/useFilterableState.js +7 -7
- package/dist/cjs/plugins/filterable/useFilterableState.js.map +2 -2
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +4 -0
- package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +19 -11
- package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js +4 -0
- package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +2 -2
- package/dist/cjs/plugins/index.js +20 -16
- package/dist/cjs/plugins/index.js.map +2 -2
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +4 -0
- package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
- package/dist/cjs/plugins/infinite-scrolling/index.js +5 -1
- package/dist/cjs/plugins/infinite-scrolling/index.js.map +2 -2
- package/dist/cjs/plugins/pagination/PaginationPlugin.js +9 -4
- package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +2 -2
- package/dist/cjs/plugins/pagination/components/Pagination.js +9 -24
- package/dist/cjs/plugins/pagination/components/Pagination.js.map +2 -2
- package/dist/cjs/plugins/pagination/components/Paginator.js +15 -10
- package/dist/cjs/plugins/pagination/components/Paginator.js.map +2 -2
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +6 -2
- package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +2 -2
- package/dist/cjs/plugins/pagination/helper.js +4 -0
- package/dist/cjs/plugins/pagination/helper.js.map +2 -2
- package/dist/cjs/plugins/pagination/index.js +5 -1
- package/dist/cjs/plugins/pagination/index.js.map +2 -2
- package/dist/cjs/plugins/pagination/usePaginationState.js +5 -1
- package/dist/cjs/plugins/pagination/usePaginationState.js.map +2 -2
- package/dist/cjs/plugins/resizable/ResizablePlugin.js +5 -1
- package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +2 -2
- package/dist/cjs/plugins/resizable/decorateResizable.js +8 -2
- package/dist/cjs/plugins/resizable/decorateResizable.js.map +2 -2
- package/dist/cjs/plugins/resizable/index.js +5 -1
- package/dist/cjs/plugins/resizable/index.js.map +2 -2
- package/dist/cjs/plugins/resizable/useResizeHandle.js +10 -13
- package/dist/cjs/plugins/resizable/useResizeHandle.js.map +2 -2
- package/dist/cjs/plugins/resizable/utils.js +4 -0
- package/dist/cjs/plugins/resizable/utils.js.map +1 -1
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +5 -0
- package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
- package/dist/cjs/plugins/row-dnd/index.js +5 -1
- package/dist/cjs/plugins/row-dnd/index.js.map +2 -2
- package/dist/cjs/plugins/selectable/SelectablePlugin.js +7 -3
- package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +2 -2
- package/dist/cjs/plugins/selectable/addSelectableColumn.js +7 -1
- package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +2 -2
- package/dist/cjs/plugins/selectable/helper.js +4 -0
- package/dist/cjs/plugins/selectable/helper.js.map +1 -1
- package/dist/cjs/plugins/selectable/index.js +5 -1
- package/dist/cjs/plugins/selectable/index.js.map +2 -2
- package/dist/cjs/plugins/selectable/selectableFormatter.js +5 -1
- package/dist/cjs/plugins/selectable/selectableFormatter.js.map +2 -2
- package/dist/cjs/plugins/selectable/useSelectableState.js +7 -1
- package/dist/cjs/plugins/selectable/useSelectableState.js.map +2 -2
- package/dist/cjs/plugins/sortable/SortablePlugin.js +7 -3
- package/dist/cjs/plugins/sortable/SortablePlugin.js.map +2 -2
- package/dist/cjs/plugins/sortable/checkIfSortable.js +4 -0
- package/dist/cjs/plugins/sortable/checkIfSortable.js.map +1 -1
- package/dist/cjs/plugins/sortable/index.js +5 -1
- package/dist/cjs/plugins/sortable/index.js.map +2 -2
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +4 -0
- package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +1 -1
- package/dist/cjs/plugins/sortable/sortTree.js +4 -0
- package/dist/cjs/plugins/sortable/sortTree.js.map +2 -2
- package/dist/cjs/plugins/sortable/sorter.js +5 -0
- package/dist/cjs/plugins/sortable/sorter.js.map +1 -1
- package/dist/cjs/plugins/sortable/useSortableState.js +6 -4
- package/dist/cjs/plugins/sortable/useSortableState.js.map +2 -2
- package/dist/cjs/plugins/toolbar/RowRenderer.js +7 -2
- package/dist/cjs/plugins/toolbar/RowRenderer.js.map +2 -2
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +5 -1
- package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +2 -2
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +5 -0
- package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +1 -1
- package/dist/cjs/plugins/toolbar/index.js +5 -1
- package/dist/cjs/plugins/toolbar/index.js.map +2 -2
- package/dist/cjs/plugins/virtualization/AutoHeightList.js +4 -0
- package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +8 -2
- package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js +9 -4
- package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +2 -2
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +5 -0
- package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
- package/dist/cjs/plugins/virtualization/helper.js +4 -0
- package/dist/cjs/plugins/virtualization/helper.js.map +1 -1
- package/dist/cjs/plugins/virtualization/index.js +5 -1
- package/dist/cjs/plugins/virtualization/index.js.map +2 -2
- package/dist/cjs/renders/CellWithAddons.js +15 -1
- package/dist/cjs/renders/CellWithAddons.js.map +2 -2
- package/dist/cjs/renders/index.js +6 -2
- package/dist/cjs/renders/index.js.map +2 -2
- package/dist/cjs/renders/styled.js +4 -0
- package/dist/cjs/renders/styled.js.map +1 -1
- package/dist/cjs/rowSizes.js +5 -5
- package/dist/cjs/rowSizes.js.map +2 -2
- package/dist/cjs/utilities/getPluginsFromProps.js +17 -13
- package/dist/cjs/utilities/getPluginsFromProps.js.map +2 -2
- package/dist/cjs/utilities/getScrollbarSize.js +4 -0
- package/dist/cjs/utilities/getScrollbarSize.js.map +1 -1
- package/dist/cjs/utilities/normalizeData.js +4 -0
- package/dist/cjs/utilities/normalizeData.js.map +2 -2
- package/dist/esm/DSDataGrid.js +141 -2
- package/dist/esm/DSDataGrid.js.map +2 -2
- package/dist/esm/DataGridImpl.js +11 -11
- package/dist/esm/DataGridImpl.js.map +2 -2
- package/dist/esm/PaginatedDataGrid.js +9 -9
- package/dist/esm/PaginatedDataGrid.js.map +2 -2
- package/dist/esm/columns/IconColumn.js.map +1 -1
- package/dist/esm/components/BodyCell.js +2 -0
- package/dist/esm/components/BodyCell.js.map +1 -1
- package/dist/esm/components/BodyList.js +3 -5
- package/dist/esm/components/BodyList.js.map +2 -2
- package/dist/esm/components/ColumnVisibilityMenuOption.js +1 -6
- package/dist/esm/components/ColumnVisibilityMenuOption.js.map +2 -2
- package/dist/esm/components/ColumnsOptionsMenuSection.js +3 -11
- package/dist/esm/components/ColumnsOptionsMenuSection.js.map +2 -2
- package/dist/esm/components/EmptyState.js +1 -2
- package/dist/esm/components/EmptyState.js.map +2 -2
- package/dist/esm/components/List.js +2 -2
- package/dist/esm/components/List.js.map +2 -2
- package/dist/esm/components/ListItem.js +3 -6
- package/dist/esm/components/ListItem.js.map +2 -2
- package/dist/esm/components/NoResults.js +4 -10
- package/dist/esm/components/NoResults.js.map +2 -2
- package/dist/esm/components/RowsLoader.js +1 -1
- package/dist/esm/components/RowsLoader.js.map +1 -1
- package/dist/esm/components/Table.js +5 -5
- package/dist/esm/components/Table.js.map +2 -2
- package/dist/esm/components/TableBody.js +2 -7
- package/dist/esm/components/TableBody.js.map +2 -2
- package/dist/esm/components/TableHeader.js +1 -1
- package/dist/esm/components/TableHeader.js.map +2 -2
- package/dist/esm/components/footer/addOptionalFooterComponents.js +1 -1
- package/dist/esm/components/footer/addOptionalFooterComponents.js.map +1 -1
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/renderers/defaultClassedRenderers.js +16 -40
- package/dist/esm/components/renderers/defaultClassedRenderers.js.map +2 -2
- package/dist/esm/components/renderers/index.js +2 -2
- package/dist/esm/components/renderers/index.js.map +1 -1
- package/dist/esm/components/renderers/renderRowsLoader.js +2 -4
- package/dist/esm/components/renderers/renderRowsLoader.js.map +2 -2
- package/dist/esm/defaultPlugins.js +5 -10
- package/dist/esm/defaultPlugins.js.map +2 -2
- package/dist/esm/index.js +9 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/package.json +7 -0
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +22 -18
- package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +2 -2
- package/dist/esm/plugins/body-header-scroll-sync/index.js +1 -1
- package/dist/esm/plugins/body-header-scroll-sync/index.js.map +1 -1
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +1 -1
- package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +2 -2
- package/dist/esm/plugins/column-dnd/index.js +1 -1
- package/dist/esm/plugins/column-dnd/index.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +4 -4
- package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +1 -1
- package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +1 -1
- package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +1 -1
- package/dist/esm/plugins/column-sizing/index.js +1 -1
- package/dist/esm/plugins/column-sizing/index.js.map +1 -1
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js +7 -26
- package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +2 -2
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +3 -2
- package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +2 -2
- package/dist/esm/plugins/column-sizing/utils.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +1 -1
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +2 -1
- package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +2 -2
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +2 -2
- package/dist/esm/plugins/custom-cell-renderer/index.js +1 -1
- package/dist/esm/plugins/custom-cell-renderer/index.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +1 -1
- package/dist/esm/plugins/editable/EditableComponents/index.js +2 -2
- package/dist/esm/plugins/editable/EditableComponents/index.js.map +1 -1
- package/dist/esm/plugins/editable/EditablePlugin.js +1 -1
- package/dist/esm/plugins/editable/EditablePlugin.js.map +2 -2
- package/dist/esm/plugins/editable/decorateEditable.js +1 -1
- package/dist/esm/plugins/editable/decorateEditable.js.map +2 -2
- package/dist/esm/plugins/editable/getEditorComponent.js +3 -16
- package/dist/esm/plugins/editable/getEditorComponent.js.map +2 -2
- package/dist/esm/plugins/editable/index.js +2 -2
- package/dist/esm/plugins/editable/index.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +23 -25
- package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +5 -5
- package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js +6 -6
- package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +12 -8
- package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +2 -2
- package/dist/esm/plugins/expandable-grid/index.js +2 -2
- package/dist/esm/plugins/expandable-grid/index.js.map +1 -1
- package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +2 -2
- package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +1 -1
- package/dist/esm/plugins/export-data/index.js +1 -1
- package/dist/esm/plugins/export-data/index.js.map +1 -1
- package/dist/esm/plugins/filterable/FilterablePlugin.js +3 -3
- package/dist/esm/plugins/filterable/FilterablePlugin.js.map +2 -2
- package/dist/esm/plugins/filterable/addFilterToColumn.js +1 -1
- package/dist/esm/plugins/filterable/addFilterToColumn.js.map +1 -1
- package/dist/esm/plugins/filterable/components/FilterableHeader.js +1 -1
- package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +46 -47
- package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +46 -48
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +44 -45
- package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +3 -3
- package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +2 -2
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +5 -7
- package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +2 -2
- package/dist/esm/plugins/filterable/filterableFormatter.js +29 -37
- package/dist/esm/plugins/filterable/filterableFormatter.js.map +2 -2
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +2 -4
- package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +2 -2
- package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +2 -2
- package/dist/esm/plugins/filterable/helper.js +1 -7
- package/dist/esm/plugins/filterable/helper.js.map +2 -2
- package/dist/esm/plugins/filterable/index.js +1 -1
- package/dist/esm/plugins/filterable/index.js.map +1 -1
- package/dist/esm/plugins/filterable/useFilterableState.js +3 -11
- package/dist/esm/plugins/filterable/useFilterableState.js.map +2 -2
- package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +1 -1
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +15 -11
- package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +2 -2
- package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +2 -2
- package/dist/esm/plugins/index.js +16 -16
- package/dist/esm/plugins/index.js.map +1 -1
- package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +1 -1
- package/dist/esm/plugins/infinite-scrolling/index.js +1 -1
- package/dist/esm/plugins/infinite-scrolling/index.js.map +1 -1
- package/dist/esm/plugins/pagination/PaginationPlugin.js +5 -4
- package/dist/esm/plugins/pagination/PaginationPlugin.js.map +2 -2
- package/dist/esm/plugins/pagination/components/Pagination.js +5 -24
- package/dist/esm/plugins/pagination/components/Pagination.js.map +2 -2
- package/dist/esm/plugins/pagination/components/Paginator.js +12 -11
- package/dist/esm/plugins/pagination/components/Paginator.js.map +2 -2
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js +2 -2
- package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +2 -2
- package/dist/esm/plugins/pagination/helper.js.map +2 -2
- package/dist/esm/plugins/pagination/index.js +1 -1
- package/dist/esm/plugins/pagination/index.js.map +1 -1
- package/dist/esm/plugins/pagination/usePaginationState.js +1 -1
- package/dist/esm/plugins/pagination/usePaginationState.js.map +1 -1
- package/dist/esm/plugins/resizable/ResizablePlugin.js +1 -1
- package/dist/esm/plugins/resizable/ResizablePlugin.js.map +2 -2
- package/dist/esm/plugins/resizable/decorateResizable.js +4 -2
- package/dist/esm/plugins/resizable/decorateResizable.js.map +2 -2
- package/dist/esm/plugins/resizable/index.js +1 -1
- package/dist/esm/plugins/resizable/index.js.map +1 -1
- package/dist/esm/plugins/resizable/useResizeHandle.js +6 -13
- package/dist/esm/plugins/resizable/useResizeHandle.js.map +2 -2
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +1 -0
- package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +1 -1
- package/dist/esm/plugins/row-dnd/index.js +1 -1
- package/dist/esm/plugins/row-dnd/index.js.map +1 -1
- package/dist/esm/plugins/selectable/SelectablePlugin.js +3 -3
- package/dist/esm/plugins/selectable/SelectablePlugin.js.map +2 -2
- package/dist/esm/plugins/selectable/addSelectableColumn.js +3 -1
- package/dist/esm/plugins/selectable/addSelectableColumn.js.map +2 -2
- package/dist/esm/plugins/selectable/helper.js.map +1 -1
- package/dist/esm/plugins/selectable/index.js +1 -1
- package/dist/esm/plugins/selectable/index.js.map +1 -1
- package/dist/esm/plugins/selectable/selectableFormatter.js +1 -1
- package/dist/esm/plugins/selectable/selectableFormatter.js.map +2 -2
- package/dist/esm/plugins/selectable/useSelectableState.js +3 -5
- package/dist/esm/plugins/selectable/useSelectableState.js.map +2 -2
- package/dist/esm/plugins/sortable/SortablePlugin.js +3 -3
- package/dist/esm/plugins/sortable/SortablePlugin.js.map +2 -2
- package/dist/esm/plugins/sortable/checkIfSortable.js.map +1 -1
- package/dist/esm/plugins/sortable/index.js +1 -1
- package/dist/esm/plugins/sortable/index.js.map +1 -1
- package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +1 -1
- package/dist/esm/plugins/sortable/sortTree.js.map +2 -2
- package/dist/esm/plugins/sortable/sorter.js +1 -0
- package/dist/esm/plugins/sortable/sorter.js.map +1 -1
- package/dist/esm/plugins/sortable/useSortableState.js +2 -4
- package/dist/esm/plugins/sortable/useSortableState.js.map +2 -2
- package/dist/esm/plugins/toolbar/RowRenderer.js +3 -2
- package/dist/esm/plugins/toolbar/RowRenderer.js.map +2 -2
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js +1 -1
- package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +2 -2
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js +1 -0
- package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +1 -1
- package/dist/esm/plugins/toolbar/index.js +1 -1
- package/dist/esm/plugins/toolbar/index.js.map +1 -1
- package/dist/esm/plugins/virtualization/AutoHeightList.js.map +2 -2
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +4 -2
- package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +2 -2
- package/dist/esm/plugins/virtualization/VirtualizedBody.js +5 -4
- package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +2 -2
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +1 -0
- package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +1 -1
- package/dist/esm/plugins/virtualization/index.js +1 -1
- package/dist/esm/plugins/virtualization/index.js.map +1 -1
- package/dist/esm/renders/CellWithAddons.js +11 -1
- package/dist/esm/renders/CellWithAddons.js.map +2 -2
- package/dist/esm/renders/index.js +2 -2
- package/dist/esm/renders/index.js.map +1 -1
- package/dist/esm/renders/styled.js.map +1 -1
- package/dist/esm/rowSizes.js +1 -5
- package/dist/esm/rowSizes.js.map +2 -2
- package/dist/esm/utilities/getPluginsFromProps.js +13 -13
- package/dist/esm/utilities/getPluginsFromProps.js.map +2 -2
- package/dist/esm/utilities/normalizeData.js.map +2 -2
- package/package.json +25 -25
package/dist/cjs/DataGridImpl.js
CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -32,17 +36,17 @@ var React = __toESM(require("react"));
|
|
32
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
33
37
|
var import_react = require("react");
|
34
38
|
var import_ds_shared = require("@elliemae/ds-shared");
|
35
|
-
var import_Table = require("./components/Table");
|
36
|
-
var import_TableBody = require("./components/TableBody");
|
37
|
-
var import_TableHeader = require("./components/TableHeader");
|
38
|
-
var import_renderers = require("./components/renderers");
|
39
|
-
var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers");
|
40
|
-
var import_addOptionalFooterComponents = require("./components/footer/addOptionalFooterComponents");
|
41
|
-
var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents");
|
42
|
-
var import_EmptyState = require("./components/EmptyState");
|
43
|
-
var import_getPluginsFromProps = require("./utilities/getPluginsFromProps");
|
44
|
-
var import_defaultPlugins = require("./defaultPlugins");
|
45
|
-
var import_normalizeData = require("./utilities/normalizeData");
|
39
|
+
var import_Table = require("./components/Table.js");
|
40
|
+
var import_TableBody = require("./components/TableBody.js");
|
41
|
+
var import_TableHeader = require("./components/TableHeader.js");
|
42
|
+
var import_renderers = require("./components/renderers/index.js");
|
43
|
+
var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers.js");
|
44
|
+
var import_addOptionalFooterComponents = require("./components/footer/addOptionalFooterComponents.js");
|
45
|
+
var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents.js");
|
46
|
+
var import_EmptyState = require("./components/EmptyState.js");
|
47
|
+
var import_getPluginsFromProps = require("./utilities/getPluginsFromProps.js");
|
48
|
+
var import_defaultPlugins = require("./defaultPlugins.js");
|
49
|
+
var import_normalizeData = require("./utilities/normalizeData.js");
|
46
50
|
const isFluid = ({ autoHeight, paginated, numRowsVisible }) => {
|
47
51
|
if (autoHeight)
|
48
52
|
return false;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/DataGridImpl.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React, { useMemo } from 'react';\nimport { isFunction, useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table';\nimport { TableBody } from './components/TableBody';\nimport { TableHeader } from './components/TableHeader';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { EmptyState } from './components/EmptyState';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { defaultPlugins } from './defaultPlugins';\nimport { normalizeRows } from './utilities/normalizeData';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === 'undefined');\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["import React, { useMemo } from 'react';\nimport { isFunction, useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { TableBody } from './components/TableBody.js';\nimport { TableHeader } from './components/TableHeader.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalFooterComponents } from './components/footer/addOptionalFooterComponents.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { EmptyState } from './components/EmptyState.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { defaultPlugins } from './defaultPlugins.js';\nimport { normalizeRows } from './utilities/normalizeData.js';\n\nconst isFluid = ({ autoHeight, paginated, numRowsVisible }) => {\n if (autoHeight) return false;\n if (paginated) return false;\n return !numRowsVisible;\n};\n\nconst DataGridImpl = ({\n className,\n renderers,\n columns,\n rows,\n containerProps,\n plugins: pluginsProp,\n normalizeDataKeys,\n ...otherProps\n}) => {\n const {\n noResultsPlaceholder = <EmptyState />,\n noColumnsPlaceholder = 'Please select one of more columns in order for data to be displayed.',\n noResultsRender,\n paginated,\n height,\n showHeader,\n showRowsLoader,\n rowsLoaderRenderer = renderRowsLoader,\n groupedRows,\n sortable,\n rowSize,\n wrapText,\n onDefaultFiltersLoad,\n rowKey,\n } = otherProps;\n\n const idKey = rowKey || 'id';\n const rowsIdsSet = new Set();\n const rowsIds = rows.map((row) => {\n if (row[idKey] === undefined) throw new Error('Missing id: each row must have an unique id');\n rowsIdsSet.add(row[idKey]);\n return row[idKey];\n });\n if (rowsIds.length !== rowsIdsSet.size) throw new Error('Repeated id: each row must have an unique id');\n\n const plugins = getPluginsFromProps({\n ...otherProps,\n virtualized: (!paginated || groupedRows) && !wrapText,\n paginated: (paginated && !groupedRows) || wrapText,\n sortable: sortable && !groupedRows,\n });\n\n if (normalizeDataKeys) {\n normalizeRows(rows);\n }\n\n const grid = useDataGrid({\n columns,\n rows,\n renderers: defaultRenderers,\n plugins: [...plugins, ...pluginsProp, ...defaultPlugins],\n ...otherProps,\n });\n\n const noColumnsVisible = useMemo(() => {\n const visibleUserColumns = grid.columns.filter((column) => column.visible || typeof column.visible === 'undefined');\n return visibleUserColumns.length === 0;\n }, [grid.columns]);\n\n const bodyPlaceholder = useMemo(() => {\n if (noColumnsVisible) {\n return noColumnsPlaceholder;\n }\n return isFunction(noResultsRender) ? noResultsRender() : noResultsPlaceholder;\n }, [noResultsPlaceholder, noColumnsPlaceholder, noColumnsVisible]);\n\n const { pagination } = otherProps;\n const conditionalPagination =\n pagination && pagination.conditionalPagination === true && rows.length <= otherProps.pagination.perPage;\n const usePagination = paginated && !conditionalPagination;\n return (\n <DatagridWrapper\n className={`${className} ds-row-size-${rowSize}`}\n classProps={{\n fluidHeight: isFluid({\n autoHeight: otherProps.autoHeight,\n numRowsVisible: otherProps.numRowsVisible,\n paginated: usePagination,\n }),\n }}\n style={{ height }}\n {...containerProps}\n >\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid} onDefaultFiltersLoad={onDefaultFiltersLoad}>\n {showHeader && <TableHeader />}\n {showRowsLoader ? (\n rowsLoaderRenderer()\n ) : (\n <TableBody\n isPlaceholderActive={\n noColumnsVisible ||\n (grid.composedRows.rows && grid.composedRows.rows.length === 0) ||\n grid.composedRows.length === 0\n }\n noResultsPlaceholder={bodyPlaceholder}\n />\n )}\n </Table>\n {addOptionalFooterComponents({\n grid,\n rows: grid.composedRows,\n })}\n </DatagridWrapper>\n );\n};\n\nexport { DataGridImpl };\n\nexport default DataGridImpl;\n", "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Aa,QAAQ,KAAK,aAAa,KAAK,WAAW,KAC7D,KAAK,aAAa,WAAW;AAAA,cAE/B,sBAAsB;AAAA;AAAA,UACxB;AAAA,WAEJ;AAAA,YACC,gEAA4B;AAAA,UAC3B;AAAA,UACA,MAAM,KAAK;AAAA,QACb,CAAC;AAAA;AAAA;AAAA,EACH;AAEJ;AAIA,IAAO,uBAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -30,13 +34,13 @@ module.exports = __toCommonJS(PaginatedDataGrid_exports);
|
|
30
34
|
var React = __toESM(require("react"));
|
31
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
36
|
var import_ds_shared = require("@elliemae/ds-shared");
|
33
|
-
var import_Table = require("./components/Table");
|
34
|
-
var import_renderers = require("./components/renderers");
|
35
|
-
var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers");
|
36
|
-
var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents");
|
37
|
-
var import_getPluginsFromProps = require("./utilities/getPluginsFromProps");
|
38
|
-
var import_Pagination = require("./plugins/pagination/components/Pagination");
|
39
|
-
|
37
|
+
var import_Table = require("./components/Table.js");
|
38
|
+
var import_renderers = require("./components/renderers/index.js");
|
39
|
+
var import_defaultClassedRenderers = require("./components/renderers/defaultClassedRenderers.js");
|
40
|
+
var import_addOptionalHeaderComponents = require("./components/header/addOptionalHeaderComponents.js");
|
41
|
+
var import_getPluginsFromProps = require("./utilities/getPluginsFromProps.js");
|
42
|
+
var import_Pagination = require("./plugins/pagination/components/Pagination.js");
|
43
|
+
const PaginatedDataGrid = ({
|
40
44
|
columns,
|
41
45
|
rows,
|
42
46
|
showRowsLoader,
|
@@ -48,7 +52,7 @@ function PaginatedDataGrid({
|
|
48
52
|
onPerPage,
|
49
53
|
pagination,
|
50
54
|
...otherProps
|
51
|
-
}) {
|
55
|
+
}) => {
|
52
56
|
const plugins = (0, import_getPluginsFromProps.getPluginsFromProps)(otherProps, { infiniteScrolling: true });
|
53
57
|
const grid = (0, import_ds_shared.useDataGrid)({
|
54
58
|
...otherProps,
|
@@ -75,6 +79,6 @@ function PaginatedDataGrid({
|
|
75
79
|
}
|
76
80
|
)
|
77
81
|
] });
|
78
|
-
}
|
82
|
+
};
|
79
83
|
var PaginatedDataGrid_default = PaginatedDataGrid;
|
80
84
|
//# sourceMappingURL=PaginatedDataGrid.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/PaginatedDataGrid.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps';\nimport { Pagination } from './plugins/pagination/components/Pagination';\n\
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { useDataGrid } from '@elliemae/ds-shared';\nimport { Table } from './components/Table.js';\nimport { defaultRenderers, renderRowsLoader } from './components/renderers/index.js';\nimport { DatagridWrapper } from './components/renderers/defaultClassedRenderers.js';\nimport { addOptionalHeaderComponents } from './components/header/addOptionalHeaderComponents.js';\nimport { getPluginsFromProps } from './utilities/getPluginsFromProps.js';\nimport { Pagination } from './plugins/pagination/components/Pagination.js';\n\nconst PaginatedDataGrid = ({\n columns,\n rows,\n showRowsLoader,\n noResultsPlaceholder,\n rowsLoaderRenderer = renderRowsLoader,\n maxPerPage,\n minPerPage,\n onPageSelect,\n onPerPage,\n pagination,\n ...otherProps\n}) => {\n const plugins = getPluginsFromProps(otherProps, { infiniteScrolling: true });\n const grid = useDataGrid({\n ...otherProps,\n columns,\n rows,\n renderers: defaultRenderers,\n plugins,\n });\n\n return (\n <DatagridWrapper>\n {addOptionalHeaderComponents({ grid })}\n <Table {...grid}>\n <Table.Header />\n {showRowsLoader ? rowsLoaderRenderer() : <Table.Body rows={grid.composedRows.rows || grid.composedRows} />}\n </Table>\n <Pagination\n maxPerPage={maxPerPage}\n minPerPage={minPerPage}\n onPageSelect={onPageSelect}\n onPerPage={onPerPage}\n paginated={rows}\n pagination={pagination}\n />\n </DatagridWrapper>\n );\n};\n\nexport default PaginatedDataGrid;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkCjB;AAjCN,uBAA4B;AAC5B,mBAAsB;AACtB,uBAAmD;AACnD,qCAAgC;AAChC,yCAA4C;AAC5C,iCAAoC;AACpC,wBAA2B;AAE3B,MAAM,oBAAoB,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,cAAU,gDAAoB,YAAY,EAAE,mBAAmB,KAAK,CAAC;AAC3E,QAAM,WAAO,8BAAY;AAAA,IACvB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,SACE,6CAAC,kDACE;AAAA,wEAA4B,EAAE,KAAK,CAAC;AAAA,IACrC,6CAAC,sBAAO,GAAG,MACT;AAAA,kDAAC,mBAAM,QAAN,EAAa;AAAA,MACb,iBAAiB,mBAAmB,IAAI,4CAAC,mBAAM,MAAN,EAAW,MAAM,KAAK,aAAa,QAAQ,KAAK,cAAc;AAAA,OAC1G;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,QACX;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAO,4BAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/dist/cjs/blockNames.js
CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/blockNames.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
4
4
|
"sourcesContent": ["const dataGridBlockName = 'data-grid';\nconst headerBlockName = `${dataGridBlockName}-header`;\nconst bodyBlockName = `${dataGridBlockName}-body`;\n\nexport { dataGridBlockName, headerBlockName, bodyBlockName };\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,oBAAoB;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/columns/IconColumn.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
4
|
"sourcesContent": ["/* eslint-disable react/display-name */\nimport React from 'react';\nimport { cx } from '@elliemae/ds-utilities';\nimport { DSButton } from '@elliemae/ds-button';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst Intents = {\n SUCCESS: 'success',\n INFO: 'info',\n DANGER: 'danger',\n WARNING: 'warning',\n};\n\nconst IntentIconColors = {\n [Intents.SUCCESS]: ['success', 900],\n [Intents.INFO]: ['brand-primary', 600],\n [Intents.DANGER]: ['danger', 900],\n [Intents.WARNING]: ['warning', 900],\n};\n\nconst ValueWrapper = aggregatedClasses('span')('icon-column-cell');\n\nconst addColorToIcon = (icon, intentColor) => {\n if (icon.props.color) {\n return icon;\n }\n return React.cloneElement(icon, { color: intentColor });\n};\n\nexport const IconColumn = ({\n property,\n label,\n headerIcon,\n getRowIcon = () => null,\n isVisited = () => null,\n intent = Intents.SUCCESS,\n width = 60,\n onClick,\n visible,\n resizable,\n sortable,\n searchable,\n}) => {\n const formatter = (value, extraParams) => {\n const icon = getRowIcon(value, extraParams);\n const onClickHandler = (e) => onClick(e, extraParams);\n return (\n <ValueWrapper className={cx(`icc-${intent}`, isVisited(value, extraParams))}>\n {icon && addColorToIcon(icon, IntentIconColors[intent])}\n {onClick && typeof value !== 'undefined' ? (\n <DSButton buttonType=\"text\" intent={intent} labelText={value} onClick={onClickHandler} />\n ) : (\n value\n )}\n </ValueWrapper>\n );\n };\n return {\n property,\n label,\n headerStyle: {\n justifyContent: 'center',\n },\n header: {\n formatters: [\n () => (\n <span>\n {React.cloneElement(headerIcon, {\n color: IntentIconColors[intent],\n })}\n </span>\n ),\n ],\n },\n cell: {\n formatters: [formatter],\n },\n cellStyle: {\n justifyContent: 'center',\n },\n width,\n visible: typeof visible === 'undefined' || visible,\n resizable,\n sortable,\n searchable,\n };\n};\n\nexport default IconColumn;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+CjB;AA9CN,mBAAkB;AAClB,0BAAmB;AACnB,uBAAyB;AACzB,2BAAkC;AAElC,MAAM,UAAU;AAAA,EACd,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AACX;AAEA,MAAM,mBAAmB;AAAA,EACvB,CAAC,QAAQ,OAAO,GAAG,CAAC,WAAW,GAAG;AAAA,EAClC,CAAC,QAAQ,IAAI,GAAG,CAAC,iBAAiB,GAAG;AAAA,EACrC,CAAC,QAAQ,MAAM,GAAG,CAAC,UAAU,GAAG;AAAA,EAChC,CAAC,QAAQ,OAAO,GAAG,CAAC,WAAW,GAAG;AACpC;AAEA,MAAM,mBAAe,wCAAkB,MAAM,EAAE,kBAAkB;AAEjE,MAAM,iBAAiB,CAAC,MAAM,gBAAgB;AAC5C,MAAI,KAAK,MAAM,OAAO;AACpB,WAAO;AAA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18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/columns/NumberColumn.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
4
|
"sourcesContent": ["export default function createNumberColumn({ label, property }) {}\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAR,SAAR,mBAAoC,EAAE,OAAO,SAAS,GAAG;AAAC;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -50,6 +54,7 @@ const BodyCell = ({ component: Component, classProps, rowProps, column, columnIn
|
|
50
54
|
transforms = [],
|
51
55
|
formatters = [],
|
52
56
|
fixedFormatters = [],
|
57
|
+
// useful for the toolbar trigger at the last column
|
53
58
|
scrollingFormatters = []
|
54
59
|
} = cell || {};
|
55
60
|
const extraParameters = {
|
@@ -60,6 +65,7 @@ const BodyCell = ({ component: Component, classProps, rowProps, column, columnIn
|
|
60
65
|
rowIndex,
|
61
66
|
rowKey,
|
62
67
|
isScrolling,
|
68
|
+
// improve performance on scroll rendering a lightweight component instead
|
63
69
|
registerFocus,
|
64
70
|
...extraRowProps
|
65
71
|
};
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/BodyCell.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
4
|
"sourcesContent": ["import React, { useEffect, useContext, useRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { FocusGridContext, evaluateFormatters, evaluateTransforms } from '@elliemae/ds-shared';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\n\nconst BodyCell = ({ component: Component, classProps, rowProps, column, columnIndex, rowIndex, grid }) => {\n const { rowData, rowKey, isScrolling, ...extraRowProps } = rowProps;\n const { property, cell, props } = column;\n const evaluatedProperty = property || (cell && cell.property);\n\n const ref = useRef(null);\n const { register } = useContext(FocusGridContext);\n\n const registerFocus = useCallback((node) => {\n register(node, rowIndex, columnIndex);\n }, []);\n\n useEffect(() => {\n registerFocus(ref.current);\n }, [ref.current]);\n\n const {\n transforms = [],\n formatters = [],\n fixedFormatters = [], // useful for the toolbar trigger at the last column\n scrollingFormatters = [],\n } = cell || {};\n\n const extraParameters = {\n columnIndex,\n property: evaluatedProperty,\n column,\n rowData,\n rowIndex,\n rowKey,\n isScrolling, // improve performance on scroll rendering a lightweight component instead\n registerFocus,\n ...extraRowProps,\n };\n const withTooltip = (v) => (classProps && classProps.wrapText ? v : <DSTruncatedTooltipText value={v} />);\n const value = rowData[`_${evaluatedProperty}`] || rowData[evaluatedProperty];\n const transformed = evaluateTransforms(transforms, value, extraParameters);\n return (\n <Component\n ref={ref}\n data-testid={`column-${property}`}\n tabIndex={-1}\n classProps={classProps}\n {...props}\n {...(cell && cell.props)}\n {...transformed}\n >\n {transformed.children ||\n evaluateFormatters(\n !isScrolling\n ? [withTooltip, ...formatters, ...fixedFormatters]\n : [...scrollingFormatters, ...fixedFormatters],\n value,\n extraParameters,\n grid,\n )}\n </Component>\n );\n};\n\nBodyCell.propTypes = {\n component: PropTypes.element,\n classProps: PropTypes.shape({\n wrapText: PropTypes.bool,\n }),\n rowProps: PropTypes.shape({\n rowData: PropTypes.shape({}),\n rowKey: PropTypes.string,\n isScrolling: PropTypes.bool,\n }),\n column: PropTypes.shape({\n property: PropTypes.string,\n cell: PropTypes.any,\n props: PropTypes.shape({}),\n }),\n columnIndex: PropTypes.number,\n rowIndex: PropTypes.number,\n grid: PropTypes.any,\n};\n\nexport { BodyCell };\nexport default BodyCell;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuC+C;AAvCtE,mBAAkE;AAClE,wBAAsB;AACtB,uBAAyE;AACzE,uCAAuC;AAEvC,MAAM,WAAW,CAAC,EAAE,WAAW,WAAW,YAAY,UAAU,QAAQ,aAAa,UAAU,KAAK,MAAM;AACxG,QAAM,EAAE,SAAS,QAAQ,aAAa,GAAG,cAAc,IAAI;AAC3D,QAAM,EAAE,UAAU,MAAM,MAAM,IAAI;AAClC,QAAM,oBAAoB,YAAa,QAAQ,KAAK;AAEpD,QAAM,UAAM,qBAAO,IAAI;AACvB,QAAM,EAAE,SAAS,QAAI,yBAAW,iCAAgB;AAEhD,QAAM,oBAAgB,0BAAY,CAAC,SAAS;AAC1C,aAAS,MAAM,UAAU,WAAW;AAAA,EACtC,GAAG,CAAC,CAAC;AAEL,8BAAU,MAAM;AACd,kBAAc,IAAI,OAAO;AAAA,EAC3B,GAAG,CAAC,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A,QAAU;AAAA,IACpB,MAAM,kBAAAA,QAAU;AAAA,IAChB,OAAO,kBAAAA,QAAU,MAAM,CAAC,CAAC;AAAA,EAC3B,CAAC;AAAA,EACD,aAAa,kBAAAA,QAAU;AAAA,EACvB,UAAU,kBAAAA,QAAU;AAAA,EACpB,MAAM,kBAAAA,QAAU;AAClB;AAGA,IAAO,mBAAQ;",
|
6
6
|
"names": ["PropTypes"]
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -30,8 +34,8 @@ module.exports = __toCommonJS(BodyList_exports);
|
|
30
34
|
var React = __toESM(require("react"));
|
31
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
36
|
var import_react = __toESM(require("react"));
|
33
|
-
var import_NoResults = require("./NoResults");
|
34
|
-
|
37
|
+
var import_NoResults = require("./NoResults.js");
|
38
|
+
const BodyWrapperDefaultRenderer = ({
|
35
39
|
component: Component,
|
36
40
|
rows,
|
37
41
|
rowRenderer,
|
@@ -39,8 +43,6 @@ function BodyWrapperDefaultRenderer({
|
|
39
43
|
innerRef,
|
40
44
|
innerBodyRef,
|
41
45
|
...otherBodyProps
|
42
|
-
}) {
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ...otherBodyProps, innerRef, children: rows.length ? rows.map((row, index) => rowRenderer(row, { index }, {})) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NoResults.NoResults, { innerRef, rowRenderer, children: noResultsPlaceholder }) });
|
44
|
-
}
|
46
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ...otherBodyProps, innerRef, children: rows.length ? rows.map((row, index) => rowRenderer(row, { index }, {})) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NoResults.NoResults, { innerRef, rowRenderer, children: noResultsPlaceholder }) });
|
45
47
|
var BodyList_default = import_react.default.memo(BodyWrapperDefaultRenderer);
|
46
48
|
//# sourceMappingURL=BodyList.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/BodyList.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { NoResults } from './NoResults';\n\
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { NoResults } from './NoResults.js';\n\nconst BodyWrapperDefaultRenderer = ({\n component: Component,\n rows,\n rowRenderer,\n noResultsPlaceholder,\n innerRef,\n innerBodyRef,\n ...otherBodyProps\n}) => (\n <Component {...otherBodyProps} innerRef={innerRef}>\n {rows.length ? (\n rows.map((row, index) => rowRenderer(row, { index }, {}))\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n);\n\nexport default React.memo(BodyWrapperDefaultRenderer);\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAhBN,mBAAkB;AAClB,uBAA0B;AAE1B,MAAM,6BAA6B,CAAC;AAAA,EAClC,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,4CAAC,aAAW,GAAG,gBAAgB,UAC5B,eAAK,SACJ,KAAK,IAAI,CAAC,KAAK,UAAU,YAAY,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAExD,4CAAC,8BAAU,UAAoB,aAC5B,gCACH,GAEJ;AAGF,IAAO,mBAAQ,aAAAA,QAAM,KAAK,0BAA0B;",
|
6
6
|
"names": ["React"]
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -28,12 +32,7 @@ __export(ColumnVisibilityMenuOption_exports, {
|
|
28
32
|
});
|
29
33
|
module.exports = __toCommonJS(ColumnVisibilityMenuOption_exports);
|
30
34
|
var React = __toESM(require("react"));
|
31
|
-
const getColumnVisibilityMenuOption = ({
|
32
|
-
columns,
|
33
|
-
onColumnVisibilityChange,
|
34
|
-
searchable,
|
35
|
-
height
|
36
|
-
}) => {
|
35
|
+
const getColumnVisibilityMenuOption = ({ columns, onColumnVisibilityChange, searchable, height }) => {
|
37
36
|
const { items, active } = columns.reduce(
|
38
37
|
(result, column, index) => ({
|
39
38
|
items: [
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/ColumnVisibilityMenuOption.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["export const getColumnVisibilityMenuOption = ({
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["export const getColumnVisibilityMenuOption = ({ columns, onColumnVisibilityChange, searchable, height }) => {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active: !column.visible ? result.active : [...result.active, column.property],\n }),\n {\n items: [],\n active: [],\n },\n );\n\n return {\n type: 'SelectionGroup',\n id: 'column-visibility-option',\n multi: true,\n searchable,\n closeOnClick: false,\n active,\n items,\n height,\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,gCAAgC,CAAC,EAAE,SAAS,0BAA0B,YAAY,OAAO,MAAM;AAC1G,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QAAQ,CAAC,OAAO,UAAU,OAAO,SAAS,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ;AAAA,IAC9E;AAAA,IACA;AAAA,MACE,OAAO,CAAC;AAAA,MACR,QAAQ,CAAC;AAAA,IACX;AAAA,EACF;AAEA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,IAAI;AAAA,IACJ,OAAO;AAAA,IACP;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -36,7 +40,8 @@ const ColumnsOptionsMenuSection = ({
|
|
36
40
|
onColumnVisibilityChange,
|
37
41
|
searchable = false,
|
38
42
|
height
|
39
|
-
|
43
|
+
// eslint-disable-next-line react/display-name
|
44
|
+
}) => function() {
|
40
45
|
const { items, active } = columns.reduce(
|
41
46
|
(result, column, index) => ({
|
42
47
|
items: [
|
@@ -52,16 +57,7 @@ const ColumnsOptionsMenuSection = ({
|
|
52
57
|
}),
|
53
58
|
{ items: [], active: [] }
|
54
59
|
);
|
55
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
56
|
-
import_ds_menu.Menu.SelectionGroup,
|
57
|
-
{
|
58
|
-
active,
|
59
|
-
height,
|
60
|
-
items,
|
61
|
-
multi: true,
|
62
|
-
searchable
|
63
|
-
}
|
64
|
-
);
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu.Menu.SelectionGroup, { active, height, items, multi: true, searchable });
|
65
61
|
};
|
66
62
|
var ColumnsOptionsMenuSection_default = ColumnsOptionsMenuSection;
|
67
63
|
//# sourceMappingURL=ColumnsOptionsMenuSection.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/ColumnsOptionsMenuSection.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { Menu } from '@elliemae/ds-menu';\n\nconst ColumnsOptionsMenuSection = ({\n columns,\n onColumnVisibilityChange,\n searchable = false,\n height,\n // eslint-disable-next-line react/display-name\n})
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { Menu } from '@elliemae/ds-menu';\n\nconst ColumnsOptionsMenuSection = ({\n columns,\n onColumnVisibilityChange,\n searchable = false,\n height,\n // eslint-disable-next-line react/display-name\n}) =>\n function () {\n const { items, active } = columns.reduce(\n (result, column, index) => ({\n items: [\n ...result.items,\n {\n id: column.property,\n label: column.label,\n checked: column.visible,\n onClick: () => onColumnVisibilityChange(column, index),\n },\n ],\n active:\n typeof column.visible === 'undefined' || column.visible ? [...result.active, column.property] : result.active,\n }),\n { items: [], active: [] },\n );\n return <Menu.SelectionGroup active={active} height={height} items={items} multi searchable={searchable} />;\n };\n\nexport { ColumnsOptionsMenuSection };\nexport default ColumnsOptionsMenuSection;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2BZ;AA1BX,qBAAqB;AAErB,MAAM,4BAA4B,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAAA;AAEF,MACE,WAAY;AACV,QAAM,EAAE,OAAO,OAAO,IAAI,QAAQ;AAAA,IAChC,CAAC,QAAQ,QAAQ,WAAW;AAAA,MAC1B,OAAO;AAAA,QACL,GAAG,OAAO;AAAA,QACV;AAAA,UACE,IAAI,OAAO;AAAA,UACX,OAAO,OAAO;AAAA,UACd,SAAS,OAAO;AAAA,UAChB,SAAS,MAAM,yBAAyB,QAAQ,KAAK;AAAA,QACvD;AAAA,MACF;AAAA,MACA,QACE,OAAO,OAAO,YAAY,eAAe,OAAO,UAAU,CAAC,GAAG,OAAO,QAAQ,OAAO,QAAQ,IAAI,OAAO;AAAA,IAC3G;AAAA,IACA,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE;AAAA,EAC1B;AACA,SAAO,4CAAC,oBAAK,gBAAL,EAAoB,QAAgB,QAAgB,OAAc,OAAK,MAAC,YAAwB;AAC1G;AAGF,IAAO,oCAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -33,18 +37,17 @@ var import_ds_grid = require("@elliemae/ds-grid");
|
|
33
37
|
var import_ds_icons = require("@elliemae/ds-icons");
|
34
38
|
var import_ds_system = require("@elliemae/ds-system");
|
35
39
|
var import_ds_button = require("@elliemae/ds-button");
|
36
|
-
|
37
|
-
const EmptyStateWrapper = (0, import_ds_system2.styled)(import_ds_grid.Grid)`
|
40
|
+
const EmptyStateWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
38
41
|
min-width: 132px; /* fixed size in px according to specs */
|
39
42
|
max-width: 384px; /* fixed size in px according to specs */
|
40
43
|
height: fit-content;
|
41
44
|
`;
|
42
|
-
const Icon = (0,
|
45
|
+
const Icon = (0, import_ds_system.styled)(import_ds_icons.WarningTriangle)`
|
43
46
|
fill: ${(props) => props.theme.colors.neutral[300]};
|
44
47
|
color: ${(props) => props.theme.colors.neutral[300]};
|
45
48
|
justify-self: center;
|
46
49
|
`;
|
47
|
-
const PrimaryMessage =
|
50
|
+
const PrimaryMessage = import_ds_system.styled.p`
|
48
51
|
text-align: center;
|
49
52
|
font-weight: 600;
|
50
53
|
font-size: ${(props) => (0, import_ds_system.toMobile)(props.theme.fontSizes.value[400])};
|
@@ -52,13 +55,13 @@ const PrimaryMessage = import_ds_system2.styled.p`
|
|
52
55
|
margin-top: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.s)};
|
53
56
|
margin-bottom: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.xs)};
|
54
57
|
`;
|
55
|
-
const SecondaryMessage =
|
58
|
+
const SecondaryMessage = import_ds_system.styled.p`
|
56
59
|
text-align: center;
|
57
60
|
font-size: ${(props) => (0, import_ds_system.toMobile)(props.theme.fontSizes.value[400])}; /* 13px */
|
58
61
|
color: ${(props) => props.theme.colors.neutral[500]};
|
59
62
|
margin: 0;
|
60
63
|
`;
|
61
|
-
const Button = (0,
|
64
|
+
const Button = (0, import_ds_system.styled)(import_ds_button.DSButton)`
|
62
65
|
margin-top: ${(props) => (0, import_ds_system.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.m)};
|
63
66
|
justify-self: center;
|
64
67
|
width: fit-content;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/EmptyState.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { WarningTriangle } from '@elliemae/ds-icons';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\
|
5
|
-
"mappings": "
|
6
|
-
"names": [
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { WarningTriangle } from '@elliemae/ds-icons';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile, styled } from '@elliemae/ds-system';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst EmptyStateWrapper = styled(Grid)`\n min-width: 132px; /* fixed size in px according to specs */\n max-width: 384px; /* fixed size in px according to specs */\n height: fit-content;\n`;\n\nconst Icon = styled(WarningTriangle)`\n fill: ${(props) => props.theme.colors.neutral[300]};\n color: ${(props) => props.theme.colors.neutral[300]};\n justify-self: center;\n`;\n\nconst PrimaryMessage = styled.p`\n text-align: center;\n font-weight: 600;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])};\n color: ${(props) => props.theme.colors.neutral[600]};\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s)};\n margin-bottom: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};\n`;\nconst SecondaryMessage = styled.p`\n text-align: center;\n font-size: ${(props) => toMobile(props.theme.fontSizes.value[400])}; /* 13px */\n color: ${(props) => props.theme.colors.neutral[500]};\n margin: 0;\n`;\nconst Button = styled(DSButton)`\n margin-top: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};\n justify-self: center;\n width: fit-content;\n`;\n\nexport const EmptyState = ({\n primaryMessage = 'No Results Found',\n secondaryMessage,\n buttonLabel,\n onButtonClick = () => {},\n}) => (\n <EmptyStateWrapper>\n <Icon size=\"xxl\" />\n {primaryMessage && <PrimaryMessage>{primaryMessage}</PrimaryMessage>}\n {secondaryMessage && <SecondaryMessage>{secondaryMessage}</SecondaryMessage>}\n {buttonLabel && <Button buttonType=\"secondary\" labelText={buttonLabel} onClick={onButtonClick} />}\n </EmptyStateWrapper>\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD4CrB;AA3CF,qBAAqB;AACrB,sBAAgC;AAChC,uBAA2D;AAC3D,uBAAyB;AAEzB,MAAM,wBAAoB,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAMrC,MAAM,WAAO,yBAAO,+BAAe;AAAA,UACzB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,WACxC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;AAAA;AAIpD,MAAM,iBAAiB,wBAAO;AAAA;AAAA;AAAA,eAGf,CAAC,cAAU,2BAAS,MAAM,MAAM,UAAU,MAAM,GAAG,CAAC;AAAA,WACxD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,gBACpC,CAAC,cAAU,2CAAyB,MAAM,MAAM,MAAM,CAAC;AAAA,mBACpD,CAAC,cAAU,2CAAyB,MAAM,MAAM,MAAM,EAAE;AAAA;AAE3E,MAAM,mBAAmB,wBAAO;AAAA;AAAA,eAEjB,CAAC,cAAU,2BAAS,MAAM,MAAM,UAAU,MAAM,GAAG,CAAC;AAAA,WACxD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;AAAA;AAGpD,MAAM,aAAS,yBAAO,yBAAQ;AAAA,gBACd,CAAC,cAAU,2CAAyB,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA;AAAA;AAKhE,MAAM,aAAa,CAAC;AAAA,EACzB,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA,gBAAgB,MAAM;AAAA,EAAC;AACzB,MACE,6CAAC,qBACC;AAAA,8CAAC,QAAK,MAAK,OAAM;AAAA,EAChB,kBAAkB,4CAAC,kBAAgB,0BAAe;AAAA,EAClD,oBAAoB,4CAAC,oBAAkB,4BAAiB;AAAA,EACxD,eAAe,4CAAC,UAAO,YAAW,aAAY,WAAW,aAAa,SAAS,eAAe;AAAA,GACjG;",
|
6
|
+
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/HeaderCell.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { evaluateFormatters, evaluateTransforms } from '@elliemae/ds-shared';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\n\nexport const HeaderCell = ({ column, columnIndex, component: Component, classProps, grid }) => {\n const { property, header = {}, props = {} } = column;\n\n const evaluatedProperty = property || (header && header.property);\n\n const { label, transforms = [], formatters = [] } = header;\n\n // subscribe hook effects into header cell\n if (column.headerHookEffects) column.headerHookEffects.forEach((hook) => hook());\n\n const extraParameters = {\n columnIndex,\n property: evaluatedProperty,\n column,\n grid,\n };\n\n const withTooltip = (v) => (classProps && classProps.wrapText ? v : <DSTruncatedTooltipText value={v} />);\n const value = withTooltip(label);\n const transformedProps = evaluateTransforms(transforms, value, extraParameters);\n const formattedValue = evaluateFormatters(formatters, value, extraParameters);\n\n const testId = column.headerDataId || 'data-grid-header__cell';\n\n return (\n <Component\n key={`${evaluatedProperty}-header`}\n data-testid={testId}\n index={columnIndex}\n classProps={classProps}\n {...props}\n {...(header && header.props)}\n {...transformedProps}\n >\n {transformedProps.children || formattedValue}\n </Component>\n );\n};\n\nHeaderCell.propTypes = {\n column: PropTypes.any,\n columnIndex: PropTypes.number,\n component: PropTypes.any,\n classProps: PropTypes.any,\n grid: PropTypes.any,\n};\n\nexport default HeaderCell;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
-
"mappings": "
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;A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return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -29,11 +33,11 @@ __export(List_exports, {
|
|
29
33
|
module.exports = __toCommonJS(List_exports);
|
30
34
|
var React = __toESM(require("react"));
|
31
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
-
|
36
|
+
const List = (props, instance) => {
|
33
37
|
const { renderers, getListProps } = instance.getInstance();
|
34
38
|
const ListComponent = renderers.list;
|
35
39
|
const mixedProps = getListProps(props);
|
36
40
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListComponent, { ...mixedProps });
|
37
|
-
}
|
41
|
+
};
|
38
42
|
var List_default = List;
|
39
43
|
//# sourceMappingURL=List.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/components/List.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["import React from 'react';\n\
|
5
|
-
"mappings": "
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nconst List = (props, instance) => {\n // todo: add should list update to memoize this\n const { renderers, getListProps } = instance.getInstance();\n const ListComponent = renderers.list;\n\n // props from component props and plugins\n const mixedProps = getListProps(props);\n return <ListComponent {...mixedProps} />;\n};\n\nexport default List;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADSd;AAPT,MAAM,OAAO,CAAC,OAAO,aAAa;AAEhC,QAAM,EAAE,WAAW,aAAa,IAAI,SAAS,YAAY;AACzD,QAAM,gBAAgB,UAAU;AAGhC,QAAM,aAAa,aAAa,KAAK;AACrC,SAAO,4CAAC,iBAAe,GAAG,YAAY;AACxC;AAEA,IAAO,eAAQ;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
return to;
|
19
19
|
};
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
22
26
|
mod
|
23
27
|
));
|
@@ -29,7 +33,7 @@ __export(ListItem_exports, {
|
|
29
33
|
module.exports = __toCommonJS(ListItem_exports);
|
30
34
|
var React = __toESM(require("react"));
|
31
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
-
|
36
|
+
const ListItem = (props, instance) => {
|
33
37
|
const { record } = props;
|
34
38
|
const {
|
35
39
|
renderers,
|
@@ -37,12 +41,9 @@ function ListItem(props, instance) {
|
|
37
41
|
decorators: { itemRenderer }
|
38
42
|
} = instance.getInstance();
|
39
43
|
const mixedProps = getItemProps(props);
|
40
|
-
const children = itemRenderer.reduce(
|
41
|
-
(result, formatter) => formatter(result, record, instance),
|
42
|
-
record.data.name
|
43
|
-
);
|
44
|
+
const children = itemRenderer.reduce((result, formatter) => formatter(result, record, instance), record.data.name);
|
44
45
|
const ItemComponent = renderers.list;
|
45
46
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemComponent, { record, ...mixedProps, children });
|
46
|
-
}
|
47
|
+
};
|
47
48
|
var ListItem_default = ListItem;
|
48
49
|
//# sourceMappingURL=ListItem.js.map
|