@docsvision/material-ui-pickers 3.2.0-beta.22 → 3.2.0-beta.24
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/.size-snapshot.json +26 -0
- package/{DatePicker → build/DatePicker}/DatePicker.d.ts +1 -1
- package/{DatePicker → build/DatePicker}/DatePicker.js +1 -1
- package/{DatePicker → build/DatePicker}/DatePickerToolbar.d.ts +0 -0
- package/{DatePicker → build/DatePicker}/DatePickerToolbar.js +0 -0
- package/{DatePicker → build/DatePicker}/index.d.ts +0 -0
- package/{DatePicker → build/DatePicker}/index.js +0 -0
- package/{DateTimePicker → build/DateTimePicker}/DateTimePicker.d.ts +0 -0
- package/{DateTimePicker → build/DateTimePicker}/DateTimePicker.js +1 -1
- package/{DateTimePicker → build/DateTimePicker}/DateTimePickerTabs.d.ts +0 -0
- package/{DateTimePicker → build/DateTimePicker}/DateTimePickerTabs.js +0 -0
- package/{DateTimePicker → build/DateTimePicker}/DateTimePickerToolbar.d.ts +0 -0
- package/{DateTimePicker → build/DateTimePicker}/DateTimePickerToolbar.js +0 -0
- package/{DateTimePicker → build/DateTimePicker}/index.d.ts +0 -0
- package/{DateTimePicker → build/DateTimePicker}/index.js +0 -0
- package/{MuiPickersUtilsProvider.d.ts → build/MuiPickersUtilsProvider.d.ts} +0 -0
- package/{MuiPickersUtilsProvider.js → build/MuiPickersUtilsProvider.js} +0 -0
- package/{Picker → build/Picker}/Picker.d.ts +0 -0
- package/{Picker → build/Picker}/Picker.js +1 -1
- package/{Picker → build/Picker}/WrappedKeyboardPicker.d.ts +0 -0
- package/{Picker → build/Picker}/WrappedKeyboardPicker.js +0 -0
- package/{Picker → build/Picker}/WrappedPurePicker.d.ts +0 -0
- package/{Picker → build/Picker}/WrappedPurePicker.js +0 -0
- package/{README.md → build/README.md} +1 -1
- package/{Rifm → build/Rifm}/Rifm.d.ts +0 -0
- package/{Rifm → build/Rifm}/Rifm.js +0 -0
- package/{TimePicker → build/TimePicker}/TimePicker.d.ts +0 -0
- package/{TimePicker → build/TimePicker}/TimePicker.js +1 -1
- package/{TimePicker → build/TimePicker}/TimePickerToolbar.d.ts +0 -0
- package/{TimePicker → build/TimePicker}/TimePickerToolbar.js +0 -0
- package/{TimePicker → build/TimePicker}/index.d.ts +0 -0
- package/{TimePicker → build/TimePicker}/index.js +0 -0
- package/{_helpers → build/_helpers}/date-utils.d.ts +0 -0
- package/{_helpers → build/_helpers}/date-utils.js +0 -0
- package/{_helpers → build/_helpers}/text-field-helper.d.ts +1 -1
- package/{_helpers → build/_helpers}/text-field-helper.js +0 -0
- package/{_helpers → build/_helpers}/time-utils.d.ts +0 -0
- package/{_helpers → build/_helpers}/time-utils.js +0 -0
- package/{_helpers → build/_helpers}/utils.d.ts +0 -0
- package/{_helpers → build/_helpers}/utils.js +0 -0
- package/{_shared → build/_shared}/KeyboardDateInput.d.ts +0 -0
- package/{_shared → build/_shared}/KeyboardDateInput.js +9 -5
- package/{_shared → build/_shared}/ModalDialog.d.ts +2 -2
- package/{_shared → build/_shared}/ModalDialog.js +0 -0
- package/{_shared → build/_shared}/PickerToolbar.d.ts +0 -0
- package/{_shared → build/_shared}/PickerToolbar.js +0 -0
- package/{_shared → build/_shared}/PureDateInput.d.ts +0 -0
- package/{_shared → build/_shared}/PureDateInput.js +1 -1
- package/{_shared → build/_shared}/ToolbarButton.d.ts +2 -2
- package/{_shared → build/_shared}/ToolbarButton.js +0 -0
- package/{_shared → build/_shared}/ToolbarText.d.ts +0 -0
- package/{_shared → build/_shared}/ToolbarText.js +0 -0
- package/{_shared → build/_shared}/WithUtils.d.ts +0 -0
- package/{_shared → build/_shared}/WithUtils.js +0 -0
- package/{_shared → build/_shared}/hooks/useIsLandscape.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useIsLandscape.js +0 -0
- package/{_shared → build/_shared}/hooks/useKeyDown.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useKeyDown.js +0 -0
- package/{_shared → build/_shared}/hooks/useKeyboardPickerState.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useKeyboardPickerState.js +2 -2
- package/{_shared → build/_shared}/hooks/useOpenState.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useOpenState.js +0 -0
- package/{_shared → build/_shared}/hooks/usePickerState.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/usePickerState.js +0 -0
- package/{_shared → build/_shared}/hooks/useUtils.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useUtils.js +0 -0
- package/{_shared → build/_shared}/hooks/useViews.d.ts +0 -0
- package/{_shared → build/_shared}/hooks/useViews.js +0 -0
- package/{_shared → build/_shared}/icons/ArrowLeftIcon.d.ts +0 -0
- package/{_shared → build/_shared}/icons/ArrowLeftIcon.js +0 -0
- package/{_shared → build/_shared}/icons/ArrowRightIcon.d.ts +0 -0
- package/{_shared → build/_shared}/icons/ArrowRightIcon.js +0 -0
- package/{_shared → build/_shared}/icons/DateRangeIcon.d.ts +0 -0
- package/{_shared → build/_shared}/icons/DateRangeIcon.js +0 -0
- package/{_shared → build/_shared}/icons/KeyboardIcon.d.ts +0 -0
- package/{_shared → build/_shared}/icons/KeyboardIcon.js +0 -0
- package/{_shared → build/_shared}/icons/TimeIcon.d.ts +0 -0
- package/{_shared → build/_shared}/icons/TimeIcon.js +0 -0
- package/{constants → build/constants}/ClockType.d.ts +0 -0
- package/{constants → build/constants}/ClockType.js +0 -0
- package/{constants → build/constants}/dimensions.d.ts +0 -0
- package/{constants → build/constants}/dimensions.js +0 -0
- package/{constants → build/constants}/prop-types.d.ts +0 -0
- package/{constants → build/constants}/prop-types.js +1 -1
- package/{dist → build/dist}/material-ui-pickers.esm.js +22 -13
- package/build/dist/material-ui-pickers.esm.js.map +1 -0
- package/{dist → build/dist}/material-ui-pickers.js +71 -62
- package/build/dist/material-ui-pickers.js.map +1 -0
- package/{dist → build/dist}/material-ui-pickers.umd.js +4531 -5801
- package/build/dist/material-ui-pickers.umd.min.js +1 -0
- package/{index.d.ts → build/index.d.ts} +0 -0
- package/{index.js → build/index.js} +0 -0
- package/build/package.json +62 -0
- package/{typings → build/typings}/BasePicker.d.ts +0 -0
- package/{typings → build/typings}/BasePicker.js +0 -0
- package/{typings → build/typings}/date.d.ts +0 -0
- package/{typings → build/typings}/date.js +0 -0
- package/{typings → build/typings}/extendMui.d.ts +0 -0
- package/{typings → build/typings}/extendMui.js +0 -0
- package/{typings → build/typings}/overrides.d.ts +0 -0
- package/{typings → build/typings}/overrides.js +0 -0
- package/{views → build/views}/Calendar/Calendar.d.ts +0 -0
- package/{views → build/views}/Calendar/Calendar.js +2 -1
- package/{views → build/views}/Calendar/CalendarHeader.d.ts +0 -0
- package/{views → build/views}/Calendar/CalendarHeader.js +0 -0
- package/{views → build/views}/Calendar/Day.d.ts +0 -0
- package/{views → build/views}/Calendar/Day.js +0 -0
- package/{views → build/views}/Calendar/DayWrapper.d.ts +0 -0
- package/{views → build/views}/Calendar/DayWrapper.js +0 -0
- package/{views → build/views}/Calendar/SlideTransition.d.ts +0 -0
- package/{views → build/views}/Calendar/SlideTransition.js +0 -0
- package/{views → build/views}/Clock/Clock.d.ts +1 -1
- package/{views → build/views}/Clock/Clock.js +0 -0
- package/{views → build/views}/Clock/ClockNumber.d.ts +0 -0
- package/{views → build/views}/Clock/ClockNumber.js +0 -0
- package/{views → build/views}/Clock/ClockNumbers.d.ts +0 -0
- package/{views → build/views}/Clock/ClockNumbers.js +0 -0
- package/{views → build/views}/Clock/ClockPointer.d.ts +1 -1
- package/{views → build/views}/Clock/ClockPointer.js +0 -0
- package/{views → build/views}/Clock/ClockView.d.ts +0 -0
- package/{views → build/views}/Clock/ClockView.js +0 -0
- package/{views → build/views}/Month/Month.d.ts +0 -0
- package/{views → build/views}/Month/Month.js +0 -0
- package/{views → build/views}/Month/MonthView.d.ts +0 -0
- package/{views → build/views}/Month/MonthView.js +0 -0
- package/{views → build/views}/Year/Year.d.ts +0 -0
- package/{views → build/views}/Year/Year.js +0 -0
- package/{views → build/views}/Year/YearView.d.ts +0 -0
- package/{views → build/views}/Year/YearView.js +0 -0
- package/{wrappers → build/wrappers}/InlineWrapper.d.ts +0 -0
- package/{wrappers → build/wrappers}/InlineWrapper.js +0 -0
- package/{wrappers → build/wrappers}/ModalWrapper.d.ts +0 -0
- package/{wrappers → build/wrappers}/ModalWrapper.js +0 -0
- package/{wrappers → build/wrappers}/StaticWrapper.d.ts +0 -0
- package/{wrappers → build/wrappers}/StaticWrapper.js +0 -0
- package/{wrappers → build/wrappers}/Wrapper.d.ts +0 -0
- package/{wrappers → build/wrappers}/Wrapper.js +0 -0
- package/copy.js +58 -0
- package/coverage/clover.xml +601 -0
- package/coverage/coverage-final.json +22 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/index.html +201 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov-report/src/MuiPickersUtilsProvider.tsx.html +186 -0
- package/coverage/lcov-report/src/_helpers/date-utils.ts.html +345 -0
- package/coverage/lcov-report/src/_helpers/index.html +123 -0
- package/coverage/lcov-report/src/_helpers/time-utils.ts.html +318 -0
- package/coverage/lcov-report/src/_helpers/utils.ts.html +93 -0
- package/coverage/lcov-report/src/_shared/ModalDialog.tsx.html +411 -0
- package/coverage/lcov-report/src/_shared/WithUtils.tsx.html +126 -0
- package/coverage/lcov-report/src/_shared/hooks/index.html +110 -0
- package/coverage/lcov-report/src/_shared/hooks/useKeyDown.ts.html +171 -0
- package/coverage/lcov-report/src/_shared/hooks/useUtils.ts.html +129 -0
- package/coverage/lcov-report/src/_shared/icons/ArrowLeftIcon.tsx.html +102 -0
- package/coverage/lcov-report/src/_shared/icons/ArrowRightIcon.tsx.html +102 -0
- package/coverage/lcov-report/src/_shared/icons/index.html +110 -0
- package/coverage/lcov-report/src/_shared/index.html +110 -0
- package/coverage/lcov-report/src/constants/ClockType.ts.html +102 -0
- package/coverage/lcov-report/src/constants/dimensions.ts.html +84 -0
- package/coverage/lcov-report/src/constants/index.html +110 -0
- package/coverage/lcov-report/src/index.html +97 -0
- package/coverage/lcov-report/src/views/Calendar/Calendar.tsx.html +1152 -0
- package/coverage/lcov-report/src/views/Calendar/CalendarHeader.tsx.html +492 -0
- package/coverage/lcov-report/src/views/Calendar/Day.tsx.html +360 -0
- package/coverage/lcov-report/src/views/Calendar/DayWrapper.tsx.html +168 -0
- package/coverage/lcov-report/src/views/Calendar/SlideTransition.tsx.html +369 -0
- package/coverage/lcov-report/src/views/Calendar/index.html +149 -0
- package/coverage/lcov-report/src/views/Clock/Clock.tsx.html +585 -0
- package/coverage/lcov-report/src/views/Clock/ClockPointer.tsx.html +381 -0
- package/coverage/lcov-report/src/views/Clock/index.html +110 -0
- package/coverage/lcov-report/src/views/Month/Month.tsx.html +297 -0
- package/coverage/lcov-report/src/views/Month/MonthView.tsx.html +351 -0
- package/coverage/lcov-report/src/views/Month/index.html +110 -0
- package/coverage/lcov.info +1094 -0
- package/package.json +135 -62
- package/remove-prop-types.js +37 -0
- package/rollup.config.js +145 -0
- package/tsconfig.json +21 -0
- package/typings.d.ts +6 -0
- package/dist/material-ui-pickers.esm.js.map +0 -1
- package/dist/material-ui-pickers.js.map +0 -1
- package/dist/material-ui-pickers.umd.min.js +0 -1
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@docsvision/material-ui-pickers",
|
|
3
|
+
"version": "3.2.0-beta.24",
|
|
4
|
+
"description": "Fork @material-ui/pickers that implements advanced features required for DocsVision WebClient. Original repository https://github.com/mui-org/material-ui-pickers",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"material-ui",
|
|
7
|
+
"pickers",
|
|
8
|
+
"@material-ui/pickers",
|
|
9
|
+
"datepicker",
|
|
10
|
+
"timepicker",
|
|
11
|
+
"date-picker",
|
|
12
|
+
"time-picker",
|
|
13
|
+
"react",
|
|
14
|
+
"react-component",
|
|
15
|
+
"material design",
|
|
16
|
+
"Docsvision",
|
|
17
|
+
"WebClient"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Docsvision"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@date-io/core": "^1.3.6",
|
|
26
|
+
"@material-ui/core": "^4.0.0",
|
|
27
|
+
"prop-types": "^15.6.0",
|
|
28
|
+
"react": "^16.8.6",
|
|
29
|
+
"react-dom": "^16.8.6"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@types/styled-jsx": "^2.2.8",
|
|
33
|
+
"clsx": "^1.0.2",
|
|
34
|
+
"react-transition-group": "^4.0.0",
|
|
35
|
+
"tslib": "^1.9.3"
|
|
36
|
+
},
|
|
37
|
+
"size-limit": [
|
|
38
|
+
{
|
|
39
|
+
"path": "build/dist/@material-ui/pickers.esm.js",
|
|
40
|
+
"limit": "30 KB"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"test:date-fns": "UTILS=date-fns npm run test",
|
|
46
|
+
"test:luxon": "UTILS=luxon npm run test",
|
|
47
|
+
"test:moment": "UTILS=moment npm run test",
|
|
48
|
+
"start": "rollup --config rollup.config.dev.js --watch & npx tsc --watch",
|
|
49
|
+
"prebuild": "rimraf build",
|
|
50
|
+
"build:copy": "node copy.js",
|
|
51
|
+
"build:bundle": "rollup --config",
|
|
52
|
+
"build:typescript": "tsc --project tsconfig.json",
|
|
53
|
+
"build": "npm run build:typescript && npm run build:bundle && npm run build:copy",
|
|
54
|
+
"build:analyze": "npm run build",
|
|
55
|
+
"release": "yarn test && yarn version && yarn build && yarn publish --non-interactive build",
|
|
56
|
+
"publish": "npm publish build"
|
|
57
|
+
},
|
|
58
|
+
"private": false,
|
|
59
|
+
"main": "./dist/material-ui-pickers.js",
|
|
60
|
+
"module": "./dist/material-ui-pickers.esm.js",
|
|
61
|
+
"typings": "./index.d.ts"
|
|
62
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -77,8 +77,9 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
77
77
|
_this.validateMinMaxDate = function (day) {
|
|
78
78
|
var _a = _this.props, minDate = _a.minDate, maxDate = _a.maxDate, utils = _a.utils, disableFuture = _a.disableFuture, disablePast = _a.disablePast;
|
|
79
79
|
var now = utils.date();
|
|
80
|
+
var moment = utils.moment;
|
|
80
81
|
return Boolean((disableFuture && utils.isAfterDay(day, now)) ||
|
|
81
|
-
(disablePast &&
|
|
82
|
+
(disablePast && moment(day).isBefore(now, "second")) ||
|
|
82
83
|
(minDate && utils.isBeforeDay(day, utils.date(minDate))) ||
|
|
83
84
|
(maxDate && utils.isAfterDay(day, utils.date(maxDate))));
|
|
84
85
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -24,6 +24,6 @@ export declare class Clock extends React.Component<ClockProps> {
|
|
|
24
24
|
hasSelected: () => boolean;
|
|
25
25
|
render(): JSX.Element;
|
|
26
26
|
}
|
|
27
|
-
export declare const styles: (theme: Theme) => Record<"container" | "clock" | "squareMask" | "pin", import("@material-ui/styles
|
|
27
|
+
export declare const styles: (theme: Theme) => Record<"container" | "clock" | "squareMask" | "pin", import("@material-ui/core/styles/withStyles").CSSProperties>;
|
|
28
28
|
declare const _default: React.ComponentType<(Pick<ClockProps, "children" | "onChange" | "type" | "value" | "ampm" | "minutesStep"> & import("@material-ui/core/styles").StyledComponentProps<"container" | "clock" | "squareMask" | "pin">) | (Pick<React.PropsWithChildren<ClockProps>, "children" | "onChange" | "type" | "value" | "ampm" | "minutesStep"> & import("@material-ui/core/styles").StyledComponentProps<"container" | "clock" | "squareMask" | "pin">)>;
|
|
29
29
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -26,6 +26,6 @@ export declare class ClockPointer extends React.Component<ClockPointerProps> {
|
|
|
26
26
|
};
|
|
27
27
|
render(): JSX.Element;
|
|
28
28
|
}
|
|
29
|
-
export declare const styles: (theme: Theme) => Record<"animateTransform" | "pointer" | "thumb" | "noPoint", import("@material-ui/styles
|
|
29
|
+
export declare const styles: (theme: Theme) => Record<"animateTransform" | "pointer" | "thumb" | "noPoint", import("@material-ui/core/styles/withStyles").CSSProperties>;
|
|
30
30
|
declare const _default: React.ComponentType<(Pick<ClockPointerProps, "type" | "value" | "hasSelected" | "isInner"> & import("@material-ui/core").StyledComponentProps<"animateTransform" | "pointer" | "thumb" | "noPoint">) | (Pick<React.PropsWithChildren<ClockPointerProps>, "children" | "type" | "value" | "hasSelected" | "isInner"> & import("@material-ui/core").StyledComponentProps<"animateTransform" | "pointer" | "thumb" | "noPoint">)>;
|
|
31
31
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/copy.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const fse = require('fs-extra');
|
|
3
|
+
|
|
4
|
+
function copyReadme() {
|
|
5
|
+
return fse
|
|
6
|
+
.copyFile(
|
|
7
|
+
path.resolve(__dirname, '..', 'README.md'),
|
|
8
|
+
path.resolve(__dirname, 'build', 'README.md')
|
|
9
|
+
)
|
|
10
|
+
.then(() => console.log('Copied README.md'));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function createPackageFile() {
|
|
14
|
+
return new Promise(resolve => {
|
|
15
|
+
fse.readFile(path.resolve(__dirname, 'package.json'), 'utf8', (err, data) => {
|
|
16
|
+
if (err) {
|
|
17
|
+
throw err;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
resolve(data);
|
|
21
|
+
});
|
|
22
|
+
})
|
|
23
|
+
.then(data => JSON.parse(data))
|
|
24
|
+
.then(packageData => {
|
|
25
|
+
// cleanup produced package
|
|
26
|
+
const {
|
|
27
|
+
devDependencies,
|
|
28
|
+
jest,
|
|
29
|
+
husky,
|
|
30
|
+
main,
|
|
31
|
+
module,
|
|
32
|
+
'lint-staged': ls,
|
|
33
|
+
...other
|
|
34
|
+
} = packageData;
|
|
35
|
+
|
|
36
|
+
const newPackage = {
|
|
37
|
+
...other,
|
|
38
|
+
private: false,
|
|
39
|
+
main: './dist/material-ui-pickers.js',
|
|
40
|
+
module: './dist/material-ui-pickers.esm.js',
|
|
41
|
+
typings: './index.d.ts',
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return new Promise(resolve => {
|
|
45
|
+
const buildPath = path.resolve(__dirname, 'build', 'package.json');
|
|
46
|
+
const data = JSON.stringify(newPackage, null, 2);
|
|
47
|
+
fse.writeFile(buildPath, data, err => {
|
|
48
|
+
if (err) throw err;
|
|
49
|
+
console.log(`Created package.json in ${buildPath}`);
|
|
50
|
+
resolve();
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
createPackageFile()
|
|
57
|
+
.then(() => copyReadme())
|
|
58
|
+
.then(console.error);
|