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 = 149);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 135);
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 = ({
@@ -2443,12 +2443,6 @@ module.exports = require("core-js/modules/es.array.includes.js");
2443
2443
 
2444
2444
  /***/ }),
2445
2445
  /* 55 */
2446
- /***/ (function(module, exports) {
2447
-
2448
- module.exports = require("core-js/modules/es.string.trim.js");
2449
-
2450
- /***/ }),
2451
- /* 56 */
2452
2446
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2453
2447
 
2454
2448
  "use strict";
@@ -2465,6 +2459,12 @@ module.exports = require("core-js/modules/es.string.trim.js");
2465
2459
  }
2466
2460
  });
2467
2461
 
2462
+ /***/ }),
2463
+ /* 56 */
2464
+ /***/ (function(module, exports) {
2465
+
2466
+ module.exports = require("core-js/modules/es.string.trim.js");
2467
+
2468
2468
  /***/ }),
2469
2469
  /* 57 */
2470
2470
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -2500,9 +2500,9 @@ module.exports = require("core-js/modules/es.string.trim.js");
2500
2500
  /* 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__);
2501
2501
  /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(65);
2502
2502
  /* 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__);
2503
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70);
2503
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(68);
2504
2504
  /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__);
2505
- /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(69);
2505
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(67);
2506
2506
  /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_15__);
2507
2507
 
2508
2508
 
@@ -3269,61 +3269,22 @@ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
3269
3269
  /* 66 */
3270
3270
  /***/ (function(module, exports) {
3271
3271
 
3272
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
3273
- module.exports = __webpack_amd_options__;
3274
-
3275
- /* WEBPACK VAR INJECTION */}.call(this, {}))
3276
-
3277
- /***/ }),
3278
- /* 67 */
3279
- /***/ (function(module, exports) {
3280
-
3281
- module.exports = function(originalModule) {
3282
- if (!originalModule.webpackPolyfill) {
3283
- var module = Object.create(originalModule);
3284
- // module.parent = undefined by default
3285
- if (!module.children) module.children = [];
3286
- Object.defineProperty(module, "loaded", {
3287
- enumerable: true,
3288
- get: function() {
3289
- return module.l;
3290
- }
3291
- });
3292
- Object.defineProperty(module, "id", {
3293
- enumerable: true,
3294
- get: function() {
3295
- return module.i;
3296
- }
3297
- });
3298
- Object.defineProperty(module, "exports", {
3299
- enumerable: true
3300
- });
3301
- module.webpackPolyfill = 1;
3302
- }
3303
- return module;
3304
- };
3305
-
3306
-
3307
- /***/ }),
3308
- /* 68 */
3309
- /***/ (function(module, exports) {
3310
-
3311
3272
  module.exports = require("core-js/modules/es.object.get-prototype-of.js");
3312
3273
 
3313
3274
  /***/ }),
3314
- /* 69 */
3275
+ /* 67 */
3315
3276
  /***/ (function(module, exports) {
3316
3277
 
3317
3278
  module.exports = require("throttle-debounce");
3318
3279
 
3319
3280
  /***/ }),
3320
- /* 70 */
3281
+ /* 68 */
3321
3282
  /***/ (function(module, exports) {
3322
3283
 
3323
3284
  module.exports = require("resize-observer-polyfill");
3324
3285
 
3325
3286
  /***/ }),
3326
- /* 71 */
3287
+ /* 69 */
3327
3288
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3328
3289
 
3329
3290
  "use strict";
@@ -3404,8 +3365,8 @@ function createDocumentHandler(el, binding, vnode) {
3404
3365
  });
3405
3366
 
3406
3367
  /***/ }),
3407
- /* 72 */,
3408
- /* 73 */
3368
+ /* 70 */,
3369
+ /* 71 */
3409
3370
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3410
3371
 
3411
3372
  "use strict";
@@ -3418,7 +3379,7 @@ __webpack_require__.r(__webpack_exports__);
3418
3379
  /* 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__);
3419
3380
  /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
3420
3381
  /* 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__);
3421
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74);
3382
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
3422
3383
  /* 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__);
3423
3384
  /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
3424
3385
  /* 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__);
@@ -3474,7 +3435,7 @@ __webpack_require__.r(__webpack_exports__);
3474
3435
  //
3475
3436
  ;
3476
3437
  (function (root, factory) {
3477
- if (typeof define === 'function' && __webpack_require__(66)) {
3438
+ if (typeof define === 'function' && __webpack_require__(74)) {
3478
3439
  // AMD. Register as an anonymous module.
3479
3440
  define(factory);
3480
3441
  } else if ( true && module.exports) {
@@ -4673,22 +4634,425 @@ __webpack_require__.r(__webpack_exports__);
4673
4634
  }
4674
4635
  return Popper;
4675
4636
  });
4676
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
4637
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(72)(module)))
4677
4638
 
4678
4639
  /***/ }),
