@majoo-ui/react 1.57.12 → 1.57.13
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.
|
@@ -62,6 +62,10 @@ interface EditableTableProps<Data extends object> {
|
|
|
62
62
|
* expanded row callback.
|
|
63
63
|
*/
|
|
64
64
|
onExpand?: (expanded: boolean) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Override isMobile condition
|
|
67
|
+
*/
|
|
68
|
+
isMobileLayout?: boolean;
|
|
65
69
|
}
|
|
66
70
|
interface RemoveProps {
|
|
67
71
|
position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
|
package/index.esm.js
CHANGED
|
@@ -47509,7 +47509,8 @@ function EditableTable(props) {
|
|
|
47509
47509
|
getCheckboxProps,
|
|
47510
47510
|
keyId = 'id',
|
|
47511
47511
|
selectedIds,
|
|
47512
|
-
onExpand
|
|
47512
|
+
onExpand,
|
|
47513
|
+
isMobileLayout
|
|
47513
47514
|
} = props;
|
|
47514
47515
|
const {
|
|
47515
47516
|
t
|
|
@@ -47582,7 +47583,7 @@ function EditableTable(props) {
|
|
|
47582
47583
|
});
|
|
47583
47584
|
}
|
|
47584
47585
|
}, [selectedRowIds, data, onSelectedChange, selectedIndex]);
|
|
47585
|
-
const
|
|
47586
|
+
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 767px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
47586
47587
|
const getCustomRows = (row, renderRow) => {
|
|
47587
47588
|
var _a;
|
|
47588
47589
|
let customStyle = {};
|
|
@@ -47634,7 +47635,7 @@ function EditableTable(props) {
|
|
|
47634
47635
|
})
|
|
47635
47636
|
}), void 0);
|
|
47636
47637
|
};
|
|
47637
|
-
return
|
|
47638
|
+
return !isMobile ? jsx(TableContainer$1, Object.assign({
|
|
47638
47639
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
47639
47640
|
}, {
|
|
47640
47641
|
children: jsxs(TableContent$1, Object.assign({}, getTableProps(), {
|
package/index.umd.js
CHANGED
|
@@ -47928,7 +47928,8 @@
|
|
|
47928
47928
|
_a = props.keyId,
|
|
47929
47929
|
keyId = _a === void 0 ? 'id' : _a,
|
|
47930
47930
|
selectedIds = props.selectedIds,
|
|
47931
|
-
onExpand = props.onExpand
|
|
47931
|
+
onExpand = props.onExpand,
|
|
47932
|
+
isMobileLayout = props.isMobileLayout;
|
|
47932
47933
|
var t = reactI18next.useTranslation('translation').t;
|
|
47933
47934
|
var _b = React.useState(null),
|
|
47934
47935
|
selectedIndex = _b[0],
|
|
@@ -48000,7 +48001,7 @@
|
|
|
48000
48001
|
});
|
|
48001
48002
|
}
|
|
48002
48003
|
}, [selectedRowIds, data, onSelectedChange, selectedIndex]);
|
|
48003
|
-
var
|
|
48004
|
+
var isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 767px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
48004
48005
|
var getCustomRows = function getCustomRows(row, renderRow) {
|
|
48005
48006
|
var _a;
|
|
48006
48007
|
var customStyle = {};
|
|
@@ -48055,7 +48056,7 @@
|
|
|
48055
48056
|
})
|
|
48056
48057
|
}), void 0);
|
|
48057
48058
|
};
|
|
48058
|
-
return
|
|
48059
|
+
return !isMobile ? jsxRuntime.jsx(TableContainer$1, __assign({
|
|
48059
48060
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
48060
48061
|
}, {
|
|
48061
48062
|
children: jsxRuntime.jsxs(TableContent$1, __assign({}, getTableProps(), {
|