@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
|
@@ -28,11 +28,13 @@ var _gridClasses = require("../../constants/gridClasses");
|
|
|
28
28
|
|
|
29
29
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
30
30
|
|
|
31
|
+
var _index = require("../icons/index");
|
|
32
|
+
|
|
31
33
|
var _GridFilterInputValue = require("../panel/filterPanel/GridFilterInputValue");
|
|
32
34
|
|
|
33
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
36
|
|
|
35
|
-
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "getValue", "isValidating", "debounceMs"];
|
|
37
|
+
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "getValue", "isValidating", "debounceMs", "isProcessingProps"];
|
|
36
38
|
|
|
37
39
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
38
40
|
|
|
@@ -63,6 +65,9 @@ const GridEditInputCellRoot = (0, _styles.styled)(_InputBase.default, {
|
|
|
63
65
|
}));
|
|
64
66
|
|
|
65
67
|
function GridEditInputCell(props) {
|
|
68
|
+
var _rootProps$experiment;
|
|
69
|
+
|
|
70
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
66
71
|
const {
|
|
67
72
|
id,
|
|
68
73
|
value,
|
|
@@ -70,12 +75,12 @@ function GridEditInputCell(props) {
|
|
|
70
75
|
field,
|
|
71
76
|
colDef,
|
|
72
77
|
hasFocus,
|
|
73
|
-
debounceMs = _GridFilterInputValue.SUBMIT_FILTER_STROKE_TIME
|
|
78
|
+
debounceMs = (_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.newEditingApi ? 200 : _GridFilterInputValue.SUBMIT_FILTER_STROKE_TIME,
|
|
79
|
+
isProcessingProps
|
|
74
80
|
} = props,
|
|
75
81
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
76
82
|
const inputRef = React.useRef();
|
|
77
83
|
const [valueState, setValueState] = React.useState(value);
|
|
78
|
-
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
79
84
|
const ownerState = {
|
|
80
85
|
classes: rootProps.classes
|
|
81
86
|
};
|
|
@@ -104,7 +109,8 @@ function GridEditInputCell(props) {
|
|
|
104
109
|
fullWidth: true,
|
|
105
110
|
type: colDef.type === 'number' ? colDef.type : 'text',
|
|
106
111
|
value: valueState != null ? valueState : '',
|
|
107
|
-
onChange: handleChange
|
|
112
|
+
onChange: handleChange,
|
|
113
|
+
endAdornment: isProcessingProps ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GridLoadIcon, {}) : undefined
|
|
108
114
|
}, other));
|
|
109
115
|
}
|
|
110
116
|
|
|
@@ -119,8 +125,63 @@ process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes = {
|
|
|
119
125
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
120
126
|
*/
|
|
121
127
|
api: _propTypes.default.any.isRequired,
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The mode of the cell.
|
|
131
|
+
*/
|
|
132
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The column of the row that the current cell belongs to.
|
|
136
|
+
*/
|
|
137
|
+
colDef: _propTypes.default.object.isRequired,
|
|
122
138
|
debounceMs: _propTypes.default.number,
|
|
123
|
-
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The column field of the cell that triggered the event.
|
|
142
|
+
*/
|
|
143
|
+
field: _propTypes.default.string.isRequired,
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The cell value formatted with the column valueFormatter.
|
|
147
|
+
*/
|
|
148
|
+
formattedValue: _propTypes.default.any.isRequired,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Get the cell value of a row and field.
|
|
152
|
+
* @param {GridRowId} id The row id.
|
|
153
|
+
* @param {string} field The field.
|
|
154
|
+
* @returns {GridCellValue} The cell value.
|
|
155
|
+
* @deprecated Use `params.row` to directly access the fields you want instead.
|
|
156
|
+
*/
|
|
157
|
+
getValue: _propTypes.default.func.isRequired,
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* If true, the cell is the active element.
|
|
161
|
+
*/
|
|
162
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The grid row id.
|
|
166
|
+
*/
|
|
167
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* If true, the cell is editable.
|
|
171
|
+
*/
|
|
172
|
+
isEditable: _propTypes.default.bool,
|
|
173
|
+
isProcessingProps: _propTypes.default.bool,
|
|
174
|
+
isValidating: _propTypes.default.bool,
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The row model of the row that the current cell belongs to.
|
|
178
|
+
*/
|
|
179
|
+
row: _propTypes.default.any.isRequired,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The node of the row that the current cell belongs to.
|
|
183
|
+
*/
|
|
184
|
+
rowNode: _propTypes.default.object.isRequired
|
|
124
185
|
} : void 0;
|
|
125
186
|
|
|
126
187
|
const renderEditInputCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditInputCell, (0, _extends2.default)({}, params));
|
|
@@ -30,7 +30,7 @@ var _gridEvents = require("../../models/events/gridEvents");
|
|
|
30
30
|
|
|
31
31
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
32
|
|
|
33
|
-
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "getValue", "hasFocus", "isValidating", "error"];
|
|
33
|
+
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "getValue", "hasFocus", "isValidating", "isProcessingProps", "error"];
|
|
34
34
|
|
|
35
35
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
36
|
|
|
@@ -93,13 +93,20 @@ function GridEditSingleSelectCell(props) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const handleChange = async event => {
|
|
96
|
+
var _rootProps$experiment;
|
|
97
|
+
|
|
96
98
|
setOpen(false);
|
|
97
99
|
const target = event.target;
|
|
98
100
|
const isValid = await api.setEditCellValue({
|
|
99
101
|
id,
|
|
100
102
|
field,
|
|
101
103
|
value: target.value
|
|
102
|
-
}, event);
|
|
104
|
+
}, event);
|
|
105
|
+
|
|
106
|
+
if ((_rootProps$experiment = rootProps.experimentalFeatures) != null && _rootProps$experiment.newEditingApi) {
|
|
107
|
+
return;
|
|
108
|
+
} // We use isValid === false because the default return is undefined which evaluates to true with !isValid
|
|
109
|
+
|
|
103
110
|
|
|
104
111
|
if (rootProps.editMode === _gridEditRowModel.GridEditModes.Row || isValid === false) {
|
|
105
112
|
return;
|
|
@@ -128,7 +135,17 @@ function GridEditSingleSelectCell(props) {
|
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
if (reason === 'backdropClick' || (0, _keyboardUtils.isEscapeKey)(event.key)) {
|
|
131
|
-
|
|
138
|
+
var _rootProps$experiment2;
|
|
139
|
+
|
|
140
|
+
if ((_rootProps$experiment2 = rootProps.experimentalFeatures) != null && _rootProps$experiment2.newEditingApi) {
|
|
141
|
+
api.stopCellEditMode({
|
|
142
|
+
id,
|
|
143
|
+
field,
|
|
144
|
+
ignoreModifications: true
|
|
145
|
+
});
|
|
146
|
+
} else {
|
|
147
|
+
api.setCellMode(id, field, 'view');
|
|
148
|
+
}
|
|
132
149
|
}
|
|
133
150
|
};
|
|
134
151
|
|
|
@@ -169,7 +186,62 @@ process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
|
|
|
169
186
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
170
187
|
*/
|
|
171
188
|
api: _propTypes.default.any.isRequired,
|
|
172
|
-
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The mode of the cell.
|
|
192
|
+
*/
|
|
193
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The column of the row that the current cell belongs to.
|
|
197
|
+
*/
|
|
198
|
+
colDef: _propTypes.default.object.isRequired,
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The column field of the cell that triggered the event.
|
|
202
|
+
*/
|
|
203
|
+
field: _propTypes.default.string.isRequired,
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The cell value formatted with the column valueFormatter.
|
|
207
|
+
*/
|
|
208
|
+
formattedValue: _propTypes.default.any.isRequired,
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Get the cell value of a row and field.
|
|
212
|
+
* @param {GridRowId} id The row id.
|
|
213
|
+
* @param {string} field The field.
|
|
214
|
+
* @returns {GridCellValue} The cell value.
|
|
215
|
+
* @deprecated Use `params.row` to directly access the fields you want instead.
|
|
216
|
+
*/
|
|
217
|
+
getValue: _propTypes.default.func.isRequired,
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* If true, the cell is the active element.
|
|
221
|
+
*/
|
|
222
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The grid row id.
|
|
226
|
+
*/
|
|
227
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* If true, the cell is editable.
|
|
231
|
+
*/
|
|
232
|
+
isEditable: _propTypes.default.bool,
|
|
233
|
+
isProcessingProps: _propTypes.default.bool,
|
|
234
|
+
isValidating: _propTypes.default.bool,
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The row model of the row that the current cell belongs to.
|
|
238
|
+
*/
|
|
239
|
+
row: _propTypes.default.any.isRequired,
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The node of the row that the current cell belongs to.
|
|
243
|
+
*/
|
|
244
|
+
rowNode: _propTypes.default.object.isRequired
|
|
173
245
|
} : void 0;
|
|
174
246
|
|
|
175
247
|
const renderEditSingleSelectCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditSingleSelectCell, (0, _extends2.default)({}, params));
|
|
@@ -112,6 +112,6 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes = {
|
|
|
112
112
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
113
113
|
// ----------------------------------------------------------------------
|
|
114
114
|
columnWidth: _propTypes.default.number.isRequired,
|
|
115
|
-
description: _propTypes.default.
|
|
115
|
+
description: _propTypes.default.node,
|
|
116
116
|
label: _propTypes.default.string.isRequired
|
|
117
117
|
} : void 0;
|
|
@@ -57,7 +57,9 @@ const GridColumnHeadersRoot = (0, _styles.styled)('div', {
|
|
|
57
57
|
overflow: 'hidden',
|
|
58
58
|
display: 'flex',
|
|
59
59
|
alignItems: 'center',
|
|
60
|
-
borderBottom: `1px solid ${borderColor}
|
|
60
|
+
borderBottom: `1px solid ${borderColor}`,
|
|
61
|
+
borderTopLeftRadius: theme.shape.borderRadius,
|
|
62
|
+
borderTopRightRadius: theme.shape.borderRadius
|
|
61
63
|
};
|
|
62
64
|
});
|
|
63
65
|
const GridColumnHeaders = /*#__PURE__*/React.forwardRef(function GridColumnHeaders(props, ref) {
|
|
@@ -13,6 +13,8 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
13
13
|
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
16
18
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
19
|
|
|
18
20
|
var _material = require("@mui/material");
|
|
@@ -70,4 +72,11 @@ const GridOverlay = /*#__PURE__*/React.forwardRef(function GridOverlay(props, re
|
|
|
70
72
|
className: (0, _clsx.default)(classes.root, className)
|
|
71
73
|
}, other));
|
|
72
74
|
});
|
|
73
|
-
exports.GridOverlay = GridOverlay;
|
|
75
|
+
exports.GridOverlay = GridOverlay;
|
|
76
|
+
process.env.NODE_ENV !== "production" ? GridOverlay.propTypes = {
|
|
77
|
+
// ----------------------------- Warning --------------------------------
|
|
78
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
79
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
80
|
+
// ----------------------------------------------------------------------
|
|
81
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
82
|
+
} : void 0;
|
|
@@ -119,11 +119,11 @@ const GridRootStyles = (0, _styles.styled)('div', {
|
|
|
119
119
|
[`&.${_gridClasses.gridClasses.autoHeight}`]: {
|
|
120
120
|
height: 'auto',
|
|
121
121
|
[`& .${_gridClasses.gridClasses['row--lastVisible']} .${_gridClasses.gridClasses.cell}`]: {
|
|
122
|
-
|
|
122
|
+
borderBottomColor: 'transparent'
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
[`& .${_gridClasses.gridClasses['virtualScrollerContent--overflowed']} .${_gridClasses.gridClasses['row--lastVisible']} .${_gridClasses.gridClasses.cell}`]: {
|
|
126
|
-
|
|
126
|
+
borderBottomColor: 'transparent'
|
|
127
127
|
},
|
|
128
128
|
[`& .${_gridClasses.gridClasses.columnHeader}, & .${_gridClasses.gridClasses.cell}`]: {
|
|
129
129
|
WebkitTapHighlightColor: 'transparent',
|
|
@@ -85,7 +85,7 @@ const GridIconButtonRoot = (0, _styles.styled)(_IconButton.default)({
|
|
|
85
85
|
justifyContent: 'flex-end'
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
function GridColumnsPanel() {
|
|
88
|
+
function GridColumnsPanel(props) {
|
|
89
89
|
var _rootProps$components, _rootProps$components3, _rootProps$components4;
|
|
90
90
|
|
|
91
91
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
@@ -133,7 +133,7 @@ function GridColumnsPanel() {
|
|
|
133
133
|
React.useEffect(() => {
|
|
134
134
|
searchInputRef.current.focus();
|
|
135
135
|
}, []);
|
|
136
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridPanelWrapper.GridPanelWrapper, {
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridPanelWrapper.GridPanelWrapper, (0, _extends2.default)({}, props, {
|
|
137
137
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GridPanelHeader.GridPanelHeader, {
|
|
138
138
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.components.BaseTextField, (0, _extends2.default)({
|
|
139
139
|
label: apiRef.current.getLocaleText('columnsPanelTextFieldLabel'),
|
|
@@ -186,5 +186,5 @@ function GridColumnsPanel() {
|
|
|
186
186
|
children: apiRef.current.getLocaleText('columnsPanelShowAllButton')
|
|
187
187
|
}))]
|
|
188
188
|
})]
|
|
189
|
-
});
|
|
189
|
+
}));
|
|
190
190
|
}
|
|
@@ -30,20 +30,19 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
|
|
32
32
|
const GridPreferencesPanel = /*#__PURE__*/React.forwardRef(function GridPreferencesPanel(props, ref) {
|
|
33
|
-
var _rootProps$components, _rootProps$components2
|
|
33
|
+
var _preferencePanelState, _rootProps$components, _rootProps$components2;
|
|
34
34
|
|
|
35
35
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
36
36
|
const columns = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnsSelector.gridColumnDefinitionsSelector);
|
|
37
37
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
38
38
|
const preferencePanelState = (0, _useGridSelector.useGridSelector)(apiRef, _gridPreferencePanelSelector.gridPreferencePanelStateSelector);
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.components.Panel, (0, _extends2.default)({
|
|
39
|
+
const panelContent = apiRef.current.unstable_applyPreProcessors('preferencePanel', null, (_preferencePanelState = preferencePanelState.openedPanelValue) != null ? _preferencePanelState : _gridPreferencePanelsValue.GridPreferencePanelsValue.filters);
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.components.Panel, (0, _extends2.default)({
|
|
42
41
|
ref: ref,
|
|
43
42
|
as: rootProps.components.BasePopper,
|
|
44
43
|
open: columns.length > 0 && preferencePanelState.open
|
|
45
44
|
}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.panel, props, (_rootProps$components2 = rootProps.componentsProps) == null ? void 0 : _rootProps$components2.basePopper, {
|
|
46
|
-
children:
|
|
45
|
+
children: panelContent
|
|
47
46
|
}));
|
|
48
47
|
});
|
|
49
48
|
exports.GridPreferencesPanel = GridPreferencesPanel;
|
|
@@ -23,6 +23,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* TODO: Rename `useGridPipProcessing`
|
|
28
|
+
*/
|
|
26
29
|
const useGridPreProcessing = apiRef => {
|
|
27
30
|
const preProcessorsRef = React.useRef({});
|
|
28
31
|
const registerPreProcessor = React.useCallback((group, id, callback) => {
|
|
@@ -33,7 +36,7 @@ const useGridPreProcessing = apiRef => {
|
|
|
33
36
|
const preProcessors = preProcessorsRef.current[group];
|
|
34
37
|
const oldCallback = preProcessors[id];
|
|
35
38
|
|
|
36
|
-
if (
|
|
39
|
+
if (oldCallback !== callback) {
|
|
37
40
|
preProcessorsRef.current[group] = (0, _extends2.default)({}, preProcessors, {
|
|
38
41
|
[id]: callback
|
|
39
42
|
});
|
|
@@ -13,6 +13,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* TODO: Rename `useGridRegisterPipeProcessor`
|
|
18
|
+
*/
|
|
16
19
|
const useGridRegisterPreProcessor = (apiRef, group, callback) => {
|
|
17
20
|
const cleanup = React.useRef();
|
|
18
21
|
const id = React.useRef(`mui-${Math.round(Math.random() * 1e9)}`);
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _gridStrategyProcessingApi = require("./gridStrategyProcessingApi");
|
|
8
|
+
|
|
9
|
+
Object.keys(_gridStrategyProcessingApi).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _gridStrategyProcessingApi[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _gridStrategyProcessingApi[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _useGridRegisterStrategyProcessor = require("./useGridRegisterStrategyProcessor");
|
|
21
|
+
|
|
22
|
+
Object.keys(_useGridRegisterStrategyProcessor).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _useGridRegisterStrategyProcessor[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _useGridRegisterStrategyProcessor[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _useGridStrategyProcessing = require("./useGridStrategyProcessing");
|
|
34
|
+
|
|
35
|
+
Object.keys(_useGridStrategyProcessing).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _useGridStrategyProcessing[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _useGridStrategyProcessing[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -3,22 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.useGridRegisterStrategyProcessor = void 0;
|
|
7
7
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _useFirstRender = require("../../utils/useFirstRender");
|
|
11
11
|
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const useGridRegisterStrategyProcessor = (apiRef, strategyName, group, processor) => {
|
|
17
|
+
const registerPreProcessor = React.useCallback(() => {
|
|
18
|
+
apiRef.current.unstable_registerStrategyProcessor(strategyName, group, processor);
|
|
19
|
+
}, [apiRef, processor, group, strategyName]);
|
|
20
|
+
(0, _useFirstRender.useFirstRender)(() => {
|
|
21
|
+
registerPreProcessor();
|
|
22
|
+
});
|
|
23
|
+
const isFirstRender = React.useRef(true);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
if (isFirstRender.current) {
|
|
26
|
+
isFirstRender.current = false;
|
|
27
|
+
} else {
|
|
28
|
+
registerPreProcessor();
|
|
29
|
+
}
|
|
30
|
+
}, [registerPreProcessor]);
|
|
22
31
|
};
|
|
23
32
|
|
|
24
|
-
exports.
|
|
33
|
+
exports.useGridRegisterStrategyProcessor = useGridRegisterStrategyProcessor;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useGridStrategyProcessing = exports.GRID_STRATEGIES_PROCESSORS = exports.GRID_DEFAULT_STRATEGY = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
+
|
|
12
|
+
var _toPropertyKey2 = _interopRequireDefault(require("@babel/runtime/helpers/toPropertyKey"));
|
|
13
|
+
|
|
14
|
+
var React = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _useGridApiMethod = require("../../utils/useGridApiMethod");
|
|
17
|
+
|
|
18
|
+
var _events = require("../../../models/events");
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
const GRID_DEFAULT_STRATEGY = 'none';
|
|
25
|
+
exports.GRID_DEFAULT_STRATEGY = GRID_DEFAULT_STRATEGY;
|
|
26
|
+
const GRID_STRATEGIES_PROCESSORS = {
|
|
27
|
+
rowTreeCreation: 'rowTree',
|
|
28
|
+
filtering: 'rowTree',
|
|
29
|
+
sorting: 'rowTree'
|
|
30
|
+
};
|
|
31
|
+
exports.GRID_STRATEGIES_PROCESSORS = GRID_STRATEGIES_PROCESSORS;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Implements a variant of the Strategy Pattern (see https://en.wikipedia.org/wiki/Strategy_pattern)
|
|
35
|
+
*
|
|
36
|
+
* Some plugins contain custom logic that must only be run if the right strategy is active.
|
|
37
|
+
* For instance, the tree data plugin has:
|
|
38
|
+
* - custom row tree creation algorithm.
|
|
39
|
+
* - custom sorting algorithm.
|
|
40
|
+
* - custom filtering algorithm.
|
|
41
|
+
*
|
|
42
|
+
* These plugins must use:
|
|
43
|
+
* - `apiRef.current.unstable_registerStrategyProcessor` to register their processors.
|
|
44
|
+
* - `apiRef.current.unstable_setStrategyAvailability` to tell if their strategy can be used.
|
|
45
|
+
*
|
|
46
|
+
* Some hooks need to run the custom logic of the active strategy.
|
|
47
|
+
* For instance, the `useGridFiltering` wants to run:
|
|
48
|
+
* - the tree data filtering if the tree data is the current way of grouping rows.
|
|
49
|
+
* - the row grouping filtering if the row grouping is the current way of grouping rows.
|
|
50
|
+
* - the flat filtering if there is no grouping of the rows (equivalent to the "none" strategy).
|
|
51
|
+
*
|
|
52
|
+
* These hooks must use:
|
|
53
|
+
* - `apiRef.current.unstable_applyStrategyProcessor` to run a processor.
|
|
54
|
+
* - `GridEvents.strategyAvailabilityChange` to update something when the active strategy changes.
|
|
55
|
+
* Warning: Be careful not to apply the processor several times.
|
|
56
|
+
* For instance `GridEvents.rowsSet` is fired by `useGridRows` whenever the active strategy changes.
|
|
57
|
+
* So listening to both would most likely run your logic twice.
|
|
58
|
+
* - `GridEvents.activeStrategyProcessorChange` to update something when the processor of the active strategy changes
|
|
59
|
+
*
|
|
60
|
+
* Each processor name is part of a strategy group which can only have one active strategy at the time.
|
|
61
|
+
*/
|
|
62
|
+
const useGridStrategyProcessing = apiRef => {
|
|
63
|
+
const availableStrategies = React.useRef(new Map());
|
|
64
|
+
const strategiesCache = React.useRef({});
|
|
65
|
+
const registerStrategyProcessor = React.useCallback((strategyName, processorName, processor) => {
|
|
66
|
+
const cleanup = () => {
|
|
67
|
+
const _ref = strategiesCache.current[processorName],
|
|
68
|
+
otherProcessors = (0, _objectWithoutPropertiesLoose2.default)(_ref, [strategyName].map(_toPropertyKey2.default));
|
|
69
|
+
strategiesCache.current[processorName] = otherProcessors;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
if (!strategiesCache.current[processorName]) {
|
|
73
|
+
strategiesCache.current[processorName] = {};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const groupPreProcessors = strategiesCache.current[processorName];
|
|
77
|
+
const previousProcessor = groupPreProcessors[strategyName];
|
|
78
|
+
groupPreProcessors[strategyName] = processor;
|
|
79
|
+
|
|
80
|
+
if (!previousProcessor || previousProcessor === processor) {
|
|
81
|
+
return cleanup;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (strategyName === apiRef.current.unstable_getActiveStrategy(GRID_STRATEGIES_PROCESSORS[processorName])) {
|
|
85
|
+
apiRef.current.publishEvent(_events.GridEvents.activeStrategyProcessorChange, processorName);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return cleanup;
|
|
89
|
+
}, [apiRef]);
|
|
90
|
+
const applyStrategyProcessor = React.useCallback((processorName, params) => {
|
|
91
|
+
const activeStrategy = apiRef.current.unstable_getActiveStrategy(GRID_STRATEGIES_PROCESSORS[processorName]);
|
|
92
|
+
|
|
93
|
+
if (activeStrategy == null) {
|
|
94
|
+
throw new Error("Can't apply a strategy processor before defining an active strategy");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const groupCache = strategiesCache.current[processorName];
|
|
98
|
+
|
|
99
|
+
if (!groupCache || !groupCache[activeStrategy]) {
|
|
100
|
+
throw new Error(`No processor found for processor "${processorName}" on strategy "${activeStrategy}"`);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const processor = groupCache[activeStrategy];
|
|
104
|
+
return processor(params);
|
|
105
|
+
}, [apiRef]);
|
|
106
|
+
const getActiveStrategy = React.useCallback(strategyGroup => {
|
|
107
|
+
var _availableStrategyEnt;
|
|
108
|
+
|
|
109
|
+
const strategyEntries = Array.from(availableStrategies.current.entries());
|
|
110
|
+
const availableStrategyEntry = strategyEntries.find(([, strategy]) => {
|
|
111
|
+
if (strategy.group !== strategyGroup) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return strategy.isAvailable();
|
|
116
|
+
});
|
|
117
|
+
return (_availableStrategyEnt = availableStrategyEntry == null ? void 0 : availableStrategyEntry[0]) != null ? _availableStrategyEnt : GRID_DEFAULT_STRATEGY;
|
|
118
|
+
}, []);
|
|
119
|
+
const setStrategyAvailability = React.useCallback((strategyGroup, strategyName, isAvailable) => {
|
|
120
|
+
availableStrategies.current.set(strategyName, {
|
|
121
|
+
group: strategyGroup,
|
|
122
|
+
isAvailable
|
|
123
|
+
});
|
|
124
|
+
apiRef.current.publishEvent(_events.GridEvents.strategyAvailabilityChange);
|
|
125
|
+
}, [apiRef]);
|
|
126
|
+
const strategyProcessingApi = {
|
|
127
|
+
unstable_registerStrategyProcessor: registerStrategyProcessor,
|
|
128
|
+
unstable_applyStrategyProcessor: applyStrategyProcessor,
|
|
129
|
+
unstable_getActiveStrategy: getActiveStrategy,
|
|
130
|
+
unstable_setStrategyAvailability: setStrategyAvailability
|
|
131
|
+
};
|
|
132
|
+
(0, _useGridApiMethod.useGridApiMethod)(apiRef, strategyProcessingApi, 'GridStrategyProcessing');
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
exports.useGridStrategyProcessing = useGridStrategyProcessing;
|
|
@@ -15,7 +15,7 @@ var _useGridLocaleText = require("./useGridLocaleText");
|
|
|
15
15
|
|
|
16
16
|
var _preProcessing = require("./preProcessing");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _strategyProcessing = require("./strategyProcessing");
|
|
19
19
|
|
|
20
20
|
var _useGridStateInitialization = require("./useGridStateInitialization");
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ const useGridInitialization = (inputApiRef, props) => {
|
|
|
28
28
|
(0, _useGridErrorHandler.useGridErrorHandler)(apiRef, props);
|
|
29
29
|
(0, _useGridStateInitialization.useGridStateInitialization)(apiRef, props);
|
|
30
30
|
(0, _preProcessing.useGridPreProcessing)(apiRef);
|
|
31
|
-
(0,
|
|
31
|
+
(0, _strategyProcessing.useGridStrategyProcessing)(apiRef);
|
|
32
32
|
(0, _useGridLocaleText.useGridLocaleText)(apiRef, props);
|
|
33
33
|
return apiRef;
|
|
34
34
|
};
|