@redsift/table 11.11.0-muiv8-alpha.3 → 11.11.0-muiv8-alpha.4
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/DataGrid2.js +3 -3
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/ServerSideControlledPagination.js +26 -1
- package/_internal/ServerSideControlledPagination.js.map +1 -1
- package/_internal/StatefulDataGrid2.js +3 -3
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/useControlledDatagridState.js +1 -1
- package/index.d.ts +16 -2
- package/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import { P as PropTypes,
|
|
3
|
+
import { P as PropTypes, K as exactProp, L as useTheme$1, B as useId, M as useEnhancedEffect, N as GlobalStyles, R as RtlProvider, Q as DefaultPropsProvider, U as GlobalStyles$1, T as THEME_ID, j as createTheme, V as createTypography, e as styleFunctionSx } from './ServerSideControlledPagination.js';
|
|
4
4
|
import { j as jsxRuntimeExports } from './jsx-runtime.js';
|
|
5
5
|
import { ThemeContext as ThemeContext$2 } from '@emotion/react';
|
|
6
6
|
import styled, { css } from 'styled-components';
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
-
import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect,
|
|
2
|
+
import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, GridRowId, GridRowSelectionModel, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridInitialState, GridSlotsComponent, GridApiPro, GridCallbackDetails, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
3
3
|
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
4
|
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
|
|
5
5
|
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
|
|
@@ -265,6 +265,14 @@ declare const buildStorageKey: ({ id, version, category }: {
|
|
|
265
265
|
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
266
266
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
267
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Type for legacy array-based row selection (v7 and earlier)
|
|
270
|
+
*/
|
|
271
|
+
type LegacyRowSelectionModel = GridRowId[];
|
|
272
|
+
/**
|
|
273
|
+
* Type that accepts both legacy array format and new v8 object format
|
|
274
|
+
*/
|
|
275
|
+
type RowSelectionModelInput = LegacyRowSelectionModel | GridRowSelectionModel;
|
|
268
276
|
/**
|
|
269
277
|
* Default empty row selection model for MUI DataGrid v8+
|
|
270
278
|
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
@@ -274,6 +282,12 @@ declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
|
274
282
|
* Creates a new row selection model with the given ids
|
|
275
283
|
*/
|
|
276
284
|
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
285
|
+
/**
|
|
286
|
+
* Normalizes a row selection model input to the v8 GridRowSelectionModel format.
|
|
287
|
+
* Accepts both legacy array format (v7) and new object format (v8).
|
|
288
|
+
* This allows consumers to continue using arrays while internally using the v8 format.
|
|
289
|
+
*/
|
|
290
|
+
declare const normalizeRowSelectionModel: (input: RowSelectionModelInput | undefined | null) => GridRowSelectionModel;
|
|
277
291
|
/**
|
|
278
292
|
* Gets the size/count of selected rows from a selection model
|
|
279
293
|
*/
|
|
@@ -811,4 +825,4 @@ type ToolbarWrapperProps = {
|
|
|
811
825
|
};
|
|
812
826
|
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
813
827
|
|
|
814
|
-
export { BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, EMPTY_ROW_SELECTION_MODEL, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_I, IS_ANY_OF_I_WITH_SELECT, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, ModelsTable, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
|
828
|
+
export { BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, EMPTY_ROW_SELECTION_MODEL, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_I, IS_ANY_OF_I_WITH_SELECT, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, LegacyRowSelectionModel, ModelsTable, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, RowSelectionModelInput, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, muiIconToDSIcon, normalizeRowSelectionModel, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as operatorList } from './_internal/StatefulDataGrid2.js';
|
|
2
2
|
export { L as CATEGORIES, C as CONTAINS_ANY_OF, m as CONTAINS_ANY_OF_I, J as DIMENSION_MODEL_KEY, D as DOES_NOT_CONTAIN, a as DOES_NOT_EQUAL, b as DOES_NOT_HAVE, n as DOES_NOT_HAVE_ANY_OF, p as DOES_NOT_HAVE_ANY_OF_WITH_SELECT, c as DOES_NOT_HAVE_WITH_SELECT, E as ENDS_WITH_ANY_OF, F as FILTER_MODEL_KEY, K as FILTER_SEARCH_KEY, H as HAS, u as HAS_ANY_OF, v as HAS_ANY_OF_WITH_SELECT, e as HAS_ONLY, f as HAS_ONLY_WITH_SELECT, d as HAS_WITH_SELECT, h as IS, q as IS_ANY_OF, s as IS_ANY_OF_I, t as IS_ANY_OF_I_WITH_SELECT, r as IS_ANY_OF_WITH_SELECT, I as IS_BETWEEN, j as IS_NOT, w as IS_NOT_ANY_OF, x as IS_NOT_ANY_OF_WITH_SELECT, k as IS_NOT_WITH_SELECT, i as IS_WITH_SELECT, P as PAGINATION_MODEL_KEY, G as PINNED_COLUMNS, B as SORT_MODEL_KEY, S as STARTS_WITH_ANY_OF, ag as StatefulDataGrid, V as VISIBILITY_MODEL_KEY, af as areFilterModelsEquivalent, U as areSearchStringsEqual, T as buildQueryParamsString, M as buildStorageKey, N as clearPreviousVersionStorage, Q as convertFromDisplayFormat, O as convertToDisplayFormat, W as decodeValue, X as encodeValue, a7 as getColumnVisibilityFromString, R as getDecodedSearchFromUrl, a1 as getFilterModelFromString, ac as getFinalSearch, g as getGridNumericOperators, y as getGridStringArrayOperators, z as getGridStringArrayOperatorsWithSelect, A as getGridStringArrayOperatorsWithSelectOnStringArrayColumns, l as getGridStringOperators, ad as getModelsParsedOrUpdateLocalStorage, a5 as getPaginationFromString, a9 as getPinnedColumnsFromString, a8 as getSearchParamsFromColumnVisibility, a2 as getSearchParamsFromFilterModel, a6 as getSearchParamsFromPagination, aa as getSearchParamsFromPinnedColumns, a4 as getSearchParamsFromSorting, ab as getSearchParamsFromTab, a3 as getSortingFromString, $ as isOperatorValueValid, a0 as isValueValid, _ as numberOperatorDecoder, Z as numberOperatorEncoder, o as operatorList, ae as updateUrl, Y as urlSearchParamsToString } from './_internal/StatefulDataGrid2.js';
|
|
3
3
|
export { D as DEFAULT_OPERATORS, G as GridToolbarFilterSemanticField, g as getCompletion } from './_internal/GridToolbarFilterSemanticField2.js';
|
|
4
|
-
export { C as ControlledPagination, E as EMPTY_ROW_SELECTION_MODEL, S as ServerSideControlledPagination, c as createRowSelectionModel, a as getSelectedIds, g as getSelectionCount, i as isRowSelected, o as onServerSideSelectionStatusChange } from './_internal/ServerSideControlledPagination.js';
|
|
4
|
+
export { C as ControlledPagination, E as EMPTY_ROW_SELECTION_MODEL, S as ServerSideControlledPagination, c as createRowSelectionModel, a as getSelectedIds, g as getSelectionCount, i as isRowSelected, n as normalizeRowSelectionModel, o as onServerSideSelectionStatusChange } from './_internal/ServerSideControlledPagination.js';
|
|
5
5
|
import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';
|
|
6
6
|
export { getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
7
7
|
export { B as BaseButton, a as BaseCheckbox, b as BaseIcon, c as BaseIconButton, m as muiIconToDSIcon } from './_internal/BaseIconButton.js';
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "yarn test:unit && yarn test:storybook"
|
|
31
31
|
},
|
|
32
32
|
"types": "types.d.ts",
|
|
33
|
-
"version": "11.11.0-muiv8-alpha.
|
|
33
|
+
"version": "11.11.0-muiv8-alpha.4",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@emotion/react": "^11.11.0",
|
|
36
36
|
"@emotion/styled": "^11.11.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"react-dom": ">=17",
|
|
92
92
|
"styled-components": "^5.3.5"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "c6c2c9201788a3abd5cb35328ebdda5c14316cff"
|
|
95
95
|
}
|