@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 var focusStateInitializer = function focusStateInitializer(state) {
|
|
11
14
|
return _extends({}, state, {
|
|
12
15
|
focus: {
|
|
@@ -89,6 +92,38 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
89
92
|
});
|
|
90
93
|
apiRef.current.forceUpdate();
|
|
91
94
|
}, [apiRef, logger]);
|
|
95
|
+
var moveFocusToRelativeCell = React.useCallback(function (id, field, direction) {
|
|
96
|
+
var columnIndexToFocus = apiRef.current.getColumnIndex(field);
|
|
97
|
+
var rowIndexToFocus = apiRef.current.getRowIndexRelativeToVisibleRows(id);
|
|
98
|
+
var visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
|
|
99
|
+
|
|
100
|
+
if (direction === 'right') {
|
|
101
|
+
columnIndexToFocus += 1;
|
|
102
|
+
} else if (direction === 'left') {
|
|
103
|
+
columnIndexToFocus -= 1;
|
|
104
|
+
} else {
|
|
105
|
+
rowIndexToFocus += 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (columnIndexToFocus >= visibleColumns.length) {
|
|
109
|
+
// Go to next row if we are at the last column
|
|
110
|
+
rowIndexToFocus += 1;
|
|
111
|
+
columnIndexToFocus = 0;
|
|
112
|
+
} else if (columnIndexToFocus < 0) {
|
|
113
|
+
// Go to previous row if we are at the first column
|
|
114
|
+
rowIndexToFocus -= 1;
|
|
115
|
+
columnIndexToFocus = visibleColumns.length - 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
var currentPage = getVisibleRows(apiRef, {
|
|
119
|
+
pagination: props.pagination,
|
|
120
|
+
paginationMode: props.paginationMode
|
|
121
|
+
});
|
|
122
|
+
rowIndexToFocus = clamp(rowIndexToFocus, currentPage.range.firstRowIndex, currentPage.range.lastRowIndex);
|
|
123
|
+
var rowToFocus = currentPage.rows[rowIndexToFocus];
|
|
124
|
+
var columnToFocus = visibleColumns[columnIndexToFocus];
|
|
125
|
+
apiRef.current.setCellFocus(rowToFocus.id, columnToFocus.field);
|
|
126
|
+
}, [apiRef, props.pagination, props.paginationMode]);
|
|
92
127
|
var handleCellDoubleClick = React.useCallback(function (_ref) {
|
|
93
128
|
var id = _ref.id,
|
|
94
129
|
field = _ref.field;
|
|
@@ -184,7 +219,8 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
184
219
|
}, [apiRef]);
|
|
185
220
|
useGridApiMethod(apiRef, {
|
|
186
221
|
setCellFocus: setCellFocus,
|
|
187
|
-
setColumnHeaderFocus: setColumnHeaderFocus
|
|
222
|
+
setColumnHeaderFocus: setColumnHeaderFocus,
|
|
223
|
+
unstable_moveFocusToRelativeCell: moveFocusToRelativeCell
|
|
188
224
|
}, 'GridFocusApi');
|
|
189
225
|
React.useEffect(function () {
|
|
190
226
|
var cell = gridFocusCellSelector(apiRef);
|
|
@@ -6,7 +6,7 @@ import { GridEvents } from '../../../models/events';
|
|
|
6
6
|
import { checkGridRowIdIsValid } from '../../../models/gridRows';
|
|
7
7
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
8
8
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
9
|
-
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector } from './gridRowsSelector';
|
|
9
|
+
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector, gridRowGroupingNameSelector } from './gridRowsSelector';
|
|
10
10
|
import { GridSignature, useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
11
11
|
import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
|
|
12
12
|
|
|
@@ -47,7 +47,7 @@ var convertGridRowsPropToState = function convertGridRowsPropToState(_ref) {
|
|
|
47
47
|
var getRowsStateFromCache = function getRowsStateFromCache(rowsCache, previousTree, apiRef, rowCountProp) {
|
|
48
48
|
var value = rowsCache.state.value;
|
|
49
49
|
var rowCount = rowCountProp != null ? rowCountProp : 0;
|
|
50
|
-
var groupingResponse = apiRef.current.
|
|
50
|
+
var groupingResponse = apiRef.current.unstable_applyStrategyProcessor('rowTreeCreation', _extends({}, value, {
|
|
51
51
|
previousTree: previousTree
|
|
52
52
|
}));
|
|
53
53
|
var dataTopLevelRowCount = groupingResponse.treeDepth === 1 ? groupingResponse.ids.length : Object.values(groupingResponse.tree).filter(function (node) {
|
|
@@ -81,10 +81,6 @@ export var rowsStateInitializer = function rowsStateInitializer(state, props, ap
|
|
|
81
81
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
/**
|
|
85
|
-
* @requires useGridRowGroupsPreProcessing (method)
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
84
|
export var useGridRows = function useGridRows(apiRef, props) {
|
|
89
85
|
if (process.env.NODE_ENV !== 'production') {
|
|
90
86
|
// Freeze rows for immutability
|
|
@@ -107,9 +103,6 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
107
103
|
return acc;
|
|
108
104
|
}, {});
|
|
109
105
|
}, [currentPage.rows]);
|
|
110
|
-
var getRowIndexRelativeToVisibleRows = React.useCallback(function (id) {
|
|
111
|
-
return lookup[id];
|
|
112
|
-
}, [lookup]);
|
|
113
106
|
var throttledRowsChange = React.useCallback(function (newState, throttle) {
|
|
114
107
|
var run = function run() {
|
|
115
108
|
rowsCache.current.timeout = null;
|
|
@@ -144,6 +137,10 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
144
137
|
|
|
145
138
|
run();
|
|
146
139
|
}, [props.throttleRowsMs, props.rowCount, apiRef]);
|
|
140
|
+
/**
|
|
141
|
+
* API METHODS
|
|
142
|
+
*/
|
|
143
|
+
|
|
147
144
|
var setRows = React.useCallback(function (rows) {
|
|
148
145
|
logger.debug("Updating all rows, new length ".concat(rows.length));
|
|
149
146
|
throttledRowsChange(convertGridRowsPropToState({
|
|
@@ -156,7 +153,7 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
156
153
|
if (props.signature === GridSignature.DataGrid && updates.length > 1) {
|
|
157
154
|
// TODO: Add test with direct call to `apiRef.current.updateRows` in DataGrid after enabling the `apiRef` on the free plan.
|
|
158
155
|
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'));
|
|
159
|
-
} // we
|
|
156
|
+
} // we remove duplicate updates. A server can batch updates, and send several updates for the same row in one fn call.
|
|
160
157
|
|
|
161
158
|
|
|
162
159
|
var uniqUpdates = new Map();
|
|
@@ -218,6 +215,9 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
218
215
|
var getAllRowIds = React.useCallback(function () {
|
|
219
216
|
return gridRowIdsSelector(apiRef);
|
|
220
217
|
}, [apiRef]);
|
|
218
|
+
var getRowIndexRelativeToVisibleRows = React.useCallback(function (id) {
|
|
219
|
+
return lookup[id];
|
|
220
|
+
}, [lookup]);
|
|
221
221
|
var setRowChildrenExpansion = React.useCallback(function (id, isExpanded) {
|
|
222
222
|
var currentNode = apiRef.current.getRowNode(id);
|
|
223
223
|
|
|
@@ -244,6 +244,61 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
244
244
|
|
|
245
245
|
return (_gridRowTreeSelector$ = gridRowTreeSelector(apiRef)[id]) != null ? _gridRowTreeSelector$ : null;
|
|
246
246
|
}, [apiRef]);
|
|
247
|
+
var rowApi = {
|
|
248
|
+
getRow: getRow,
|
|
249
|
+
getRowModels: getRowModels,
|
|
250
|
+
getRowsCount: getRowsCount,
|
|
251
|
+
getAllRowIds: getAllRowIds,
|
|
252
|
+
setRows: setRows,
|
|
253
|
+
updateRows: updateRows,
|
|
254
|
+
setRowChildrenExpansion: setRowChildrenExpansion,
|
|
255
|
+
getRowNode: getRowNode,
|
|
256
|
+
getRowIndexRelativeToVisibleRows: getRowIndexRelativeToVisibleRows
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* EVENTS
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
var groupRows = React.useCallback(function () {
|
|
263
|
+
logger.info("Row grouping pre-processing have changed, regenerating the row tree");
|
|
264
|
+
var rows;
|
|
265
|
+
|
|
266
|
+
if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
|
|
267
|
+
// The `props.rows` has not changed since the last row grouping
|
|
268
|
+
// We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
|
|
269
|
+
rows = undefined;
|
|
270
|
+
} else {
|
|
271
|
+
// The `props.rows` has changed since the last row grouping
|
|
272
|
+
// We must use the new `props.rows` on the new grouping
|
|
273
|
+
// 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
|
|
274
|
+
rows = props.rows;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
throttledRowsChange(convertGridRowsPropToState({
|
|
278
|
+
rows: rows,
|
|
279
|
+
getRowId: props.getRowId,
|
|
280
|
+
prevState: rowsCache.current.state
|
|
281
|
+
}), false);
|
|
282
|
+
}, [logger, throttledRowsChange, props.getRowId, props.rows]);
|
|
283
|
+
var handleStrategyProcessorChange = React.useCallback(function (methodName) {
|
|
284
|
+
if (methodName === 'rowTreeCreation') {
|
|
285
|
+
groupRows();
|
|
286
|
+
}
|
|
287
|
+
}, [groupRows]);
|
|
288
|
+
var handleStrategyActivityChange = React.useCallback(function () {
|
|
289
|
+
// `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
|
|
290
|
+
// All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
|
|
291
|
+
if (apiRef.current.unstable_getActiveStrategy('rowTree') !== gridRowGroupingNameSelector(apiRef)) {
|
|
292
|
+
groupRows();
|
|
293
|
+
}
|
|
294
|
+
}, [apiRef, groupRows]);
|
|
295
|
+
useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
|
|
296
|
+
useGridApiEventHandler(apiRef, GridEvents.strategyAvailabilityChange, handleStrategyActivityChange);
|
|
297
|
+
useGridApiMethod(apiRef, rowApi, 'GridRowApi');
|
|
298
|
+
/**
|
|
299
|
+
* EFFECTS
|
|
300
|
+
*/
|
|
301
|
+
|
|
247
302
|
React.useEffect(function () {
|
|
248
303
|
return function () {
|
|
249
304
|
if (rowsCache.current.timeout !== null) {
|
|
@@ -273,38 +328,4 @@ export var useGridRows = function useGridRows(apiRef, props) {
|
|
|
273
328
|
prevState: rowsCache.current.state
|
|
274
329
|
}), false);
|
|
275
330
|
}, [props.rows, props.rowCount, props.getRowId, logger, throttledRowsChange]);
|
|
276
|
-
var handleGroupRows = React.useCallback(function () {
|
|
277
|
-
logger.info("Row grouping pre-processing have changed, regenerating the row tree");
|
|
278
|
-
var rows;
|
|
279
|
-
|
|
280
|
-
if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
|
|
281
|
-
// The `props.rows` has not changed since the last row grouping
|
|
282
|
-
// We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
|
|
283
|
-
rows = undefined;
|
|
284
|
-
} else {
|
|
285
|
-
// The `props.rows` has changed since the last row grouping
|
|
286
|
-
// We must use the new `props.rows` on the new grouping
|
|
287
|
-
// 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
|
|
288
|
-
rows = props.rows;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
throttledRowsChange(convertGridRowsPropToState({
|
|
292
|
-
rows: rows,
|
|
293
|
-
getRowId: props.getRowId,
|
|
294
|
-
prevState: rowsCache.current.state
|
|
295
|
-
}), false);
|
|
296
|
-
}, [logger, throttledRowsChange, props.getRowId, props.rows]);
|
|
297
|
-
useGridApiEventHandler(apiRef, GridEvents.rowGroupsPreProcessingChange, handleGroupRows);
|
|
298
|
-
var rowApi = {
|
|
299
|
-
getRow: getRow,
|
|
300
|
-
getRowModels: getRowModels,
|
|
301
|
-
getRowsCount: getRowsCount,
|
|
302
|
-
getAllRowIds: getAllRowIds,
|
|
303
|
-
setRows: setRows,
|
|
304
|
-
updateRows: updateRows,
|
|
305
|
-
setRowChildrenExpansion: setRowChildrenExpansion,
|
|
306
|
-
getRowNode: getRowNode,
|
|
307
|
-
getRowIndexRelativeToVisibleRows: getRowIndexRelativeToVisibleRows
|
|
308
|
-
};
|
|
309
|
-
useGridApiMethod(apiRef, rowApi, 'GridRowApi');
|
|
310
331
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GRID_DEFAULT_STRATEGY, useGridRegisterStrategyProcessor } from '../../core/strategyProcessing';
|
|
2
|
+
|
|
3
|
+
var flatRowTreeCreationMethod = function flatRowTreeCreationMethod(_ref) {
|
|
4
|
+
var ids = _ref.ids,
|
|
5
|
+
idRowsLookup = _ref.idRowsLookup,
|
|
6
|
+
previousTree = _ref.previousTree;
|
|
7
|
+
var tree = {};
|
|
8
|
+
|
|
9
|
+
for (var i = 0; i < ids.length; i += 1) {
|
|
10
|
+
var rowId = ids[i];
|
|
11
|
+
|
|
12
|
+
if (previousTree && previousTree[rowId]) {
|
|
13
|
+
tree[rowId] = previousTree[rowId];
|
|
14
|
+
} else {
|
|
15
|
+
tree[rowId] = {
|
|
16
|
+
id: rowId,
|
|
17
|
+
depth: 0,
|
|
18
|
+
parent: null,
|
|
19
|
+
groupingKey: '',
|
|
20
|
+
groupingField: null
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
groupingName: GRID_DEFAULT_STRATEGY,
|
|
27
|
+
tree: tree,
|
|
28
|
+
treeDepth: 1,
|
|
29
|
+
idRowsLookup: idRowsLookup,
|
|
30
|
+
ids: ids
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export var useGridRowsPreProcessors = function useGridRowsPreProcessors(apiRef) {
|
|
35
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'rowTreeCreation', flatRowTreeCreationMethod);
|
|
36
|
+
};
|
|
@@ -9,11 +9,11 @@ import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
|
9
9
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
10
10
|
import { gridColumnLookupSelector } from '../columns/gridColumnsSelector';
|
|
11
11
|
import { gridSortedRowEntriesSelector, gridSortedRowIdsSelector, gridSortModelSelector } from './gridSortingSelector';
|
|
12
|
-
import { gridRowIdsSelector,
|
|
12
|
+
import { gridRowIdsSelector, gridRowTreeSelector } from '../rows';
|
|
13
13
|
import { useFirstRender } from '../../utils/useFirstRender';
|
|
14
|
+
import { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../../core/strategyProcessing';
|
|
14
15
|
import { buildAggregatedSortingApplier, mergeStateWithSortModel, getNextGridSortDirection, sanitizeSortModel } from './gridSortingUtils';
|
|
15
16
|
import { useGridRegisterPreProcessor } from '../../core/preProcessing';
|
|
16
|
-
import { useGridRegisterSortingMethod } from './useGridRegisterSortingMethod';
|
|
17
17
|
export var sortingStateInitializer = function sortingStateInitializer(state, props) {
|
|
18
18
|
var _ref, _props$sortModel, _props$initialState, _props$initialState$s;
|
|
19
19
|
|
|
@@ -32,8 +32,6 @@ export var sortingStateInitializer = function sortingStateInitializer(state, pro
|
|
|
32
32
|
|
|
33
33
|
export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
34
34
|
var logger = useGridLogger(apiRef, 'useGridSorting');
|
|
35
|
-
var sortingMethodCollectionRef = React.useRef({});
|
|
36
|
-
var lastSortingMethodApplied = React.useRef(null);
|
|
37
35
|
apiRef.current.unstable_updateControlState({
|
|
38
36
|
stateId: 'sortModel',
|
|
39
37
|
propModel: props.sortModel,
|
|
@@ -101,16 +99,9 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
apiRef.current.setState(function (state) {
|
|
104
|
-
var rowGroupingName = gridRowGroupingNameSelector(state, apiRef.current.instanceId);
|
|
105
|
-
var sortingMethod = sortingMethodCollectionRef.current[rowGroupingName];
|
|
106
|
-
|
|
107
|
-
if (!sortingMethod) {
|
|
108
|
-
throw new Error('MUI: Invalid sorting method.');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
102
|
var sortModel = gridSortModelSelector(state, apiRef.current.instanceId);
|
|
112
103
|
var sortRowList = buildAggregatedSortingApplier(sortModel, apiRef);
|
|
113
|
-
var sortedRows =
|
|
104
|
+
var sortedRows = apiRef.current.unstable_applyStrategyProcessor('sorting', {
|
|
114
105
|
sortRowList: sortRowList
|
|
115
106
|
});
|
|
116
107
|
return _extends({}, state, {
|
|
@@ -217,7 +208,7 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
217
208
|
}, [apiRef]);
|
|
218
209
|
useGridRegisterPreProcessor(apiRef, 'exportState', stateExportPreProcessing);
|
|
219
210
|
useGridRegisterPreProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
220
|
-
|
|
211
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'sorting', flatSortingMethod);
|
|
221
212
|
/**
|
|
222
213
|
* EVENTS
|
|
223
214
|
*/
|
|
@@ -250,15 +241,8 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
250
241
|
}
|
|
251
242
|
}
|
|
252
243
|
}, [apiRef]);
|
|
253
|
-
var
|
|
254
|
-
if (
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
|
|
259
|
-
var rowGroupingName = gridRowGroupingNameSelector(apiRef);
|
|
260
|
-
|
|
261
|
-
if (lastSortingMethodApplied.current !== sortingMethodCollectionRef.current[rowGroupingName]) {
|
|
244
|
+
var handleStrategyProcessorChange = React.useCallback(function (methodName) {
|
|
245
|
+
if (methodName === 'sorting') {
|
|
262
246
|
apiRef.current.applySorting();
|
|
263
247
|
}
|
|
264
248
|
}, [apiRef]);
|
|
@@ -266,15 +250,12 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
266
250
|
useGridApiEventHandler(apiRef, GridEvents.columnHeaderKeyDown, handleColumnHeaderKeyDown);
|
|
267
251
|
useGridApiEventHandler(apiRef, GridEvents.rowsSet, apiRef.current.applySorting);
|
|
268
252
|
useGridApiEventHandler(apiRef, GridEvents.columnsChange, handleColumnsChange);
|
|
269
|
-
useGridApiEventHandler(apiRef, GridEvents.
|
|
253
|
+
useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
|
|
270
254
|
/**
|
|
271
255
|
* 1ST RENDER
|
|
272
256
|
*/
|
|
273
257
|
|
|
274
258
|
useFirstRender(function () {
|
|
275
|
-
// This line of pre-processor initialization should always come after the registration of `flatSortingMethod`
|
|
276
|
-
// Otherwise on the 1st render there would be no sorting method registered
|
|
277
|
-
sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
|
|
278
259
|
apiRef.current.applySorting();
|
|
279
260
|
});
|
|
280
261
|
/**
|
|
@@ -203,9 +203,11 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
var nextRenderContext = disableVirtualization ? prevRenderContext.current : computeRenderContext();
|
|
206
|
-
var
|
|
207
|
-
var
|
|
208
|
-
var
|
|
206
|
+
var topRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstRowIndex - prevRenderContext.current.firstRowIndex);
|
|
207
|
+
var bottomRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastRowIndex - prevRenderContext.current.lastRowIndex);
|
|
208
|
+
var topColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstColumnIndex - prevRenderContext.current.firstColumnIndex);
|
|
209
|
+
var bottomColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastColumnIndex - prevRenderContext.current.lastColumnIndex);
|
|
210
|
+
var 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
|
|
209
211
|
|
|
210
212
|
apiRef.current.publishEvent(GridEvents.rowsScroll, {
|
|
211
213
|
top: scrollTop,
|
package/legacy/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';
|
package/legacy/locales/arSD.js
CHANGED
|
@@ -6,21 +6,21 @@ var arSDGrid = {
|
|
|
6
6
|
noResultsOverlayLabel: 'لم يتم العثور على نتائج.',
|
|
7
7
|
errorOverlayDefaultLabel: 'حدث خطأ.',
|
|
8
8
|
// Density selector toolbar button text
|
|
9
|
-
toolbarDensity: '
|
|
10
|
-
toolbarDensityLabel: '
|
|
11
|
-
toolbarDensityCompact: '
|
|
12
|
-
toolbarDensityStandard: '
|
|
9
|
+
toolbarDensity: 'الكثافة',
|
|
10
|
+
toolbarDensityLabel: 'الكثافة',
|
|
11
|
+
toolbarDensityCompact: 'مضغوط',
|
|
12
|
+
toolbarDensityStandard: 'قياسي',
|
|
13
13
|
toolbarDensityComfortable: 'مريح',
|
|
14
14
|
// Columns selector toolbar button text
|
|
15
15
|
toolbarColumns: 'الأعمدة',
|
|
16
|
-
toolbarColumnsLabel: 'حدد
|
|
16
|
+
toolbarColumnsLabel: 'حدد أعمدة',
|
|
17
17
|
// Filters toolbar button text
|
|
18
|
-
toolbarFilters: '
|
|
19
|
-
toolbarFiltersLabel: '
|
|
20
|
-
toolbarFiltersTooltipHide: 'إخفاء
|
|
21
|
-
toolbarFiltersTooltipShow: 'اظهر
|
|
18
|
+
toolbarFilters: 'المُرشِحات',
|
|
19
|
+
toolbarFiltersLabel: 'إظهار المرشِحات',
|
|
20
|
+
toolbarFiltersTooltipHide: 'إخفاء المرشِحات',
|
|
21
|
+
toolbarFiltersTooltipShow: 'اظهر المرشِحات',
|
|
22
22
|
toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
|
|
23
|
-
return count !== 1 ? "".concat(count, " \
|
|
23
|
+
return count !== 1 ? "".concat(count, " \u0645\u0646 \u0627\u0644\u0645\u0631\u0634\u0650\u062D\u0627\u062A \u0627\u0644\u0646\u0634\u0637\u0629") : "\u0645\u0631\u0634\u0650\u062D \u0646\u0634\u0637";
|
|
24
24
|
},
|
|
25
25
|
// Export selector toolbar button text
|
|
26
26
|
toolbarExport: 'تصدير',
|
|
@@ -28,57 +28,57 @@ var arSDGrid = {
|
|
|
28
28
|
toolbarExportCSV: 'تنزيل كملف CSV',
|
|
29
29
|
// toolbarExportPrint: 'Print',
|
|
30
30
|
// Columns panel text
|
|
31
|
-
columnsPanelTextFieldLabel: '
|
|
31
|
+
columnsPanelTextFieldLabel: 'البحث عن العمود',
|
|
32
32
|
columnsPanelTextFieldPlaceholder: 'عنوان العمود',
|
|
33
33
|
columnsPanelDragIconLabel: 'إعادة ترتيب العمود',
|
|
34
|
-
columnsPanelShowAllButton: '
|
|
35
|
-
columnsPanelHideAllButton: '
|
|
34
|
+
columnsPanelShowAllButton: 'إظهار الكل',
|
|
35
|
+
columnsPanelHideAllButton: 'إخفاء الكل',
|
|
36
36
|
// Filter panel text
|
|
37
|
-
filterPanelAddFilter: '
|
|
37
|
+
filterPanelAddFilter: 'إضافة مرشِح',
|
|
38
38
|
filterPanelDeleteIconLabel: 'حذف',
|
|
39
|
-
|
|
40
|
-
filterPanelOperators: '
|
|
39
|
+
filterPanelLinkOperator: 'عامل منطقي',
|
|
40
|
+
filterPanelOperators: 'عامل',
|
|
41
41
|
// TODO v6: rename to filterPanelOperator
|
|
42
42
|
filterPanelOperatorAnd: 'و',
|
|
43
|
-
filterPanelOperatorOr: '
|
|
43
|
+
filterPanelOperatorOr: 'أو',
|
|
44
44
|
filterPanelColumns: 'الأعمدة',
|
|
45
|
-
filterPanelInputLabel: '
|
|
46
|
-
filterPanelInputPlaceholder: 'قيمة
|
|
45
|
+
filterPanelInputLabel: 'القيمة',
|
|
46
|
+
filterPanelInputPlaceholder: 'ترشِيح قيمة',
|
|
47
47
|
// Filter operators text
|
|
48
|
-
filterOperatorContains: 'يحتوي
|
|
48
|
+
filterOperatorContains: 'يحتوي',
|
|
49
49
|
filterOperatorEquals: 'يساوي',
|
|
50
|
-
filterOperatorStartsWith: 'يبدأ
|
|
50
|
+
filterOperatorStartsWith: 'يبدأ بـ',
|
|
51
51
|
filterOperatorEndsWith: 'ينتهي بـ',
|
|
52
52
|
filterOperatorIs: 'يكون',
|
|
53
53
|
filterOperatorNot: 'ليس',
|
|
54
|
-
filterOperatorAfter: '
|
|
55
|
-
filterOperatorOnOrAfter: '
|
|
56
|
-
filterOperatorBefore: '
|
|
57
|
-
filterOperatorOnOrBefore: '
|
|
58
|
-
filterOperatorIsEmpty: '
|
|
59
|
-
filterOperatorIsNotEmpty: '
|
|
60
|
-
|
|
54
|
+
filterOperatorAfter: 'بعد',
|
|
55
|
+
filterOperatorOnOrAfter: 'عند أو بعد',
|
|
56
|
+
filterOperatorBefore: 'بعد',
|
|
57
|
+
filterOperatorOnOrBefore: 'عند أو قبل',
|
|
58
|
+
filterOperatorIsEmpty: 'خالي',
|
|
59
|
+
filterOperatorIsNotEmpty: 'غير خالي',
|
|
60
|
+
filterOperatorIsAnyOf: 'أي من',
|
|
61
61
|
// Filter values text
|
|
62
62
|
filterValueAny: 'أي',
|
|
63
|
-
filterValueTrue: '
|
|
64
|
-
filterValueFalse: '
|
|
63
|
+
filterValueTrue: 'صائب',
|
|
64
|
+
filterValueFalse: 'خاطئ',
|
|
65
65
|
// Column menu text
|
|
66
66
|
columnMenuLabel: 'القائمة',
|
|
67
67
|
columnMenuShowColumns: 'إظهار الأعمدة',
|
|
68
|
-
columnMenuFilter: '
|
|
68
|
+
columnMenuFilter: 'المرشِح',
|
|
69
69
|
columnMenuHideColumn: 'إخفاء',
|
|
70
|
-
columnMenuUnsort: '
|
|
71
|
-
columnMenuSortAsc: '
|
|
72
|
-
columnMenuSortDesc: '
|
|
70
|
+
columnMenuUnsort: 'الغاء الفرز',
|
|
71
|
+
columnMenuSortAsc: 'الفرز تصاعدياً',
|
|
72
|
+
columnMenuSortDesc: 'الفرز تنازلياً',
|
|
73
73
|
// Column header text
|
|
74
74
|
columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
|
|
75
|
-
return count !== 1 ? "".concat(count, " \
|
|
75
|
+
return count !== 1 ? "".concat(count, " \u0645\u0646 \u0627\u0644\u0645\u0631\u0634\u0650\u062D\u0627\u062A \u0627\u0644\u0646\u0634\u0637\u0629") : "\u0645\u0631\u0634\u0650\u062D \u0646\u0634\u0637";
|
|
76
76
|
},
|
|
77
|
-
columnHeaderFiltersLabel: '
|
|
78
|
-
columnHeaderSortIconLabel: '
|
|
77
|
+
columnHeaderFiltersLabel: 'إظهار المرشحات',
|
|
78
|
+
columnHeaderSortIconLabel: 'فرز',
|
|
79
79
|
// Rows selected footer text
|
|
80
80
|
footerRowSelected: function footerRowSelected(count) {
|
|
81
|
-
return count !== 1 ? "".concat(count.toLocaleString(), " \
|
|
81
|
+
return count !== 1 ? "\u062A\u0645 \u062A\u062D\u062F\u064A\u062F ".concat(count.toLocaleString(), " \u0645\u0646 \u0627\u0644\u0635\u0641\u0648\u0641") : "\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0635\u0641 \u0648\u0627\u062D\u062F";
|
|
82
82
|
},
|
|
83
83
|
// Total row amount footer text
|
|
84
84
|
footerTotalRows: 'إجمالي الصفوف:',
|
|
@@ -87,30 +87,34 @@ var arSDGrid = {
|
|
|
87
87
|
return "".concat(visibleCount.toLocaleString(), " \u0645\u0646 ").concat(totalCount.toLocaleString());
|
|
88
88
|
},
|
|
89
89
|
// Checkbox selection text
|
|
90
|
-
checkboxSelectionHeaderName: 'تحديد',
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
checkboxSelectionHeaderName: 'تحديد خانة الاختيار',
|
|
91
|
+
checkboxSelectionSelectAllRows: 'تحديد كل الصفوف',
|
|
92
|
+
checkboxSelectionUnselectAllRows: 'الغاء تحديد كل الصفوف',
|
|
93
|
+
checkboxSelectionSelectRow: 'تحديد صف',
|
|
94
|
+
checkboxSelectionUnselectRow: 'الغاء تحديد الصف',
|
|
95
95
|
// Boolean cell text
|
|
96
|
-
booleanCellTrueLabel: '
|
|
97
|
-
booleanCellFalseLabel: '
|
|
98
|
-
//
|
|
96
|
+
booleanCellTrueLabel: 'نعم',
|
|
97
|
+
booleanCellFalseLabel: 'لا',
|
|
98
|
+
// Actions cell more text
|
|
99
|
+
actionsCellMore: 'المزيد',
|
|
99
100
|
// Column pinning text
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
pinToLeft: 'التدبيس يميناً',
|
|
102
|
+
pinToRight: 'التدبيس يساراً',
|
|
103
|
+
unpin: 'الغاء التدبيس',
|
|
103
104
|
// Tree Data
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
treeDataGroupingHeaderName: 'تجميع',
|
|
106
|
+
treeDataExpand: 'رؤية الأبناء',
|
|
107
|
+
treeDataCollapse: 'إخفاء الأبناء',
|
|
107
108
|
// Grouping columns
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
groupingColumnHeaderName: 'تجميع',
|
|
110
|
+
groupColumn: function groupColumn(name) {
|
|
111
|
+
return "\u062A\u062C\u0645\u064A\u0639 \u062D\u0633\u0628 ".concat(name);
|
|
112
|
+
},
|
|
113
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
114
|
+
return "\u0625\u064A\u0642\u0627\u0641 \u0627\u0644\u062A\u062C\u0645\u064A\u0639 \u062D\u0633\u0628 ".concat(name);
|
|
115
|
+
},
|
|
111
116
|
// Master/detail
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
expandDetailPanel: 'توسيع',
|
|
118
|
+
collapseDetailPanel: 'طوي'
|
|
115
119
|
};
|
|
116
120
|
export var arSD = getGridLocalization(arSDGrid, arSDCore);
|