4679
- /* 74 */
4640
+ /* 72 */
4641
+ /***/ (function(module, exports) {
4642
+
4643
+ module.exports = function(originalModule) {
4644
+ if (!originalModule.webpackPolyfill) {
4645
+ var module = Object.create(originalModule);
4646
+ // module.parent = undefined by default
4647
+ if (!module.children) module.children = [];
4648
+ Object.defineProperty(module, "loaded", {
4649
+ enumerable: true,
4650
+ get: function() {
4651
+ return module.l;
4652
+ }
4653
+ });
4654
+ Object.defineProperty(module, "id", {
4655
+ enumerable: true,
4656
+ get: function() {
4657
+ return module.i;
4658
+ }
4659
+ });
4660
+ Object.defineProperty(module, "exports", {
4661
+ enumerable: true
4662
+ });
4663
+ module.webpackPolyfill = 1;
4664
+ }
4665
+ return module;
4666
+ };
4667
+
4668
+
4669
+ /***/ }),
4670
+ /* 73 */
4680
4671
  /***/ (function(module, exports) {
4681
4672
 
4682
4673
  module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
4683
4674
 
4675
+ /***/ }),
4676
+ /* 74 */
4677
+ /***/ (function(module, exports) {
4678
+
4679
+ /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
4680
+ module.exports = __webpack_amd_options__;
4681
+
4682
+ /* WEBPACK VAR INJECTION */}.call(this, {}))
4683
+
4684
4684
  /***/ }),
4685
4685
  /* 75 */
4686
4686
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4687
4687
 
4688
4688
  "use strict";
4689
- /* harmony import */ var _date_source__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93);
4690
4689
 
