cy-element-ui 1.0.8 → 1.0.10

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.
Files changed (107) hide show
  1. package/lib/alert.js +2 -2
  2. package/lib/aside.js +76 -76
  3. package/lib/autocomplete.js +61 -75
  4. package/lib/avatar.js +2 -2
  5. package/lib/backtop.js +109 -109
  6. package/lib/badge.js +2 -2
  7. package/lib/breadcrumb-item.js +4 -4
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/button-group.js +2 -2
  10. package/lib/calendar.js +391 -452
  11. package/lib/card.js +2 -2
  12. package/lib/carousel-item.js +9 -9
  13. package/lib/carousel.js +25 -25
  14. package/lib/cascader-panel.js +30 -34
  15. package/lib/cascader.js +101 -116
  16. package/lib/checkbox-button.js +4 -4
  17. package/lib/checkbox-group.js +2 -2
  18. package/lib/col.js +2 -2
  19. package/lib/collapse-item.js +936 -851
  20. package/lib/collapse.js +2 -2
  21. package/lib/color-picker.js +62 -76
  22. package/lib/container.js +2 -2
  23. package/lib/date-picker.js +450 -474
  24. package/lib/descriptions-item.js +2 -2
  25. package/lib/descriptions.js +4 -4
  26. package/lib/dialog.js +5 -9
  27. package/lib/divider.js +105 -105
  28. package/lib/drawer.js +109 -109
  29. package/lib/dropdown-item.js +2 -2
  30. package/lib/dropdown-menu.js +65 -65
  31. package/lib/dropdown.js +1206 -1112
  32. package/lib/element-ui.common.js +43826 -48176
  33. package/lib/empty.js +6 -20
  34. package/lib/fileUpload.js +62 -77
  35. package/lib/footer.js +76 -76
  36. package/lib/form-item.js +7 -21
  37. package/lib/form.js +11 -11
  38. package/lib/header.js +2 -2
  39. package/lib/icon.js +2 -2
  40. package/lib/image.js +22 -36
  41. package/lib/index.js +1 -1
  42. package/lib/infinite-scroll.js +8 -8
  43. package/lib/input-number.js +5 -9
  44. package/lib/link.js +2 -2
  45. package/lib/loading.js +33 -33
  46. package/lib/main.js +65 -65
  47. package/lib/menu-item-group.js +2 -2
  48. package/lib/menu-item.js +63 -78
  49. package/lib/menu.js +2 -16
  50. package/lib/message-box.js +22 -36
  51. package/lib/message.js +8 -22
  52. package/lib/notification.js +8 -22
  53. package/lib/option-group.js +2 -2
  54. package/lib/option.js +14 -18
  55. package/lib/page-header.js +109 -109
  56. package/lib/pagination.js +100 -114
  57. package/lib/popconfirm.js +59 -74
  58. package/lib/popover.js +52 -56
  59. package/lib/progress.js +4 -4
  60. package/lib/radio-button.js +4 -4
  61. package/lib/radio-group.js +4 -4
  62. package/lib/radio.js +2 -2
  63. package/lib/rate.js +18 -18
  64. package/lib/result.js +2 -2
  65. package/lib/row.js +2 -2
  66. package/lib/scrollbar.js +6 -6
  67. package/lib/select.js +82 -86
  68. package/lib/skeleton-item.js +2 -2
  69. package/lib/skeleton.js +107 -107
  70. package/lib/slider.js +72 -86
  71. package/lib/spinner.js +2 -2
  72. package/lib/step.js +2 -2
  73. package/lib/steps.js +9 -9
  74. package/lib/subTitle.js +91 -91
  75. package/lib/submenu.js +250 -250
  76. package/lib/switch.js +883 -811
  77. package/lib/tab-pane.js +2 -2
  78. package/lib/tabDialog.js +19 -33
  79. package/lib/table-column.js +13 -13
  80. package/lib/table.js +96 -110
  81. package/lib/tabs.js +8 -22
  82. package/lib/tag.js +2 -2
  83. package/lib/theme-chalk/src/index.scss +0 -1
  84. package/lib/time-picker.js +450 -474
  85. package/lib/time-select.js +437 -461
  86. package/lib/timeline-item.js +107 -107
  87. package/lib/timeline.js +2 -2
  88. package/lib/tooltip.js +54 -55
  89. package/lib/transfer.js +15 -29
  90. package/lib/tree.js +22 -36
  91. package/lib/treeSelect.js +58 -73
  92. package/lib/upload.js +28 -32
  93. package/lib/utils/date.js +10 -3
  94. package/lib/utils/date_source.js +290 -304
  95. package/lib/utils/lodash_source.js +9290 -9290
  96. package/package.json +1 -1
  97. package/packages/theme-chalk/src/index.scss +0 -1
  98. package/src/index.js +1 -4
  99. package/src/utils/date.js +2 -2
  100. package/src/utils/date_source.js +305 -321
  101. package/src/utils/lodash_source.js +18079 -18064
  102. package/lib/statistic.js +0 -10484
  103. package/lib/theme-chalk/src/statistic.scss +0 -38
  104. package/packages/statistic/index.js +0 -8
  105. package/packages/statistic/src/main.vue +0 -203
  106. package/packages/theme-chalk/src/statistic.scss +0 -38
  107. package/types/statistic.d.ts +0 -37
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 167);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 153);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -928,7 +928,7 @@ var isDefined = function isDefined(val) {
928
928
  /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
929
929
  /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
930
930
  /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
931
- /* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55);
931
+ /* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(56);
932
932
  /* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_5__);
933
933
  /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(10);
934
934
  /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
@@ -1399,7 +1399,7 @@ var es_regexp_exec_js_ = __webpack_require__(7);
1399
1399
  var es_string_split_js_ = __webpack_require__(59);
1400
1400
 
1401
1401
  // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
1402
- var es_string_trim_js_ = __webpack_require__(55);
1402
+ var es_string_trim_js_ = __webpack_require__(56);
1403
1403
 
1404
1404
  // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1405
1405
  var web_dom_collections_for_each_js_ = __webpack_require__(10);
@@ -1947,7 +1947,7 @@ module.exports = require("core-js/modules/es.typed-array.to-string.js");
1947
1947
 
1948
1948
 
1949
1949
 
1950
- var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(73);
1950
+ var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(71);
1951
1951
  var stop = function stop(e) {
1952
1952
  return e.stopPropagation();
1953
1953
  };
@@ -2133,7 +2133,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding *
2133
2133
  // UNUSED EXPORTS: use, i18n
2134
2134
 
2135
2135
  // EXTERNAL MODULE: external "core-js/modules/es.object.get-prototype-of.js"
2136
- var es_object_get_prototype_of_js_ = __webpack_require__(68);
2136
+ var es_object_get_prototype_of_js_ = __webpack_require__(66);
2137
2137
 
2138
2138
  // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
2139
2139
  /* harmony default export */ var zh_CN = ({
@@ -2442,13 +2442,13 @@ module.exports = require("core-js/modules/es.array.includes.js");
2442
2442
  });
2443
2443
 
2444
2444
  /***/ }),
