@pdg/react-table 1.0.25 → 1.0.27
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/index.js
CHANGED
|
@@ -9008,6 +9008,18 @@ var Table = React__default["default"].forwardRef(function (_a, ref) {
|
|
|
9008
9008
|
React.useEffect(function () {
|
|
9009
9009
|
stopHeadCheckTimer();
|
|
9010
9010
|
clearFireOnCheckChangeTimer();
|
|
9011
|
+
Object.keys(localHeaderDataRef.current).forEach(function (key) {
|
|
9012
|
+
var _a;
|
|
9013
|
+
if (localHeaderDataRef.current[key].column.type === 'check') {
|
|
9014
|
+
(_a = localHeaderDataRef.current[key].commands) === null || _a === void 0 ? void 0 : _a.setChecked(false);
|
|
9015
|
+
}
|
|
9016
|
+
});
|
|
9017
|
+
Object.keys(localBodyDataRef.current).forEach(function (key) {
|
|
9018
|
+
Object.keys(localBodyDataRef.current[key].columns).forEach(function (cKey) {
|
|
9019
|
+
var _a;
|
|
9020
|
+
(_a = localBodyDataRef.current[key].columns[cKey].commands) === null || _a === void 0 ? void 0 : _a.setChecked(false);
|
|
9021
|
+
});
|
|
9022
|
+
});
|
|
9011
9023
|
setSortableItems(makeSortableItems(items));
|
|
9012
9024
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9013
9025
|
}, [items]);
|
|
@@ -9621,7 +9633,7 @@ TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultPro
|
|
|
9621
9633
|
placement: 'bottom',
|
|
9622
9634
|
};var TableMenuButton = React__default["default"].forwardRef(function (_a, ref) {
|
|
9623
9635
|
// ID ----------------------------------------------------------------------------------------------------------------
|
|
9624
|
-
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, icon = _a.icon, startIcon = _a.startIcon, endIcon = _a.endIcon, placement = _a.placement, menuList = _a.menuList, props = __rest$1(_a, ["children", "className", "sx", "color", "icon", "startIcon", "endIcon", "placement", "menuList"]);
|
|
9636
|
+
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, icon = _a.icon, startIcon = _a.startIcon, endIcon = _a.endIcon, placement = _a.placement, inModal = _a.inModal, zIndex = _a.zIndex, menuList = _a.menuList, props = __rest$1(_a, ["children", "className", "sx", "color", "icon", "startIcon", "endIcon", "placement", "inModal", "zIndex", "menuList"]);
|
|
9625
9637
|
var buttonId = React.useId();
|
|
9626
9638
|
var menuId = React.useId();
|
|
9627
9639
|
// Use ---------------------------------------------------------------------------------------------------------------
|
|
@@ -9694,7 +9706,7 @@ TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultPro
|
|
|
9694
9706
|
}, id: buttonId, "aria-controls": open ? menuId : undefined, "aria-expanded": open ? 'true' : undefined, "aria-haspopup": 'true', className: classNames(className, 'TableMenuButton'), type: 'button', size: 'small', sx: sx, color: color, onClick: handleClick, startIcon: startIcon ? (React__default["default"].createElement(TableIcon, { fontSize: 'small', sx: { mr: -0.5 } }, startIcon)) : undefined, endIcon: endIcon ? (React__default["default"].createElement(TableIcon, { fontSize: 'small', sx: { ml: -0.5 } }, endIcon)) : undefined }, props),
|
|
9695
9707
|
icon && (React__default["default"].createElement(TableIcon, { fontSize: 'small', color: color }, icon)),
|
|
9696
9708
|
children),
|
|
9697
|
-
React__default["default"].createElement(material.Popper, { open: open, anchorEl: anchorRef.current, role: undefined, placement: placement, transition: true }, function (_a) {
|
|
9709
|
+
React__default["default"].createElement(material.Popper, { open: open, anchorEl: anchorRef.current, role: undefined, placement: placement, transition: true, style: { zIndex: inModal ? (zIndex === undefined ? 1301 : zIndex) : zIndex } }, function (_a) {
|
|
9698
9710
|
var TransitionProps = _a.TransitionProps, placement = _a.placement;
|
|
9699
9711
|
return (React__default["default"].createElement(material.Grow, __assign$1({}, TransitionProps, { style: {
|
|
9700
9712
|
transformOrigin: placement === 'bottom-start' ? 'left top' : 'left bottom',
|