4691
- /* harmony default export */ __webpack_exports__["a"] = (_date_source__WEBPACK_IMPORTED_MODULE_0__["default"]);
4690
+ // EXPORTS
4691
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ date_source; });
4692
+
4693
+ // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
4694
+ var es_array_slice_js_ = __webpack_require__(13);
4695
+
4696
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
4697
+ var es_object_to_string_js_ = __webpack_require__(3);
4698
+
4699
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.constructor.js"
4700
+ var es_regexp_constructor_js_ = __webpack_require__(91);
4701
+
4702
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
4703
+ var es_regexp_exec_js_ = __webpack_require__(7);
4704
+
4705
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
4706
+ var es_regexp_to_string_js_ = __webpack_require__(11);
4707
+
4708
+ // EXTERNAL MODULE: external "core-js/modules/es.string.match.js"
4709
+ var es_string_match_js_ = __webpack_require__(16);
4710
+
4711
+ // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
4712
+ var es_string_replace_js_ = __webpack_require__(12);
4713
+
4714
+ // CONCATENATED MODULE: ./src/utils/date_source.js
4715
+
4716
+
4717
+
4718
+
4719
+
4720
+
4721
+
4722
+ /* Modified from https://github.com/taylorhakes/fecha
4723
+ *
4724
+ * The MIT License (MIT)
4725
+ *
4726
+ * Copyright (c) 2015 Taylor Hakes
4727
+ *
4728
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
4729
+ * of this software and associated documentation files (the "Software"), to deal
4730
+ * in the Software without restriction, including without limitation the rights
4731
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4732
+ * copies of the Software, and to permit persons to whom the Software is
4733
+ * furnished to do so, subject to the following conditions:
4734
+ *
4735
+ * The above copyright notice and this permission notice shall be included in all
4736
+ * copies or substantial portions of the Software.
4737
+ *
4738
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4739
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4740
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4741
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4742
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4743
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4744
+ * SOFTWARE.
4745
+ */
4746
+
4747
+ /*eslint-disable*/
4748
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
4749
+
4750
+ /**
4751
+ * Parse or format dates
4752
+ * @class fecha
4753
+ */
4754
+ var fecha = {};
4755
+ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
4756
+ var twoDigits = '\\d\\d?';
4757
+ var threeDigits = '\\d{3}';
4758
+ var fourDigits = '\\d{4}';
4759
+ var word = '[^\\s]+';
4760
+ var literal = /\[([^]*?)\]/gm;
4761
+ var noop = function noop() {};
4762
+ function regexEscape(str) {
4763
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
4764
+ }
4765
+ function shorten(arr, sLen) {
4766
+ var newArr = [];
4767
+ for (var i = 0, len = arr.length; i < len; i++) {
4768
+ newArr.push(arr[i].substr(0, sLen));
4769
+ }
4770
+ return newArr;
4771
+ }
4772
+ function monthUpdate(arrName) {
4773
+ return function (d, v, i18n) {
4774
+ var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
4775
+ if (~index) {
4776
+ d.month = index;
4777
+ }
4778
+ };
4779
+ }
4780
+ function pad(val, len) {
4781
+ val = String(val);
4782
+ len = len || 2;
4783
+ while (val.length < len) {
4784
+ val = '0' + val;
4785
+ }
4786
+ return val;
4787
+ }
4788
+ var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
4789
+ var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
4790
+ var monthNamesShort = shorten(monthNames, 3);
4791
+ var dayNamesShort = shorten(dayNames, 3);
4792
+ fecha.i18n = {
4793
+ dayNamesShort: dayNamesShort,
4794
+ dayNames: dayNames,
4795
+ monthNamesShort: monthNamesShort,
4796
+ monthNames: monthNames,
4797
+ amPm: ['am', 'pm'],
4798
+ DoFn: function DoFn(D) {
4799
+ return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
4800
+ }
4801
+ };
4802
+ var formatFlags = {
4803
+ D: function D(dateObj) {
4804
+ return dateObj.getDay();
4805
+ },
4806
+ DD: function DD(dateObj) {
4807
+ return pad(dateObj.getDay());
4808
+ },
4809
+ Do: function Do(dateObj, i18n) {
4810
+ return i18n.DoFn(dateObj.getDate());
4811
+ },
4812
+ d: function d(dateObj) {
4813
+ return dateObj.getDate();
4814
+ },
4815
+ dd: function dd(dateObj) {
4816
+ return pad(dateObj.getDate());
4817
+ },
4818
+ ddd: function ddd(dateObj, i18n) {
4819
+ return i18n.dayNamesShort[dateObj.getDay()];
4820
+ },
4821
+ dddd: function dddd(dateObj, i18n) {
4822
+ return i18n.dayNames[dateObj.getDay()];
4823
+ },
4824
+ M: function M(dateObj) {
4825
+ return dateObj.getMonth() + 1;
4826
+ },
4827
+ MM: function MM(dateObj) {
4828
+ return pad(dateObj.getMonth() + 1);
4829
+ },
4830
+ MMM: function MMM(dateObj, i18n) {
4831
+ return i18n.monthNamesShort[dateObj.getMonth()];
4832
+ },
4833
+ MMMM: function MMMM(dateObj, i18n) {
4834
+ return i18n.monthNames[dateObj.getMonth()];
4835
+ },
4836
+ yy: function yy(dateObj) {
4837
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
4838
+ },
4839
+ yyyy: function yyyy(dateObj) {
4840
+ return pad(dateObj.getFullYear(), 4);
4841
+ },
4842
+ h: function h(dateObj) {
4843
+ return dateObj.getHours() % 12 || 12;
4844
+ },
4845
+ hh: function hh(dateObj) {
4846
+ return pad(dateObj.getHours() % 12 || 12);
4847
+ },
4848
+ H: function H(dateObj) {
4849
+ return dateObj.getHours();
4850
+ },
4851
+ HH: function HH(dateObj) {
4852
+ return pad(dateObj.getHours());
4853
+ },
4854
+ m: function m(dateObj) {
4855
+ return dateObj.getMinutes();
4856
+ },
4857
+ mm: function mm(dateObj) {
4858
+ return pad(dateObj.getMinutes());
4859
+ },
4860
+ s: function s(dateObj) {
4861
+ return dateObj.getSeconds();
4862
+ },
4863
+ ss: function ss(dateObj) {
4864
+ return pad(dateObj.getSeconds());
4865
+ },
4866
+ S: function S(dateObj) {
4867
+ return Math.round(dateObj.getMilliseconds() / 100);
4868
+ },
4869
+ SS: function SS(dateObj) {
4870
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
4871
+ },
4872
+ SSS: function SSS(dateObj) {
4873
+ return pad(dateObj.getMilliseconds(), 3);
4874
+ },
4875
+ a: function a(dateObj, i18n) {
4876
+ return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
4877
+ },
4878
+ A: function A(dateObj, i18n) {
4879
+ return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
4880
+ },
4881
+ ZZ: function ZZ(dateObj) {
4882
+ var o = dateObj.getTimezoneOffset();
4883
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
4884
+ }
4885
+ };
4886
+ var parseFlags = {
4887
+ d: [twoDigits, function (d, v) {
4888
+ d.day = v;
4889
+ }],
4890
+ Do: [twoDigits + word, function (d, v) {
4891
+ d.day = parseInt(v, 10);
4892
+ }],
4893
+ M: [twoDigits, function (d, v) {
4894
+ d.month = v - 1;
4895
+ }],
4896
+ yy: [twoDigits, function (d, v) {
4897
+ var da = new Date(),
4898
+ cent = +('' + da.getFullYear()).substr(0, 2);
4899
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
4900
+ }],
4901
+ h: [twoDigits, function (d, v) {
4902
+ d.hour = v;
4903
+ }],
4904
+ m: [twoDigits, function (d, v) {
4905
+ d.minute = v;
4906
+ }],
4907
+ s: [twoDigits, function (d, v) {
4908
+ d.second = v;
4909
+ }],
4910
+ yyyy: [fourDigits, function (d, v) {
4911
+ d.year = v;
4912
+ }],
4913
+ S: ['\\d', function (d, v) {
4914
+ d.millisecond = v * 100;
4915
+ }],
4916
+ SS: ['\\d{2}', function (d, v) {
4917
+ d.millisecond = v * 10;
4918
+ }],
4919
+ SSS: [threeDigits, function (d, v) {
4920
+ d.millisecond = v;
4921
+ }],
4922
+ D: [twoDigits, noop],
4923
+ ddd: [word, noop],
4924
+ MMM: [word, monthUpdate('monthNamesShort')],
4925
+ MMMM: [word, monthUpdate('monthNames')],
4926
+ a: [word, function (d, v, i18n) {
4927
+ var val = v.toLowerCase();
4928
+ if (val === i18n.amPm[0]) {
4929
+ d.isPm = false;
4930
+ } else if (val === i18n.amPm[1]) {
4931
+ d.isPm = true;
4932
+ }
4933
+ }],
4934
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
4935
+ var parts = (v + '').match(/([+-]|\d\d)/gi),
4936
+ minutes;
4937
+ if (parts) {
4938
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
4939
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
4940
+ }
4941
+ }]
4942
+ };
4943
+ parseFlags.dd = parseFlags.d;
4944
+ parseFlags.dddd = parseFlags.ddd;
4945
+ parseFlags.DD = parseFlags.D;
4946
+ parseFlags.mm = parseFlags.m;
4947
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
4948
+ parseFlags.MM = parseFlags.M;
4949
+ parseFlags.ss = parseFlags.s;
4950
+ parseFlags.A = parseFlags.a;
4951
+
4952
+ // Some common format strings
4953
+ fecha.masks = {
4954
+ default: 'ddd MMM dd yyyy HH:mm:ss',
4955
+ shortDate: 'M/D/yy',
4956
+ mediumDate: 'MMM d, yyyy',
4957
+ longDate: 'MMMM d, yyyy',
4958
+ fullDate: 'dddd, MMMM d, yyyy',
4959
+ shortTime: 'HH:mm',
4960
+ mediumTime: 'HH:mm:ss',
4961
+ longTime: 'HH:mm:ss.SSS'
4962
+ };
4963
+
4964
+ /***
4965
+ * Format a date
4966
+ * @method format
4967
+ * @param {Date|number} dateObj
4968
+ * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
4969
+ */
4970
+ fecha.format = function (dateObj, mask, i18nSettings) {
4971
+ var i18n = i18nSettings || fecha.i18n;
4972
+ if (typeof dateObj === 'number') {
4973
+ dateObj = new Date(dateObj);
4974
+ }
4975
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
4976
+ throw new Error('Invalid Date in fecha.format');
4977
+ }
4978
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
4979
+ var literals = [];
4980
+
4981
+ // Make literals inactive by replacing them with ??
4982
+ mask = mask.replace(literal, function ($0, $1) {
4983
+ literals.push($1);
4984
+ return '@@@';
4985
+ });
4986
+ // Apply formatting rules
4987
+ mask = mask.replace(token, function ($0) {
4988
+ return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
4989
+ });
4990
+ // Inline literal values back into the formatted value
4991
+ return mask.replace(/@@@/g, function () {
4992
+ return literals.shift();
4993
+ });
4994
+ };
4995
+
4996
+ /**
4997
+ * Parse a date string into an object, changes - into /
4998
+ * @method parse
4999
+ * @param {string} dateStr Date string
5000
+ * @param {string} format Date parse format
5001
+ * @returns {Date|boolean}
5002
+ */
5003
+ fecha.parse = function (dateStr, format, i18nSettings) {
5004
+ var i18n = i18nSettings || fecha.i18n;
5005
+ if (typeof format !== 'string') {
5006
+ throw new Error('Invalid format in fecha.parse');
5007
+ }
5008
+ format = fecha.masks[format] || format;
5009
+
5010
+ // Avoid regular expression denial of service, fail early for really long strings
5011
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5012
+ if (dateStr.length > 1000) {
5013
+ return null;
5014
+ }
5015
+ var dateInfo = {};
5016
+ var parseInfo = [];
5017
+ var literals = [];
5018
+ format = format.replace(literal, function ($0, $1) {
5019
+ literals.push($1);
5020
+ return '@@@';
5021
+ });
5022
+ var newFormat = regexEscape(format).replace(token, function ($0) {
5023
+ if (parseFlags[$0]) {
5024
+ var info = parseFlags[$0];
5025
+ parseInfo.push(info[1]);
5026
+ return '(' + info[0] + ')';
5027
+ }
5028
+ return $0;
5029
+ });
5030
+ var matches = dateStr.match(new RegExp(newFormat, 'i'));
5031
+ if (!matches) {
5032
+ return null;
5033
+ }
5034
+ for (var i = 1; i < matches.length; i++) {
5035
+ parseInfo[i - 1](dateInfo, matches[i], i18n);
5036
+ }
5037
+ var today = new Date();
5038
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5039
+ dateInfo.hour = +dateInfo.hour + 12;
5040
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5041
+ dateInfo.hour = 0;
5042
+ }
5043
+ var date;
5044
+ if (dateInfo.timezoneOffset != null) {
5045
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5046
+ 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));
5047
+ } else {
5048
+ 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);
5049
+ }
5050
+ return date;
5051
+ };
5052
+ /* harmony default export */ var date_source = (fecha);
5053
+ // CONCATENATED MODULE: ./src/utils/date.js
5054
+
5055
+
4692
5056
 
