@nokecy/qc-ui 0.2.9 → 0.2.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.
@@ -275,6 +275,8 @@ function AgGridPlus(props) {
275
275
  var colDefs = (0, _react.useMemo)(function () {
276
276
  return _react.default.Children.map(children, function (child, index) {
277
277
  return child.props;
278
+ }).filter(function (x) {
279
+ return !x.hideInTable;
278
280
  });
279
281
  }, []);
280
282
  var rowDataMemo = (0, _react.useMemo)(function () {
@@ -30,7 +30,7 @@ interface AgGridColumnPropsClone extends ColDef {
30
30
  hideInTable?: boolean;
31
31
  hideInSearch?: boolean;
32
32
  queryField?: string;
33
- searchComponent?: ReactNode | JSX.Element;
33
+ searchComponent?: ReactNode | JSX.Element | ((props: any) => JSX.Element);
34
34
  searchComponentProps?: any;
35
35
  searchSort?: number;
36
36
  }
@@ -248,6 +248,8 @@ function AgGridPlus(props) {
248
248
  var colDefs = useMemo(function () {
249
249
  return React.Children.map(children, function (child, index) {
250
250
  return child.props;
251
+ }).filter(function (x) {
252
+ return !x.hideInTable;
251
253
  });
252
254
  }, []);
253
255
  var rowDataMemo = useMemo(function () {
@@ -30,7 +30,7 @@ interface AgGridColumnPropsClone extends ColDef {
30
30
  hideInTable?: boolean;
31
31
  hideInSearch?: boolean;
32
32
  queryField?: string;
33
- searchComponent?: ReactNode | JSX.Element;
33
+ searchComponent?: ReactNode | JSX.Element | ((props: any) => JSX.Element);
34
34
  searchComponentProps?: any;
35
35
  searchSort?: number;
36
36
  }