Skip to content

Commit 736304d

Browse files
committed
fix: change typings
1 parent 0122c68 commit 736304d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

packages/pluggableWidgets/datagrid-web/src/utils/test-utils.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { dynamic, list, listAttr, listExp } from "@mendix/widget-plugin-test-uti
22
import { ColumnsType, DatagridContainerProps } from "../../typings/DatagridProps";
33
import { ColumnStore } from "../helpers/state/column/ColumnStore";
44
import { IColumnParentStore } from "../helpers/state/ColumnGroupStore";
5-
import { SelectActionHelper } from "../model/services/GridSelectActionsProvider.service";
5+
// import { SelectActionHelper } from "../model/services/GridSelectActionsProvider.service";
66
import { ColumnId, GridColumn } from "../typings/GridColumn";
77

88
export const column = (header = "Test", patch?: (col: ColumnsType) => void): ColumnsType => {
@@ -33,16 +33,6 @@ export const column = (header = "Test", patch?: (col: ColumnsType) => void): Col
3333
return c;
3434
};
3535

36-
export function mockSelectionProps(patch?: (props: SelectActionHelper) => SelectActionHelper): SelectActionHelper {
37-
const props = new SelectActionHelper("None", undefined, "checkbox", false, 5, "clear");
38-
39-
if (patch) {
40-
patch(props);
41-
}
42-
43-
return props;
44-
}
45-
4636
export function mockGridColumn(c: ColumnsType, index: number): GridColumn {
4737
const parentStore: IColumnParentStore = {
4838
isLastVisible(_column: ColumnStore): boolean {

packages/shared/widget-plugin-grid/src/selection/select-action-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SelectAdjacentFx, SelectAllFx, SelectFx, SelectionType, WidgetSelection
66
export class SelectActionHandler {
77
constructor(
88
private selection: WidgetSelectionProperty,
9-
protected selectionHelper: SelectionHelperService
9+
protected selectionHelper: SelectionHelperService | undefined
1010
) {}
1111

1212
get selectionType(): SelectionType {

0 commit comments

Comments
 (0)