4693
5057
  /***/ }),
4694
5058
  /* 76 */
@@ -5138,15 +5502,15 @@ module.exports = require("core-js/modules/es.array.from.js");
5138
5502
  /* 85 */,
5139
5503
  /* 86 */,
5140
5504
  /* 87 */,
5141
- /* 88 */
5505
+ /* 88 */,
5506
+ /* 89 */,
5507
+ /* 90 */,
5508
+ /* 91 */
5142
5509
  /***/ (function(module, exports) {
5143
5510
 
5144
5511
  module.exports = require("core-js/modules/es.regexp.constructor.js");
5145
5512
 
5146
5513
  /***/ }),
5147
- /* 89 */,
5148
- /* 90 */,
5149
- /* 91 */,
5150
5514
  /* 92 */
5151
5515
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5152
5516
 
@@ -5181,387 +5545,12 @@ module.exports = require("core-js/modules/es.regexp.constructor.js");
5181
5545
  });
5182
5546
 
5183
5547
  /***/ }),
5184
- /* 93 */
5185
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5186
-
5187
- "use strict";
5188
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
5189
- /* 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__);
5190
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
5191
- /* 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__);
5192
- /* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88);
5193
- /* 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__);
5194
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
5195
- /* 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__);
5196
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
5197
- /* 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__);
5198
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
5199
- /* 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__);
5200
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
5201
- /* 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__);
5202
-
5203
-
5204
-
5205
-
5206
-
5207
-
5208
-
5209
- /* Modified from https://github.com/taylorhakes/fecha
5210
- *
5211
- * The MIT License (MIT)
5212
- *
5213
- * Copyright (c) 2015 Taylor Hakes
5214
- *
5215
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5216
- * of this software and associated documentation files (the "Software"), to deal
5217
- * in the Software without restriction, including without limitation the rights
5218
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5219
- * copies of the Software, and to permit persons to whom the Software is
5220
- * furnished to do so, subject to the following conditions:
5221
- *
5222
- * The above copyright notice and this permission notice shall be included in all
5223
- * copies or substantial portions of the Software.
5224
- *
5225
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5226
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5227
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5228
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5229
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5230
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5231
- * SOFTWARE.
5232
- */
5233
-
5234
- /*eslint-disable*/
5235
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5236
- (function (main) {
5237
- 'use strict';
5238
-
5239
- /**
5240
- * Parse or format dates
5241
- * @class fecha
5242
- */
5243
- var fecha = {};
5244
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5245
- var twoDigits = '\\d\\d?';
5246
- var threeDigits = '\\d{3}';
5247
- var fourDigits = '\\d{4}';
5248
- var word = '[^\\s]+';
5249
- var literal = /\[([^]*?)\]/gm;
5250
- var noop = function noop() {};
5251
- function regexEscape(str) {
5252
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5253
- }
5254
- function shorten(arr, sLen) {
5255
- var newArr = [];
5256
- for (var i = 0, len = arr.length; i < len; i++) {
5257
- newArr.push(arr[i].substr(0, sLen));
5258
- }
5259
- return newArr;
5260
- }
5261
- function monthUpdate(arrName) {
5262
- return function (d, v, i18n) {
5263
- var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
5264
- if (~index) {
5265
- d.month = index;
5266
- }
5267
- };
5268
- }
5269
- function pad(val, len) {
5270
- val = String(val);
5271
- len = len || 2;
5272
- while (val.length < len) {
5273
- val = '0' + val;
5274
- }
5275
- return val;
5276
- }
5277
- var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
5278
- var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5279
- var monthNamesShort = shorten(monthNames, 3);
5280
- var dayNamesShort = shorten(dayNames, 3);
5281
- fecha.i18n = {
5282
- dayNamesShort: dayNamesShort,
5283
- dayNames: dayNames,
5284
- monthNamesShort: monthNamesShort,
5285
- monthNames: monthNames,
5286
- amPm: ['am', 'pm'],
5287
- DoFn: function DoFn(D) {
5288
- return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
5289
- }
5290
- };
5291
- var formatFlags = {
5292
- D: function D(dateObj) {
5293
- return dateObj.getDay();
5294
- },
5295
- DD: function DD(dateObj) {
5296
- return pad(dateObj.getDay());
5297
- },
5298
- Do: function Do(dateObj, i18n) {
5299
- return i18n.DoFn(dateObj.getDate());
5300
- },
5301
- d: function d(dateObj) {
5302
- return dateObj.getDate();
5303
- },
5304
- dd: function dd(dateObj) {
5305
- return pad(dateObj.getDate());
5306
- },
5307
- ddd: function ddd(dateObj, i18n) {
5308
- return i18n.dayNamesShort[dateObj.getDay()];
5309
- },
5310
- dddd: function dddd(dateObj, i18n) {
5311
- return i18n.dayNames[dateObj.getDay()];
5312
- },
5313
- M: function M(dateObj) {
5314
- return dateObj.getMonth() + 1;
5315
- },
5316
- MM: function MM(dateObj) {
5317
- return pad(dateObj.getMonth() + 1);
5318
- },
5319
- MMM: function MMM(dateObj, i18n) {
5320
- return i18n.monthNamesShort[dateObj.getMonth()];
5321
- },
5322
- MMMM: function MMMM(dateObj, i18n) {
5323
- return i18n.monthNames[dateObj.getMonth()];
5324
- },
5325
- yy: function yy(dateObj) {
5326
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5327
- },
5328
- yyyy: function yyyy(dateObj) {
5329
- return pad(dateObj.getFullYear(), 4);
5330
- },
5331
- h: function h(dateObj) {
5332
- return dateObj.getHours() % 12 || 12;
5333
- },
5334
- hh: function hh(dateObj) {
5335
- return pad(dateObj.getHours() % 12 || 12);
5336
- },
5337
- H: function H(dateObj) {
5338
- return dateObj.getHours();
5339
- },
5340
- HH: function HH(dateObj) {
5341
- return pad(dateObj.getHours());
5342
- },
5343
- m: function m(dateObj) {
5344
- return dateObj.getMinutes();
5345
- },
5346
- mm: function mm(dateObj) {
5347
- return pad(dateObj.getMinutes());
5348
- },
5349
- s: function s(dateObj) {
5350
- return dateObj.getSeconds();
5351
- },
5352
- ss: function ss(dateObj) {
5353
- return pad(dateObj.getSeconds());
5354
- },
5355
- S: function S(dateObj) {
5356
- return Math.round(dateObj.getMilliseconds() / 100);
5357
- },
5358
- SS: function SS(dateObj) {
5359
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5360
- },
5361
- SSS: function SSS(dateObj) {
5362
- return pad(dateObj.getMilliseconds(), 3);
5363
- },
5364
- a: function a(dateObj, i18n) {
5365
- return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
5366
- },
5367
- A: function A(dateObj, i18n) {
5368
- return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
5369
- },
5370
- ZZ: function ZZ(dateObj) {
5371
- var o = dateObj.getTimezoneOffset();
5372
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5373
- }
5374
- };
5375
- var parseFlags = {
5376
- d: [twoDigits, function (d, v) {
5377
- d.day = v;
5378
- }],
5379
- Do: [twoDigits + word, function (d, v) {
5380
- d.day = parseInt(v, 10);
5381
- }],
5382
- M: [twoDigits, function (d, v) {
5383
- d.month = v - 1;
5384
- }],
5385
- yy: [twoDigits, function (d, v) {
5386
- var da = new Date(),
5387
- cent = +('' + da.getFullYear()).substr(0, 2);
5388
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5389
- }],
5390
- h: [twoDigits, function (d, v) {
5391
- d.hour = v;
5392
- }],
5393
- m: [twoDigits, function (d, v) {
5394
- d.minute = v;
5395
- }],
5396
- s: [twoDigits, function (d, v) {
5397
- d.second = v;
5398
- }],
5399
- yyyy: [fourDigits, function (d, v) {
5400
- d.year = v;
5401
- }],
5402
- S: ['\\d', function (d, v) {
5403
- d.millisecond = v * 100;
5404
- }],
5405
- SS: ['\\d{2}', function (d, v) {
5406
- d.millisecond = v * 10;
5407
- }],
5408
- SSS: [threeDigits, function (d, v) {
5409
- d.millisecond = v;
5410
- }],
5411
- D: [twoDigits, noop],
5412
- ddd: [word, noop],
5413
- MMM: [word, monthUpdate('monthNamesShort')],
5414
- MMMM: [word, monthUpdate('monthNames')],
5415
- a: [word, function (d, v, i18n) {
5416
- var val = v.toLowerCase();
5417
- if (val === i18n.amPm[0]) {
5418
- d.isPm = false;
5419
- } else if (val === i18n.amPm[1]) {
5420
- d.isPm = true;
5421
- }
5422
- }],
5423
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5424
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5425
- minutes;
5426
- if (parts) {
5427
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5428
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5429
- }
5430
- }]
5431
- };
5432
- parseFlags.dd = parseFlags.d;
5433
- parseFlags.dddd = parseFlags.ddd;
5434
- parseFlags.DD = parseFlags.D;
5435
- parseFlags.mm = parseFlags.m;
5436
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5437
- parseFlags.MM = parseFlags.M;
5438
- parseFlags.ss = parseFlags.s;
5439
- parseFlags.A = parseFlags.a;
5440
-
5441
- // Some common format strings
5442
- fecha.masks = {
5443
- default: 'ddd MMM dd yyyy HH:mm:ss',
5444
- shortDate: 'M/D/yy',
5445
- mediumDate: 'MMM d, yyyy',
5446
- longDate: 'MMMM d, yyyy',
5447
- fullDate: 'dddd, MMMM d, yyyy',
5448
- shortTime: 'HH:mm',
5449
- mediumTime: 'HH:mm:ss',
5450
- longTime: 'HH:mm:ss.SSS'
5451
- };
5452
-
5453
- /***
5454
- * Format a date
5455
- * @method format
5456
- * @param {Date|number} dateObj
5457
- * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5458
- */
5459
- fecha.format = function (dateObj, mask, i18nSettings) {
5460
- var i18n = i18nSettings || fecha.i18n;
5461
- if (typeof dateObj === 'number') {
5462
- dateObj = new Date(dateObj);
5463
- }
5464
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5465
- throw new Error('Invalid Date in fecha.format');
5466
- }
5467
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5468
- var literals = [];
5469
-
5470
- // Make literals inactive by replacing them with ??
5471
- mask = mask.replace(literal, function ($0, $1) {
5472
- literals.push($1);
5473
- return '@@@';
5474
- });
5475
- // Apply formatting rules
5476
- mask = mask.replace(token, function ($0) {
5477
- return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
5478
- });
5479
- // Inline literal values back into the formatted value
5480
- return mask.replace(/@@@/g, function () {
5481
- return literals.shift();
5482
- });
5483
- };
5484
-
5485
- /**
5486
- * Parse a date string into an object, changes - into /
5487
- * @method parse
5488
- * @param {string} dateStr Date string
5489
- * @param {string} format Date parse format
5490
- * @returns {Date|boolean}
5491
- */
5492
- fecha.parse = function (dateStr, format, i18nSettings) {
5493
- var i18n = i18nSettings || fecha.i18n;
5494
- if (typeof format !== 'string') {
5495
- throw new Error('Invalid format in fecha.parse');
5496
- }
5497
- format = fecha.masks[format] || format;
5498
-
5499
- // Avoid regular expression denial of service, fail early for really long strings
5500
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5501
- if (dateStr.length > 1000) {
5502
- return null;
5503
- }
5504
- var dateInfo = {};
5505
- var parseInfo = [];
5506
- var literals = [];
5507
- format = format.replace(literal, function ($0, $1) {
5508
- literals.push($1);
5509
- return '@@@';
5510
- });
5511
- var newFormat = regexEscape(format).replace(token, function ($0) {
5512
- if (parseFlags[$0]) {
5513
- var info = parseFlags[$0];
5514
- parseInfo.push(info[1]);
5515
- return '(' + info[0] + ')';
5516
- }
5517
- return $0;
5518
- });
5519
- newFormat = newFormat.replace(/@@@/g, function () {
5520
- return literals.shift();
5521
- });
5522
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5523
- if (!matches) {
5524
- return null;
5525
- }
5526
- for (var i = 1; i < matches.length; i++) {
5527
- parseInfo[i - 1](dateInfo, matches[i], i18n);
5528
- }
5529
- var today = new Date();
5530
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5531
- dateInfo.hour = +dateInfo.hour + 12;
5532
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5533
- dateInfo.hour = 0;
5534
- }
5535
- var date;
5536
- if (dateInfo.timezoneOffset != null) {
5537
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5538
- 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));
5539
- } else {
5540
- 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);
5541
- }
5542
- return date;
5543
- };
5544
-
5545
- /* istanbul ignore next */
5546
- if ( true && module.exports) {
5547
- module.exports = fecha;
5548
- } else if (typeof define === 'function' && __webpack_require__(66)) {
5549
- define(function () {
5550
- return fecha;
5551
- });
5552
- } else {
5553
- main.fecha = fecha;
5554
- }
5555
- })(undefined);
5556
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
5557
-
5558
- /***/ }),
5548
+ /* 93 */,
5559
5549
  /* 94 */,
