react-picky-date-time 1.7.0 → 1.7.4

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/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # react-picky-date-time
2
- [![npm version](https://badge.fury.io/js/react-picky-date-time.svg)](https://badge.fury.io/js/react-picky-date-time) ![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/react-picky-date-time.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/edwardfhsiao/react-picky-date-time/master/LICENSE)[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
2
+ [![npm version](https://badge.fury.io/js/react-picky-date-time.svg)](https://badge.fury.io/js/react-picky-date-time) ![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/react-picky-date-time.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/edwardfxiao/react-picky-date-time/master/LICENSE)[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
3
3
 
4
4
  A react component for date time picker.
5
5
 
6
- <img src="https://raw.githubusercontent.com/edwardfhsiao/react-picky-date-time/master/react-picky-date-time.gif" />
6
+ <img src="https://raw.githubusercontent.com/edwardfxiao/react-picky-date-time/master/react-picky-date-time.gif" />
7
7
 
8
8
  NO Jquery, NO Moment.js
9
9
 
10
- ### :tada: For range surpport, please take a look at <a href="https://github.com/edwardfhsiao/react-minimal-datetime-range">react-minimal-datetime-range</a>
10
+ ### :tada: For range surpport, please take a look at <a href="https://github.com/edwardfxiao/react-minimal-datetime-range">react-minimal-datetime-range</a>
11
11
 
12
12
  # Demo & Examples
13
- Please check the <a href="https://edwardfhsiao.github.io/react-picky-date-time/">online demo example</a>
13
+ Please check the <a href="https://edwardfxiao.github.io/react-picky-date-time/">online demo example</a>
14
14
 
15
- Attention: <a href="https://github.com/edwardfhsiao/react-picky-date-time/blob/gh-pages/example/index.js">you can find demo source here :)</a>
15
+ Attention: <a href="https://github.com/edwardfxiao/react-picky-date-time/blob/gh-pages/example/index.js">you can find demo source here :)</a>
16
16
 
17
17
  # Codesandbox Examples
18
18
  * <a href="https://codesandbox.io/s/y29w6p6krj">Online demo example playground</a>
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -17,15 +19,13 @@ var _locale = require("../locale.js");
17
19
 
18
20
  var _constValue = require("../constValue");
19
21
 
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
23
 
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
27
 
26
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
27
-
28
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
29
29
 
30
30
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31
31
 
@@ -41,13 +41,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
44
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
44
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
45
45
 
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
46
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
47
47
 
48
48
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
49
49
 
50
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
50
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
51
 
52
52
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
53
 
@@ -206,7 +206,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
206
206
  var pickedYearMonth = this.state.pickedYearMonth;
207
207
  var _pickedYearMonth = pickedYearMonth,
208
208
  month = _pickedYearMonth.month;
209
- pickedYearMonth = _objectSpread({}, pickedYearMonth, {
209
+ pickedYearMonth = _objectSpread(_objectSpread({}, pickedYearMonth), {}, {
210
210
  year: year,
211
211
  string: "".concat(year, "-").concat(month)
212
212
  });
@@ -244,7 +244,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
244
244
 
245
245
  month = (0, _constValue.formatDateString)(month);
246
246
  year = String(year);
247
- pickedYearMonth = _objectSpread({}, pickedYearMonth, {
247
+ pickedYearMonth = _objectSpread(_objectSpread({}, pickedYearMonth), {}, {
248
248
  year: year,
249
249
  month: month,
250
250
  string: "".concat(year, "-").concat(month)
@@ -264,7 +264,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
264
264
  var _this$state = this.state,
265
265
  pickedDateInfo = _this$state.pickedDateInfo,
266
266
  pickedYearMonth = _this$state.pickedYearMonth;
267
- pickedDateInfo = _objectSpread({}, pickedDateInfo, {
267
+ pickedDateInfo = _objectSpread(_objectSpread({}, pickedDateInfo), {}, {
268
268
  year: pickedYearMonth.year,
269
269
  month: (0, _constValue.formatDateString)(pickedYearMonth.month),
270
270
  date: (0, _constValue.formatDateString)(pickedDate)
@@ -338,12 +338,12 @@ var Calendar = /*#__PURE__*/function (_Component) {
338
338
 
339
339
  month = (0, _constValue.formatDateString)(month);
340
340
  date = (0, _constValue.formatDateString)(date);
341
- pickedDateInfo = _objectSpread({}, pickedDateInfo, {
341
+ pickedDateInfo = _objectSpread(_objectSpread({}, pickedDateInfo), {}, {
342
342
  year: year,
343
343
  month: month,
344
344
  date: date
345
345
  });
346
- pickedYearMonth = _objectSpread({}, pickedYearMonth, {
346
+ pickedYearMonth = _objectSpread(_objectSpread({}, pickedYearMonth), {}, {
347
347
  year: year,
348
348
  month: month,
349
349
  string: "".concat(year, "-").concat(month)
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -21,9 +23,7 @@ var _constValue = require("../constValue");
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
27
27
 
28
28
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
29
29
 
@@ -39,13 +39,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
39
39
 
40
40
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
41
 
42
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
42
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
43
 
44
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
44
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
45
45
 
46
46
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
47
47
 
48
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
48
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
49
 
50
50
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
51
 
@@ -365,7 +365,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
365
365
  value: function updateClockHandObj(o, value, degree, startAngle, angle) {
366
366
  var isMouseOver = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
367
367
  var isDragging = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
368
- o = _objectSpread({}, o, {
368
+ o = _objectSpread(_objectSpread({}, o), {}, {
369
369
  value: value,
370
370
  degree: degree,
371
371
  startAngle: startAngle,
@@ -650,7 +650,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
650
650
  newDegree = Number(newValue) * _constValue.HOUR_DEGREE_NUMBER;
651
651
  }
652
652
 
653
- elObj = _objectSpread({}, elObj, {
653
+ elObj = _objectSpread(_objectSpread({}, elObj), {}, {
654
654
  value: newValue,
655
655
  degree: newDegree,
656
656
  startAngle: newDegree,
@@ -682,7 +682,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
682
682
  key: "onMouseOver",
683
683
  value: function onMouseOver(refName) {
684
684
  var elObj = this.state[refName];
685
- elObj = _objectSpread({}, elObj, {
685
+ elObj = _objectSpread(_objectSpread({}, elObj), {}, {
686
686
  isMouseOver: true
687
687
  });
688
688
  this.setState(_defineProperty({}, refName, elObj));
@@ -691,7 +691,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
691
691
  key: "onMouseOut",
692
692
  value: function onMouseOut(refName) {
693
693
  var elObj = this.state[refName];
694
- elObj = _objectSpread({}, elObj, {
694
+ elObj = _objectSpread(_objectSpread({}, elObj), {}, {
695
695
  isMouseOver: false
696
696
  });
697
697
  this.setState(_defineProperty({}, refName, elObj));
@@ -703,7 +703,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
703
703
  var x = e.clientX - this.originX;
704
704
  var y = e.clientY - this.originY;
705
705
  var startAngle = _constValue.R2D * Math.atan2(y, x);
706
- elObj = _objectSpread({}, elObj, {
706
+ elObj = _objectSpread(_objectSpread({}, elObj), {}, {
707
707
  isDragging: true,
708
708
  startAngle: startAngle
709
709
  });
@@ -765,7 +765,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
765
765
  // });
766
766
 
767
767
 
768
- elObj = _objectSpread({}, elObj, {
768
+ elObj = _objectSpread(_objectSpread({}, elObj), {}, {
769
769
  value: value,
770
770
  degree: degree
771
771
  });
@@ -788,7 +788,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
788
788
  // angle: { $set: clockHandSecondDegree },
789
789
  // });
790
790
 
791
- clockHandSecond = _objectSpread({}, clockHandSecond, {
791
+ clockHandSecond = _objectSpread(_objectSpread({}, clockHandSecond), {}, {
792
792
  isDragging: false,
793
793
  angle: clockHandSecondDegree
794
794
  }); // clockHandMinute = update(clockHandMinute, {
@@ -796,7 +796,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
796
796
  // angle: { $set: clockHandMinuteDegree },
797
797
  // });
798
798
 
799
- clockHandMinute = _objectSpread({}, clockHandMinute, {
799
+ clockHandMinute = _objectSpread(_objectSpread({}, clockHandMinute), {}, {
800
800
  isDragging: false,
801
801
  angle: clockHandMinuteDegree
802
802
  }); // clockHandHour = update(clockHandHour, {
@@ -804,7 +804,7 @@ var Clock = /*#__PURE__*/function (_React$Component) {
804
804
  // angle: { $set: clockHandHourDegree },
805
805
  // });
806
806
 
807
- clockHandHour = _objectSpread({}, clockHandHour, {
807
+ clockHandHour = _objectSpread(_objectSpread({}, clockHandHour), {}, {
808
808
  isDragging: false,
809
809
  angle: clockHandHourDegree
810
810
  });
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.KEY_CODE = exports.TIME_TYPE = exports.TIME_CURSOR_POSITION_OBJECT = exports.TIME_JUMP_CHAR_POS_LIST = exports.TIME_SELECTION_SECOND_CHAR_POS_BACKSPACE_LIST = exports.TIME_SELECTION_SECOND_CHAR_POS_LIST = exports.TIME_SELECTION_FIRST_CHAR_POS_BACKSPACE_LIST = exports.TIME_SELECTION_FIRST_CHAR_POS_LIST = exports.QUARTER = exports.HOUR_DEGREE_NUMBER = exports.MINUTE_DEGREE_NUMBER = exports.SECOND_DEGREE_NUMBER = exports.R2D = exports.formatDateString = exports.getYearSet = exports.getDaysListByMonth = exports.getDaysArray = exports.POINTER_ROTATE = exports.WEEK_NUMBER = exports.SELECTOR_YEAR_SET_NUMBER = exports.NEXT_TRANSITION = exports.PREV_TRANSITION = exports.DEFAULT_SIZE = exports.SIZE_RANGE = void 0;
6
+ exports.getYearSet = exports.getDaysListByMonth = exports.getDaysArray = exports.formatDateString = exports.WEEK_NUMBER = exports.TIME_TYPE = exports.TIME_SELECTION_SECOND_CHAR_POS_LIST = exports.TIME_SELECTION_SECOND_CHAR_POS_BACKSPACE_LIST = exports.TIME_SELECTION_FIRST_CHAR_POS_LIST = exports.TIME_SELECTION_FIRST_CHAR_POS_BACKSPACE_LIST = exports.TIME_JUMP_CHAR_POS_LIST = exports.TIME_CURSOR_POSITION_OBJECT = exports.SIZE_RANGE = exports.SELECTOR_YEAR_SET_NUMBER = exports.SECOND_DEGREE_NUMBER = exports.R2D = exports.QUARTER = exports.PREV_TRANSITION = exports.POINTER_ROTATE = exports.NEXT_TRANSITION = exports.MINUTE_DEGREE_NUMBER = exports.KEY_CODE = exports.HOUR_DEGREE_NUMBER = exports.DEFAULT_SIZE = void 0;
7
7
 
8
8
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
9
 
10
10
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
11
 
12
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
13
 
14
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
14
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
15
15
 
16
16
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
17
 
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -21,8 +23,6 @@ var _locale = require("./locale.js");
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
25
-
26
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
27
 
28
28
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -33,13 +33,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
33
33
 
34
34
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
35
 
36
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
36
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
37
 
38
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
38
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
39
39
 
40
40
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
41
 
42
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
42
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
43
43
 
44
44
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
45
 
@@ -192,6 +192,7 @@ var Index = /*#__PURE__*/function (_React$Component) {
192
192
  }, /*#__PURE__*/_react["default"].createElement(_index["default"], {
193
193
  size: size,
194
194
  defaultDate: defaultDate,
195
+ markedDates: markedDates,
195
196
  locale: locale,
196
197
  onYearPicked: this.onYearPicked,
197
198
  onMonthPicked: this.onMonthPicked,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DEFAULT_LACALE = exports.LOCALE = void 0;
6
+ exports.LOCALE = exports.DEFAULT_LACALE = void 0;
7
7
 
8
8
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
9
9
 
@@ -57,7 +57,7 @@ exports.isValidDate = isValidDate;
57
57
  var isValidDates = function isValidDates(arr) {
58
58
  var isValid = false;
59
59
 
60
- if (arr.length > 1) {
60
+ if (arr.length) {
61
61
  isValid = true;
62
62
  arr.forEach(function (v) {
63
63
  if (!isValidDate(v)) {