plataforma-fundacao-componentes 2.22.20 → 2.22.23
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/components/tableFileNameAndAction/TableFileNameAndAction.d.ts +1 -0
- package/dist/components/tableFileNameAndAction/TableFileNameAndAction.stories.d.ts +1 -0
- package/dist/index.css +21 -5
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -33
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9741,7 +9741,7 @@ function TableFileNameAndAction(props) {
|
|
|
9741
9741
|
var obj = line.file ? line.file : line;
|
|
9742
9742
|
return React.createElement("div", {
|
|
9743
9743
|
key: index,
|
|
9744
|
-
className: getMergedClassNames([rootClassName$1y + "-file", line.disabled ? 'disabled' : '', line.error ? 'error' : ''])
|
|
9744
|
+
className: getMergedClassNames([rootClassName$1y + "-file", props.white ? 'white' : '', line.disabled ? 'disabled' : '', line.error ? 'error' : ''])
|
|
9745
9745
|
}, React.createElement("span", null, obj.name), React.createElement(IconButton$1, {
|
|
9746
9746
|
icon: line.uploading ? React.createElement(PercentLoaderIcon, {
|
|
9747
9747
|
indefinido: line.indefinido,
|
|
@@ -9944,8 +9944,6 @@ var TableUpperHeader$1 = memo(TableUpperHeader);
|
|
|
9944
9944
|
var rootClassName$1B = 'component-table-with-overflow';
|
|
9945
9945
|
|
|
9946
9946
|
function TableWithOverflow(props) {
|
|
9947
|
-
var _props$lines;
|
|
9948
|
-
|
|
9949
9947
|
var mediaQuery = useScreenSize();
|
|
9950
9948
|
var wrapperClassName = useMemo(function () {
|
|
9951
9949
|
return getMergedClassNames([rootClassName$1B + "-wrapper", props.upperHeader ? 'has-upper-header' : '', props.noResultMessage && !props.lines.length ? 'no-result' : '', 'left-columns-padding']);
|
|
@@ -9995,9 +9993,6 @@ function TableWithOverflow(props) {
|
|
|
9995
9993
|
return prev + n;
|
|
9996
9994
|
}, 8) + "px" : '8px';
|
|
9997
9995
|
}, [props.columns, atLeastOneStaticColumn]);
|
|
9998
|
-
var renderKey = useMemo(function () {
|
|
9999
|
-
return getUniqueKey();
|
|
10000
|
-
}, [props.lines]);
|
|
10001
9996
|
var columnsHeader = useMemo(function () {
|
|
10002
9997
|
var _props$columns;
|
|
10003
9998
|
|
|
@@ -10006,14 +10001,43 @@ function TableWithOverflow(props) {
|
|
|
10006
10001
|
|
|
10007
10002
|
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10008
10003
|
return React.createElement("th", Object.assign({
|
|
10009
|
-
key: "header-" + column.key,
|
|
10004
|
+
key: "header-" + column.key + "-" + atLeastOneStaticColumn,
|
|
10010
10005
|
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
|
|
10011
10006
|
}, column.props, {
|
|
10012
10007
|
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
|
|
10013
10008
|
className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10014
10009
|
}), column.value);
|
|
10015
10010
|
});
|
|
10016
|
-
}, [props.columns,
|
|
10011
|
+
}, [props.columns, atLeastOneStaticColumn]);
|
|
10012
|
+
var lines = useMemo(function () {
|
|
10013
|
+
var _props$lines;
|
|
10014
|
+
|
|
10015
|
+
return (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
10016
|
+
var _props$columns2;
|
|
10017
|
+
|
|
10018
|
+
var k = line.key ? line.key : lineIndex;
|
|
10019
|
+
return React.createElement("tr", {
|
|
10020
|
+
key: k,
|
|
10021
|
+
"aria-disabled": line.disabled || false
|
|
10022
|
+
}, React.createElement("td", {
|
|
10023
|
+
"data-draggable": false,
|
|
10024
|
+
className: 'absolute left-0'
|
|
10025
|
+
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10026
|
+
var _column$props2, _column$props3;
|
|
10027
|
+
|
|
10028
|
+
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10029
|
+
return React.createElement("td", Object.assign({
|
|
10030
|
+
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10031
|
+
key: k + "-" + column.key + "-" + atLeastOneStaticColumn
|
|
10032
|
+
}, column.props, {
|
|
10033
|
+
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10034
|
+
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10035
|
+
}), line[column.key]);
|
|
10036
|
+
}), React.createElement("td", {
|
|
10037
|
+
className: 'absolute right-0'
|
|
10038
|
+
}));
|
|
10039
|
+
});
|
|
10040
|
+
}, [props.columns, props.lines, atLeastOneStaticColumn]);
|
|
10017
10041
|
return React.createElement("div", {
|
|
10018
10042
|
className: rootClassName$1B
|
|
10019
10043
|
}, props.upperHeader ? React.createElement("div", {
|
|
@@ -10043,31 +10067,7 @@ function TableWithOverflow(props) {
|
|
|
10043
10067
|
className: 'absolute left-0'
|
|
10044
10068
|
}), columnsHeader, React.createElement("th", {
|
|
10045
10069
|
className: 'absolute right-0'
|
|
10046
|
-
})), React.createElement("tr", null)), React.createElement("tbody", null,
|
|
10047
|
-
var _props$columns2;
|
|
10048
|
-
|
|
10049
|
-
var k = line.key ? line.key : lineIndex;
|
|
10050
|
-
return React.createElement("tr", {
|
|
10051
|
-
key: k,
|
|
10052
|
-
"aria-disabled": line.disabled || false
|
|
10053
|
-
}, React.createElement("td", {
|
|
10054
|
-
"data-draggable": false,
|
|
10055
|
-
className: 'absolute left-0'
|
|
10056
|
-
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
10057
|
-
var _column$props2, _column$props3;
|
|
10058
|
-
|
|
10059
|
-
var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
|
|
10060
|
-
return React.createElement("td", Object.assign({
|
|
10061
|
-
"data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
|
|
10062
|
-
key: k + "-" + column.key
|
|
10063
|
-
}, column.props, {
|
|
10064
|
-
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
|
|
10065
|
-
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
|
|
10066
|
-
}), line[column.key]);
|
|
10067
|
-
}), React.createElement("td", {
|
|
10068
|
-
className: 'absolute right-0'
|
|
10069
|
-
}));
|
|
10070
|
-
})))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10070
|
+
})), React.createElement("tr", null)), React.createElement("tbody", null, lines))), props.noResultMessage && !props.lines.length ? React.createElement("div", {
|
|
10071
10071
|
className: rootClassName$1B + "-no-result"
|
|
10072
10072
|
}, props.noResultMessage) : undefined));
|
|
10073
10073
|
}
|