5560
5550
  /* 95 */,
5561
5551
  /* 96 */,
5562
5552
  /* 97 */,
5563
- /* 98 */,
5564
- /* 99 */
5553
+ /* 98 */
5565
5554
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5566
5555
 
5567
5556
  "use strict";
@@ -5662,10 +5651,10 @@ var es_array_concat_js_ = __webpack_require__(21);
5662
5651
  var date_util = __webpack_require__(9);
5663
5652
 
5664
5653
  // EXTERNAL MODULE: ./src/mixins/locale.js
5665
- var locale = __webpack_require__(56);
5654
+ var locale = __webpack_require__(55);
5666
5655
 
5667
5656
  // EXTERNAL MODULE: ./packages/date-picker/src/basic/time-spinner.vue + 4 modules
5668
- var time_spinner = __webpack_require__(109);
5657
+ var time_spinner = __webpack_require__(105);
5669
5658
 
5670
5659
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time.vue?vue&type=script&lang=js
5671
5660
 
@@ -5846,9 +5835,8 @@ var component = Object(componentNormalizer["a" /* default */])(
5846
5835
  /* harmony default export */ var time = __webpack_exports__["a"] = (component.exports);
5847
5836
 
5848
5837
  /***/ }),
5849
- /* 100 */,
5850
- /* 101 */,
5851
- /* 102 */
5838
+ /* 99 */,
5839
+ /* 100 */
5852
5840
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5853
5841
 
