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.
@@ -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
@@ -15248,7 +15248,6 @@ h5 {
15248
15248
  border-bottom: 1px solid;
15249
15249
  transition: background-color 0.3s ease, color 0.3s ease;
15250
15250
  background-color: #cdd3cd;
15251
- color: #828a82;
15252
15251
  border-color: #828a82; }
15253
15252
  .component-upper-header-table .component-upper-header-table-btn {
15254
15253
  font-size: 16px;
@@ -15280,7 +15279,6 @@ h5 {
15280
15279
  max-height: 20px !important; }
15281
15280
  .component-upper-header-table.active {
15282
15281
  background-color: #d7e6c8;
15283
- color: #3fa110;
15284
15282
  border-color: #3fa110; }
15285
15283
  .component-upper-header-table.active .component-upper-header-table-btn:not(:disabled) {
15286
15284
  background-color: #d7e6c8;
@@ -15293,6 +15291,10 @@ h5 {
15293
15291
  padding-right: 8px;
15294
15292
  display: flex;
15295
15293
  flex-wrap: wrap; }
15294
+ .component-upper-header-table .component-upper-header-table-collapsed {
15295
+ border-top: 1px solid #3fa110;
15296
+ background-color: #eff4eb;
15297
+ padding: var(--colPadding); }
15296
15298
 
15297
15299
  @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");
15298
15300
  @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");
@@ -15450,6 +15452,7 @@ h5 {
15450
15452
  .component-table-with-overflow .component-table-with-overflow-wrapper .component-table-with-overflow-outer-table table thead tr:nth-child(2) {
15451
15453
  height: 12px; }
15452
15454
  .component-table-with-overflow .component-table-with-overflow-wrapper .component-table-with-overflow-outer-table table tbody tr td {
15455
+ min-height: 44px;
15453
15456
  background-color: #fefefe;
15454
15457
  padding: 12px 8px;
15455
15458
  white-space: nowrap; }
@@ -15528,6 +15531,22 @@ tr:first-child th:last-child {
15528
15531
  right: 0;
15529
15532
  width: 8px;
15530
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; }
15531
15550
 
15532
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");
15533
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
@@ -9912,7 +9912,9 @@ function TableUpperHeader(props) {
9912
9912
  })), props.collapsedContent ? React__default.createElement(Collapse$1, {
9913
9913
  opened: props.opened,
9914
9914
  animateOpacity: true
9915
- }, props.collapsedContent) : undefined);
9915
+ }, React__default.createElement(Row$1, {
9916
+ className: rootClassName$1A + "-collapsed"
9917
+ }, props.collapsedContent)) : undefined);
9916
9918
  }
9917
9919
 
9918
9920
  var TableUpperHeader$1 = React.memo(TableUpperHeader);
@@ -9924,8 +9926,8 @@ function TableWithOverflow(props) {
9924
9926
 
9925
9927
  var mediaQuery = useScreenSize();
9926
9928
  var wrapperClassName = React.useMemo(function () {
9927
- return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
9928
- }, [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]);
9929
9931
  var outerTableRef = React.createRef();
9930
9932
  useDraggableScroll(outerTableRef, {
9931
9933
  mouseDownCondition: function mouseDownCondition(el) {
@@ -10004,7 +10006,7 @@ function TableWithOverflow(props) {
10004
10006
  var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10005
10007
  return React__default.createElement("th", Object.assign({
10006
10008
  key: "header-" + column.key,
10007
- "data-draggable": atLeastOneStaticColumn && !Boolean(absoluteObj)
10009
+ "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
10008
10010
  }, column.props, {
10009
10011
  style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
10010
10012
  className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
@@ -10034,7 +10036,9 @@ function TableWithOverflow(props) {
10034
10036
  }), React__default.createElement("td", {
10035
10037
  className: 'absolute right-0'
10036
10038
  }));
10037
- }))))));
10039
+ })))), props.noResultMessage && !props.lines.length ? React__default.createElement("div", {
10040
+ className: rootClassName$1B + "-no-result"
10041
+ }, props.noResultMessage) : undefined));
10038
10042
  }
10039
10043
 
10040
10044
  TableWithOverflow.defaultProps = {