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
11
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.d.ts
generated
vendored
Normal file
11
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import * as React from 'react';
|
||||
interface OutlineProps extends React.HTMLAttributes<HTMLFieldSetElement> {
|
||||
notched: boolean;
|
||||
shrink: boolean;
|
||||
label: React.ReactNode;
|
||||
}
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
export default function Outline(props: OutlineProps): React.JSX.Element;
|
||||
export {};
|
||||
136
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.js
generated
vendored
Normal file
136
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.js
generated
vendored
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "label", "notched", "shrink"];
|
||||
import * as React from 'react';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { shouldForwardProp } from '@mui/system/createStyled';
|
||||
import { usePickerTextFieldOwnerState } from "../usePickerTextFieldOwnerState.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const OutlineRoot = styled('fieldset', {
|
||||
name: 'MuiPickersOutlinedInput',
|
||||
slot: 'NotchedOutline'
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
||||
return {
|
||||
textAlign: 'left',
|
||||
position: 'absolute',
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
top: -5,
|
||||
left: 0,
|
||||
margin: 0,
|
||||
padding: '0 8px',
|
||||
pointerEvents: 'none',
|
||||
borderRadius: 'inherit',
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 1,
|
||||
overflow: 'hidden',
|
||||
minWidth: '0%',
|
||||
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
||||
};
|
||||
});
|
||||
const OutlineLabel = styled('span')(({
|
||||
theme
|
||||
}) => ({
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: 'inherit'
|
||||
}));
|
||||
const OutlineLegend = styled('legend', {
|
||||
shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'notched'
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
float: 'unset',
|
||||
// Fix conflict with bootstrap
|
||||
width: 'auto',
|
||||
// Fix conflict with bootstrap
|
||||
overflow: 'hidden',
|
||||
// Fix Horizontal scroll when label too long
|
||||
variants: [{
|
||||
props: {
|
||||
inputHasLabel: false
|
||||
},
|
||||
style: {
|
||||
padding: 0,
|
||||
lineHeight: '11px',
|
||||
// sync with `height` in `legend` styles
|
||||
transition: theme.transitions.create('width', {
|
||||
duration: 150,
|
||||
easing: theme.transitions.easing.easeOut
|
||||
})
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
inputHasLabel: true
|
||||
},
|
||||
style: {
|
||||
display: 'block',
|
||||
// Fix conflict with normalize.css and sanitize.css
|
||||
padding: 0,
|
||||
height: 11,
|
||||
// sync with `lineHeight` in `legend` styles
|
||||
fontSize: '0.75em',
|
||||
visibility: 'hidden',
|
||||
maxWidth: 0.01,
|
||||
transition: theme.transitions.create('max-width', {
|
||||
duration: 50,
|
||||
easing: theme.transitions.easing.easeOut
|
||||
}),
|
||||
whiteSpace: 'nowrap',
|
||||
'& > span': {
|
||||
paddingLeft: 5,
|
||||
paddingRight: 5,
|
||||
display: 'inline-block',
|
||||
opacity: 0,
|
||||
visibility: 'visible'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
inputHasLabel: true,
|
||||
notched: true
|
||||
},
|
||||
style: {
|
||||
maxWidth: '100%',
|
||||
transition: theme.transitions.create('max-width', {
|
||||
duration: 100,
|
||||
easing: theme.transitions.easing.easeOut,
|
||||
delay: 50
|
||||
})
|
||||
}
|
||||
}]
|
||||
}));
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
export default function Outline(props) {
|
||||
const {
|
||||
className,
|
||||
label,
|
||||
notched
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = usePickerTextFieldOwnerState();
|
||||
return /*#__PURE__*/_jsx(OutlineRoot, _extends({
|
||||
"aria-hidden": true,
|
||||
className: className
|
||||
}, other, {
|
||||
ownerState: ownerState,
|
||||
children: /*#__PURE__*/_jsx(OutlineLegend, {
|
||||
ownerState: ownerState,
|
||||
notched: notched,
|
||||
children: label ? /*#__PURE__*/_jsx(OutlineLabel, {
|
||||
children: label
|
||||
}) :
|
||||
/*#__PURE__*/
|
||||
// notranslate needed while Google Translate will not fix zero-width space issue
|
||||
_jsx(OutlineLabel, {
|
||||
className: "notranslate",
|
||||
children: "\u200B"
|
||||
})
|
||||
})
|
||||
}));
|
||||
}
|
||||
10
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts
generated
vendored
Normal file
10
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import * as React from 'react';
|
||||
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
||||
export interface PickersOutlinedInputProps extends PickersInputBaseProps {
|
||||
notched?: boolean;
|
||||
}
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
declare const PickersOutlinedInput: React.ForwardRefExoticComponent<Omit<PickersOutlinedInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
||||
export { PickersOutlinedInput };
|
||||
198
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js
generated
vendored
Normal file
198
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js
generated
vendored
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["label", "autoFocus", "ownerState", "classes", "notched"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useFormControl } from '@mui/material/FormControl';
|
||||
import { styled, useThemeProps } from '@mui/material/styles';
|
||||
import refType from '@mui/utils/refType';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from "./pickersOutlinedInputClasses.js";
|
||||
import Outline from "./Outline.js";
|
||||
import { PickersInputBase } from "../PickersInputBase/index.js";
|
||||
import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from "../PickersInputBase/PickersInputBase.js";
|
||||
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
||||
const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
|
||||
name: 'MuiPickersOutlinedInput',
|
||||
slot: 'Root'
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
||||
return {
|
||||
padding: '0 14px',
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius,
|
||||
[`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
borderColor: (theme.vars || theme).palette.text.primary
|
||||
},
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
[`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
||||
}
|
||||
},
|
||||
[`&.${pickersOutlinedInputClasses.focused} .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 2
|
||||
},
|
||||
[`&.${pickersOutlinedInputClasses.disabled}`]: {
|
||||
[`& .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
borderColor: (theme.vars || theme).palette.action.disabled
|
||||
},
|
||||
'*': {
|
||||
color: (theme.vars || theme).palette.action.disabled
|
||||
}
|
||||
},
|
||||
[`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
borderColor: (theme.vars || theme).palette.error.main
|
||||
},
|
||||
variants: Object.keys((theme.vars ?? theme).palette)
|
||||
// @ts-ignore
|
||||
.filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
|
||||
props: {
|
||||
inputColor: color
|
||||
},
|
||||
style: {
|
||||
[`&.${pickersOutlinedInputClasses.focused}:not(.${pickersOutlinedInputClasses.error}) .${pickersOutlinedInputClasses.notchedOutline}`]: {
|
||||
// @ts-ignore
|
||||
borderColor: (theme.vars || theme).palette[color].main
|
||||
}
|
||||
}
|
||||
}))
|
||||
};
|
||||
});
|
||||
const PickersOutlinedInputSectionsContainer = styled(PickersInputBaseSectionsContainer, {
|
||||
name: 'MuiPickersOutlinedInput',
|
||||
slot: 'SectionsContainer'
|
||||
})({
|
||||
padding: '16.5px 0',
|
||||
variants: [{
|
||||
props: {
|
||||
inputSize: 'small'
|
||||
},
|
||||
style: {
|
||||
padding: '8.5px 0'
|
||||
}
|
||||
}]
|
||||
});
|
||||
const useUtilityClasses = classes => {
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
notchedOutline: ['notchedOutline'],
|
||||
input: ['input']
|
||||
};
|
||||
const composedClasses = composeClasses(slots, getPickersOutlinedInputUtilityClass, classes);
|
||||
return _extends({}, classes, composedClasses);
|
||||
};
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
const PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutlinedInput(inProps, ref) {
|
||||
const props = useThemeProps({
|
||||
props: inProps,
|
||||
name: 'MuiPickersOutlinedInput'
|
||||
});
|
||||
const {
|
||||
label,
|
||||
classes: classesProp,
|
||||
notched
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const muiFormControl = useFormControl();
|
||||
const classes = useUtilityClasses(classesProp);
|
||||
return /*#__PURE__*/_jsx(PickersInputBase, _extends({
|
||||
slots: {
|
||||
root: PickersOutlinedInputRoot,
|
||||
input: PickersOutlinedInputSectionsContainer
|
||||
},
|
||||
renderSuffix: state => /*#__PURE__*/_jsx(Outline, {
|
||||
shrink: Boolean(notched || state.adornedStart || state.focused || state.filled),
|
||||
notched: Boolean(notched || state.adornedStart || state.focused || state.filled),
|
||||
className: classes.notchedOutline,
|
||||
label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/_jsxs(React.Fragment, {
|
||||
children: [label, "\u2009", '*']
|
||||
}) : label
|
||||
})
|
||||
}, other, {
|
||||
label: label,
|
||||
classes: classes,
|
||||
ref: ref
|
||||
}));
|
||||
});
|
||||
if (process.env.NODE_ENV !== "production") PickersOutlinedInput.displayName = "PickersOutlinedInput";
|
||||
process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
/**
|
||||
* Is `true` if the current values equals the empty value.
|
||||
* For a single item value, it means that `value === null`
|
||||
* For a range value, it means that `value === [null, null]`
|
||||
*/
|
||||
areAllSectionsEmpty: PropTypes.bool.isRequired,
|
||||
className: PropTypes.string,
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* If true, the whole element is editable.
|
||||
* Useful when all the sections are selected.
|
||||
*/
|
||||
contentEditable: PropTypes.bool.isRequired,
|
||||
'data-multi-input': PropTypes.string,
|
||||
/**
|
||||
* The elements to render.
|
||||
* Each element contains the prop to edit a section of the value.
|
||||
*/
|
||||
elements: PropTypes.arrayOf(PropTypes.shape({
|
||||
after: PropTypes.object.isRequired,
|
||||
before: PropTypes.object.isRequired,
|
||||
container: PropTypes.object.isRequired,
|
||||
content: PropTypes.object.isRequired
|
||||
})).isRequired,
|
||||
endAdornment: PropTypes.node,
|
||||
fullWidth: PropTypes.bool,
|
||||
id: PropTypes.string,
|
||||
inputProps: PropTypes.object,
|
||||
inputRef: refType,
|
||||
label: PropTypes.node,
|
||||
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
||||
name: PropTypes.string,
|
||||
notched: PropTypes.bool,
|
||||
onChange: PropTypes.func.isRequired,
|
||||
onClick: PropTypes.func.isRequired,
|
||||
onInput: PropTypes.func.isRequired,
|
||||
onKeyDown: PropTypes.func.isRequired,
|
||||
onPaste: PropTypes.func.isRequired,
|
||||
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
||||
readOnly: PropTypes.bool,
|
||||
renderSuffix: PropTypes.func,
|
||||
sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
||||
current: PropTypes.shape({
|
||||
getRoot: PropTypes.func.isRequired,
|
||||
getSectionContainer: PropTypes.func.isRequired,
|
||||
getSectionContent: PropTypes.func.isRequired,
|
||||
getSectionIndexFromDOMElement: PropTypes.func.isRequired
|
||||
})
|
||||
})]),
|
||||
/**
|
||||
* The props used for each component slot.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.object,
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.object,
|
||||
startAdornment: PropTypes.node,
|
||||
style: PropTypes.object,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
||||
value: PropTypes.string.isRequired
|
||||
} : void 0;
|
||||
export { PickersOutlinedInput };
|
||||
PickersOutlinedInput.muiName = 'Input';
|
||||
4
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { PickersOutlinedInput } from "./PickersOutlinedInput.js";
|
||||
export type { PickersOutlinedInputProps } from "./PickersOutlinedInput.js";
|
||||
export type { PickersOutlinedInputClasses, PickersOutlinedInputClassKey } from "./pickersOutlinedInputClasses.js";
|
||||
export { getPickersOutlinedInputUtilityClass, pickersOutlinedInputClasses } from "./pickersOutlinedInputClasses.js";
|
||||
2
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/index.js
generated
vendored
Normal file
2
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export { PickersOutlinedInput } from "./PickersOutlinedInput.js";
|
||||
export { getPickersOutlinedInputUtilityClass, pickersOutlinedInputClasses } from "./pickersOutlinedInputClasses.js";
|
||||
24
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts
generated
vendored
Normal file
24
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { PickersInputBaseClasses } from "../PickersInputBase/index.js";
|
||||
export interface PickersOutlinedInputClasses extends PickersInputBaseClasses {
|
||||
/** Styles applied to the NotchedOutline element. */
|
||||
notchedOutline: string;
|
||||
}
|
||||
export type PickersOutlinedInputClassKey = keyof PickersOutlinedInputClasses;
|
||||
export declare function getPickersOutlinedInputUtilityClass(slot: string): string;
|
||||
export declare const pickersOutlinedInputClasses: {
|
||||
root: string;
|
||||
input: string;
|
||||
notchedOutline: string;
|
||||
sectionContent: string;
|
||||
disabled: string;
|
||||
readOnly: string;
|
||||
focused: string;
|
||||
error: string;
|
||||
inputSizeSmall: string;
|
||||
sectionsContainer: string;
|
||||
sectionBefore: string;
|
||||
sectionAfter: string;
|
||||
adornedStart: string;
|
||||
adornedEnd: string;
|
||||
activeBar: string;
|
||||
};
|
||||
8
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js
generated
vendored
Normal file
8
node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
import { pickersInputBaseClasses } from "../PickersInputBase/index.js";
|
||||
export function getPickersOutlinedInputUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiPickersOutlinedInput', slot);
|
||||
}
|
||||
export const pickersOutlinedInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersOutlinedInput', ['root', 'notchedOutline', 'input']));
|
||||
Loading…
Add table
Add a link
Reference in a new issue