5854
5842
  "use strict";
@@ -6067,7 +6055,7 @@ var external_vue_ = __webpack_require__(0);
6067
6055
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
6068
6056
 
6069
6057
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
6070
- var clickoutside = __webpack_require__(71);
6058
+ var clickoutside = __webpack_require__(69);
6071
6059
 
6072
6060
  // EXTERNAL MODULE: ./src/utils/date-util.js
6073
6061
  var date_util = __webpack_require__(9);
@@ -6925,13 +6913,11 @@ var component = Object(componentNormalizer["a" /* default */])(
6925
6913
  /* harmony default export */ var picker = __webpack_exports__["a"] = (component.exports);
6926
6914
 
6927
6915
  /***/ }),
6916
+ /* 101 */,
6917
+ /* 102 */,
6928
6918
  /* 103 */,
6929
6919
  /* 104 */,
6930
- /* 105 */,
6931
- /* 106 */,
6932
- /* 107 */,
6933
- /* 108 */,
6934
- /* 109 */
6920
+ /* 105 */
6935
6921
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6936
6922
 
6937
6923
  "use strict";
@@ -7513,6 +7499,10 @@ var component = Object(componentNormalizer["a" /* default */])(
7513
7499
  /* harmony default export */ var time_spinner = __webpack_exports__["a"] = (component.exports);
7514
7500
 
7515
7501
  /***/ }),
