@dooherceg/material-react-table 3.2.2-alpha.11 → 3.2.2-alpha.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4372,7 +4372,7 @@ const MRT_AdvancedFiltersRuleRow = ({ filterableColumns, isFirst, isPinned, logi
|
|
|
4372
4372
|
xs: 'auto minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.5fr) auto auto',
|
|
4373
4373
|
},
|
|
4374
4374
|
width: '100%',
|
|
4375
|
-
}, children: [jsxRuntime.jsxs(TextField, { disabled: !isFirst, fullWidth: true, onChange: (event) => onUpdateLogicOperator(event.target.value), select: true, size: "small", value: logicOperator, variant: "outlined", children: [jsxRuntime.jsx(MenuItem, { value: "and", children: localization.and }), jsxRuntime.jsx(MenuItem, { value: "or", children: localization.or })] }), jsxRuntime.jsx(TextField, { fullWidth: true, label: localization.columns, onChange: (event) => handleColumnChange(event.target.value), select: true, size: "small", value: selectedColumn.id, variant: "outlined", children: filterableColumns.map((column) => (jsxRuntime.jsx(MenuItem, { value: column.id, children: column.columnDef.header || localization[column.id] || column.id }, column.id))) }), jsxRuntime.jsx(TextField, { fullWidth: true, label: localization.filterOperator, onChange: (event) => handleOperatorChange(event.target.value), select: true, size: "small", value: selectedOperator.id, variant: "outlined", children: availableOperators.map((operator) => (jsxRuntime.jsx(MenuItem, { value: operator.id, children: getLocalizedFilterOperatorLabel(localization, operator.id, operator.label) }, operator.id))) }), jsxRuntime.jsx(Box, { "data-testid": FILTER_RULE_VALUE_TEST_ID, onKeyDown: (event) => {
|
|
4375
|
+
}, children: [jsxRuntime.jsxs(TextField, { disabled: !isFirst, fullWidth: true, onChange: (event) => onUpdateLogicOperator(event.target.value), select: true, size: "small", value: logicOperator, variant: "outlined", "data-testid": "logic-operator", children: [jsxRuntime.jsx(MenuItem, { value: "and", children: localization.and }), jsxRuntime.jsx(MenuItem, { value: "or", children: localization.or })] }), jsxRuntime.jsx(TextField, { fullWidth: true, label: localization.columns, onChange: (event) => handleColumnChange(event.target.value), select: true, size: "small", value: selectedColumn.id, variant: "outlined", children: filterableColumns.map((column) => (jsxRuntime.jsx(MenuItem, { value: column.id, children: column.columnDef.header || localization[column.id] || column.id }, column.id))) }), jsxRuntime.jsx(TextField, { fullWidth: true, label: localization.filterOperator, onChange: (event) => handleOperatorChange(event.target.value), select: true, size: "small", value: selectedOperator.id, variant: "outlined", children: availableOperators.map((operator) => (jsxRuntime.jsx(MenuItem, { value: operator.id, children: getLocalizedFilterOperatorLabel(localization, operator.id, operator.label) }, operator.id))) }), jsxRuntime.jsx(Box, { "data-testid": FILTER_RULE_VALUE_TEST_ID, onKeyDown: (event) => {
|
|
4376
4376
|
const shouldApplyOnEnter = selectedOperator.valueShape !== 'multi';
|
|
4377
4377
|
if (event.key === 'Enter' && onApply && shouldApplyOnEnter) {
|
|
4378
4378
|
// Prevent the Enter from bubbling to MUI Drawer/Modal infrastructure
|
|
@@ -5375,7 +5375,7 @@ const MRT_SavedFiltersButton = ({ onSelectFilter, table, }) => {
|
|
|
5375
5375
|
justifyContent: 'space-between',
|
|
5376
5376
|
gap: 1,
|
|
5377
5377
|
minWidth: 180,
|
|
5378
|
-
}, children: [jsxRuntime.jsx(ListItemText, { onClick: () => handleSelectFilter(savedFilter), primary: savedFilter.name, sx: { cursor: 'pointer', flexGrow: 1 } }), onDeleteSavedFilter && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Divider, { flexItem: true, orientation: "vertical" }), jsxRuntime.jsx(DeleteForeverIcon, { color: "error", fontSize: "small", onClick: (event) => {
|
|
5378
|
+
}, children: [jsxRuntime.jsx(ListItemText, { onClick: () => handleSelectFilter(savedFilter), primary: savedFilter.name, sx: { cursor: 'pointer', flexGrow: 1 }, "data-testid": "saved-filter-item" }), onDeleteSavedFilter && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Divider, { flexItem: true, orientation: "vertical" }), jsxRuntime.jsx(DeleteForeverIcon, { color: "error", fontSize: "small", onClick: (event) => {
|
|
5379
5379
|
event.stopPropagation();
|
|
5380
5380
|
handleDeleteFilter(savedFilter.name);
|
|
5381
5381
|
}, sx: { cursor: 'pointer', flexShrink: 0 } })] }))] }, savedFilter.name)))] })] }));
|