@nokecy/qc-ui 0.3.8 → 0.3.10

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.
@@ -284,14 +284,14 @@ function AgGridPlus(props) {
284
284
  return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
285
285
  return !x.hideInTable;
286
286
  });
287
- }, [children, props.columnDefs]);
287
+ }, [props.columnDefs]);
288
288
  var allColDefs = (0, _react.useMemo)(function () {
289
289
  var columnProps = _react.default.Children.map(children, function (child, index) {
290
290
  return child.props;
291
291
  });
292
292
 
293
293
  return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps;
294
- }, [children, props.columnDefs]);
294
+ }, [props.columnDefs]);
295
295
  var rowDataMemo = (0, _react.useMemo)(function () {
296
296
  return props.treeData ? (0, _utils.flatten)((0, _utils.toTree)(rowData), treeParentName) : rowData;
297
297
  }, [rowData, props.treeData]);
@@ -173,8 +173,8 @@ var FormRender = function FormRender(props) {
173
173
  var state = columnStates.find(function (x) {
174
174
  return x.colId == colDef.field;
175
175
  });
176
- console.log("state", state);
177
- return _objectSpread(_objectSpread({}, colDef), state);
176
+ var columnDefs = gridApi === null || gridApi === void 0 ? void 0 : gridApi.getColumnDef(colDef.field);
177
+ return _objectSpread(_objectSpread({}, columnDefs), state);
178
178
  });
179
179
  columns = columns ? (_columns = columns) === null || _columns === void 0 ? void 0 : _columns.filter(function (i) {
180
180
  return (i === null || i === void 0 ? void 0 : i.visible) != false && !(i !== null && i !== void 0 && i.hide) && !(i !== null && i !== void 0 && i.hideInSearch) || (i === null || i === void 0 ? void 0 : i.hideInTable);
@@ -256,13 +256,13 @@ function AgGridPlus(props) {
256
256
  return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
257
257
  return !x.hideInTable;
258
258
  });
259
- }, [children, props.columnDefs]);
259
+ }, [props.columnDefs]);
260
260
  var allColDefs = useMemo(function () {
261
261
  var columnProps = React.Children.map(children, function (child, index) {
262
262
  return child.props;
263
263
  });
264
264
  return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps;
265
- }, [children, props.columnDefs]);
265
+ }, [props.columnDefs]);
266
266
  var rowDataMemo = useMemo(function () {
267
267
  return props.treeData ? flatten(toTree(rowData), treeParentName) : rowData;
268
268
  }, [rowData, props.treeData]);
@@ -152,8 +152,8 @@ var FormRender = function FormRender(props) {
152
152
  var state = columnStates.find(function (x) {
153
153
  return x.colId == colDef.field;
154
154
  });
155
- console.log("state", state);
156
- return _objectSpread(_objectSpread({}, colDef), state);
155
+ var columnDefs = gridApi === null || gridApi === void 0 ? void 0 : gridApi.getColumnDef(colDef.field);
156
+ return _objectSpread(_objectSpread({}, columnDefs), state);
157
157
  });
158
158
  columns = columns ? (_columns = columns) === null || _columns === void 0 ? void 0 : _columns.filter(function (i) {
159
159
  return (i === null || i === void 0 ? void 0 : i.visible) != false && !(i !== null && i !== void 0 && i.hide) && !(i !== null && i !== void 0 && i.hideInSearch) || (i === null || i === void 0 ? void 0 : i.hideInTable);