@redsift/table 11.8.3-muiv5 → 11.9.0-muiv5
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/_internal/BasePopper.js +3 -3
- package/_internal/BasePopper.js.map +1 -1
- package/_internal/DataGrid2.js +1 -1
- package/_internal/StatefulDataGrid2.js +1 -1
- package/_internal/useControlledDatagridState.js +22 -22
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +14 -1
- package/index.js +1 -1
- package/package.json +4 -4
package/_internal/DataGrid2.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useRef, useState, useEffect, useMemo } from
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useTheme, ThemeProvider, RedsiftColorBlueN, RedsiftColorNeutralXDarkGrey, RedsiftColorNeutralWhite } from '@redsift/design-system';
|
|
5
5
|
import { useGridApiRef, DataGridPro, gridPaginatedVisibleSortedGridRowEntriesSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import {
|
|
6
|
+
import { M as LicenseInfo, N as useControlledDatagridState, T as ThemeProvider$1, O as StyledDataGrid, f as customColumnTypes } from './useControlledDatagridState.js';
|
|
7
7
|
import { T as Toolbar } from './Toolbar2.js';
|
|
8
8
|
import { o as onServerSideSelectionStatusChange, S as ServerSideControlledPagination, C as ControlledPagination } from './ControlledPagination.js';
|
|
9
9
|
import { g as createTheme } from './Portal.js';
|
|
@@ -3,7 +3,7 @@ import React__default, { useCallback, useEffect, useMemo, forwardRef, useRef, us
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { useTheme, ThemeProvider, RedsiftColorBlueN, RedsiftColorNeutralXDarkGrey, RedsiftColorNeutralWhite } from '@redsift/design-system';
|
|
5
5
|
import { GridLinkOperator, useGridApiRef, DataGridPro, gridPaginatedVisibleSortedGridRowEntriesSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector } from '@mui/x-data-grid-pro';
|
|
6
|
-
import { o as operatorList,
|
|
6
|
+
import { o as operatorList, M as LicenseInfo, N as useControlledDatagridState, T as ThemeProvider$1, O as StyledDataGrid, f as customColumnTypes } from './useControlledDatagridState.js';
|
|
7
7
|
import { g as createTheme } from './Portal.js';
|
|
8
8
|
import { T as Toolbar } from './Toolbar2.js';
|
|
9
9
|
import { o as onServerSideSelectionStatusChange, S as ServerSideControlledPagination, C as ControlledPagination } from './ControlledPagination.js';
|
|
@@ -1754,6 +1754,27 @@ const containsAnyOfCIOperator = {
|
|
|
1754
1754
|
const CONTAINS_ANY_OF = containsAnyOfOperator;
|
|
1755
1755
|
const CONTAINS_ANY_OF_I = containsAnyOfCIOperator;
|
|
1756
1756
|
|
|
1757
|
+
const doesNotHaveAnyOf = {
|
|
1758
|
+
label: "doesn't have any of",
|
|
1759
|
+
value: 'doesNotHaveAnyOf',
|
|
1760
|
+
getApplyFilterFn: filterItem => {
|
|
1761
|
+
if (!filterItem.columnField || !filterItem.value || !Array.isArray(filterItem.value) || filterItem.value.length === 0) {
|
|
1762
|
+
return null;
|
|
1763
|
+
}
|
|
1764
|
+
return params => {
|
|
1765
|
+
const cellValues = Array.isArray(params.value) ? params.value : [params.value];
|
|
1766
|
+
|
|
1767
|
+
// Return true only if none of the filter values are in the cell values
|
|
1768
|
+
return filterItem.value.every(filterVal => !cellValues.map(value => String(value)).includes(filterVal));
|
|
1769
|
+
};
|
|
1770
|
+
},
|
|
1771
|
+
InputComponent: GridFilterInputMultipleValue
|
|
1772
|
+
};
|
|
1773
|
+
const DOES_NOT_HAVE_ANY_OF = doesNotHaveAnyOf;
|
|
1774
|
+
const DOES_NOT_HAVE_ANY_OF_WITH_SELECT = _objectSpread2(_objectSpread2({}, DOES_NOT_HAVE_ANY_OF), {}, {
|
|
1775
|
+
InputComponent: GridFilterInputMultipleSingleSelect
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1757
1778
|
const endsWithAnyOfOperator = {
|
|
1758
1779
|
label: 'ends with any of',
|
|
1759
1780
|
value: 'endsWithAnyOf',
|
|
@@ -1910,27 +1931,6 @@ const startsWithAnyOfOperator = {
|
|
|
1910
1931
|
};
|
|
1911
1932
|
const STARTS_WITH_ANY_OF = startsWithAnyOfOperator;
|
|
1912
1933
|
|
|
1913
|
-
const doesNotHaveAnyOf = {
|
|
1914
|
-
label: "doesn't have any of",
|
|
1915
|
-
value: 'doesNotHaveAnyOf',
|
|
1916
|
-
getApplyFilterFn: filterItem => {
|
|
1917
|
-
if (!filterItem.columnField || !filterItem.value || !Array.isArray(filterItem.value) || filterItem.value.length === 0) {
|
|
1918
|
-
return null;
|
|
1919
|
-
}
|
|
1920
|
-
return params => {
|
|
1921
|
-
const cellValues = Array.isArray(params.value) ? params.value : [params.value];
|
|
1922
|
-
|
|
1923
|
-
// Return true only if none of the filter values are in the cell values
|
|
1924
|
-
return filterItem.value.every(filterVal => !cellValues.map(value => String(value)).includes(filterVal));
|
|
1925
|
-
};
|
|
1926
|
-
},
|
|
1927
|
-
InputComponent: GridFilterInputMultipleValue
|
|
1928
|
-
};
|
|
1929
|
-
const DOES_NOT_HAVE_ANY_OF = doesNotHaveAnyOf;
|
|
1930
|
-
const DOES_NOT_HAVE_ANY_OF_WITH_SELECT = _objectSpread2(_objectSpread2({}, DOES_NOT_HAVE_ANY_OF), {}, {
|
|
1931
|
-
InputComponent: GridFilterInputMultipleSingleSelect
|
|
1932
|
-
});
|
|
1933
|
-
|
|
1934
1934
|
const getGridStringArrayOperators = () => [CONTAINS_ANY_OF, ENDS_WITH_ANY_OF, IS_ANY_OF, IS_ANY_OF_I, IS_NOT_ANY_OF, STARTS_WITH_ANY_OF];
|
|
1935
1935
|
const getGridStringArrayOperatorsWithSelect = () => [CONTAINS_ANY_OF, ENDS_WITH_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_ANY_OF_I_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, STARTS_WITH_ANY_OF];
|
|
1936
1936
|
const getGridStringArrayOperatorsWithSelectOnStringArrayColumns = () => [HAS_WITH_SELECT, HAS_ANY_OF_WITH_SELECT, HAS_ONLY_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DOES_NOT_HAVE_ANY_OF_WITH_SELECT];
|
|
@@ -2199,5 +2199,5 @@ const useControlledDatagridState = _ref => {
|
|
|
2199
2199
|
};
|
|
2200
2200
|
};
|
|
2201
2201
|
|
|
2202
|
-
export {
|
|
2202
|
+
export { IS_ANY_OF_I_WITH_SELECT as A, HAS_ANY_OF as B, CONTAINS_ANY_OF as C, DOES_NOT_CONTAIN as D, ENDS_WITH_ANY_OF as E, HAS_ANY_OF_WITH_SELECT as F, IS_NOT_ANY_OF as G, HAS as H, IS_BETWEEN as I, getGridStringArrayOperators as J, getGridStringArrayOperatorsWithSelect as K, getGridStringArrayOperatorsWithSelectOnStringArrayColumns as L, LicenseInfo as M, useControlledDatagridState as N, StyledDataGrid as O, STARTS_WITH_ANY_OF as S, ThemeProvider as T, getRsNumberColumnType as a, getRsSingleSelectColumnType as b, getRsSingleSelectWithShortOperatorListColumnType as c, getRsMultipleSelectColumnType as d, getRsMultipleSelectWithShortOperatorListColumnType as e, customColumnTypes as f, getRsStringColumnType as g, getGridNumericOperators as h, DOES_NOT_EQUAL as i, DOES_NOT_HAVE as j, DOES_NOT_HAVE_WITH_SELECT as k, HAS_WITH_SELECT as l, HAS_ONLY as m, HAS_ONLY_WITH_SELECT as n, operatorList as o, IS as p, IS_WITH_SELECT as q, IS_NOT as r, IS_NOT_WITH_SELECT as s, getGridStringOperators as t, CONTAINS_ANY_OF_I as u, DOES_NOT_HAVE_ANY_OF as v, DOES_NOT_HAVE_ANY_OF_WITH_SELECT as w, IS_ANY_OF as x, IS_ANY_OF_WITH_SELECT as y, IS_ANY_OF_I as z };
|
|
2203
2203
|
//# sourceMappingURL=useControlledDatagridState.js.map
|