plataforma-fundacao-componentes 2.22.17 → 2.22.18

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.
@@ -9945,8 +9945,8 @@ function TableWithOverflow(props) {
9945
9945
 
9946
9946
  var mediaQuery = useScreenSize();
9947
9947
  var wrapperClassName = useMemo(function () {
9948
- return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
9949
- }, [props.upperHeader]);
9948
+ return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
9949
+ }, [props.upperHeader, props.lines, props.noResultMessage]);
9950
9950
  var outerTableRef = createRef();
9951
9951
  useDraggableScroll(outerTableRef, {
9952
9952
  mouseDownCondition: function mouseDownCondition(el) {
@@ -10025,7 +10025,7 @@ function TableWithOverflow(props) {
10025
10025
  var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10026
10026
  return React.createElement("th", Object.assign({
10027
10027
  key: "header-" + column.key,
10028
- "data-draggable": atLeastOneStaticColumn && !Boolean(absoluteObj)
10028
+ "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
10029
10029
  }, column.props, {
10030
10030
  style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
10031
10031
  className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
@@ -10055,7 +10055,9 @@ function TableWithOverflow(props) {
10055
10055
  }), React.createElement("td", {
10056
10056
  className: 'absolute right-0'
10057
10057
  }));
10058
- }))))));
10058
+ })))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
10059
+ className: rootClassName$1B + "-no-result"
10060
+ }, props.noResultMessage) : undefined));
10059
10061
  }
10060
10062
 
10061
10063
  TableWithOverflow.defaultProps = {