@banyan_cloud/roots 1.0.124 → 1.0.126
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 +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -49260,6 +49260,7 @@ var Table = function Table(props) {
|
|
|
49260
49260
|
paginationData = props.paginationData,
|
|
49261
49261
|
loading = props.loading,
|
|
49262
49262
|
onIntersection = props.onIntersection,
|
|
49263
|
+
isFloating = props.isFloating,
|
|
49263
49264
|
disabledFilterOptions = props.disabledFilterOptions,
|
|
49264
49265
|
onSort = props.onSort,
|
|
49265
49266
|
rowHeight = props.rowHeight,
|
|
@@ -49293,7 +49294,7 @@ var Table = function Table(props) {
|
|
|
49293
49294
|
setFloating(false);
|
|
49294
49295
|
onIntersection(true);
|
|
49295
49296
|
} else {
|
|
49296
|
-
setFloating(
|
|
49297
|
+
setFloating(isFloating);
|
|
49297
49298
|
}
|
|
49298
49299
|
});
|
|
49299
49300
|
};
|
|
@@ -49396,6 +49397,7 @@ Table.propTypes = {
|
|
|
49396
49397
|
chipsData: propTypes$1.exports.shape(_objectSpread2({}, TableChips.propTypes)),
|
|
49397
49398
|
filtersData: propTypes$1.exports.shape(_objectSpread2({}, TableFilters.propTypes)),
|
|
49398
49399
|
onIntersection: propTypes$1.exports.func,
|
|
49400
|
+
isFloating: propTypes$1.exports.bool,
|
|
49399
49401
|
paginationData: propTypes$1.exports.shape(_objectSpread2({}, Pagination.propTypes)),
|
|
49400
49402
|
loading: propTypes$1.exports.bool,
|
|
49401
49403
|
disabledFilterOptions: propTypes$1.exports.shape({
|
|
@@ -49416,6 +49418,7 @@ Table.defaultProps = {
|
|
|
49416
49418
|
activeData: {},
|
|
49417
49419
|
setActiveData: function setActiveData() {},
|
|
49418
49420
|
onIntersection: function onIntersection() {},
|
|
49421
|
+
isFloating: false,
|
|
49419
49422
|
customCells: {
|
|
49420
49423
|
header: null,
|
|
49421
49424
|
body: null
|
|
@@ -113574,15 +113577,16 @@ var BaseMap = function BaseMap(props) {
|
|
|
113574
113577
|
}));
|
|
113575
113578
|
}
|
|
113576
113579
|
}, [clustered, children, map]);
|
|
113580
|
+
var childCount = React.Children.count(children);
|
|
113577
113581
|
React.useEffect(function () {
|
|
113578
|
-
if (fitBounds && map &&
|
|
113582
|
+
if (fitBounds && map && childCount > 0) {
|
|
113579
113583
|
var bounds = new google.maps.LatLngBounds();
|
|
113580
113584
|
React.Children.forEach(children, function (child) {
|
|
113581
113585
|
bounds.extend(new google.maps.LatLng(child.props.position.lat, child.props.position.lng));
|
|
113582
113586
|
});
|
|
113583
113587
|
map.fitBounds(bounds);
|
|
113584
113588
|
}
|
|
113585
|
-
}, [fitBounds, map]);
|
|
113589
|
+
}, [fitBounds, map, childCount]);
|
|
113586
113590
|
useDeepCompareEffectForMaps(function () {
|
|
113587
113591
|
if (map) {
|
|
113588
113592
|
map.setOptions(options);
|