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
30
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/DayCalendarSkeleton.d.ts
generated
vendored
Normal file
30
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/DayCalendarSkeleton.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import * as React from 'react';
|
||||
import { Theme } from '@mui/material/styles';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { DayCalendarSkeletonClasses } from "./dayCalendarSkeletonClasses.js";
|
||||
type HTMLDivProps = React.JSX.IntrinsicElements['div'];
|
||||
export interface DayCalendarSkeletonProps extends HTMLDivProps {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<DayCalendarSkeletonClasses>;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
}
|
||||
/**
|
||||
* Demos:
|
||||
*
|
||||
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CalendarPickerSkeleton API](https://mui.com/x/api/date-pickers/calendar-picker-skeleton/)
|
||||
*/
|
||||
declare function DayCalendarSkeleton(inProps: DayCalendarSkeletonProps): React.JSX.Element;
|
||||
declare namespace DayCalendarSkeleton {
|
||||
var propTypes: any;
|
||||
}
|
||||
export { DayCalendarSkeleton };
|
||||
98
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/DayCalendarSkeleton.js
generated
vendored
Normal file
98
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/DayCalendarSkeleton.js
generated
vendored
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className", "classes"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import Skeleton from '@mui/material/Skeleton';
|
||||
import { styled, useThemeProps } from '@mui/material/styles';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { DAY_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
|
||||
import { getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = classes => {
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
week: ['week'],
|
||||
daySkeleton: ['daySkeleton']
|
||||
};
|
||||
return composeClasses(slots, getDayCalendarSkeletonUtilityClass, classes);
|
||||
};
|
||||
const DayCalendarSkeletonRoot = styled('div', {
|
||||
name: 'MuiDayCalendarSkeleton',
|
||||
slot: 'Root'
|
||||
})({
|
||||
alignSelf: 'start'
|
||||
});
|
||||
const DayCalendarSkeletonWeek = styled('div', {
|
||||
name: 'MuiDayCalendarSkeleton',
|
||||
slot: 'Week'
|
||||
})({
|
||||
margin: `${DAY_MARGIN}px 0`,
|
||||
display: 'flex',
|
||||
justifyContent: 'center'
|
||||
});
|
||||
const DayCalendarSkeletonDay = styled(Skeleton, {
|
||||
name: 'MuiDayCalendarSkeleton',
|
||||
slot: 'DaySkeleton'
|
||||
})({
|
||||
margin: `0 ${DAY_MARGIN}px`,
|
||||
'&[data-day-in-month="0"]': {
|
||||
visibility: 'hidden'
|
||||
}
|
||||
});
|
||||
const monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0]];
|
||||
|
||||
/**
|
||||
* Demos:
|
||||
*
|
||||
* - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [CalendarPickerSkeleton API](https://mui.com/x/api/date-pickers/calendar-picker-skeleton/)
|
||||
*/
|
||||
function DayCalendarSkeleton(inProps) {
|
||||
const props = useThemeProps({
|
||||
props: inProps,
|
||||
name: 'MuiDayCalendarSkeleton'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
classes: classesProp
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const classes = useUtilityClasses(classesProp);
|
||||
return /*#__PURE__*/_jsx(DayCalendarSkeletonRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: props
|
||||
}, other, {
|
||||
children: monthMap.map((week, index) => /*#__PURE__*/_jsx(DayCalendarSkeletonWeek, {
|
||||
className: classes.week,
|
||||
children: week.map((dayInMonth, index2) => /*#__PURE__*/_jsx(DayCalendarSkeletonDay, {
|
||||
variant: "circular",
|
||||
width: DAY_SIZE,
|
||||
height: DAY_SIZE,
|
||||
className: classes.daySkeleton,
|
||||
"data-day-in-month": dayInMonth
|
||||
}, index2))
|
||||
}, index))
|
||||
}));
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? DayCalendarSkeleton.propTypes = {
|
||||
// ----------------------------- Warning --------------------------------
|
||||
// | These PropTypes are generated from the TypeScript type definitions |
|
||||
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
||||
// ----------------------------------------------------------------------
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: 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])
|
||||
} : void 0;
|
||||
export { DayCalendarSkeleton };
|
||||
11
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/dayCalendarSkeletonClasses.d.ts
generated
vendored
Normal file
11
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/dayCalendarSkeletonClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export interface DayCalendarSkeletonClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the week element. */
|
||||
week: string;
|
||||
/** Styles applied to the day element. */
|
||||
daySkeleton: string;
|
||||
}
|
||||
export type DayCalendarSkeletonClassKey = keyof DayCalendarSkeletonClasses;
|
||||
export declare const getDayCalendarSkeletonUtilityClass: (slot: string) => string;
|
||||
export declare const dayCalendarSkeletonClasses: DayCalendarSkeletonClasses;
|
||||
4
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/dayCalendarSkeletonClasses.js
generated
vendored
Normal file
4
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/dayCalendarSkeletonClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
export const getDayCalendarSkeletonUtilityClass = slot => generateUtilityClass('MuiDayCalendarSkeleton', slot);
|
||||
export const dayCalendarSkeletonClasses = generateUtilityClasses('MuiDayCalendarSkeleton', ['root', 'week', 'daySkeleton']);
|
||||
4
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { DayCalendarSkeleton } from "./DayCalendarSkeleton.js";
|
||||
export type { DayCalendarSkeletonProps } from "./DayCalendarSkeleton.js";
|
||||
export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
||||
export type { DayCalendarSkeletonClassKey, DayCalendarSkeletonClasses } from "./dayCalendarSkeletonClasses.js";
|
||||
2
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/index.js
generated
vendored
Normal file
2
node_modules/@mui/x-date-pickers/esm/DayCalendarSkeleton/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export { DayCalendarSkeleton } from "./DayCalendarSkeleton.js";
|
||||
export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
||||
Loading…
Add table
Add a link
Reference in a new issue