plataforma-fundacao-componentes 2.22.16 → 2.22.19
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
|
@@ -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(
|
|
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' : ''])
|
|
@@ -10035,8 +10035,9 @@ function TableWithOverflow(props) {
|
|
|
10035
10035
|
})), React.createElement("tr", null)), React.createElement("tbody", null, (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
10036
10036
|
var _props$columns2;
|
|
10037
10037
|
|
|
10038
|
+
var k = line.key ? line.key : lineIndex;
|
|
10038
10039
|
return React.createElement("tr", {
|
|
10039
|
-
key:
|
|
10040
|
+
key: k,
|
|
10040
10041
|
"aria-disabled": line.disabled || false
|
|
10041
10042
|
}, React.createElement("td", {
|
|
10042
10043
|
"data-draggable": false,
|
|
@@ -10047,7 +10048,7 @@ function TableWithOverflow(props) {
|
|
|
10047
10048
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10048
10049
|
return React.createElement("td", Object.assign({
|
|
10049
10050
|
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10050
|
-
key:
|
|
10051
|
+
key: k + "-" + column.key
|
|
10051
10052
|
}, column.props, {
|
|
10052
10053
|
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10053
10054
|
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
@@ -10055,7 +10056,9 @@ function TableWithOverflow(props) {
|
|
|
10055
10056
|
}), React.createElement("td", {
|
|
10056
10057
|
className: 'absolute right-0'
|
|
10057
10058
|
}));
|
|
10058
|
-
}))))
|
|
10059
|
+
})))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10060
|
+
className: rootClassName$1B + "-no-result"
|
|
10061
|
+
}, props.noResultMessage) : undefined));
|
|
10059
10062
|
}
|
|
10060
10063
|
|
|
10061
10064
|
TableWithOverflow.defaultProps = {
|