2445
- /* 55 */
2445
+ /* 55 */,
2446
+ /* 56 */
2446
2447
  /***/ (function(module, exports) {
2447
2448
 
2448
2449
  module.exports = require("core-js/modules/es.string.trim.js");
2449
2450
 
2450
2451
  /***/ }),
2451
- /* 56 */,
2452
2452
  /* 57 */
2453
2453
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2454
2454
 
@@ -2483,9 +2483,9 @@ module.exports = require("core-js/modules/es.string.trim.js");
2483
2483
  /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
2484
2484
  /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(65);
2485
2485
  /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
2486
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70);
2486
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(68);
2487
2487
  /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__);
2488
- /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(69);
2488
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(67);
2489
2489
  /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_15__);
2490
2490
 
2491
2491
 
@@ -3252,61 +3252,22 @@ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
3252
3252
  /* 66 */
3253
3253
  /***/ (function(module, exports) {
3254
3254
 
3255
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
3256
- module.exports = __webpack_amd_options__;
3257
-
3258
- /* WEBPACK VAR INJECTION */}.call(this, {}))
3259
-
3260
- /***/ }),
3261
- /* 67 */
3262
- /***/ (function(module, exports) {
3263
-
3264
- module.exports = function(originalModule) {
3265
- if (!originalModule.webpackPolyfill) {
3266
- var module = Object.create(originalModule);
3267
- // module.parent = undefined by default
3268
- if (!module.children) module.children = [];
3269
- Object.defineProperty(module, "loaded", {
3270
- enumerable: true,
3271
- get: function() {
3272
- return module.l;
3273
- }
3274
- });
3275
- Object.defineProperty(module, "id", {
3276
- enumerable: true,
3277
- get: function() {
3278
- return module.i;
3279
- }
3280
- });
3281
- Object.defineProperty(module, "exports", {
3282
- enumerable: true
3283
- });
3284
- module.webpackPolyfill = 1;
3285
- }
3286
- return module;
3287
- };
3288
-
3289
-
3290
- /***/ }),
3291
- /* 68 */
3292
- /***/ (function(module, exports) {
3293
-
3294
3255
  module.exports = require("core-js/modules/es.object.get-prototype-of.js");
3295
3256
 
3296
3257
  /***/ }),
3297
- /* 69 */
3258
+ /* 67 */
3298
3259
  /***/ (function(module, exports) {
3299
3260
 
3300
3261
  module.exports = require("throttle-debounce");
3301
3262
 
3302
3263
  /***/ }),
3303
- /* 70 */
3264
+ /* 68 */
3304
3265
  /***/ (function(module, exports) {
3305
3266
 
3306
3267
  module.exports = require("resize-observer-polyfill");
3307
3268
 
3308
3269
  /***/ }),
3309
- /* 71 */
3270
+ /* 69 */
3310
3271
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3311
3272
 
3312
3273
  "use strict";
@@ -3387,8 +3348,8 @@ function createDocumentHandler(el, binding, vnode) {
3387
3348
  });
3388
3349
 
3389
3350
  /***/ }),
3390
- /* 72 */,
3391
- /* 73 */
3351
+ /* 70 */,
3352
+ /* 71 */
3392
3353
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3393
3354
 
3394
3355
  "use strict";
@@ -3401,7 +3362,7 @@ __webpack_require__.r(__webpack_exports__);
3401
3362
  /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__);
3402
3363
  /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
3403
3364
  /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__);
3404
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74);
3365
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
3405
3366
  /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
3406
3367
  /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
3407
3368
  /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__);
