Added Statistics calculation
Statistics now show calculated values
This commit is contained in:
parent
fe87374e47
commit
fc0f69dacb
2147 changed files with 141321 additions and 39 deletions
21
node_modules/@mui/x-date-pickers/validation/extractValidationProps.js
generated
vendored
Normal file
21
node_modules/@mui/x-date-pickers/validation/extractValidationProps.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.extractValidationProps = exports.TIME_VALIDATION_PROP_NAMES = exports.DATE_VALIDATION_PROP_NAMES = exports.DATE_TIME_VALIDATION_PROP_NAMES = void 0;
|
||||
const DATE_VALIDATION_PROP_NAMES = exports.DATE_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minDate', 'maxDate', 'shouldDisableDate', 'shouldDisableMonth', 'shouldDisableYear'];
|
||||
const TIME_VALIDATION_PROP_NAMES = exports.TIME_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minTime', 'maxTime', 'shouldDisableTime', 'minutesStep', 'ampm', 'disableIgnoringDatePartForTimeValidation'];
|
||||
const DATE_TIME_VALIDATION_PROP_NAMES = exports.DATE_TIME_VALIDATION_PROP_NAMES = ['minDateTime', 'maxDateTime'];
|
||||
const VALIDATION_PROP_NAMES = [...DATE_VALIDATION_PROP_NAMES, ...TIME_VALIDATION_PROP_NAMES, ...DATE_TIME_VALIDATION_PROP_NAMES];
|
||||
/**
|
||||
* Extract the validation props for the props received by a component.
|
||||
* Limit the risk of forgetting some of them and reduce the bundle size.
|
||||
*/
|
||||
const extractValidationProps = props => VALIDATION_PROP_NAMES.reduce((extractedProps, propName) => {
|
||||
if (props.hasOwnProperty(propName)) {
|
||||
extractedProps[propName] = props[propName];
|
||||
}
|
||||
return extractedProps;
|
||||
}, {});
|
||||
exports.extractValidationProps = extractValidationProps;
|
||||
Loading…
Add table
Add a link
Reference in a new issue