plataforma-fundacao-componentes 2.22.15 → 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.
package/dist/index.modern.js
CHANGED
|
@@ -9931,7 +9931,9 @@ function TableUpperHeader(props) {
|
|
|
9931
9931
|
})), props.collapsedContent ? React.createElement(Collapse$1, {
|
|
9932
9932
|
opened: props.opened,
|
|
9933
9933
|
animateOpacity: true
|
|
9934
|
-
},
|
|
9934
|
+
}, React.createElement(Row$1, {
|
|
9935
|
+
className: rootClassName$1A + "-collapsed"
|
|
9936
|
+
}, props.collapsedContent)) : undefined);
|
|
9935
9937
|
}
|
|
9936
9938
|
|
|
9937
9939
|
var TableUpperHeader$1 = memo(TableUpperHeader);
|
|
@@ -9943,8 +9945,8 @@ function TableWithOverflow(props) {
|
|
|
9943
9945
|
|
|
9944
9946
|
var mediaQuery = useScreenSize();
|
|
9945
9947
|
var wrapperClassName = useMemo(function () {
|
|
9946
|
-
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
|
|
9947
|
-
}, [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]);
|
|
9948
9950
|
var outerTableRef = createRef();
|
|
9949
9951
|
useDraggableScroll(outerTableRef, {
|
|
9950
9952
|
mouseDownCondition: function mouseDownCondition(el) {
|
|
@@ -10023,7 +10025,7 @@ function TableWithOverflow(props) {
|
|
|
10023
10025
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10024
10026
|
return React.createElement("th", Object.assign({
|
|
10025
10027
|
key: "header-" + column.key,
|
|
10026
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(
|
|
10028
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10027
10029
|
}, column.props, {
|
|
10028
10030
|
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10029
10031
|
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
@@ -10053,7 +10055,9 @@ function TableWithOverflow(props) {
|
|
|
10053
10055
|
}), React.createElement("td", {
|
|
10054
10056
|
className: 'absolute right-0'
|
|
10055
10057
|
}));
|
|
10056
|
-
}))))
|
|
10058
|
+
})))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10059
|
+
className: rootClassName$1B + "-no-result"
|
|
10060
|
+
}, props.noResultMessage) : undefined));
|
|
10057
10061
|
}
|
|
10058
10062
|
|
|
10059
10063
|
TableWithOverflow.defaultProps = {
|