@@ -3457,7 +3418,7 @@ __webpack_require__.r(__webpack_exports__);
3457
3418
  //
3458
3419
  ;
3459
3420
  (function (root, factory) {
3460
- if (typeof define === 'function' && __webpack_require__(66)) {
3421
+ if (typeof define === 'function' && __webpack_require__(74)) {
3461
3422
  // AMD. Register as an anonymous module.
3462
3423
  define(factory);
3463
3424
  } else if ( true && module.exports) {
@@ -4656,22 +4617,425 @@ __webpack_require__.r(__webpack_exports__);
4656
4617
  }
4657
4618
  return Popper;
4658
4619
  });
4659
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
4620
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(72)(module)))
4660
4621
 
4661
4622
  /***/ }),
4662
- /* 74 */
4623
+ /* 72 */
4624
+ /***/ (function(module, exports) {
4625
+
4626
+ module.exports = function(originalModule) {
4627
+ if (!originalModule.webpackPolyfill) {
4628
+ var module = Object.create(originalModule);
4629
+ // module.parent = undefined by default
4630
+ if (!module.children) module.children = [];
4631
+ Object.defineProperty(module, "loaded", {
4632
+ enumerable: true,
4633
+ get: function() {
4634
+ return module.l;
4635
+ }
4636
+ });
4637
+ Object.defineProperty(module, "id", {
4638
+ enumerable: true,
4639
+ get: function() {
4640
+ return module.i;
4641
+ }
4642
+ });
4643
+ Object.defineProperty(module, "exports", {
4644
+ enumerable: true
4645
+ });
4646
+ module.webpackPolyfill = 1;
4647
+ }
4648
+ return module;
4649
+ };
4650
+
4651
+
4652
+ /***/ }),
4653
+ /* 73 */
4663
4654
  /***/ (function(module, exports) {
4664
4655
 
4665
4656
  module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
4666
4657
 
4658
+ /***/ }),
4659
+ /* 74 */
4660
+ /***/ (function(module, exports) {
4661
+
4662
+ /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
4663
+ module.exports = __webpack_amd_options__;
4664
+
4665
+ /* WEBPACK VAR INJECTION */}.call(this, {}))
4666
+
4667
4667
  /***/ }),
4668
4668
  /* 75 */
4669
4669
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4670
4670
 
4671
4671
  "use strict";
4672
- /* harmony import */ var _date_source__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93);
4673
4672
 
