UNPKG

@mui/x-data-grid-pro

Version:

The Pro plan edition of the MUI X Data Grid components.

12 lines (11 loc) 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.gridDataSourceStateSelector = exports.gridDataSourceLoadingSelector = exports.gridDataSourceLoadingIdSelector = exports.gridDataSourceErrorsSelector = exports.gridDataSourceErrorSelector = void 0; var _internals = require("@mui/x-data-grid/internals"); const gridDataSourceStateSelector = exports.gridDataSourceStateSelector = (0, _internals.createRootSelector)(state => state.dataSource); const gridDataSourceLoadingSelector = exports.gridDataSourceLoadingSelector = (0, _internals.createSelector)(gridDataSourceStateSelector, dataSource => dataSource.loading); const gridDataSourceLoadingIdSelector = exports.gridDataSourceLoadingIdSelector = (0, _internals.createSelector)(gridDataSourceStateSelector, (dataSource, id) => dataSource.loading[id] ?? false); const gridDataSourceErrorsSelector = exports.gridDataSourceErrorsSelector = (0, _internals.createSelector)(gridDataSourceStateSelector, dataSource => dataSource.errors); const gridDataSourceErrorSelector = exports.gridDataSourceErrorSelector = (0, _internals.createSelector)(gridDataSourceStateSelector, (dataSource, id) => dataSource.errors[id]);