@mui/x-data-grid 5.6.1 → 5.7.0
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/CHANGELOG.md +71 -1
- package/DataGrid/DataGrid.js +10 -0
- package/DataGrid/useDataGridComponent.js +8 -2
- package/components/ErrorOverlay.js +8 -1
- package/components/GridLoadingOverlay.d.ts +4 -2
- package/components/GridLoadingOverlay.js +11 -2
- package/components/GridNoResultsOverlay.d.ts +3 -2
- package/components/GridNoRowsOverlay.d.ts +4 -2
- package/components/GridNoRowsOverlay.js +11 -2
- package/components/base/GridErrorHandler.js +6 -25
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.js +66 -5
- package/components/cell/GridEditSingleSelectCell.js +76 -4
- package/components/columnHeaders/GridColumnHeaderTitle.d.ts +2 -2
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/components/containers/GridOverlay.d.ts +9 -2
- package/components/containers/GridOverlay.js +11 -2
- package/components/containers/GridRootStyles.js +2 -2
- package/components/panel/GridColumnsPanel.d.ts +4 -1
- package/components/panel/GridColumnsPanel.js +3 -3
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +4 -6
- package/hooks/core/preProcessing/gridPreProcessingApi.d.ts +11 -15
- package/hooks/core/preProcessing/useGridPreProcessing.d.ts +3 -0
- package/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
- package/hooks/core/preProcessing/useGridRegisterPreProcessor.d.ts +5 -2
- package/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +58 -0
- package/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/hooks/core/strategyProcessing/index.d.ts +3 -0
- package/hooks/core/strategyProcessing/index.js +3 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +4 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +37 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +114 -0
- package/hooks/core/useGridInitialization.js +2 -2
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +6 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +12 -4
- package/hooks/features/columns/gridColumnsUtils.js +113 -29
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +79 -42
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridCellEditing.new.js +315 -0
- package/hooks/features/editRows/{useGridCellEditing.d.ts → useGridCellEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/hooks/features/editRows/useGridEditing.new.d.ts +6 -0
- package/hooks/features/editRows/useGridEditing.new.js +118 -0
- package/hooks/features/editRows/{useGridEditing.d.ts → useGridEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +486 -0
- package/hooks/features/editRows/{useGridRowEditing.d.ts → useGridRowEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/hooks/features/filter/gridFilterState.d.ts +2 -5
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +21 -27
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.js +37 -1
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +5 -0
- package/hooks/features/rows/gridRowsState.d.ts +20 -5
- package/hooks/features/rows/useGridRows.d.ts +0 -3
- package/hooks/features/rows/useGridRows.js +63 -42
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +3 -0
- package/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/hooks/features/selection/useGridSelection.js +4 -0
- package/hooks/features/sorting/gridSortingState.d.ts +2 -5
- package/hooks/features/sorting/useGridSorting.js +7 -26
- package/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
- package/index.js +1 -1
- package/internals/index.d.ts +10 -7
- package/internals/index.js +4 -3
- package/legacy/DataGrid/DataGrid.js +10 -0
- package/legacy/DataGrid/useDataGridComponent.js +8 -2
- package/legacy/components/ErrorOverlay.js +8 -1
- package/legacy/components/GridLoadingOverlay.js +11 -2
- package/legacy/components/GridNoRowsOverlay.js +11 -2
- package/legacy/components/base/GridErrorHandler.js +3 -24
- package/legacy/components/cell/GridEditBooleanCell.js +2 -1
- package/legacy/components/cell/GridEditDateCell.js +2 -1
- package/legacy/components/cell/GridEditInputCell.js +66 -5
- package/legacy/components/cell/GridEditSingleSelectCell.js +83 -7
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/legacy/components/containers/GridOverlay.js +11 -2
- package/legacy/components/containers/GridRootStyles.js +2 -2
- package/legacy/components/panel/GridColumnsPanel.js +3 -3
- package/legacy/components/panel/GridPreferencesPanel.js +4 -6
- package/legacy/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
- package/legacy/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
- package/legacy/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/legacy/hooks/core/strategyProcessing/index.js +3 -0
- package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +119 -0
- package/legacy/hooks/core/useGridInitialization.js +2 -2
- package/legacy/hooks/features/columns/gridColumnsUtils.js +117 -27
- package/legacy/hooks/features/columns/useGridColumns.js +80 -43
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +329 -0
- package/legacy/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/legacy/hooks/features/editRows/useGridEditing.new.js +152 -0
- package/legacy/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +493 -0
- package/legacy/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/legacy/hooks/features/filter/useGridFilter.js +21 -27
- package/legacy/hooks/features/focus/useGridFocus.js +37 -1
- package/legacy/hooks/features/rows/useGridRows.js +65 -44
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +36 -0
- package/legacy/hooks/features/selection/useGridSelection.js +4 -0
- package/legacy/hooks/features/sorting/useGridSorting.js +7 -26
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +4 -3
- package/legacy/locales/arSD.js +62 -58
- package/legacy/locales/faIR.js +26 -22
- package/legacy/locales/koKR.js +1 -1
- package/legacy/locales/plPL.js +30 -26
- package/legacy/models/events/gridEvents.js +2 -1
- package/legacy/models/gridEditRowModel.js +1 -0
- package/legacy/models/params/gridEditCellParams.js +34 -1
- package/legacy/models/params/gridRowParams.js +39 -1
- package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +5 -1
- package/legacy/utils/utils.js +150 -3
- package/locales/arSD.js +58 -58
- package/locales/faIR.js +22 -22
- package/locales/koKR.js +1 -1
- package/locales/plPL.js +26 -26
- package/models/api/gridApiCommon.d.ts +2 -2
- package/models/api/gridEditingApi.d.ts +125 -4
- package/models/api/gridFocusApi.d.ts +9 -0
- package/models/api/index.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +4 -0
- package/models/events/gridEventLookup.d.ts +11 -5
- package/models/events/gridEvents.d.ts +9 -2
- package/models/events/gridEvents.js +2 -1
- package/models/gridEditRowModel.d.ts +4 -3
- package/models/gridEditRowModel.js +1 -0
- package/models/params/gridCellParams.d.ts +10 -1
- package/models/params/gridEditCellParams.d.ts +50 -0
- package/models/params/gridEditCellParams.js +34 -1
- package/models/params/gridRowParams.d.ts +41 -1
- package/models/params/gridRowParams.js +39 -1
- package/models/props/DataGridProps.d.ts +13 -1
- package/modern/DataGrid/DataGrid.js +10 -0
- package/modern/DataGrid/useDataGridComponent.js +6 -2
- package/modern/components/ErrorOverlay.js +8 -1
- package/modern/components/GridLoadingOverlay.js +11 -2
- package/modern/components/GridNoRowsOverlay.js +11 -2
- package/modern/components/base/GridErrorHandler.js +1 -20
- package/modern/components/cell/GridEditBooleanCell.js +1 -1
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +64 -5
- package/modern/components/cell/GridEditSingleSelectCell.js +72 -4
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/modern/components/containers/GridOverlay.js +11 -2
- package/modern/components/containers/GridRootStyles.js +2 -2
- package/modern/components/panel/GridColumnsPanel.js +3 -3
- package/modern/components/panel/GridPreferencesPanel.js +3 -5
- package/modern/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
- package/modern/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
- package/modern/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/modern/hooks/core/strategyProcessing/index.js +3 -0
- package/modern/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +112 -0
- package/modern/hooks/core/useGridInitialization.js +2 -2
- package/modern/hooks/features/columns/gridColumnsUtils.js +113 -27
- package/modern/hooks/features/columns/useGridColumns.js +74 -39
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +315 -0
- package/modern/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/modern/hooks/features/editRows/useGridEditing.new.js +118 -0
- package/modern/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +484 -0
- package/modern/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/modern/hooks/features/filter/useGridFilter.js +17 -27
- package/modern/hooks/features/focus/useGridFocus.js +37 -1
- package/modern/hooks/features/rows/useGridRows.js +63 -42
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/modern/hooks/features/selection/useGridSelection.js +4 -0
- package/modern/hooks/features/sorting/useGridSorting.js +7 -26
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
- package/modern/index.js +1 -1
- package/modern/internals/index.js +4 -3
- package/modern/locales/arSD.js +58 -58
- package/modern/locales/faIR.js +22 -22
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/plPL.js +26 -26
- package/modern/models/events/gridEvents.js +2 -1
- package/modern/models/gridEditRowModel.js +1 -0
- package/modern/models/params/gridEditCellParams.js +34 -1
- package/modern/models/params/gridRowParams.js +39 -1
- package/modern/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/modern/utils/utils.js +150 -3
- package/node/DataGrid/DataGrid.js +10 -0
- package/node/DataGrid/useDataGridComponent.js +11 -3
- package/node/components/ErrorOverlay.js +10 -1
- package/node/components/GridLoadingOverlay.js +10 -1
- package/node/components/GridNoRowsOverlay.js +10 -1
- package/node/components/base/GridErrorHandler.js +7 -30
- package/node/components/cell/GridEditBooleanCell.js +1 -1
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +66 -5
- package/node/components/cell/GridEditSingleSelectCell.js +76 -4
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/node/components/containers/GridOverlay.js +10 -1
- package/node/components/containers/GridRootStyles.js +2 -2
- package/node/components/panel/GridColumnsPanel.js +3 -3
- package/node/components/panel/GridPreferencesPanel.js +4 -5
- package/node/hooks/core/preProcessing/useGridPreProcessing.js +4 -1
- package/node/hooks/core/preProcessing/useGridRegisterPreProcessor.js +3 -0
- package/node/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/node/hooks/core/strategyProcessing/index.js +44 -0
- package/node/hooks/{features/sorting/useGridRegisterSortingMethod.js → core/strategyProcessing/useGridRegisterStrategyProcessor.js} +18 -9
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +135 -0
- package/node/hooks/core/useGridInitialization.js +2 -2
- package/node/hooks/features/columns/gridColumnsUtils.js +118 -31
- package/node/hooks/features/columns/useGridColumns.js +82 -41
- package/node/hooks/features/editRows/useGridCellEditing.new.js +334 -0
- package/node/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/node/hooks/features/editRows/useGridEditing.new.js +142 -0
- package/node/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/node/hooks/features/editRows/useGridRowEditing.new.js +499 -0
- package/node/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +6 -6
- package/node/hooks/features/filter/useGridFilter.js +21 -26
- package/node/hooks/features/focus/useGridFocus.js +40 -1
- package/node/hooks/features/rows/useGridRows.js +62 -41
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +46 -0
- package/node/hooks/features/selection/useGridSelection.js +4 -0
- package/node/hooks/features/sorting/useGridSorting.js +7 -26
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
- package/node/index.js +1 -1
- package/node/internals/index.js +29 -15
- package/node/locales/arSD.js +58 -58
- package/node/locales/faIR.js +22 -22
- package/node/locales/koKR.js +1 -1
- package/node/locales/plPL.js +26 -26
- package/node/models/events/gridEvents.js +2 -1
- package/node/models/gridEditRowModel.js +1 -0
- package/node/models/params/gridEditCellParams.js +37 -1
- package/node/models/params/gridRowParams.js +42 -1
- package/node/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/node/utils/utils.js +152 -11
- package/package.json +1 -1
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +2 -0
- package/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/utils/utils.d.ts +27 -2
- package/utils/utils.js +150 -3
- package/hooks/core/rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.d.ts +0 -35
- package/hooks/core/rowGroupsPreProcessing/index.d.ts +0 -2
- package/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.d.ts +0 -3
- package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -72
- package/hooks/features/filter/useGridRegisterFilteringMethod.d.ts +0 -4
- package/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/hooks/features/sorting/useGridRegisterSortingMethod.d.ts +0 -4
- package/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/legacy/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/legacy/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -71
- package/legacy/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/legacy/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/legacy/lib/lodash/_DataView.js +0 -8
- package/legacy/lib/lodash/_Hash.js +0 -33
- package/legacy/lib/lodash/_ListCache.js +0 -33
- package/legacy/lib/lodash/_Map.js +0 -8
- package/legacy/lib/lodash/_MapCache.js +0 -33
- package/legacy/lib/lodash/_Promise.js +0 -8
- package/legacy/lib/lodash/_Set.js +0 -8
- package/legacy/lib/lodash/_SetCache.js +0 -28
- package/legacy/lib/lodash/_Stack.js +0 -28
- package/legacy/lib/lodash/_Symbol.js +0 -7
- package/legacy/lib/lodash/_Uint8Array.js +0 -7
- package/legacy/lib/lodash/_WeakMap.js +0 -8
- package/legacy/lib/lodash/_arrayFilter.js +0 -29
- package/legacy/lib/lodash/_arrayLikeKeys.js +0 -46
- package/legacy/lib/lodash/_arrayPush.js +0 -23
- package/legacy/lib/lodash/_arraySome.js +0 -26
- package/legacy/lib/lodash/_assocIndexOf.js +0 -25
- package/legacy/lib/lodash/_baseGetAllKeys.js +0 -22
- package/legacy/lib/lodash/_baseGetTag.js +0 -29
- package/legacy/lib/lodash/_baseIsArguments.js +0 -20
- package/legacy/lib/lodash/_baseIsEqual.js +0 -32
- package/legacy/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/legacy/lib/lodash/_baseIsNative.js +0 -47
- package/legacy/lib/lodash/_baseIsTypedArray.js +0 -49
- package/legacy/lib/lodash/_baseKeys.js +0 -35
- package/legacy/lib/lodash/_baseTimes.js +0 -23
- package/legacy/lib/lodash/_baseUnary.js +0 -16
- package/legacy/lib/lodash/_cacheHas.js +0 -15
- package/legacy/lib/lodash/_coreJsData.js +0 -7
- package/legacy/lib/lodash/_equalArrays.js +0 -84
- package/legacy/lib/lodash/_equalByTag.js +0 -117
- package/legacy/lib/lodash/_equalObjects.js +0 -92
- package/legacy/lib/lodash/_freeGlobal.js +0 -6
- package/legacy/lib/lodash/_getAllKeys.js +0 -18
- package/legacy/lib/lodash/_getMapData.js +0 -18
- package/legacy/lib/lodash/_getNative.js +0 -19
- package/legacy/lib/lodash/_getRawTag.js +0 -50
- package/legacy/lib/lodash/_getSymbols.js +0 -32
- package/legacy/lib/lodash/_getTag.js +0 -64
- package/legacy/lib/lodash/_getValue.js +0 -15
- package/legacy/lib/lodash/_hashClear.js +0 -17
- package/legacy/lib/lodash/_hashDelete.js +0 -19
- package/legacy/lib/lodash/_hashGet.js +0 -34
- package/legacy/lib/lodash/_hashHas.js +0 -25
- package/legacy/lib/lodash/_hashSet.js +0 -25
- package/legacy/lib/lodash/_isIndex.js +0 -25
- package/legacy/lib/lodash/_isKeyable.js +0 -18
- package/legacy/lib/lodash/_isMasked.js +0 -23
- package/legacy/lib/lodash/_isPrototype.js +0 -19
- package/legacy/lib/lodash/_listCacheClear.js +0 -15
- package/legacy/lib/lodash/_listCacheDelete.js +0 -40
- package/legacy/lib/lodash/_listCacheGet.js +0 -20
- package/legacy/lib/lodash/_listCacheHas.js +0 -18
- package/legacy/lib/lodash/_listCacheSet.js +0 -29
- package/legacy/lib/lodash/_mapCacheClear.js +0 -23
- package/legacy/lib/lodash/_mapCacheDelete.js +0 -20
- package/legacy/lib/lodash/_mapCacheGet.js +0 -18
- package/legacy/lib/lodash/_mapCacheHas.js +0 -18
- package/legacy/lib/lodash/_mapCacheSet.js +0 -23
- package/legacy/lib/lodash/_mapToArray.js +0 -19
- package/legacy/lib/lodash/_nativeCreate.js +0 -7
- package/legacy/lib/lodash/_nativeKeys.js +0 -7
- package/legacy/lib/lodash/_nodeUtil.js +0 -25
- package/legacy/lib/lodash/_objectToString.js +0 -24
- package/legacy/lib/lodash/_overArg.js +0 -17
- package/legacy/lib/lodash/_root.js +0 -11
- package/legacy/lib/lodash/_setCacheAdd.js +0 -22
- package/legacy/lib/lodash/_setCacheHas.js +0 -16
- package/legacy/lib/lodash/_setToArray.js +0 -19
- package/legacy/lib/lodash/_stackClear.js +0 -17
- package/legacy/lib/lodash/_stackDelete.js +0 -19
- package/legacy/lib/lodash/_stackGet.js +0 -16
- package/legacy/lib/lodash/_stackHas.js +0 -16
- package/legacy/lib/lodash/_stackSet.js +0 -40
- package/legacy/lib/lodash/_toSource.js +0 -30
- package/legacy/lib/lodash/date.default.js +0 -4
- package/legacy/lib/lodash/date.js +0 -2
- package/legacy/lib/lodash/eq.js +0 -39
- package/legacy/lib/lodash/function.default.js +0 -4
- package/legacy/lib/lodash/function.js +0 -2
- package/legacy/lib/lodash/isArguments.js +0 -38
- package/legacy/lib/lodash/isArray.js +0 -27
- package/legacy/lib/lodash/isArrayLike.js +0 -35
- package/legacy/lib/lodash/isBuffer.js +0 -40
- package/legacy/lib/lodash/isDeepEqual.js +0 -45
- package/legacy/lib/lodash/isFunction.js +0 -40
- package/legacy/lib/lodash/isLength.js +0 -36
- package/legacy/lib/lodash/isObject.js +0 -36
- package/legacy/lib/lodash/isObjectLike.js +0 -33
- package/legacy/lib/lodash/isSymbol.js +0 -31
- package/legacy/lib/lodash/isTypedArray.js +0 -28
- package/legacy/lib/lodash/keys.js +0 -39
- package/legacy/lib/lodash/lang.default.js +0 -28
- package/legacy/lib/lodash/lang.js +0 -14
- package/legacy/lib/lodash/now.js +0 -25
- package/legacy/lib/lodash/object.default.js +0 -4
- package/legacy/lib/lodash/object.js +0 -2
- package/legacy/lib/lodash/stubArray.js +0 -25
- package/legacy/lib/lodash/stubFalse.js +0 -20
- package/legacy/lib/lodash/toNumber.js +0 -70
- package/legacy/lib/lodash/util.default.js +0 -6
- package/legacy/lib/lodash/util.js +0 -3
- package/lib/lodash/_DataView.d.ts +0 -2
- package/lib/lodash/_DataView.js +0 -8
- package/lib/lodash/_Hash.d.ts +0 -29
- package/lib/lodash/_Hash.js +0 -33
- package/lib/lodash/_ListCache.d.ts +0 -29
- package/lib/lodash/_ListCache.js +0 -33
- package/lib/lodash/_Map.d.ts +0 -2
- package/lib/lodash/_Map.js +0 -8
- package/lib/lodash/_MapCache.d.ts +0 -29
- package/lib/lodash/_MapCache.js +0 -33
- package/lib/lodash/_Promise.d.ts +0 -2
- package/lib/lodash/_Promise.js +0 -8
- package/lib/lodash/_Set.d.ts +0 -2
- package/lib/lodash/_Set.js +0 -8
- package/lib/lodash/_SetCache.d.ts +0 -28
- package/lib/lodash/_SetCache.js +0 -28
- package/lib/lodash/_Stack.d.ts +0 -32
- package/lib/lodash/_Stack.js +0 -28
- package/lib/lodash/_Symbol.d.ts +0 -3
- package/lib/lodash/_Symbol.js +0 -7
- package/lib/lodash/_Uint8Array.d.ts +0 -3
- package/lib/lodash/_Uint8Array.js +0 -7
- package/lib/lodash/_WeakMap.d.ts +0 -2
- package/lib/lodash/_WeakMap.js +0 -8
- package/lib/lodash/_arrayFilter.d.ts +0 -11
- package/lib/lodash/_arrayFilter.js +0 -29
- package/lib/lodash/_arrayLikeKeys.d.ts +0 -10
- package/lib/lodash/_arrayLikeKeys.js +0 -46
- package/lib/lodash/_arrayPush.d.ts +0 -10
- package/lib/lodash/_arrayPush.js +0 -23
- package/lib/lodash/_arraySome.d.ts +0 -12
- package/lib/lodash/_arraySome.js +0 -26
- package/lib/lodash/_assocIndexOf.d.ts +0 -10
- package/lib/lodash/_assocIndexOf.js +0 -25
- package/lib/lodash/_baseGetAllKeys.d.ts +0 -13
- package/lib/lodash/_baseGetAllKeys.js +0 -22
- package/lib/lodash/_baseGetTag.d.ts +0 -9
- package/lib/lodash/_baseGetTag.js +0 -29
- package/lib/lodash/_baseIsArguments.d.ts +0 -9
- package/lib/lodash/_baseIsArguments.js +0 -20
- package/lib/lodash/_baseIsEqual.d.ts +0 -16
- package/lib/lodash/_baseIsEqual.js +0 -32
- package/lib/lodash/_baseIsEqualDeep.d.ts +0 -16
- package/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/lib/lodash/_baseIsNative.d.ts +0 -10
- package/lib/lodash/_baseIsNative.js +0 -47
- package/lib/lodash/_baseIsTypedArray.d.ts +0 -9
- package/lib/lodash/_baseIsTypedArray.js +0 -49
- package/lib/lodash/_baseKeys.d.ts +0 -9
- package/lib/lodash/_baseKeys.js +0 -35
- package/lib/lodash/_baseTimes.d.ts +0 -11
- package/lib/lodash/_baseTimes.js +0 -23
- package/lib/lodash/_baseUnary.d.ts +0 -9
- package/lib/lodash/_baseUnary.js +0 -16
- package/lib/lodash/_cacheHas.d.ts +0 -10
- package/lib/lodash/_cacheHas.js +0 -15
- package/lib/lodash/_coreJsData.d.ts +0 -3
- package/lib/lodash/_coreJsData.js +0 -7
- package/lib/lodash/_equalArrays.d.ts +0 -15
- package/lib/lodash/_equalArrays.js +0 -84
- package/lib/lodash/_equalByTag.d.ts +0 -19
- package/lib/lodash/_equalByTag.js +0 -117
- package/lib/lodash/_equalObjects.d.ts +0 -15
- package/lib/lodash/_equalObjects.js +0 -92
- package/lib/lodash/_freeGlobal.d.ts +0 -3
- package/lib/lodash/_freeGlobal.js +0 -5
- package/lib/lodash/_getAllKeys.d.ts +0 -9
- package/lib/lodash/_getAllKeys.js +0 -18
- package/lib/lodash/_getMapData.d.ts +0 -10
- package/lib/lodash/_getMapData.js +0 -18
- package/lib/lodash/_getNative.d.ts +0 -10
- package/lib/lodash/_getNative.js +0 -19
- package/lib/lodash/_getRawTag.d.ts +0 -9
- package/lib/lodash/_getRawTag.js +0 -50
- package/lib/lodash/_getSymbols.d.ts +0 -2
- package/lib/lodash/_getSymbols.js +0 -32
- package/lib/lodash/_getTag.d.ts +0 -10
- package/lib/lodash/_getTag.js +0 -64
- package/lib/lodash/_getValue.d.ts +0 -10
- package/lib/lodash/_getValue.js +0 -15
- package/lib/lodash/_hashClear.d.ts +0 -13
- package/lib/lodash/_hashClear.js +0 -17
- package/lib/lodash/_hashDelete.d.ts +0 -12
- package/lib/lodash/_hashDelete.js +0 -19
- package/lib/lodash/_hashGet.d.ts +0 -11
- package/lib/lodash/_hashGet.js +0 -34
- package/lib/lodash/_hashHas.d.ts +0 -11
- package/lib/lodash/_hashHas.js +0 -25
- package/lib/lodash/_hashSet.d.ts +0 -12
- package/lib/lodash/_hashSet.js +0 -25
- package/lib/lodash/_isIndex.d.ts +0 -10
- package/lib/lodash/_isIndex.js +0 -23
- package/lib/lodash/_isKeyable.d.ts +0 -9
- package/lib/lodash/_isKeyable.js +0 -15
- package/lib/lodash/_isMasked.d.ts +0 -9
- package/lib/lodash/_isMasked.js +0 -23
- package/lib/lodash/_isPrototype.d.ts +0 -9
- package/lib/lodash/_isPrototype.js +0 -19
- package/lib/lodash/_listCacheClear.d.ts +0 -13
- package/lib/lodash/_listCacheClear.js +0 -15
- package/lib/lodash/_listCacheDelete.d.ts +0 -11
- package/lib/lodash/_listCacheDelete.js +0 -40
- package/lib/lodash/_listCacheGet.d.ts +0 -11
- package/lib/lodash/_listCacheGet.js +0 -20
- package/lib/lodash/_listCacheHas.d.ts +0 -11
- package/lib/lodash/_listCacheHas.js +0 -18
- package/lib/lodash/_listCacheSet.d.ts +0 -12
- package/lib/lodash/_listCacheSet.js +0 -29
- package/lib/lodash/_mapCacheClear.d.ts +0 -18
- package/lib/lodash/_mapCacheClear.js +0 -23
- package/lib/lodash/_mapCacheDelete.d.ts +0 -11
- package/lib/lodash/_mapCacheDelete.js +0 -20
- package/lib/lodash/_mapCacheGet.d.ts +0 -11
- package/lib/lodash/_mapCacheGet.js +0 -18
- package/lib/lodash/_mapCacheHas.d.ts +0 -11
- package/lib/lodash/_mapCacheHas.js +0 -18
- package/lib/lodash/_mapCacheSet.d.ts +0 -12
- package/lib/lodash/_mapCacheSet.js +0 -23
- package/lib/lodash/_mapToArray.d.ts +0 -9
- package/lib/lodash/_mapToArray.js +0 -19
- package/lib/lodash/_nativeCreate.d.ts +0 -2
- package/lib/lodash/_nativeCreate.js +0 -7
- package/lib/lodash/_nativeKeys.d.ts +0 -2
- package/lib/lodash/_nativeKeys.js +0 -7
- package/lib/lodash/_nodeUtil.d.ts +0 -3
- package/lib/lodash/_nodeUtil.js +0 -24
- package/lib/lodash/_objectToString.d.ts +0 -9
- package/lib/lodash/_objectToString.js +0 -24
- package/lib/lodash/_overArg.d.ts +0 -10
- package/lib/lodash/_overArg.js +0 -17
- package/lib/lodash/_root.d.ts +0 -3
- package/lib/lodash/_root.js +0 -10
- package/lib/lodash/_setCacheAdd.d.ts +0 -12
- package/lib/lodash/_setCacheAdd.js +0 -22
- package/lib/lodash/_setCacheHas.d.ts +0 -11
- package/lib/lodash/_setCacheHas.js +0 -16
- package/lib/lodash/_setToArray.d.ts +0 -9
- package/lib/lodash/_setToArray.js +0 -19
- package/lib/lodash/_stackClear.d.ts +0 -14
- package/lib/lodash/_stackClear.js +0 -17
- package/lib/lodash/_stackDelete.d.ts +0 -24
- package/lib/lodash/_stackDelete.js +0 -19
- package/lib/lodash/_stackGet.d.ts +0 -11
- package/lib/lodash/_stackGet.js +0 -16
- package/lib/lodash/_stackHas.d.ts +0 -11
- package/lib/lodash/_stackHas.js +0 -16
- package/lib/lodash/_stackSet.d.ts +0 -28
- package/lib/lodash/_stackSet.js +0 -40
- package/lib/lodash/_toSource.d.ts +0 -9
- package/lib/lodash/_toSource.js +0 -30
- package/lib/lodash/date.d.ts +0 -2
- package/lib/lodash/date.default.d.ts +0 -5
- package/lib/lodash/date.default.js +0 -4
- package/lib/lodash/date.js +0 -2
- package/lib/lodash/eq.d.ts +0 -34
- package/lib/lodash/eq.js +0 -39
- package/lib/lodash/function.d.ts +0 -1
- package/lib/lodash/function.default.d.ts +0 -4
- package/lib/lodash/function.default.js +0 -4
- package/lib/lodash/function.js +0 -2
- package/lib/lodash/isArguments.d.ts +0 -2
- package/lib/lodash/isArguments.js +0 -38
- package/lib/lodash/isArray.d.ts +0 -25
- package/lib/lodash/isArray.js +0 -27
- package/lib/lodash/isArrayLike.d.ts +0 -27
- package/lib/lodash/isArrayLike.js +0 -35
- package/lib/lodash/isBuffer.d.ts +0 -19
- package/lib/lodash/isBuffer.js +0 -39
- package/lib/lodash/isDeepEqual.d.ts +0 -30
- package/lib/lodash/isDeepEqual.js +0 -45
- package/lib/lodash/isFunction.d.ts +0 -19
- package/lib/lodash/isFunction.js +0 -40
- package/lib/lodash/isLength.d.ts +0 -28
- package/lib/lodash/isLength.js +0 -36
- package/lib/lodash/isObject.d.ts +0 -27
- package/lib/lodash/isObject.js +0 -33
- package/lib/lodash/isObjectLike.d.ts +0 -26
- package/lib/lodash/isObjectLike.js +0 -31
- package/lib/lodash/isSymbol.d.ts +0 -19
- package/lib/lodash/isSymbol.js +0 -30
- package/lib/lodash/isTypedArray.d.ts +0 -19
- package/lib/lodash/isTypedArray.js +0 -28
- package/lib/lodash/keys.d.ts +0 -30
- package/lib/lodash/keys.js +0 -39
- package/lib/lodash/lang.d.ts +0 -14
- package/lib/lodash/lang.default.d.ts +0 -29
- package/lib/lodash/lang.default.js +0 -28
- package/lib/lodash/lang.js +0 -14
- package/lib/lodash/now.d.ts +0 -18
- package/lib/lodash/now.js +0 -25
- package/lib/lodash/object.d.ts +0 -2
- package/lib/lodash/object.default.d.ts +0 -5
- package/lib/lodash/object.default.js +0 -4
- package/lib/lodash/object.js +0 -2
- package/lib/lodash/stubArray.d.ts +0 -20
- package/lib/lodash/stubArray.js +0 -25
- package/lib/lodash/stubFalse.d.ts +0 -15
- package/lib/lodash/stubFalse.js +0 -20
- package/lib/lodash/toNumber.d.ts +0 -25
- package/lib/lodash/toNumber.js +0 -70
- package/lib/lodash/util.d.ts +0 -3
- package/lib/lodash/util.default.d.ts +0 -7
- package/lib/lodash/util.default.js +0 -6
- package/lib/lodash/util.js +0 -3
- package/modern/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/modern/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -70
- package/modern/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/modern/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/modern/lib/lodash/_DataView.js +0 -8
- package/modern/lib/lodash/_Hash.js +0 -33
- package/modern/lib/lodash/_ListCache.js +0 -33
- package/modern/lib/lodash/_Map.js +0 -8
- package/modern/lib/lodash/_MapCache.js +0 -33
- package/modern/lib/lodash/_Promise.js +0 -8
- package/modern/lib/lodash/_Set.js +0 -8
- package/modern/lib/lodash/_SetCache.js +0 -28
- package/modern/lib/lodash/_Stack.js +0 -28
- package/modern/lib/lodash/_Symbol.js +0 -7
- package/modern/lib/lodash/_Uint8Array.js +0 -7
- package/modern/lib/lodash/_WeakMap.js +0 -8
- package/modern/lib/lodash/_arrayFilter.js +0 -29
- package/modern/lib/lodash/_arrayLikeKeys.js +0 -46
- package/modern/lib/lodash/_arrayPush.js +0 -23
- package/modern/lib/lodash/_arraySome.js +0 -26
- package/modern/lib/lodash/_assocIndexOf.js +0 -25
- package/modern/lib/lodash/_baseGetAllKeys.js +0 -22
- package/modern/lib/lodash/_baseGetTag.js +0 -29
- package/modern/lib/lodash/_baseIsArguments.js +0 -20
- package/modern/lib/lodash/_baseIsEqual.js +0 -32
- package/modern/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/modern/lib/lodash/_baseIsNative.js +0 -47
- package/modern/lib/lodash/_baseIsTypedArray.js +0 -49
- package/modern/lib/lodash/_baseKeys.js +0 -35
- package/modern/lib/lodash/_baseTimes.js +0 -23
- package/modern/lib/lodash/_baseUnary.js +0 -16
- package/modern/lib/lodash/_cacheHas.js +0 -15
- package/modern/lib/lodash/_coreJsData.js +0 -7
- package/modern/lib/lodash/_equalArrays.js +0 -84
- package/modern/lib/lodash/_equalByTag.js +0 -117
- package/modern/lib/lodash/_equalObjects.js +0 -92
- package/modern/lib/lodash/_freeGlobal.js +0 -5
- package/modern/lib/lodash/_getAllKeys.js +0 -18
- package/modern/lib/lodash/_getMapData.js +0 -18
- package/modern/lib/lodash/_getNative.js +0 -19
- package/modern/lib/lodash/_getRawTag.js +0 -50
- package/modern/lib/lodash/_getSymbols.js +0 -32
- package/modern/lib/lodash/_getTag.js +0 -64
- package/modern/lib/lodash/_getValue.js +0 -15
- package/modern/lib/lodash/_hashClear.js +0 -17
- package/modern/lib/lodash/_hashDelete.js +0 -19
- package/modern/lib/lodash/_hashGet.js +0 -34
- package/modern/lib/lodash/_hashHas.js +0 -25
- package/modern/lib/lodash/_hashSet.js +0 -25
- package/modern/lib/lodash/_isIndex.js +0 -23
- package/modern/lib/lodash/_isKeyable.js +0 -15
- package/modern/lib/lodash/_isMasked.js +0 -23
- package/modern/lib/lodash/_isPrototype.js +0 -19
- package/modern/lib/lodash/_listCacheClear.js +0 -15
- package/modern/lib/lodash/_listCacheDelete.js +0 -40
- package/modern/lib/lodash/_listCacheGet.js +0 -20
- package/modern/lib/lodash/_listCacheHas.js +0 -18
- package/modern/lib/lodash/_listCacheSet.js +0 -29
- package/modern/lib/lodash/_mapCacheClear.js +0 -23
- package/modern/lib/lodash/_mapCacheDelete.js +0 -20
- package/modern/lib/lodash/_mapCacheGet.js +0 -18
- package/modern/lib/lodash/_mapCacheHas.js +0 -18
- package/modern/lib/lodash/_mapCacheSet.js +0 -23
- package/modern/lib/lodash/_mapToArray.js +0 -19
- package/modern/lib/lodash/_nativeCreate.js +0 -7
- package/modern/lib/lodash/_nativeKeys.js +0 -7
- package/modern/lib/lodash/_nodeUtil.js +0 -24
- package/modern/lib/lodash/_objectToString.js +0 -24
- package/modern/lib/lodash/_overArg.js +0 -17
- package/modern/lib/lodash/_root.js +0 -10
- package/modern/lib/lodash/_setCacheAdd.js +0 -22
- package/modern/lib/lodash/_setCacheHas.js +0 -16
- package/modern/lib/lodash/_setToArray.js +0 -19
- package/modern/lib/lodash/_stackClear.js +0 -17
- package/modern/lib/lodash/_stackDelete.js +0 -19
- package/modern/lib/lodash/_stackGet.js +0 -16
- package/modern/lib/lodash/_stackHas.js +0 -16
- package/modern/lib/lodash/_stackSet.js +0 -40
- package/modern/lib/lodash/_toSource.js +0 -30
- package/modern/lib/lodash/date.default.js +0 -4
- package/modern/lib/lodash/date.js +0 -2
- package/modern/lib/lodash/eq.js +0 -39
- package/modern/lib/lodash/function.default.js +0 -4
- package/modern/lib/lodash/function.js +0 -2
- package/modern/lib/lodash/isArguments.js +0 -38
- package/modern/lib/lodash/isArray.js +0 -27
- package/modern/lib/lodash/isArrayLike.js +0 -35
- package/modern/lib/lodash/isBuffer.js +0 -39
- package/modern/lib/lodash/isDeepEqual.js +0 -45
- package/modern/lib/lodash/isFunction.js +0 -40
- package/modern/lib/lodash/isLength.js +0 -36
- package/modern/lib/lodash/isObject.js +0 -33
- package/modern/lib/lodash/isObjectLike.js +0 -31
- package/modern/lib/lodash/isSymbol.js +0 -30
- package/modern/lib/lodash/isTypedArray.js +0 -28
- package/modern/lib/lodash/keys.js +0 -39
- package/modern/lib/lodash/lang.default.js +0 -28
- package/modern/lib/lodash/lang.js +0 -14
- package/modern/lib/lodash/now.js +0 -25
- package/modern/lib/lodash/object.default.js +0 -4
- package/modern/lib/lodash/object.js +0 -2
- package/modern/lib/lodash/stubArray.js +0 -25
- package/modern/lib/lodash/stubFalse.js +0 -20
- package/modern/lib/lodash/toNumber.js +0 -70
- package/modern/lib/lodash/util.default.js +0 -6
- package/modern/lib/lodash/util.js +0 -3
- package/node/hooks/core/rowGroupsPreProcessing/index.js +0 -31
- package/node/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -87
- package/node/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -24
- package/node/lib/lodash/_DataView.js +0 -20
- package/node/lib/lodash/_Hash.js +0 -48
- package/node/lib/lodash/_ListCache.js +0 -48
- package/node/lib/lodash/_Map.js +0 -20
- package/node/lib/lodash/_MapCache.js +0 -48
- package/node/lib/lodash/_Promise.js +0 -20
- package/node/lib/lodash/_Set.js +0 -20
- package/node/lib/lodash/_SetCache.js +0 -41
- package/node/lib/lodash/_Stack.js +0 -44
- package/node/lib/lodash/_Symbol.js +0 -18
- package/node/lib/lodash/_Uint8Array.js +0 -18
- package/node/lib/lodash/_WeakMap.js +0 -20
- package/node/lib/lodash/_arrayFilter.js +0 -35
- package/node/lib/lodash/_arrayLikeKeys.js +0 -62
- package/node/lib/lodash/_arrayPush.js +0 -29
- package/node/lib/lodash/_arraySome.js +0 -32
- package/node/lib/lodash/_assocIndexOf.js +0 -36
- package/node/lib/lodash/_baseGetAllKeys.js +0 -34
- package/node/lib/lodash/_baseGetTag.js +0 -42
- package/node/lib/lodash/_baseIsArguments.js +0 -32
- package/node/lib/lodash/_baseIsEqual.js +0 -44
- package/node/lib/lodash/_baseIsEqualDeep.js +0 -103
- package/node/lib/lodash/_baseIsNative.js +0 -61
- package/node/lib/lodash/_baseIsTypedArray.js +0 -62
- package/node/lib/lodash/_baseKeys.js +0 -47
- package/node/lib/lodash/_baseTimes.js +0 -29
- package/node/lib/lodash/_baseUnary.js +0 -22
- package/node/lib/lodash/_cacheHas.js +0 -21
- package/node/lib/lodash/_coreJsData.js +0 -18
- package/node/lib/lodash/_equalArrays.js +0 -97
- package/node/lib/lodash/_equalByTag.js +0 -133
- package/node/lib/lodash/_equalObjects.js +0 -103
- package/node/lib/lodash/_freeGlobal.js +0 -10
- package/node/lib/lodash/_getAllKeys.js +0 -31
- package/node/lib/lodash/_getMapData.js +0 -29
- package/node/lib/lodash/_getNative.js +0 -31
- package/node/lib/lodash/_getRawTag.js +0 -61
- package/node/lib/lodash/_getSymbols.js +0 -44
- package/node/lib/lodash/_getTag.js +0 -81
- package/node/lib/lodash/_getValue.js +0 -21
- package/node/lib/lodash/_hashClear.js +0 -28
- package/node/lib/lodash/_hashDelete.js +0 -25
- package/node/lib/lodash/_hashGet.js +0 -45
- package/node/lib/lodash/_hashHas.js +0 -36
- package/node/lib/lodash/_hashSet.js +0 -36
- package/node/lib/lodash/_isIndex.js +0 -28
- package/node/lib/lodash/_isKeyable.js +0 -21
- package/node/lib/lodash/_isMasked.js +0 -34
- package/node/lib/lodash/_isPrototype.js +0 -24
- package/node/lib/lodash/_listCacheClear.js +0 -21
- package/node/lib/lodash/_listCacheDelete.js +0 -51
- package/node/lib/lodash/_listCacheGet.js +0 -31
- package/node/lib/lodash/_listCacheHas.js +0 -29
- package/node/lib/lodash/_listCacheSet.js +0 -40
- package/node/lib/lodash/_mapCacheClear.js +0 -36
- package/node/lib/lodash/_mapCacheDelete.js +0 -31
- package/node/lib/lodash/_mapCacheGet.js +0 -29
- package/node/lib/lodash/_mapCacheHas.js +0 -29
- package/node/lib/lodash/_mapCacheSet.js +0 -34
- package/node/lib/lodash/_mapToArray.js +0 -25
- package/node/lib/lodash/_nativeCreate.js +0 -18
- package/node/lib/lodash/_nativeKeys.js +0 -18
- package/node/lib/lodash/_nodeUtil.js +0 -35
- package/node/lib/lodash/_objectToString.js +0 -29
- package/node/lib/lodash/_overArg.js +0 -23
- package/node/lib/lodash/_root.js +0 -21
- package/node/lib/lodash/_setCacheAdd.js +0 -27
- package/node/lib/lodash/_setCacheHas.js +0 -22
- package/node/lib/lodash/_setToArray.js +0 -25
- package/node/lib/lodash/_stackClear.js +0 -28
- package/node/lib/lodash/_stackDelete.js +0 -25
- package/node/lib/lodash/_stackGet.js +0 -22
- package/node/lib/lodash/_stackHas.js +0 -22
- package/node/lib/lodash/_stackSet.js +0 -53
- package/node/lib/lodash/_toSource.js +0 -35
- package/node/lib/lodash/date.default.js +0 -15
- package/node/lib/lodash/date.js +0 -23
- package/node/lib/lodash/eq.js +0 -45
- package/node/lib/lodash/function.default.js +0 -15
- package/node/lib/lodash/function.js +0 -23
- package/node/lib/lodash/isArguments.js +0 -50
- package/node/lib/lodash/isArray.js +0 -32
- package/node/lib/lodash/isArrayLike.js +0 -47
- package/node/lib/lodash/isBuffer.js +0 -51
- package/node/lib/lodash/isDeepEqual.js +0 -56
- package/node/lib/lodash/isFunction.js +0 -52
- package/node/lib/lodash/isLength.js +0 -41
- package/node/lib/lodash/isObject.js +0 -39
- package/node/lib/lodash/isObjectLike.js +0 -37
- package/node/lib/lodash/isSymbol.js +0 -42
- package/node/lib/lodash/isTypedArray.js +0 -41
- package/node/lib/lodash/keys.js +0 -52
- package/node/lib/lodash/lang.default.js +0 -51
- package/node/lib/lodash/lang.js +0 -119
- package/node/lib/lodash/now.js +0 -36
- package/node/lib/lodash/object.default.js +0 -15
- package/node/lib/lodash/object.js +0 -23
- package/node/lib/lodash/stubArray.js +0 -31
- package/node/lib/lodash/stubFalse.js +0 -26
- package/node/lib/lodash/toNumber.js +0 -82
- package/node/lib/lodash/util.default.js +0 -18
- package/node/lib/lodash/util.js +0 -31
|
@@ -7,6 +7,9 @@ import { useGridLogger } from '../../utils/useGridLogger';
|
|
|
7
7
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
8
8
|
import { isNavigationKey } from '../../../utils/keyboardUtils';
|
|
9
9
|
import { gridFocusCellSelector } from './gridFocusStateSelector';
|
|
10
|
+
import { gridVisibleColumnDefinitionsSelector } from '../columns/gridColumnsSelector';
|
|
11
|
+
import { getVisibleRows } from '../../utils/useGridVisibleRows';
|
|
12
|
+
import { clamp } from '../../../utils/utils';
|
|
10
13
|
export const focusStateInitializer = state => _extends({}, state, {
|
|
11
14
|
focus: {
|
|
12
15
|
cell: null,
|
|
@@ -86,6 +89,38 @@ export const useGridFocus = (apiRef, props) => {
|
|
|
86
89
|
});
|
|
87
90
|
apiRef.current.forceUpdate();
|
|
88
91
|
}, [apiRef, logger]);
|
|
92
|
+
const moveFocusToRelativeCell = React.useCallback((id, field, direction) => {
|
|
93
|
+
let columnIndexToFocus = apiRef.current.getColumnIndex(field);
|
|
94
|
+
let rowIndexToFocus = apiRef.current.getRowIndexRelativeToVisibleRows(id);
|
|
95
|
+
const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
96
|
+
|
|
97
|
+
if (direction === 'right') {
|
|
98
|
+
columnIndexToFocus += 1;
|
|
99
|
+
} else if (direction === 'left') {
|
|
100
|
+
columnIndexToFocus -= 1;
|
|
101
|
+
} else {
|
|
102
|
+
rowIndexToFocus += 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (columnIndexToFocus >= visibleColumns.length) {
|
|
106
|
+
// Go to next row if we are at the last column
|
|
107
|
+
rowIndexToFocus += 1;
|
|
108
|
+
columnIndexToFocus = 0;
|
|
109
|
+
} else if (columnIndexToFocus < 0) {
|
|
110
|
+
// Go to previous row if we are at the first column
|
|
111
|
+
rowIndexToFocus -= 1;
|
|
112
|
+
columnIndexToFocus = visibleColumns.length - 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const currentPage = getVisibleRows(apiRef, {
|
|
116
|
+
pagination: props.pagination,
|
|
117
|
+
paginationMode: props.paginationMode
|
|
118
|
+
});
|
|
119
|
+
rowIndexToFocus = clamp(rowIndexToFocus, currentPage.range.firstRowIndex, currentPage.range.lastRowIndex);
|
|
120
|
+
const rowToFocus = currentPage.rows[rowIndexToFocus];
|
|
121
|
+
const columnToFocus = visibleColumns[columnIndexToFocus];
|
|
122
|
+
apiRef.current.setCellFocus(rowToFocus.id, columnToFocus.field);
|
|
123
|
+
}, [apiRef, props.pagination, props.paginationMode]);
|
|
89
124
|
const handleCellDoubleClick = React.useCallback(({
|
|
90
125
|
id,
|
|
91
126
|
field
|
|
@@ -178,7 +213,8 @@ export const useGridFocus = (apiRef, props) => {
|
|
|
178
213
|
}, [apiRef]);
|
|
179
214
|
useGridApiMethod(apiRef, {
|
|
180
215
|
setCellFocus,
|
|
181
|
-
setColumnHeaderFocus
|
|
216
|
+
setColumnHeaderFocus,
|
|
217
|
+
unstable_moveFocusToRelativeCell: moveFocusToRelativeCell
|
|
182
218
|
}, 'GridFocusApi');
|
|
183
219
|
React.useEffect(() => {
|
|
184
220
|
const cell = gridFocusCellSelector(apiRef);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { GridPreferencePanelsValue } from './gridPreferencePanelsValue';
|
|
2
2
|
export interface GridPreferencePanelState {
|
|
3
3
|
open: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Tab currently opened.
|
|
6
|
+
* @default GridPreferencePanelsValue.filter
|
|
7
|
+
* TODO v6: Remove the default behavior
|
|
8
|
+
*/
|
|
4
9
|
openedPanelValue?: GridPreferencePanelsValue;
|
|
5
10
|
}
|
|
6
11
|
export declare type GridPreferencePanelInitialState = GridPreferencePanelState;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { GridRowId, GridRowsLookup, GridRowsProp, GridRowTreeConfig } from '../../../models/gridRows';
|
|
3
|
+
export interface GridRowTreeCreationParams {
|
|
4
|
+
ids: GridRowId[];
|
|
5
|
+
idRowsLookup: GridRowsLookup;
|
|
6
|
+
previousTree: GridRowTreeConfig | null;
|
|
7
|
+
}
|
|
8
|
+
export interface GridRowTreeCreationValue {
|
|
9
|
+
/**
|
|
10
|
+
* Name of the algorithm used to group the rows
|
|
11
|
+
* It is useful to decide which filtering / sorting algorithm to apply, to avoid applying tree-data filtering on a grouping-by-column dataset for instance.
|
|
12
|
+
*/
|
|
13
|
+
groupingName: string;
|
|
14
|
+
tree: GridRowTreeConfig;
|
|
15
|
+
treeDepth: number;
|
|
16
|
+
ids: GridRowId[];
|
|
17
|
+
idRowsLookup: GridRowsLookup;
|
|
18
|
+
}
|
|
19
|
+
export declare type GridRowInternalCacheValue = Omit<GridRowTreeCreationParams, 'previousTree'>;
|
|
5
20
|
export interface GridRowsInternalCacheState {
|
|
6
21
|
value: GridRowInternalCacheValue;
|
|
7
22
|
/**
|
|
@@ -15,10 +30,10 @@ export interface GridRowsInternalCache {
|
|
|
15
30
|
timeout: NodeJS.Timeout | null;
|
|
16
31
|
lastUpdateMs: number;
|
|
17
32
|
}
|
|
18
|
-
export interface GridRowsState extends
|
|
33
|
+
export interface GridRowsState extends GridRowTreeCreationValue {
|
|
19
34
|
/**
|
|
20
35
|
* Amount of rows before applying the filtering.
|
|
21
|
-
* It also
|
|
36
|
+
* It also counts the expanded and collapsed children rows.
|
|
22
37
|
*/
|
|
23
38
|
totalRowCount: number;
|
|
24
39
|
/**
|
|
@@ -3,7 +3,4 @@ import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
|
|
|
3
3
|
import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
|
|
4
4
|
import { GridStateInitializer } from '../../utils/useGridInitializeState';
|
|
5
5
|
export declare const rowsStateInitializer: GridStateInitializer<Pick<DataGridProcessedProps, 'rows' | 'rowCount' | 'getRowId'>>;
|
|
6
|
-
/**
|
|
7
|
-
* @requires useGridRowGroupsPreProcessing (method)
|
|
8
|
-
*/
|
|
9
6
|
export declare const useGridRows: (apiRef: React.MutableRefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, 'rows' | 'getRowId' | 'rowCount' | 'throttleRowsMs' | 'signature' | 'pagination' | 'paginationMode'>) => void;
|
|
@@ -4,7 +4,7 @@ import { GridEvents } from '../../../models/events';
|
|
|
4
4
|
import { checkGridRowIdIsValid } from '../../../models/gridRows';
|
|
5
5
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
6
6
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
7
|
-
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector } from './gridRowsSelector';
|
|
7
|
+
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector, gridRowGroupingNameSelector } from './gridRowsSelector';
|
|
8
8
|
import { GridSignature, useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
9
9
|
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
10
10
|
|
|
@@ -48,7 +48,7 @@ const getRowsStateFromCache = (rowsCache, previousTree, apiRef, rowCountProp) =>
|
|
|
48
48
|
value
|
|
49
49
|
} = rowsCache.state;
|
|
50
50
|
const rowCount = rowCountProp != null ? rowCountProp : 0;
|
|
51
|
-
const groupingResponse = apiRef.current.
|
|
51
|
+
const groupingResponse = apiRef.current.unstable_applyStrategyProcessor('rowTreeCreation', _extends({}, value, {
|
|
52
52
|
previousTree
|
|
53
53
|
}));
|
|
54
54
|
const dataTopLevelRowCount = groupingResponse.treeDepth === 1 ? groupingResponse.ids.length : Object.values(groupingResponse.tree).filter(node => node.parent == null).length;
|
|
@@ -80,10 +80,6 @@ export const rowsStateInitializer = (state, props, apiRef) => {
|
|
|
80
80
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
/**
|
|
84
|
-
* @requires useGridRowGroupsPreProcessing (method)
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
83
|
export const useGridRows = (apiRef, props) => {
|
|
88
84
|
if (process.env.NODE_ENV !== 'production') {
|
|
89
85
|
// Freeze rows for immutability
|
|
@@ -105,7 +101,6 @@ export const useGridRows = (apiRef, props) => {
|
|
|
105
101
|
acc[id] = index;
|
|
106
102
|
return acc;
|
|
107
103
|
}, {}), [currentPage.rows]);
|
|
108
|
-
const getRowIndexRelativeToVisibleRows = React.useCallback(id => lookup[id], [lookup]);
|
|
109
104
|
const throttledRowsChange = React.useCallback((newState, throttle) => {
|
|
110
105
|
const run = () => {
|
|
111
106
|
rowsCache.current.timeout = null;
|
|
@@ -138,6 +133,10 @@ export const useGridRows = (apiRef, props) => {
|
|
|
138
133
|
|
|
139
134
|
run();
|
|
140
135
|
}, [props.throttleRowsMs, props.rowCount, apiRef]);
|
|
136
|
+
/**
|
|
137
|
+
* API METHODS
|
|
138
|
+
*/
|
|
139
|
+
|
|
141
140
|
const setRows = React.useCallback(rows => {
|
|
142
141
|
logger.debug(`Updating all rows, new length ${rows.length}`);
|
|
143
142
|
throttledRowsChange(convertGridRowsPropToState({
|
|
@@ -150,7 +149,7 @@ export const useGridRows = (apiRef, props) => {
|
|
|
150
149
|
if (props.signature === GridSignature.DataGrid && updates.length > 1) {
|
|
151
150
|
// TODO: Add test with direct call to `apiRef.current.updateRows` in DataGrid after enabling the `apiRef` on the free plan.
|
|
152
151
|
throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.", 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
|
|
153
|
-
} // we
|
|
152
|
+
} // we remove duplicate updates. A server can batch updates, and send several updates for the same row in one fn call.
|
|
154
153
|
|
|
155
154
|
|
|
156
155
|
const uniqUpdates = new Map();
|
|
@@ -204,6 +203,7 @@ export const useGridRows = (apiRef, props) => {
|
|
|
204
203
|
}, [apiRef]);
|
|
205
204
|
const getRowsCount = React.useCallback(() => gridRowCountSelector(apiRef), [apiRef]);
|
|
206
205
|
const getAllRowIds = React.useCallback(() => gridRowIdsSelector(apiRef), [apiRef]);
|
|
206
|
+
const getRowIndexRelativeToVisibleRows = React.useCallback(id => lookup[id], [lookup]);
|
|
207
207
|
const setRowChildrenExpansion = React.useCallback((id, isExpanded) => {
|
|
208
208
|
const currentNode = apiRef.current.getRowNode(id);
|
|
209
209
|
|
|
@@ -232,6 +232,61 @@ export const useGridRows = (apiRef, props) => {
|
|
|
232
232
|
|
|
233
233
|
return (_gridRowTreeSelector$ = gridRowTreeSelector(apiRef)[id]) != null ? _gridRowTreeSelector$ : null;
|
|
234
234
|
}, [apiRef]);
|
|
235
|
+
const rowApi = {
|
|
236
|
+
getRow,
|
|
237
|
+
getRowModels,
|
|
238
|
+
getRowsCount,
|
|
239
|
+
getAllRowIds,
|
|
240
|
+
setRows,
|
|
241
|
+
updateRows,
|
|
242
|
+
setRowChildrenExpansion,
|
|
243
|
+
getRowNode,
|
|
244
|
+
getRowIndexRelativeToVisibleRows
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* EVENTS
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
const groupRows = React.useCallback(() => {
|
|
251
|
+
logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
252
|
+
let rows;
|
|
253
|
+
|
|
254
|
+
if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
|
|
255
|
+
// The `props.rows` has not changed since the last row grouping
|
|
256
|
+
// We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
|
|
257
|
+
rows = undefined;
|
|
258
|
+
} else {
|
|
259
|
+
// The `props.rows` has changed since the last row grouping
|
|
260
|
+
// We must use the new `props.rows` on the new grouping
|
|
261
|
+
// This occurs because this event is triggered before the `useEffect` on the rows when both the grouping pre-processing and the rows changes on the same render
|
|
262
|
+
rows = props.rows;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
throttledRowsChange(convertGridRowsPropToState({
|
|
266
|
+
rows,
|
|
267
|
+
getRowId: props.getRowId,
|
|
268
|
+
prevState: rowsCache.current.state
|
|
269
|
+
}), false);
|
|
270
|
+
}, [logger, throttledRowsChange, props.getRowId, props.rows]);
|
|
271
|
+
const handleStrategyProcessorChange = React.useCallback(methodName => {
|
|
272
|
+
if (methodName === 'rowTreeCreation') {
|
|
273
|
+
groupRows();
|
|
274
|
+
}
|
|
275
|
+
}, [groupRows]);
|
|
276
|
+
const handleStrategyActivityChange = React.useCallback(() => {
|
|
277
|
+
// `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
|
|
278
|
+
// All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
|
|
279
|
+
if (apiRef.current.unstable_getActiveStrategy('rowTree') !== gridRowGroupingNameSelector(apiRef)) {
|
|
280
|
+
groupRows();
|
|
281
|
+
}
|
|
282
|
+
}, [apiRef, groupRows]);
|
|
283
|
+
useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
|
|
284
|
+
useGridApiEventHandler(apiRef, GridEvents.strategyAvailabilityChange, handleStrategyActivityChange);
|
|
285
|
+
useGridApiMethod(apiRef, rowApi, 'GridRowApi');
|
|
286
|
+
/**
|
|
287
|
+
* EFFECTS
|
|
288
|
+
*/
|
|
289
|
+
|
|
235
290
|
React.useEffect(() => {
|
|
236
291
|
return () => {
|
|
237
292
|
if (rowsCache.current.timeout !== null) {
|
|
@@ -261,38 +316,4 @@ export const useGridRows = (apiRef, props) => {
|
|
|
261
316
|
prevState: rowsCache.current.state
|
|
262
317
|
}), false);
|
|
263
318
|
}, [props.rows, props.rowCount, props.getRowId, logger, throttledRowsChange]);
|
|
264
|
-
const handleGroupRows = React.useCallback(() => {
|
|
265
|
-
logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
|
|
266
|
-
let rows;
|
|
267
|
-
|
|
268
|
-
if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
|
|
269
|
-
// The `props.rows` has not changed since the last row grouping
|
|
270
|
-
// We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
|
|
271
|
-
rows = undefined;
|
|
272
|
-
} else {
|
|
273
|
-
// The `props.rows` has changed since the last row grouping
|
|
274
|
-
// We must use the new `props.rows` on the new grouping
|
|
275
|
-
// This occurs because this event is triggered before the `useEffect` on the rows when both the grouping pre-processing and the rows changes on the same render
|
|
276
|
-
rows = props.rows;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
throttledRowsChange(convertGridRowsPropToState({
|
|
280
|
-
rows,
|
|
281
|
-
getRowId: props.getRowId,
|
|
282
|
-
prevState: rowsCache.current.state
|
|
283
|
-
}), false);
|
|
284
|
-
}, [logger, throttledRowsChange, props.getRowId, props.rows]);
|
|
285
|
-
useGridApiEventHandler(apiRef, GridEvents.rowGroupsPreProcessingChange, handleGroupRows);
|
|
286
|
-
const rowApi = {
|
|
287
|
-
getRow,
|
|
288
|
-
getRowModels,
|
|
289
|
-
getRowsCount,
|
|
290
|
-
getAllRowIds,
|
|
291
|
-
setRows,
|
|
292
|
-
updateRows,
|
|
293
|
-
setRowChildrenExpansion,
|
|
294
|
-
getRowNode,
|
|
295
|
-
getRowIndexRelativeToVisibleRows
|
|
296
|
-
};
|
|
297
|
-
useGridApiMethod(apiRef, rowApi, 'GridRowApi');
|
|
298
319
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { GRID_DEFAULT_STRATEGY, useGridRegisterStrategyProcessor } from '../../core/strategyProcessing';
|
|
2
|
+
|
|
3
|
+
const flatRowTreeCreationMethod = ({
|
|
4
|
+
ids,
|
|
5
|
+
idRowsLookup,
|
|
6
|
+
previousTree
|
|
7
|
+
}) => {
|
|
8
|
+
const tree = {};
|
|
9
|
+
|
|
10
|
+
for (let i = 0; i < ids.length; i += 1) {
|
|
11
|
+
const rowId = ids[i];
|
|
12
|
+
|
|
13
|
+
if (previousTree && previousTree[rowId]) {
|
|
14
|
+
tree[rowId] = previousTree[rowId];
|
|
15
|
+
} else {
|
|
16
|
+
tree[rowId] = {
|
|
17
|
+
id: rowId,
|
|
18
|
+
depth: 0,
|
|
19
|
+
parent: null,
|
|
20
|
+
groupingKey: '',
|
|
21
|
+
groupingField: null
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
groupingName: GRID_DEFAULT_STRATEGY,
|
|
28
|
+
tree,
|
|
29
|
+
treeDepth: 1,
|
|
30
|
+
idRowsLookup,
|
|
31
|
+
ids
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const useGridRowsPreProcessors = apiRef => {
|
|
36
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'rowTreeCreation', flatRowTreeCreationMethod);
|
|
37
|
+
};
|
|
@@ -76,6 +76,10 @@ export const useGridSelection = (apiRef, props) => {
|
|
|
76
76
|
const startIndex = visibleRowIds.findIndex(rowId => rowId === startId);
|
|
77
77
|
const endIndex = visibleRowIds.findIndex(rowId => rowId === endId);
|
|
78
78
|
|
|
79
|
+
if (startIndex === endIndex) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
|
|
79
83
|
if (startIndex > endIndex) {
|
|
80
84
|
endId = visibleRowIds[endIndex + 1];
|
|
81
85
|
} else {
|
|
@@ -8,10 +8,7 @@ export interface GridSortingInitialState {
|
|
|
8
8
|
sortModel?: GridSortModel;
|
|
9
9
|
}
|
|
10
10
|
export declare type GridSortingModelApplier = (rowList: GridRowTreeNodeConfig[]) => GridRowId[];
|
|
11
|
-
export interface
|
|
11
|
+
export interface GridSortingMethodParams {
|
|
12
12
|
sortRowList: GridSortingModelApplier | null;
|
|
13
13
|
}
|
|
14
|
-
export declare type
|
|
15
|
-
export declare type GridSortingMethodCollection = {
|
|
16
|
-
[methodName: string]: GridSortingMethod;
|
|
17
|
-
};
|
|
14
|
+
export declare type GridSortingMethodValue = GridRowId[];
|
|
@@ -8,11 +8,11 @@ import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
|
8
8
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
9
9
|
import { gridColumnLookupSelector } from '../columns/gridColumnsSelector';
|
|
10
10
|
import { gridSortedRowEntriesSelector, gridSortedRowIdsSelector, gridSortModelSelector } from './gridSortingSelector';
|
|
11
|
-
import { gridRowIdsSelector,
|
|
11
|
+
import { gridRowIdsSelector, gridRowTreeSelector } from '../rows';
|
|
12
12
|
import { useFirstRender } from '../../utils/useFirstRender';
|
|
13
|
+
import { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../../core/strategyProcessing';
|
|
13
14
|
import { buildAggregatedSortingApplier, mergeStateWithSortModel, getNextGridSortDirection, sanitizeSortModel } from './gridSortingUtils';
|
|
14
15
|
import { useGridRegisterPreProcessor } from '../../core/preProcessing';
|
|
15
|
-
import { useGridRegisterSortingMethod } from './useGridRegisterSortingMethod';
|
|
16
16
|
export const sortingStateInitializer = (state, props) => {
|
|
17
17
|
var _ref, _props$sortModel, _props$initialState, _props$initialState$s;
|
|
18
18
|
|
|
@@ -31,8 +31,6 @@ export const sortingStateInitializer = (state, props) => {
|
|
|
31
31
|
|
|
32
32
|
export const useGridSorting = (apiRef, props) => {
|
|
33
33
|
const logger = useGridLogger(apiRef, 'useGridSorting');
|
|
34
|
-
const sortingMethodCollectionRef = React.useRef({});
|
|
35
|
-
const lastSortingMethodApplied = React.useRef(null);
|
|
36
34
|
apiRef.current.unstable_updateControlState({
|
|
37
35
|
stateId: 'sortModel',
|
|
38
36
|
propModel: props.sortModel,
|
|
@@ -93,16 +91,9 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
apiRef.current.setState(state => {
|
|
96
|
-
const rowGroupingName = gridRowGroupingNameSelector(state, apiRef.current.instanceId);
|
|
97
|
-
const sortingMethod = sortingMethodCollectionRef.current[rowGroupingName];
|
|
98
|
-
|
|
99
|
-
if (!sortingMethod) {
|
|
100
|
-
throw new Error('MUI: Invalid sorting method.');
|
|
101
|
-
}
|
|
102
|
-
|
|
103
94
|
const sortModel = gridSortModelSelector(state, apiRef.current.instanceId);
|
|
104
95
|
const sortRowList = buildAggregatedSortingApplier(sortModel, apiRef);
|
|
105
|
-
const sortedRows =
|
|
96
|
+
const sortedRows = apiRef.current.unstable_applyStrategyProcessor('sorting', {
|
|
106
97
|
sortRowList
|
|
107
98
|
});
|
|
108
99
|
return _extends({}, state, {
|
|
@@ -199,7 +190,7 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
199
190
|
}, [apiRef]);
|
|
200
191
|
useGridRegisterPreProcessor(apiRef, 'exportState', stateExportPreProcessing);
|
|
201
192
|
useGridRegisterPreProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
202
|
-
|
|
193
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'sorting', flatSortingMethod);
|
|
203
194
|
/**
|
|
204
195
|
* EVENTS
|
|
205
196
|
*/
|
|
@@ -231,15 +222,8 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
231
222
|
}
|
|
232
223
|
}
|
|
233
224
|
}, [apiRef]);
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
|
|
240
|
-
const rowGroupingName = gridRowGroupingNameSelector(apiRef);
|
|
241
|
-
|
|
242
|
-
if (lastSortingMethodApplied.current !== sortingMethodCollectionRef.current[rowGroupingName]) {
|
|
225
|
+
const handleStrategyProcessorChange = React.useCallback(methodName => {
|
|
226
|
+
if (methodName === 'sorting') {
|
|
243
227
|
apiRef.current.applySorting();
|
|
244
228
|
}
|
|
245
229
|
}, [apiRef]);
|
|
@@ -247,15 +231,12 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
247
231
|
useGridApiEventHandler(apiRef, GridEvents.columnHeaderKeyDown, handleColumnHeaderKeyDown);
|
|
248
232
|
useGridApiEventHandler(apiRef, GridEvents.rowsSet, apiRef.current.applySorting);
|
|
249
233
|
useGridApiEventHandler(apiRef, GridEvents.columnsChange, handleColumnsChange);
|
|
250
|
-
useGridApiEventHandler(apiRef, GridEvents.
|
|
234
|
+
useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
|
|
251
235
|
/**
|
|
252
236
|
* 1ST RENDER
|
|
253
237
|
*/
|
|
254
238
|
|
|
255
239
|
useFirstRender(() => {
|
|
256
|
-
// This line of pre-processor initialization should always come after the registration of `flatSortingMethod`
|
|
257
|
-
// Otherwise on the 1st render there would be no sorting method registered
|
|
258
|
-
sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
|
|
259
240
|
apiRef.current.applySorting();
|
|
260
241
|
});
|
|
261
242
|
/**
|
|
@@ -187,9 +187,11 @@ export const useGridVirtualScroller = props => {
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
const nextRenderContext = disableVirtualization ? prevRenderContext.current : computeRenderContext();
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
const
|
|
190
|
+
const topRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstRowIndex - prevRenderContext.current.firstRowIndex);
|
|
191
|
+
const bottomRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastRowIndex - prevRenderContext.current.lastRowIndex);
|
|
192
|
+
const topColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstColumnIndex - prevRenderContext.current.firstColumnIndex);
|
|
193
|
+
const bottomColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastColumnIndex - prevRenderContext.current.lastColumnIndex);
|
|
194
|
+
const shouldSetState = topRowsScrolledSincePreviousRender >= rootProps.rowThreshold || bottomRowsScrolledSincePreviousRender >= rootProps.rowThreshold || topColumnsScrolledSincePreviousRender >= rootProps.columnThreshold || bottomColumnsScrolledSincePreviousRender >= rootProps.columnThreshold || prevTotalWidth.current !== columnsTotalWidth; // TODO v6: rename event to a wider name, it's not only fired for row scrolling
|
|
193
195
|
|
|
194
196
|
apiRef.current.publishEvent(GridEvents.rowsScroll, {
|
|
195
197
|
top: scrollTop,
|
package/index.js
CHANGED
package/internals/index.d.ts
CHANGED
|
@@ -5,33 +5,35 @@ export { GridColumnHeaders } from '../components/columnHeaders/GridColumnHeaders
|
|
|
5
5
|
export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
|
|
6
6
|
export { useGridRegisterPreProcessor } from '../hooks/core/preProcessing';
|
|
7
7
|
export type { GridPreProcessor } from '../hooks/core/preProcessing';
|
|
8
|
-
export
|
|
8
|
+
export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
9
|
+
export type { GridStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
9
10
|
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
10
11
|
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
11
12
|
export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
12
13
|
export { useGridColumnMenu, columnMenuStateInitializer, } from '../hooks/features/columnMenu/useGridColumnMenu';
|
|
13
14
|
export { useGridColumns, columnsStateInitializer } from '../hooks/features/columns/useGridColumns';
|
|
14
|
-
export type { GridColumnRawLookup, GridColumnsRawState, } from '../hooks/features/columns/gridColumnsInterfaces';
|
|
15
|
+
export type { GridColumnRawLookup, GridColumnsRawState, GridHydrateColumnsValue, } from '../hooks/features/columns/gridColumnsInterfaces';
|
|
15
16
|
export { useGridDensity, densityStateInitializer } from '../hooks/features/density/useGridDensity';
|
|
16
17
|
export { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
|
|
17
18
|
export { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
|
|
18
19
|
export { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
|
|
19
|
-
export {
|
|
20
|
-
export type { GridFilteringMethod, GridAggregatedFilterItemApplier, } from '../hooks/features/filter/gridFilterState';
|
|
20
|
+
export type { GridAggregatedFilterItemApplier } from '../hooks/features/filter/gridFilterState';
|
|
21
21
|
export { useGridFocus, focusStateInitializer } from '../hooks/features/focus/useGridFocus';
|
|
22
22
|
export { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
|
|
23
23
|
export { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
|
|
24
24
|
export { useGridPagination, paginationStateInitializer, } from '../hooks/features/pagination/useGridPagination';
|
|
25
25
|
export { useGridPreferencesPanel, preferencePanelStateInitializer, } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
26
|
-
export { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
|
|
26
|
+
export { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new, } from '../hooks/features/editRows/useGridEditing.new';
|
|
27
|
+
export { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old, } from '../hooks/features/editRows/useGridEditing.old';
|
|
27
28
|
export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
|
|
29
|
+
export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
|
|
30
|
+
export type { GridRowTreeCreationParams, GridRowTreeCreationValue, } from '../hooks/features/rows/gridRowsState';
|
|
28
31
|
export { useGridRowsMeta, rowsMetaStateInitializer } from '../hooks/features/rows/useGridRowsMeta';
|
|
29
32
|
export { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
|
|
30
33
|
export { useGridSelection, selectionStateInitializer, } from '../hooks/features/selection/useGridSelection';
|
|
31
34
|
export { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
|
|
32
35
|
export { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
|
|
33
|
-
export {
|
|
34
|
-
export type { GridSortingMethod, GridSortingModelApplier, } from '../hooks/features/sorting/gridSortingState';
|
|
36
|
+
export type { GridSortingModelApplier } from '../hooks/features/sorting/gridSortingState';
|
|
35
37
|
export { useGridScroll } from '../hooks/features/scroll/useGridScroll';
|
|
36
38
|
export { useGridEvents } from '../hooks/features/events/useGridEvents';
|
|
37
39
|
export { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
|
|
@@ -48,3 +50,4 @@ export { createSelector } from '../utils/createSelector';
|
|
|
48
50
|
export { findParentElementFromClassName } from '../utils/domUtils';
|
|
49
51
|
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
50
52
|
export { clamp, isDeepEqual } from '../utils/utils';
|
|
53
|
+
export type { GridApiCommunity } from '../models/api/gridApiCommunity';
|
package/internals/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export { GridVirtualScrollerRenderZone } from '../components/virtualization/Grid
|
|
|
4
4
|
export { GridColumnHeaders } from '../components/columnHeaders/GridColumnHeaders';
|
|
5
5
|
export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
|
|
6
6
|
export { useGridRegisterPreProcessor } from '../hooks/core/preProcessing';
|
|
7
|
+
export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
7
8
|
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
8
9
|
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
9
10
|
export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
@@ -13,20 +14,20 @@ export { useGridDensity, densityStateInitializer } from '../hooks/features/densi
|
|
|
13
14
|
export { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
|
|
14
15
|
export { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
|
|
15
16
|
export { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
|
|
16
|
-
export { useGridRegisterFilteringMethod } from '../hooks/features/filter/useGridRegisterFilteringMethod';
|
|
17
17
|
export { useGridFocus, focusStateInitializer } from '../hooks/features/focus/useGridFocus';
|
|
18
18
|
export { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
|
|
19
19
|
export { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
|
|
20
20
|
export { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
|
|
21
21
|
export { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
22
|
-
export { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
|
|
22
|
+
export { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new } from '../hooks/features/editRows/useGridEditing.new';
|
|
23
|
+
export { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old } from '../hooks/features/editRows/useGridEditing.old';
|
|
23
24
|
export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
|
|
25
|
+
export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
|
|
24
26
|
export { useGridRowsMeta, rowsMetaStateInitializer } from '../hooks/features/rows/useGridRowsMeta';
|
|
25
27
|
export { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
|
|
26
28
|
export { useGridSelection, selectionStateInitializer } from '../hooks/features/selection/useGridSelection';
|
|
27
29
|
export { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
|
|
28
30
|
export { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
|
|
29
|
-
export { useGridRegisterSortingMethod } from '../hooks/features/sorting/useGridRegisterSortingMethod';
|
|
30
31
|
export { useGridScroll } from '../hooks/features/scroll/useGridScroll';
|
|
31
32
|
export { useGridEvents } from '../hooks/features/events/useGridEvents';
|
|
32
33
|
export { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
|
|
@@ -185,6 +185,7 @@ DataGridRaw.propTypes = {
|
|
|
185
185
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
186
186
|
*/
|
|
187
187
|
experimentalFeatures: PropTypes.shape({
|
|
188
|
+
newEditingApi: PropTypes.bool,
|
|
188
189
|
preventCommitWhileValidating: PropTypes.bool,
|
|
189
190
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
190
191
|
}),
|
|
@@ -602,6 +603,15 @@ DataGridRaw.propTypes = {
|
|
|
602
603
|
*/
|
|
603
604
|
paginationMode: PropTypes.oneOf(['client', 'server']),
|
|
604
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Callback called before updating a row with new values in the row and cell editing.
|
|
608
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
609
|
+
* @param {GridRowModel} newRow Row object with the new values.
|
|
610
|
+
* @param {GridRowModel} oldRow Row object with the old values.
|
|
611
|
+
* @returns {Promise<GridRowModel> | GridRowModel} The final values to update the row.
|
|
612
|
+
*/
|
|
613
|
+
processRowUpdate: PropTypes.func,
|
|
614
|
+
|
|
605
615
|
/**
|
|
606
616
|
* Number of extra rows to be rendered before/after the visible slice.
|
|
607
617
|
* @default 3
|
|
@@ -12,8 +12,10 @@ import { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
|
|
|
12
12
|
import { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
|
|
13
13
|
import { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
|
|
14
14
|
import { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
15
|
-
import { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
|
|
15
|
+
import { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old } from '../hooks/features/editRows/useGridEditing.old';
|
|
16
|
+
import { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new } from '../hooks/features/editRows/useGridEditing.new';
|
|
16
17
|
import { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
|
|
18
|
+
import { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
|
|
17
19
|
import { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
|
|
18
20
|
import { selectionStateInitializer, useGridSelection } from '../hooks/features/selection/useGridSelection';
|
|
19
21
|
import { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
|
|
@@ -24,12 +26,15 @@ import { useGridDimensions } from '../hooks/features/dimensions/useGridDimension
|
|
|
24
26
|
import { rowsMetaStateInitializer, useGridRowsMeta } from '../hooks/features/rows/useGridRowsMeta';
|
|
25
27
|
import { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
|
|
26
28
|
export var useDataGridComponent = function useDataGridComponent(props) {
|
|
29
|
+
var _props$experimentalFe, _props$experimentalFe2;
|
|
30
|
+
|
|
27
31
|
var apiRef = useGridInitialization(undefined, props);
|
|
28
32
|
/**
|
|
29
33
|
* Register all pre-processors called during state initialization here.
|
|
30
34
|
*/
|
|
31
35
|
|
|
32
36
|
useGridSelectionPreProcessors(apiRef, props);
|
|
37
|
+
useGridRowsPreProcessors(apiRef);
|
|
33
38
|
/**
|
|
34
39
|
* Register all state initializers here.
|
|
35
40
|
*/
|
|
@@ -37,7 +42,7 @@ export var useDataGridComponent = function useDataGridComponent(props) {
|
|
|
37
42
|
useGridInitializeState(selectionStateInitializer, apiRef, props);
|
|
38
43
|
useGridInitializeState(columnsStateInitializer, apiRef, props);
|
|
39
44
|
useGridInitializeState(rowsStateInitializer, apiRef, props);
|
|
40
|
-
useGridInitializeState(
|
|
45
|
+
useGridInitializeState((_props$experimentalFe = props.experimentalFeatures) != null && _props$experimentalFe.newEditingApi ? editingStateInitializer_new : editingStateInitializer_old, apiRef, props);
|
|
41
46
|
useGridInitializeState(focusStateInitializer, apiRef, props);
|
|
42
47
|
useGridInitializeState(sortingStateInitializer, apiRef, props);
|
|
43
48
|
useGridInitializeState(preferencePanelStateInitializer, apiRef, props);
|
|
@@ -50,6 +55,7 @@ export var useDataGridComponent = function useDataGridComponent(props) {
|
|
|
50
55
|
useGridColumns(apiRef, props);
|
|
51
56
|
useGridRows(apiRef, props);
|
|
52
57
|
useGridParamsApi(apiRef);
|
|
58
|
+
var useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
53
59
|
useGridEditing(apiRef, props);
|
|
54
60
|
useGridFocus(apiRef, props);
|
|
55
61
|
useGridSorting(apiRef, props);
|
|
@@ -4,6 +4,8 @@ var _excluded = ["message", "hasError", "errorInfo"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
6
6
|
import { GridOverlay } from './containers/GridOverlay';
|
|
7
|
+
import { useGridSelector } from '../hooks/utils/useGridSelector';
|
|
8
|
+
import { gridDensityRowHeightSelector } from '../hooks/features/density/densitySelector';
|
|
7
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
10
|
// TODO v6: rename to GridErrorOverlay
|
|
9
11
|
export var ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(props, ref) {
|
|
@@ -14,8 +16,13 @@ export var ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(pr
|
|
|
14
16
|
|
|
15
17
|
var apiRef = useGridApiContext();
|
|
16
18
|
var defaultLabel = apiRef.current.getLocaleText('errorOverlayDefaultLabel');
|
|
19
|
+
var rowHeight = useGridSelector(apiRef, gridDensityRowHeightSelector);
|
|
17
20
|
return /*#__PURE__*/_jsx(GridOverlay, _extends({
|
|
18
|
-
ref: ref
|
|
21
|
+
ref: ref,
|
|
22
|
+
sx: {
|
|
23
|
+
width: '100%',
|
|
24
|
+
minHeight: 2 * rowHeight
|
|
25
|
+
}
|
|
19
26
|
}, other, {
|
|
20
27
|
children: message || defaultLabel
|
|
21
28
|
}));
|