4674
- /* harmony default export */ __webpack_exports__["a"] = (_date_source__WEBPACK_IMPORTED_MODULE_0__["default"]);
4673
+ // EXPORTS
4674
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ date_source; });
4675
+
4676
+ // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
4677
+ var es_array_slice_js_ = __webpack_require__(13);
4678
+
4679
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
4680
+ var es_object_to_string_js_ = __webpack_require__(3);
4681
+
4682
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.constructor.js"
4683
+ var es_regexp_constructor_js_ = __webpack_require__(91);
4684
+
4685
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
4686
+ var es_regexp_exec_js_ = __webpack_require__(7);
4687
+
4688
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
4689
+ var es_regexp_to_string_js_ = __webpack_require__(11);
4690
+
4691
+ // EXTERNAL MODULE: external "core-js/modules/es.string.match.js"
4692
+ var es_string_match_js_ = __webpack_require__(16);
4693
+
4694
+ // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
4695
+ var es_string_replace_js_ = __webpack_require__(12);
4696
+
4697
+ // CONCATENATED MODULE: ./src/utils/date_source.js
4698
+
4699
+
4700
+
4701
+
4702
+
4703
+
4704
+
4705
+ /* Modified from https://github.com/taylorhakes/fecha
4706
+ *
4707
+ * The MIT License (MIT)
4708
+ *
4709
+ * Copyright (c) 2015 Taylor Hakes
4710
+ *
4711
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
4712
+ * of this software and associated documentation files (the "Software"), to deal
4713
+ * in the Software without restriction, including without limitation the rights
4714
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4715
+ * copies of the Software, and to permit persons to whom the Software is
4716
+ * furnished to do so, subject to the following conditions:
4717
+ *
4718
+ * The above copyright notice and this permission notice shall be included in all
4719
+ * copies or substantial portions of the Software.
4720
+ *
4721
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4722
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4723
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4724
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4725
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4726
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4727
+ * SOFTWARE.
4728
+ */
4729
+
4730
+ /*eslint-disable*/
4731
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
4732
+
4733
+ /**
4734
+ * Parse or format dates
4735
+ * @class fecha
4736
+ */
4737
+ var fecha = {};
4738
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
4739
+ var twoDigits = '\\d\\d?';
4740
+ var threeDigits = '\\d{3}';
4741
+ var fourDigits = '\\d{4}';
4742
+ var word = '[^\\s]+';
4743
+ var literal = /\[([^]*?)\]/gm;
4744
+ var noop = function noop() {};
4745
+ function regexEscape(str) {
4746
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
4747
+ }
4748
+ function shorten(arr, sLen) {
4749
+ var newArr = [];
4750
+ for (var i = 0, len = arr.length; i < len; i++) {
4751
+ newArr.push(arr[i].substr(0, sLen));
4752
+ }
4753
+ return newArr;
4754
+ }
4755
+ function monthUpdate(arrName) {
4756
+ return function (d, v, i18n) {
4757
+ var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
4758
+ if (~index) {
4759
+ d.month = index;
4760
+ }
4761
+ };
4762
+ }
4763
+ function pad(val, len) {
4764
+ val = String(val);
4765
+ len = len || 2;
4766
+ while (val.length < len) {
4767
+ val = '0' + val;
4768
+ }
4769
+ return val;
4770
+ }
4771
+ var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
4772
+ var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
4773
+ var monthNamesShort = shorten(monthNames, 3);
4774
+ var dayNamesShort = shorten(dayNames, 3);
4775
+ fecha.i18n = {
4776
+ dayNamesShort: dayNamesShort,
4777
+ dayNames: dayNames,
4778
+ monthNamesShort: monthNamesShort,
4779
+ monthNames: monthNames,
4780
+ amPm: ['am', 'pm'],
4781
+ DoFn: function DoFn(D) {
4782
+ return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
4783
+ }
4784
+ };
4785
+ var formatFlags = {
4786
+ D: function D(dateObj) {
4787
+ return dateObj.getDay();
4788
+ },
4789
+ DD: function DD(dateObj) {
4790
+ return pad(dateObj.getDay());
4791
+ },
4792
+ Do: function Do(dateObj, i18n) {
4793
+ return i18n.DoFn(dateObj.getDate());
4794
+ },
4795
+ d: function d(dateObj) {
4796
+ return dateObj.getDate();
4797
+ },
4798
+ dd: function dd(dateObj) {
4799
+ return pad(dateObj.getDate());
4800
+ },
4801
+ ddd: function ddd(dateObj, i18n) {
4802
+ return i18n.dayNamesShort[dateObj.getDay()];
4803
+ },
4804
+ dddd: function dddd(dateObj, i18n) {
4805
+ return i18n.dayNames[dateObj.getDay()];
4806
+ },
4807
+ M: function M(dateObj) {
4808
+ return dateObj.getMonth() + 1;
4809
+ },
4810
+ MM: function MM(dateObj) {
4811
+ return pad(dateObj.getMonth() + 1);
4812
+ },
4813
+ MMM: function MMM(dateObj, i18n) {
4814
+ return i18n.monthNamesShort[dateObj.getMonth()];
4815
+ },
4816
+ MMMM: function MMMM(dateObj, i18n) {
4817
+ return i18n.monthNames[dateObj.getMonth()];
4818
+ },
4819
+ yy: function yy(dateObj) {
4820
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
4821
+ },
4822
+ yyyy: function yyyy(dateObj) {
4823
+ return pad(dateObj.getFullYear(), 4);
4824
+ },
4825
+ h: function h(dateObj) {
4826
+ return dateObj.getHours() % 12 || 12;
4827
+ },
4828
+ hh: function hh(dateObj) {
4829
+ return pad(dateObj.getHours() % 12 || 12);
4830
+ },
4831
+ H: function H(dateObj) {
4832
+ return dateObj.getHours();
4833
+ },
4834
+ HH: function HH(dateObj) {
4835
+ return pad(dateObj.getHours());
4836
+ },
4837
+ m: function m(dateObj) {
4838
+ return dateObj.getMinutes();
4839
+ },
4840
+ mm: function mm(dateObj) {
4841
+ return pad(dateObj.getMinutes());
4842
+ },
4843
+ s: function s(dateObj) {
4844
+ return dateObj.getSeconds();
4845
+ },
4846
+ ss: function ss(dateObj) {
4847
+ return pad(dateObj.getSeconds());
4848
+ },
4849
+ S: function S(dateObj) {
4850
+ return Math.round(dateObj.getMilliseconds() / 100);
4851
+ },
4852
+ SS: function SS(dateObj) {
4853
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
4854
+ },
4855
+ SSS: function SSS(dateObj) {
4856
+ return pad(dateObj.getMilliseconds(), 3);
4857
+ },
4858
+ a: function a(dateObj, i18n) {
4859
+ return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
4860
+ },
4861
+ A: function A(dateObj, i18n) {
4862
+ return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
4863
+ },
4864
+ ZZ: function ZZ(dateObj) {
4865
+ var o = dateObj.getTimezoneOffset();
4866
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
4867
+ }
4868
+ };
4869
+ var parseFlags = {
4870
+ d: [twoDigits, function (d, v) {
4871
+ d.day = v;
4872
+ }],
4873
+ Do: [twoDigits + word, function (d, v) {
4874
+ d.day = parseInt(v, 10);
4875
+ }],
4876
+ M: [twoDigits, function (d, v) {
4877
+ d.month = v - 1;
4878
+ }],
4879
+ yy: [twoDigits, function (d, v) {
4880
+ var da = new Date(),
4881
+ cent = +('' + da.getFullYear()).substr(0, 2);
4882
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
4883
+ }],
4884
+ h: [twoDigits, function (d, v) {
4885
+ d.hour = v;
4886
+ }],
4887
+ m: [twoDigits, function (d, v) {
4888
+ d.minute = v;
4889
+ }],
4890
+ s: [twoDigits, function (d, v) {
4891
+ d.second = v;
4892
+ }],
4893
+ yyyy: [fourDigits, function (d, v) {
4894
+ d.year = v;
4895
+ }],
4896
+ S: ['\\d', function (d, v) {
4897
+ d.millisecond = v * 100;
4898
+ }],
4899
+ SS: ['\\d{2}', function (d, v) {
4900
+ d.millisecond = v * 10;
4901
+ }],
4902
+ SSS: [threeDigits, function (d, v) {
4903
+ d.millisecond = v;
4904
+ }],
4905
+ D: [twoDigits, noop],
4906
+ ddd: [word, noop],
4907
+ MMM: [word, monthUpdate('monthNamesShort')],
4908
+ MMMM: [word, monthUpdate('monthNames')],
4909
+ a: [word, function (d, v, i18n) {
4910
+ var val = v.toLowerCase();
4911
+ if (val === i18n.amPm[0]) {
4912
+ d.isPm = false;
4913
+ } else if (val === i18n.amPm[1]) {
4914
+ d.isPm = true;
4915
+ }
4916
+ }],
4917
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
4918
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
4919
+ minutes;
4920
+ if (parts) {
4921
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
4922
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
4923
+ }
4924
+ }]
4925
+ };
4926
+ parseFlags.dd = parseFlags.d;
4927
+ parseFlags.dddd = parseFlags.ddd;
4928
+ parseFlags.DD = parseFlags.D;
4929
+ parseFlags.mm = parseFlags.m;
4930
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
4931
+ parseFlags.MM = parseFlags.M;
4932
+ parseFlags.ss = parseFlags.s;
4933
+ parseFlags.A = parseFlags.a;
4934
+
4935
+ // Some common format strings
4936
+ fecha.masks = {
4937
+ default: 'ddd MMM dd yyyy HH:mm:ss',
4938
+ shortDate: 'M/D/yy',
4939
+ mediumDate: 'MMM d, yyyy',
4940
+ longDate: 'MMMM d, yyyy',
4941
+ fullDate: 'dddd, MMMM d, yyyy',
4942
+ shortTime: 'HH:mm',
4943
+ mediumTime: 'HH:mm:ss',
4944
+ longTime: 'HH:mm:ss.SSS'
4945
+ };
4946
+
4947
+ /***
4948
+ * Format a date
4949
+ * @method format
4950
+ * @param {Date|number} dateObj
4951
+ * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
4952
+ */
4953
+ fecha.format = function (dateObj, mask, i18nSettings) {
4954
+ var i18n = i18nSettings || fecha.i18n;
4955
+ if (typeof dateObj === 'number') {
4956
+ dateObj = new Date(dateObj);
4957
+ }
4958
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
4959
+ throw new Error('Invalid Date in fecha.format');
4960
+ }
4961
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
4962
+ var literals = [];
4963
+
4964
+ // Make literals inactive by replacing them with ??
4965
+ mask = mask.replace(literal, function ($0, $1) {
4966
+ literals.push($1);
4967
+ return '@@@';
4968
+ });
4969
+ // Apply formatting rules
4970
+ mask = mask.replace(token, function ($0) {
4971
+ return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
4972
+ });
4973
+ // Inline literal values back into the formatted value
4974
+ return mask.replace(/@@@/g, function () {
4975
+ return literals.shift();
4976
+ });
4977
+ };
4978
+
4979
+ /**
4980
+ * Parse a date string into an object, changes - into /
4981
+ * @method parse
4982
+ * @param {string} dateStr Date string
4983
+ * @param {string} format Date parse format
4984
+ * @returns {Date|boolean}
4985
+ */
4986
+ fecha.parse = function (dateStr, format, i18nSettings) {
4987
+ var i18n = i18nSettings || fecha.i18n;
4988
+ if (typeof format !== 'string') {
4989
+ throw new Error('Invalid format in fecha.parse');
4990
+ }
4991
+ format = fecha.masks[format] || format;
4992
+
4993
+ // Avoid regular expression denial of service, fail early for really long strings
4994
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
4995
+ if (dateStr.length > 1000) {
4996
+ return null;
4997
+ }
4998
+ var dateInfo = {};
4999
+ var parseInfo = [];
5000
+ var literals = [];
5001
+ format = format.replace(literal, function ($0, $1) {
5002
+ literals.push($1);
5003
+ return '@@@';
5004
+ });
5005
+ var newFormat = regexEscape(format).replace(token, function ($0) {
5006
+ if (parseFlags[$0]) {
5007
+ var info = parseFlags[$0];
5008
+ parseInfo.push(info[1]);
5009
+ return '(' + info[0] + ')';
5010
+ }
5011
+ return $0;
5012
+ });
5013
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
5014
+ if (!matches) {
5015
+ return null;
5016
+ }
5017
+ for (var i = 1; i < matches.length; i++) {
5018
+ parseInfo[i - 1](dateInfo, matches[i], i18n);
5019
+ }
5020
+ var today = new Date();
5021
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5022
+ dateInfo.hour = +dateInfo.hour + 12;
5023
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5024
+ dateInfo.hour = 0;
5025
+ }
5026
+ var date;
5027
+ if (dateInfo.timezoneOffset != null) {
5028
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5029
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5030
+ } else {
5031
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5032
+ }
5033
+ return date;
5034
+ };
5035
+ /* harmony default export */ var date_source = (fecha);
5036
+ // CONCATENATED MODULE: ./src/utils/date.js
5037
+
5038
+
4675
5039
 
