@uxf/data-grid 11.2.3 → 11.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/data-grid",
3
- "version": "11.2.3",
3
+ "version": "11.2.5",
4
4
  "description": "UXF DataGrid",
5
5
  "homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
6
6
  "main": "index.js",
@@ -31,7 +31,7 @@ function useReactDataGridColumns(props, state) {
31
31
  const { onReload, schema, isRowSelectable, bodyCells, actionCell } = props;
32
32
  const columnsConfig = state.userConfig.columns;
33
33
  return (0, react_1.useMemo)(() => {
34
- var _a, _b, _c, _d;
34
+ var _a, _b, _c, _d, _e, _f, _g;
35
35
  const columns = [];
36
36
  if (isRowSelectable) {
37
37
  columns.push(react_data_grid_1.SelectColumn);
@@ -48,7 +48,7 @@ function useReactDataGridColumns(props, state) {
48
48
  resizable: true,
49
49
  sortable: schemaColumn.sort,
50
50
  width: (_d = (_c = (_b = state.userConfig.columns) === null || _b === void 0 ? void 0 : _b[schemaColumn.name]) === null || _c === void 0 ? void 0 : _c.width) !== null && _d !== void 0 ? _d : schemaColumn.width,
51
- minWidth: schemaColumn.minWidth,
51
+ minWidth: (_g = (_f = (_e = state.userConfig.columns) === null || _e === void 0 ? void 0 : _e[schemaColumn.name]) === null || _f === void 0 ? void 0 : _f.minWidth) !== null && _g !== void 0 ? _g : schemaColumn.minWidth,
52
52
  maxWidth: schemaColumn.maxWidth,
53
53
  cellClass: (0, cx_1.cx)("uxf-data-grid__cell", `uxf-data-grid__cell--type-${schemaColumn.type}`, `uxf-data-grid__cell--name-${schemaColumn.name}`),
54
54
  renderCell: (p) => {
package/types/state.d.ts CHANGED
@@ -12,6 +12,7 @@ export type GridRequest = {
12
12
  interface ColumnConfig {
13
13
  isHidden?: boolean;
14
14
  width?: number;
15
+ minWidth?: number;
15
16
  }
16
17
  export interface DataGridUserConfig {
17
18
  columns?: Record<string, ColumnConfig>;
@@ -26,7 +26,8 @@ function useDataGridFetching(config) {
26
26
  setIsLoading(false);
27
27
  setError(e);
28
28
  });
29
- }, [stringStateRequest, schema.dir, schema.sort, loader, gridName]);
29
+ // eslint-disable-next-line react-hooks/exhaustive-deps
30
+ }, [stringStateRequest, schema.sort, schema.dir, gridName]);
30
31
  (0, react_1.useEffect)(() => {
31
32
  reload();
32
33
  }, [reload]);