@uxf/data-grid 11.22.1 → 11.23.2

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/_store/reducer.js CHANGED
@@ -77,7 +77,7 @@ const reducer = (state, action) => {
77
77
  f: state.request.f.filter((filter) => filter.name !== action.name),
78
78
  },
79
79
  };
80
- case "FILTER_RESET":
80
+ case "FILTER_CLEAR_ALL":
81
81
  return {
82
82
  ...state,
83
83
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/data-grid",
3
- "version": "11.22.1",
3
+ "version": "11.23.2",
4
4
  "description": "UXF DataGrid",
5
5
  "homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
6
6
  "main": "index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@uxf/core": "11.22.0",
35
35
  "@uxf/core-react": "11.22.0",
36
- "@uxf/ui": "11.22.1",
36
+ "@uxf/ui": "11.23.0",
37
37
  "dayjs": "1.11.10",
38
38
  "deepmerge": "4.3.1",
39
39
  "fast-glob": "3.3.2",
package/table/types.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface TableProps<Row> extends DataGridControl {
18
18
  bodyCells?: BodyCellComponents<any, any>;
19
19
  actionCell?: {
20
20
  width: number;
21
- Component: ActionCellComponent<any>;
21
+ Component: ActionCellComponent<Row>;
22
22
  };
23
23
  NoRowsFallback?: NoRowsFallbackComponent;
24
24
  isRowSelectable?: boolean;
@@ -18,7 +18,7 @@ export interface TableProps<Row> extends DataGridControl {
18
18
  bodyCells?: BodyCellComponents<any, any>;
19
19
  actionCell?: {
20
20
  width: number;
21
- Component: ActionCellComponent<any>;
21
+ Component: ActionCellComponent<Row>;
22
22
  };
23
23
  NoRowsFallback?: NoRowsFallbackComponent;
24
24
  isRowSelectable?: boolean;
@@ -6,6 +6,7 @@ export declare function createActions(dispatch: Dispatch<any>): {
6
6
  changePerPage: (perPage: number) => void;
7
7
  filter: (name: string, value: any, op?: string) => void;
8
8
  filterClear: (name: string) => void;
9
+ filterClearAll: () => void;
9
10
  sort: (columnName: string, direction?: string | null) => void;
10
11
  sortClear: () => void;
11
12
  search: (search: string) => void;
@@ -7,6 +7,7 @@ function createActions(dispatch) {
7
7
  changePerPage: (perPage) => dispatch({ type: "CHANGE_PER_PAGE", perPage }),
8
8
  filter: (name, value, op) => dispatch({ type: "FILTER", name, value, op }),
9
9
  filterClear: (name) => dispatch({ type: "FILTER_CLEAR", name }),
10
+ filterClearAll: () => dispatch({ type: "FILTER_CLEAR_ALL" }),
10
11
  sort: (columnName, direction = null) => dispatch({ type: "SORT", columnName, direction }),
11
12
  sortClear: () => dispatch({ type: "SORT_CLEAR" }),
12
13
  search: (search) => dispatch({ type: "FULLTEXT", search }),
@@ -15,6 +15,7 @@ export declare function useDataGridControl<T extends BaseGridType>(config: UseDa
15
15
  changePerPage: (perPage: number) => void;
16
16
  filter: (name: string, value: any, op?: string | undefined) => void;
17
17
  filterClear: (name: string) => void;
18
+ filterClearAll: () => void;
18
19
  sort: (columnName: string, direction?: string | null) => void;
19
20
  sortClear: () => void;
20
21
  search: (search: string) => void;