4676
5040
  /***/ }),
4677
5041
  /* 76 */
@@ -4988,15 +5352,9 @@ module.exports = require("core-js/modules/es.array.from.js");
4988
5352
  /* 85 */,
4989
5353
  /* 86 */,
4990
5354
  /* 87 */,
4991
- /* 88 */
4992
- /***/ (function(module, exports) {
4993
-
4994
- module.exports = require("core-js/modules/es.regexp.constructor.js");
4995
-
4996
- /***/ }),
5355
+ /* 88 */,
4997
5356
  /* 89 */,
4998
- /* 90 */,
4999
- /* 91 */
5357
+ /* 90 */
5000
5358
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5001
5359
 
5002
5360
  "use strict";
@@ -5033,391 +5391,21 @@ function scrollIntoView(container, selected) {
5033
5391
  }
5034
5392
 
5035
5393
  /***/ }),
5036
- /* 92 */,
5037
- /* 93 */
5038
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5039
-
5040
- "use strict";
5041
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
5042
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
5043
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
5044
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
5045
- /* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88);
5046
- /* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
5047
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
5048
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
5049
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
5050
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
5051
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
5052
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
5053
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
5054
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
5055
-
5056
-
5057
-
5058
-
5059
-
5060
-
5061
-
5062
- /* Modified from https://github.com/taylorhakes/fecha
5063
- *
5064
- * The MIT License (MIT)
5065
- *
5066
- * Copyright (c) 2015 Taylor Hakes
5067
- *
5068
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5069
- * of this software and associated documentation files (the "Software"), to deal
5070
- * in the Software without restriction, including without limitation the rights
5071
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5072
- * copies of the Software, and to permit persons to whom the Software is
5073
- * furnished to do so, subject to the following conditions:
5074
- *
5075
- * The above copyright notice and this permission notice shall be included in all
5076
- * copies or substantial portions of the Software.
5077
- *
5078
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5079
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5080
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5081
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5082
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5083
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5084
- * SOFTWARE.
5085
- */
5086
-
5087
- /*eslint-disable*/
5088
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5089
- (function (main) {
5090
- 'use strict';
5091
-
5092
- /**
5093
- * Parse or format dates
5094
- * @class fecha
5095
- */
5096
- var fecha = {};
5097
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5098
- var twoDigits = '\\d\\d?';
5099
- var threeDigits = '\\d{3}';
5100
- var fourDigits = '\\d{4}';
5101
- var word = '[^\\s]+';
5102
- var literal = /\[([^]*?)\]/gm;
5103
- var noop = function noop() {};
5104
- function regexEscape(str) {
5105
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5106
- }
5107
- function shorten(arr, sLen) {
5108
- var newArr = [];
5109
- for (var i = 0, len = arr.length; i < len; i++) {
5110
- newArr.push(arr[i].substr(0, sLen));
5111
- }
5112
- return newArr;
5113
- }
5114
- function monthUpdate(arrName) {
5115
- return function (d, v, i18n) {
5116
- var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
5117
- if (~index) {
5118
- d.month = index;
5119
- }
5120
- };
5121
- }
5122
- function pad(val, len) {
5123
- val = String(val);
5124
- len = len || 2;
5125
- while (val.length < len) {
5126
- val = '0' + val;
5127
- }
5128
- return val;
5129
- }
5130
- var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
5131
- var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5132
- var monthNamesShort = shorten(monthNames, 3);
5133
- var dayNamesShort = shorten(dayNames, 3);
5134
- fecha.i18n = {
5135
- dayNamesShort: dayNamesShort,
5136
- dayNames: dayNames,
5137
- monthNamesShort: monthNamesShort,
5138
- monthNames: monthNames,
5139
- amPm: ['am', 'pm'],
5140
- DoFn: function DoFn(D) {
5141
- return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
5142
- }
5143
- };
5144
- var formatFlags = {
5145
- D: function D(dateObj) {
5146
- return dateObj.getDay();
5147
- },
5148
- DD: function DD(dateObj) {
5149
- return pad(dateObj.getDay());
5150
- },
5151
- Do: function Do(dateObj, i18n) {
5152
- return i18n.DoFn(dateObj.getDate());
5153
- },
5154
- d: function d(dateObj) {
5155
- return dateObj.getDate();
5156
- },
5157
- dd: function dd(dateObj) {
5158
- return pad(dateObj.getDate());
5159
- },
5160
- ddd: function ddd(dateObj, i18n) {
5161
- return i18n.dayNamesShort[dateObj.getDay()];
5162
- },
5163
- dddd: function dddd(dateObj, i18n) {
5164
- return i18n.dayNames[dateObj.getDay()];
5165
- },
5166
- M: function M(dateObj) {
5167
- return dateObj.getMonth() + 1;
5168
- },
5169
- MM: function MM(dateObj) {
5170
- return pad(dateObj.getMonth() + 1);
5171
- },
5172
- MMM: function MMM(dateObj, i18n) {
5173
- return i18n.monthNamesShort[dateObj.getMonth()];
5174
- },
5175
- MMMM: function MMMM(dateObj, i18n) {
5176
- return i18n.monthNames[dateObj.getMonth()];
5177
- },
5178
- yy: function yy(dateObj) {
5179
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5180
- },
5181
- yyyy: function yyyy(dateObj) {
5182
- return pad(dateObj.getFullYear(), 4);
5183
- },
5184
- h: function h(dateObj) {
5185
- return dateObj.getHours() % 12 || 12;
5186
- },
5187
- hh: function hh(dateObj) {
5188
- return pad(dateObj.getHours() % 12 || 12);
5189
- },
5190
- H: function H(dateObj) {
5191
- return dateObj.getHours();
5192
- },
5193
- HH: function HH(dateObj) {
5194
- return pad(dateObj.getHours());
5195
- },
5196
- m: function m(dateObj) {
5197
- return dateObj.getMinutes();
5198
- },
5199
- mm: function mm(dateObj) {
5200
- return pad(dateObj.getMinutes());
5201
- },
5202
- s: function s(dateObj) {
5203
- return dateObj.getSeconds();
5204
- },
5205
- ss: function ss(dateObj) {
5206
- return pad(dateObj.getSeconds());
5207
- },
5208
- S: function S(dateObj) {
5209
- return Math.round(dateObj.getMilliseconds() / 100);
5210
- },
5211
- SS: function SS(dateObj) {
5212
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5213
- },
5214
- SSS: function SSS(dateObj) {
5215
- return pad(dateObj.getMilliseconds(), 3);
5216
- },
5217
- a: function a(dateObj, i18n) {
5218
- return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
5219
- },
5220
- A: function A(dateObj, i18n) {
5221
- return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
5222
- },
5223
- ZZ: function ZZ(dateObj) {
5224
- var o = dateObj.getTimezoneOffset();
5225
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5226
- }
5227
- };
5228
- var parseFlags = {
5229
- d: [twoDigits, function (d, v) {
5230
- d.day = v;
5231
- }],
5232
- Do: [twoDigits + word, function (d, v) {
5233
- d.day = parseInt(v, 10);
5234
- }],
5235
- M: [twoDigits, function (d, v) {
5236
- d.month = v - 1;
5237
- }],
5238
- yy: [twoDigits, function (d, v) {
5239
- var da = new Date(),
5240
- cent = +('' + da.getFullYear()).substr(0, 2);
5241
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5242
- }],
5243
- h: [twoDigits, function (d, v) {
5244
- d.hour = v;
5245
- }],
5246
- m: [twoDigits, function (d, v) {
5247
- d.minute = v;
5248
- }],
5249
- s: [twoDigits, function (d, v) {
5250
- d.second = v;
5251
- }],
5252
- yyyy: [fourDigits, function (d, v) {
5253
- d.year = v;
5254
- }],
5255
- S: ['\\d', function (d, v) {
5256
- d.millisecond = v * 100;
5257
- }],
5258
- SS: ['\\d{2}', function (d, v) {
5259
- d.millisecond = v * 10;
5260
- }],
5261
- SSS: [threeDigits, function (d, v) {
5262
- d.millisecond = v;
5263
- }],
5264
- D: [twoDigits, noop],
5265
- ddd: [word, noop],
5266
- MMM: [word, monthUpdate('monthNamesShort')],
5267
- MMMM: [word, monthUpdate('monthNames')],
5268
- a: [word, function (d, v, i18n) {
5269
- var val = v.toLowerCase();
5270
- if (val === i18n.amPm[0]) {
5271
- d.isPm = false;
5272
- } else if (val === i18n.amPm[1]) {
5273
- d.isPm = true;
5274
- }
5275
- }],
5276
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5277
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5278
- minutes;
5279
- if (parts) {
5280
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5281
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5282
- }
5283
- }]
5284
- };
5285
- parseFlags.dd = parseFlags.d;
5286
- parseFlags.dddd = parseFlags.ddd;
5287
- parseFlags.DD = parseFlags.D;
5288
- parseFlags.mm = parseFlags.m;
5289
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5290
- parseFlags.MM = parseFlags.M;
5291
- parseFlags.ss = parseFlags.s;
5292
- parseFlags.A = parseFlags.a;
5293
-
5294
- // Some common format strings
5295
- fecha.masks = {
5296
- default: 'ddd MMM dd yyyy HH:mm:ss',
5297
- shortDate: 'M/D/yy',
5298
- mediumDate: 'MMM d, yyyy',
5299
- longDate: 'MMMM d, yyyy',
5300
- fullDate: 'dddd, MMMM d, yyyy',
5301
- shortTime: 'HH:mm',
5302
- mediumTime: 'HH:mm:ss',
5303
- longTime: 'HH:mm:ss.SSS'
5304
- };
5305
-
5306
- /***
5307
- * Format a date
5308
- * @method format
5309
- * @param {Date|number} dateObj
5310
- * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5311
- */
5312
- fecha.format = function (dateObj, mask, i18nSettings) {
5313
- var i18n = i18nSettings || fecha.i18n;
5314
- if (typeof dateObj === 'number') {
5315
- dateObj = new Date(dateObj);
5316
- }
5317
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5318
- throw new Error('Invalid Date in fecha.format');
5319
- }
5320
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5321
- var literals = [];
5322
-
5323
- // Make literals inactive by replacing them with ??
5324
- mask = mask.replace(literal, function ($0, $1) {
5325
- literals.push($1);
5326
- return '@@@';
5327
- });
5328
- // Apply formatting rules
5329
- mask = mask.replace(token, function ($0) {
5330
- return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
5331
- });
5332
- // Inline literal values back into the formatted value
5333
- return mask.replace(/@@@/g, function () {
5334
- return literals.shift();
5335
- });
5336
- };
5337
-
5338
- /**
5339
- * Parse a date string into an object, changes - into /
5340
- * @method parse
5341
- * @param {string} dateStr Date string
5342
- * @param {string} format Date parse format
5343
- * @returns {Date|boolean}
5344
- */
5345
- fecha.parse = function (dateStr, format, i18nSettings) {
5346
- var i18n = i18nSettings || fecha.i18n;
5347
- if (typeof format !== 'string') {
5348
- throw new Error('Invalid format in fecha.parse');
5349
- }
5350
- format = fecha.masks[format] || format;
5351
-
5352
- // Avoid regular expression denial of service, fail early for really long strings
5353
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5354
- if (dateStr.length > 1000) {
5355
- return null;
5356
- }
5357
- var dateInfo = {};
5358
- var parseInfo = [];
5359
- var literals = [];
5360
- format = format.replace(literal, function ($0, $1) {
5361
- literals.push($1);
5362
- return '@@@';
5363
- });
5364
- var newFormat = regexEscape(format).replace(token, function ($0) {
5365
- if (parseFlags[$0]) {
5366
- var info = parseFlags[$0];
5367
- parseInfo.push(info[1]);
5368
- return '(' + info[0] + ')';
5369
- }
5370
- return $0;
5371
- });
5372
- newFormat = newFormat.replace(/@@@/g, function () {
5373
- return literals.shift();
5374
- });
5375
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5376
- if (!matches) {
5377
- return null;
5378
- }
5379
- for (var i = 1; i < matches.length; i++) {
5380
- parseInfo[i - 1](dateInfo, matches[i], i18n);
5381
- }
5382
- var today = new Date();
5383
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5384
- dateInfo.hour = +dateInfo.hour + 12;
5385
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5386
- dateInfo.hour = 0;
5387
- }
5388
- var date;
5389
- if (dateInfo.timezoneOffset != null) {
5390
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5391
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5392
- } else {
5393
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5394
- }
5395
- return date;
5396
- };
5394
+ /* 91 */
5395
+ /***/ (function(module, exports) {
5397
5396
 
5398
- /* istanbul ignore next */
5399
- if ( true && module.exports) {
5400
- module.exports = fecha;
5401
- } else if (typeof define === 'function' && __webpack_require__(66)) {
5402
- define(function () {
5403
- return fecha;
5404
- });
5405
- } else {
5406
- main.fecha = fecha;
5407
- }
5408
- })(undefined);
5409
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
5397
+ module.exports = require("core-js/modules/es.regexp.constructor.js");
5410
5398
 
