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.
|
@@ -19,6 +19,7 @@ interface TableWithOverflowProps {
|
|
|
19
19
|
showTopNavigator?: boolean;
|
|
20
20
|
columns: ColumnObject[];
|
|
21
21
|
lines?: any[];
|
|
22
|
+
noResultMessage?: string;
|
|
22
23
|
}
|
|
23
24
|
declare function TableWithOverflow(props: TableWithOverflowProps): JSX.Element;
|
|
24
25
|
declare namespace TableWithOverflow {
|
package/dist/index.css
CHANGED
|
@@ -15531,6 +15531,22 @@ tr:first-child th:last-child {
|
|
|
15531
15531
|
right: 0;
|
|
15532
15532
|
width: 8px;
|
|
15533
15533
|
height: 44px; } }
|
|
15534
|
+
.component-table-with-overflow .component-table-with-overflow-wrapper.no-result {
|
|
15535
|
+
padding-bottom: 44px; }
|
|
15536
|
+
.component-table-with-overflow .component-table-with-overflow-no-result {
|
|
15537
|
+
-webkit-user-select: none;
|
|
15538
|
+
-moz-user-select: none;
|
|
15539
|
+
-ms-user-select: none;
|
|
15540
|
+
user-select: none;
|
|
15541
|
+
position: absolute;
|
|
15542
|
+
left: 0;
|
|
15543
|
+
width: 100%;
|
|
15544
|
+
display: flex;
|
|
15545
|
+
align-items: center;
|
|
15546
|
+
justify-content: center;
|
|
15547
|
+
background-color: #fefefe;
|
|
15548
|
+
border-radius: 8px;
|
|
15549
|
+
min-height: 44px; }
|
|
15534
15550
|
|
|
15535
15551
|
@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
|
15536
15552
|
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap");
|
package/dist/index.js
CHANGED
|
@@ -9926,8 +9926,8 @@ function TableWithOverflow(props) {
|
|
|
9926
9926
|
|
|
9927
9927
|
var mediaQuery = useScreenSize();
|
|
9928
9928
|
var wrapperClassName = React.useMemo(function () {
|
|
9929
|
-
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
|
|
9930
|
-
}, [props.upperHeader]);
|
|
9929
|
+
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
|
|
9930
|
+
}, [props.upperHeader, props.lines, props.noResultMessage]);
|
|
9931
9931
|
var outerTableRef = React.createRef();
|
|
9932
9932
|
useDraggableScroll(outerTableRef, {
|
|
9933
9933
|
mouseDownCondition: function mouseDownCondition(el) {
|
|
@@ -10006,7 +10006,7 @@ function TableWithOverflow(props) {
|
|
|
10006
10006
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10007
10007
|
return React__default.createElement("th", Object.assign({
|
|
10008
10008
|
key: "header-" + column.key,
|
|
10009
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(
|
|
10009
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10010
10010
|
}, column.props, {
|
|
10011
10011
|
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10012
10012
|
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
@@ -10036,7 +10036,9 @@ function TableWithOverflow(props) {
|
|
|
10036
10036
|
}), React__default.createElement("td", {
|
|
10037
10037
|
className: 'absolute right-0'
|
|
10038
10038
|
}));
|
|
10039
|
-
}))))
|
|
10039
|
+
})))), props.noResultMessage && !props.lines.length ? React__default.createElement("div", {
|
|
10040
|
+
className: rootClassName$1B + "-no-result"
|
|
10041
|
+
}, props.noResultMessage) : undefined));
|
|
10040
10042
|
}
|
|
10041
10043
|
|
|
10042
10044
|
TableWithOverflow.defaultProps = {
|