@banyan_cloud/roots 1.0.130 → 1.0.131
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/cjs/index.js +12 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +12 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -47965,7 +47965,8 @@ var TableBody = function TableBody(props) {
|
|
|
47965
47965
|
className = props.className,
|
|
47966
47966
|
expandable = props.expandable,
|
|
47967
47967
|
rowHeight = props.rowHeight,
|
|
47968
|
-
onRowClick = props.onRowClick
|
|
47968
|
+
onRowClick = props.onRowClick,
|
|
47969
|
+
defaultActiveIndex = props.defaultActiveIndex;
|
|
47969
47970
|
var listRef = React.useRef([]);
|
|
47970
47971
|
return /*#__PURE__*/jsxRuntime.jsx("tbody", {
|
|
47971
47972
|
"data-elem": "table-body",
|
|
@@ -47993,6 +47994,9 @@ var TableBody = function TableBody(props) {
|
|
|
47993
47994
|
return /*#__PURE__*/jsxRuntime.jsx(TableRow, {
|
|
47994
47995
|
ref: function ref(node) {
|
|
47995
47996
|
listRef.current[_index] = node;
|
|
47997
|
+
if (!(node !== null && node !== void 0 && node.getAttribute('data-active')) && defaultActiveIndex === _index) {
|
|
47998
|
+
node === null || node === void 0 ? void 0 : node.setAttribute('data-active', true);
|
|
47999
|
+
}
|
|
47996
48000
|
},
|
|
47997
48001
|
datum: datum,
|
|
47998
48002
|
headerData: headerData,
|
|
@@ -48180,7 +48184,8 @@ var BaseTable = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
48180
48184
|
expandable = props.expandable,
|
|
48181
48185
|
onSort = props.onSort,
|
|
48182
48186
|
rowHeight = props.rowHeight,
|
|
48183
|
-
theme = props.theme
|
|
48187
|
+
theme = props.theme,
|
|
48188
|
+
defaultActiveIndex = props.defaultActiveIndex;
|
|
48184
48189
|
if (loading) {
|
|
48185
48190
|
return /*#__PURE__*/jsxRuntime.jsx(BaseTableSkeleton, {
|
|
48186
48191
|
theme: theme
|
|
@@ -48207,7 +48212,8 @@ var BaseTable = /*#__PURE__*/React.forwardRef(function BaseTable(props, ref) {
|
|
|
48207
48212
|
tableData: tableData,
|
|
48208
48213
|
expandable: expandable,
|
|
48209
48214
|
rowHeight: rowHeight,
|
|
48210
|
-
onRowClick: onRowClick
|
|
48215
|
+
onRowClick: onRowClick,
|
|
48216
|
+
defaultActiveIndex: defaultActiveIndex
|
|
48211
48217
|
})]
|
|
48212
48218
|
});
|
|
48213
48219
|
});
|
|
@@ -49260,7 +49266,8 @@ var Table = function Table(props) {
|
|
|
49260
49266
|
onSort = props.onSort,
|
|
49261
49267
|
rowHeight = props.rowHeight,
|
|
49262
49268
|
theme = props.theme,
|
|
49263
|
-
onRowClick = props.onRowClick
|
|
49269
|
+
onRowClick = props.onRowClick,
|
|
49270
|
+
defaultActiveIndex = props.defaultActiveIndex;
|
|
49264
49271
|
var ref = React.useRef(null);
|
|
49265
49272
|
var paginationRef = React.useRef(null);
|
|
49266
49273
|
var _useState = React.useState(false),
|
|
@@ -49362,6 +49369,7 @@ var Table = function Table(props) {
|
|
|
49362
49369
|
onSort: onSort,
|
|
49363
49370
|
rowHeight: rowHeight,
|
|
49364
49371
|
onRowClick: onRowClick,
|
|
49372
|
+
defaultActiveIndex: defaultActiveIndex,
|
|
49365
49373
|
loading: loading
|
|
49366
49374
|
}), paginationData != null && /*#__PURE__*/jsxRuntime.jsx(Pagination, _objectSpread2(_objectSpread2({
|
|
49367
49375
|
className: classes(modules_2e8406c7.pagination, floating ? modules_2e8406c7.floating : ''),
|