5411
5399
  /***/ }),
5400
+ /* 92 */,
5401
+ /* 93 */,
5412
5402
  /* 94 */,
5413
5403
  /* 95 */,
5414
5404
  /* 96 */,
5415
5405
  /* 97 */,
5416
5406
  /* 98 */,
5417
5407
  /* 99 */,
5418
- /* 100 */,
5419
- /* 101 */,
5420
- /* 102 */
5408
+ /* 100 */
5421
5409
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5422
5410
 
5423
5411
  "use strict";
@@ -5636,7 +5624,7 @@ var external_vue_ = __webpack_require__(0);
5636
5624
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
5637
5625
 
5638
5626
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
5639
- var clickoutside = __webpack_require__(71);
5627
+ var clickoutside = __webpack_require__(69);
5640
5628
 
5641
5629
  // EXTERNAL MODULE: ./src/utils/date-util.js
5642
5630
  var date_util = __webpack_require__(9);
@@ -6494,6 +6482,8 @@ var component = Object(componentNormalizer["a" /* default */])(
6494
6482
  /* harmony default export */ var picker = __webpack_exports__["a"] = (component.exports);
6495
6483
 
6496
6484
  /***/ }),
6485
+ /* 101 */,
6486
+ /* 102 */,
6497
6487
  /* 103 */,