7502
+ /* 106 */,
7503
+ /* 107 */,
7504
+ /* 108 */,
7505
+ /* 109 */,
7516
7506
  /* 110 */,
7517
7507
  /* 111 */,
7518
7508
  /* 112 */,
@@ -7538,21 +7528,7 @@ var component = Object(componentNormalizer["a" /* default */])(
7538
7528
  /* 132 */,
7539
7529
  /* 133 */,
7540
7530
  /* 134 */,
7541
- /* 135 */,
7542
- /* 136 */,
7543
- /* 137 */,
7544
- /* 138 */,
7545
- /* 139 */,
7546
- /* 140 */,
7547
- /* 141 */,
7548
- /* 142 */,
7549
- /* 143 */,
7550
- /* 144 */,
7551
- /* 145 */,
7552
- /* 146 */,
7553
- /* 147 */,
7554
- /* 148 */,
7555
- /* 149 */
7531
+ /* 135 */
7556
7532
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7557
7533
 
7558
7534
  "use strict";
@@ -7563,7 +7539,7 @@ __webpack_require__.r(__webpack_exports__);
7563
7539
  var es_function_name_js_ = __webpack_require__(5);
7564
7540
 
7565
7541
  // EXTERNAL MODULE: ./packages/date-picker/src/picker.vue + 4 modules
7566
- var picker = __webpack_require__(102);
7542
+ var picker = __webpack_require__(100);
7567
7543
 
7568
7544
  // 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/date.vue?vue&type=template&id=7b60d62d
7569
7545
  var render = function render() {
@@ -7956,10 +7932,10 @@ var es_object_to_string_js_ = __webpack_require__(3);
7956
7932
  var date_util = __webpack_require__(9);
7957
7933
 
7958
7934
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
7959
- var clickoutside = __webpack_require__(71);
7935
+ var clickoutside = __webpack_require__(69);
7960
7936
 
7961
7937
  // EXTERNAL MODULE: ./src/mixins/locale.js
7962
- var locale = __webpack_require__(56);
7938
+ var locale = __webpack_require__(55);
7963
7939
 
7964
7940
  // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
7965
7941
  var input = __webpack_require__(63);
@@ -7968,7 +7944,7 @@ var input = __webpack_require__(63);
7968
7944
  var packages_button = __webpack_require__(80);
7969
7945
 
7970
7946
  // EXTERNAL MODULE: ./packages/date-picker/src/panel/time.vue + 4 modules
7971
- var panel_time = __webpack_require__(99);
7947
+ var panel_time = __webpack_require__(98);
7972
7948
 
7973
7949
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/year-table.vue?vue&type=template&id=2d4ed970
7974
7950
  var year_tablevue_type_template_id_2d4ed970_render = function render() {