6498
6488
  /* 104 */,
6499
6489
  /* 105 */,
@@ -6544,21 +6534,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6544
6534
  /* 150 */,
6545
6535
  /* 151 */,
6546
6536
  /* 152 */,
6547
- /* 153 */,
6548
- /* 154 */,
6549
- /* 155 */,
6550
- /* 156 */,
6551
- /* 157 */,
6552
- /* 158 */,
6553
- /* 159 */,
6554
- /* 160 */,
6555
- /* 161 */,
6556
- /* 162 */,
6557
- /* 163 */,
6558
- /* 164 */,
6559
- /* 165 */,
6560
- /* 166 */,
6561
- /* 167 */
6537
+ /* 153 */
6562
6538
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6563
6539
 
6564
6540
  "use strict";
@@ -6569,7 +6545,7 @@ __webpack_require__.r(__webpack_exports__);
6569
6545
  var es_function_name_js_ = __webpack_require__(5);
6570
6546
 
6571
6547
  // EXTERNAL MODULE: ./packages/date-picker/src/picker.vue + 4 modules
6572
- var picker = __webpack_require__(102);
6548
+ var picker = __webpack_require__(100);
6573
6549
 
6574
6550
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=6f86896b
6575
6551
  var render = function render() {
@@ -6660,7 +6636,7 @@ var es_regexp_to_string_js_ = __webpack_require__(11);
6660
6636
  var scrollbar = __webpack_require__(76);
6661
6637
 
6662
6638
  // EXTERNAL MODULE: ./src/utils/scroll-into-view.js
6663
- var scroll_into_view = __webpack_require__(91);
6639
+ var scroll_into_view = __webpack_require__(90);
6664
6640
 
6665
6641
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js
6666
6642