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 = 168);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 154);
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 */
@@ -5005,15 +5369,15 @@ module.exports = require("core-js/modules/es.array.from.js");
5005
5369
  /* 85 */,
5006
5370
  /* 86 */,
5007
5371
  /* 87 */,
5008
- /* 88 */
5372
+ /* 88 */,
5373
+ /* 89 */,
5374
+ /* 90 */,
5375
+ /* 91 */
5009
5376
  /***/ (function(module, exports) {
5010
5377
 
5011
5378
  module.exports = require("core-js/modules/es.regexp.constructor.js");
5012
5379
 
5013
5380
  /***/ }),
5014
- /* 89 */,
5015
- /* 90 */,
5016
- /* 91 */,
5017
5381
  /* 92 */
5018
5382
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5019
5383
 
@@ -5048,387 +5412,12 @@ module.exports = require("core-js/modules/es.regexp.constructor.js");
5048
5412
  });
5049
5413
 
5050
5414
  /***/ }),
5051
- /* 93 */
5052
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5053
-
5054
- "use strict";
5055
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
5056
- /* 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__);
5057
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
5058
- /* 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__);
5059
- /* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88);
5060
- /* 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__);
5061
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
5062
- /* 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__);
5063
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
5064
- /* 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__);
5065
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
5066
- /* 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__);
5067
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
5068
- /* 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__);
5069
-
5070
-
5071
-
5072
-
5073
-
5074
-
5075
-
5076
- /* Modified from https://github.com/taylorhakes/fecha
5077
- *
5078
- * The MIT License (MIT)
5079
- *
5080
- * Copyright (c) 2015 Taylor Hakes
5081
- *
5082
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5083
- * of this software and associated documentation files (the "Software"), to deal
5084
- * in the Software without restriction, including without limitation the rights
5085
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5086
- * copies of the Software, and to permit persons to whom the Software is
5087
- * furnished to do so, subject to the following conditions:
5088
- *
5089
- * The above copyright notice and this permission notice shall be included in all
5090
- * copies or substantial portions of the Software.
5091
- *
5092
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5093
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5094
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5095
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5096
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5097
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5098
- * SOFTWARE.
5099
- */
5100
-
5101
- /*eslint-disable*/
5102
- // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5103
- (function (main) {
5104
- 'use strict';
5105
-
5106
- /**
5107
- * Parse or format dates
5108
- * @class fecha
5109
- */
5110
- var fecha = {};
5111
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5112
- var twoDigits = '\\d\\d?';
5113
- var threeDigits = '\\d{3}';
5114
- var fourDigits = '\\d{4}';
5115
- var word = '[^\\s]+';
5116
- var literal = /\[([^]*?)\]/gm;
5117
- var noop = function noop() {};
5118
- function regexEscape(str) {
5119
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5120
- }
5121
- function shorten(arr, sLen) {
5122
- var newArr = [];
5123
- for (var i = 0, len = arr.length; i < len; i++) {
5124
- newArr.push(arr[i].substr(0, sLen));
5125
- }
5126
- return newArr;
5127
- }
5128
- function monthUpdate(arrName) {
5129
- return function (d, v, i18n) {
5130
- var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
5131
- if (~index) {
5132
- d.month = index;
5133
- }
5134
- };
5135
- }
5136
- function pad(val, len) {
5137
- val = String(val);
5138
- len = len || 2;
5139
- while (val.length < len) {
5140
- val = '0' + val;
5141
- }
5142
- return val;
5143
- }
5144
- var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
5145
- var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
5146
- var monthNamesShort = shorten(monthNames, 3);
5147
- var dayNamesShort = shorten(dayNames, 3);
5148
- fecha.i18n = {
5149
- dayNamesShort: dayNamesShort,
5150
- dayNames: dayNames,
5151
- monthNamesShort: monthNamesShort,
5152
- monthNames: monthNames,
5153
- amPm: ['am', 'pm'],
5154
- DoFn: function DoFn(D) {
5155
- return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
5156
- }
5157
- };
5158
- var formatFlags = {
5159
- D: function D(dateObj) {
5160
- return dateObj.getDay();
5161
- },
5162
- DD: function DD(dateObj) {
5163
- return pad(dateObj.getDay());
5164
- },
5165
- Do: function Do(dateObj, i18n) {
5166
- return i18n.DoFn(dateObj.getDate());
5167
- },
5168
- d: function d(dateObj) {
5169
- return dateObj.getDate();
5170
- },
5171
- dd: function dd(dateObj) {
5172
- return pad(dateObj.getDate());
5173
- },
5174
- ddd: function ddd(dateObj, i18n) {
5175
- return i18n.dayNamesShort[dateObj.getDay()];
5176
- },
5177
- dddd: function dddd(dateObj, i18n) {
5178
- return i18n.dayNames[dateObj.getDay()];
5179
- },
5180
- M: function M(dateObj) {
5181
- return dateObj.getMonth() + 1;
5182
- },
5183
- MM: function MM(dateObj) {
5184
- return pad(dateObj.getMonth() + 1);
5185
- },
5186
- MMM: function MMM(dateObj, i18n) {
5187
- return i18n.monthNamesShort[dateObj.getMonth()];
5188
- },
5189
- MMMM: function MMMM(dateObj, i18n) {
5190
- return i18n.monthNames[dateObj.getMonth()];
5191
- },
5192
- yy: function yy(dateObj) {
5193
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5194
- },
5195
- yyyy: function yyyy(dateObj) {
5196
- return pad(dateObj.getFullYear(), 4);
5197
- },
5198
- h: function h(dateObj) {
5199
- return dateObj.getHours() % 12 || 12;
5200
- },
5201
- hh: function hh(dateObj) {
5202
- return pad(dateObj.getHours() % 12 || 12);
5203
- },
5204
- H: function H(dateObj) {
5205
- return dateObj.getHours();
5206
- },
5207
- HH: function HH(dateObj) {
5208
- return pad(dateObj.getHours());
5209
- },
5210
- m: function m(dateObj) {
5211
- return dateObj.getMinutes();
5212
- },
5213
- mm: function mm(dateObj) {
5214
- return pad(dateObj.getMinutes());
5215
- },
5216
- s: function s(dateObj) {
5217
- return dateObj.getSeconds();
5218
- },
5219
- ss: function ss(dateObj) {
5220
- return pad(dateObj.getSeconds());
5221
- },
5222
- S: function S(dateObj) {
5223
- return Math.round(dateObj.getMilliseconds() / 100);
5224
- },
5225
- SS: function SS(dateObj) {
5226
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5227
- },
5228
- SSS: function SSS(dateObj) {
5229
- return pad(dateObj.getMilliseconds(), 3);
5230
- },
5231
- a: function a(dateObj, i18n) {
5232
- return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
5233
- },
5234
- A: function A(dateObj, i18n) {
5235
- return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
5236
- },
5237
- ZZ: function ZZ(dateObj) {
5238
- var o = dateObj.getTimezoneOffset();
5239
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5240
- }
5241
- };
5242
- var parseFlags = {
5243
- d: [twoDigits, function (d, v) {
5244
- d.day = v;
5245
- }],
5246
- Do: [twoDigits + word, function (d, v) {
5247
- d.day = parseInt(v, 10);
5248
- }],
5249
- M: [twoDigits, function (d, v) {
5250
- d.month = v - 1;
5251
- }],
5252
- yy: [twoDigits, function (d, v) {
5253
- var da = new Date(),
5254
- cent = +('' + da.getFullYear()).substr(0, 2);
5255
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5256
- }],
5257
- h: [twoDigits, function (d, v) {
5258
- d.hour = v;
5259
- }],
5260
- m: [twoDigits, function (d, v) {
5261
- d.minute = v;
5262
- }],
5263
- s: [twoDigits, function (d, v) {
5264
- d.second = v;
5265
- }],
5266
- yyyy: [fourDigits, function (d, v) {
5267
- d.year = v;
5268
- }],
5269
- S: ['\\d', function (d, v) {
5270
- d.millisecond = v * 100;
5271
- }],
5272
- SS: ['\\d{2}', function (d, v) {
5273
- d.millisecond = v * 10;
5274
- }],
5275
- SSS: [threeDigits, function (d, v) {
5276
- d.millisecond = v;
5277
- }],
5278
- D: [twoDigits, noop],
5279
- ddd: [word, noop],
5280
- MMM: [word, monthUpdate('monthNamesShort')],
5281
- MMMM: [word, monthUpdate('monthNames')],
5282
- a: [word, function (d, v, i18n) {
5283
- var val = v.toLowerCase();
5284
- if (val === i18n.amPm[0]) {
5285
- d.isPm = false;
5286
- } else if (val === i18n.amPm[1]) {
5287
- d.isPm = true;
5288
- }
5289
- }],
5290
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5291
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5292
- minutes;
5293
- if (parts) {
5294
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5295
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5296
- }
5297
- }]
5298
- };
5299
- parseFlags.dd = parseFlags.d;
5300
- parseFlags.dddd = parseFlags.ddd;
5301
- parseFlags.DD = parseFlags.D;
5302
- parseFlags.mm = parseFlags.m;
5303
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5304
- parseFlags.MM = parseFlags.M;
5305
- parseFlags.ss = parseFlags.s;
5306
- parseFlags.A = parseFlags.a;
5307
-
5308
- // Some common format strings
5309
- fecha.masks = {
5310
- default: 'ddd MMM dd yyyy HH:mm:ss',
5311
- shortDate: 'M/D/yy',
5312
- mediumDate: 'MMM d, yyyy',
5313
- longDate: 'MMMM d, yyyy',
5314
- fullDate: 'dddd, MMMM d, yyyy',
5315
- shortTime: 'HH:mm',
5316
- mediumTime: 'HH:mm:ss',
5317
- longTime: 'HH:mm:ss.SSS'
5318
- };
5319
-
5320
- /***
5321
- * Format a date
5322
- * @method format
5323
- * @param {Date|number} dateObj
5324
- * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5325
- */
5326
- fecha.format = function (dateObj, mask, i18nSettings) {
5327
- var i18n = i18nSettings || fecha.i18n;
5328
- if (typeof dateObj === 'number') {
5329
- dateObj = new Date(dateObj);
5330
- }
5331
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5332
- throw new Error('Invalid Date in fecha.format');
5333
- }
5334
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5335
- var literals = [];
5336
-
5337
- // Make literals inactive by replacing them with ??
5338
- mask = mask.replace(literal, function ($0, $1) {
5339
- literals.push($1);
5340
- return '@@@';
5341
- });
5342
- // Apply formatting rules
5343
- mask = mask.replace(token, function ($0) {
5344
- return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
5345
- });
5346
- // Inline literal values back into the formatted value
5347
- return mask.replace(/@@@/g, function () {
5348
- return literals.shift();
5349
- });
5350
- };
5351
-
5352
- /**
5353
- * Parse a date string into an object, changes - into /
5354
- * @method parse
5355
- * @param {string} dateStr Date string
5356
- * @param {string} format Date parse format
5357
- * @returns {Date|boolean}
5358
- */
5359
- fecha.parse = function (dateStr, format, i18nSettings) {
5360
- var i18n = i18nSettings || fecha.i18n;
5361
- if (typeof format !== 'string') {
5362
- throw new Error('Invalid format in fecha.parse');
5363
- }
5364
- format = fecha.masks[format] || format;
5365
-
5366
- // Avoid regular expression denial of service, fail early for really long strings
5367
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5368
- if (dateStr.length > 1000) {
5369
- return null;
5370
- }
5371
- var dateInfo = {};
5372
- var parseInfo = [];
5373
- var literals = [];
5374
- format = format.replace(literal, function ($0, $1) {
5375
- literals.push($1);
5376
- return '@@@';
5377
- });
5378
- var newFormat = regexEscape(format).replace(token, function ($0) {
5379
- if (parseFlags[$0]) {
5380
- var info = parseFlags[$0];
5381
- parseInfo.push(info[1]);
5382
- return '(' + info[0] + ')';
5383
- }
5384
- return $0;
5385
- });
5386
- newFormat = newFormat.replace(/@@@/g, function () {
5387
- return literals.shift();
5388
- });
5389
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5390
- if (!matches) {
5391
- return null;
5392
- }
5393
- for (var i = 1; i < matches.length; i++) {
5394
- parseInfo[i - 1](dateInfo, matches[i], i18n);
5395
- }
5396
- var today = new Date();
5397
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5398
- dateInfo.hour = +dateInfo.hour + 12;
5399
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5400
- dateInfo.hour = 0;
5401
- }
5402
- var date;
5403
- if (dateInfo.timezoneOffset != null) {
5404
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5405
- 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));
5406
- } else {
5407
- 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);
5408
- }
5409
- return date;
5410
- };
5411
-
5412
- /* istanbul ignore next */
5413
- if ( true && module.exports) {
5414
- module.exports = fecha;
5415
- } else if (typeof define === 'function' && __webpack_require__(66)) {
5416
- define(function () {
5417
- return fecha;
5418
- });
5419
- } else {
5420
- main.fecha = fecha;
5421
- }
5422
- })(undefined);
5423
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(67)(module)))
5424
-
5425
- /***/ }),
5415
+ /* 93 */,
5426
5416
  /* 94 */,
5427
5417
  /* 95 */,
5428
5418
  /* 96 */,
5429
5419
  /* 97 */,
5430
- /* 98 */,
5431
- /* 99 */
5420
+ /* 98 */
5432
5421
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5433
5422
 
5434
5423
  "use strict";
@@ -5529,10 +5518,10 @@ var es_array_concat_js_ = __webpack_require__(21);
5529
5518
  var date_util = __webpack_require__(9);
5530
5519
 
5531
5520
  // EXTERNAL MODULE: ./src/mixins/locale.js
5532
- var locale = __webpack_require__(56);
5521
+ var locale = __webpack_require__(55);
5533
5522
 
5534
5523
  // EXTERNAL MODULE: ./packages/date-picker/src/basic/time-spinner.vue + 4 modules
5535
- var time_spinner = __webpack_require__(109);
5524
+ var time_spinner = __webpack_require__(105);
5536
5525
 
5537
5526
  // 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
5538
5527
 
@@ -5713,9 +5702,8 @@ var component = Object(componentNormalizer["a" /* default */])(
5713
5702
  /* harmony default export */ var time = __webpack_exports__["a"] = (component.exports);
5714
5703
 
5715
5704
  /***/ }),
5716
- /* 100 */,
5717
- /* 101 */,
5718
- /* 102 */
5705
+ /* 99 */,
5706
+ /* 100 */
5719
5707
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5720
5708
 
5721
5709
  "use strict";
@@ -5934,7 +5922,7 @@ var external_vue_ = __webpack_require__(0);
5934
5922
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
5935
5923
 
5936
5924
  // EXTERNAL MODULE: ./src/utils/clickoutside.js
5937
- var clickoutside = __webpack_require__(71);
5925
+ var clickoutside = __webpack_require__(69);
5938
5926
 
5939
5927
  // EXTERNAL MODULE: ./src/utils/date-util.js
5940
5928
  var date_util = __webpack_require__(9);
@@ -6792,13 +6780,11 @@ var component = Object(componentNormalizer["a" /* default */])(
6792
6780
  /* harmony default export */ var picker = __webpack_exports__["a"] = (component.exports);
6793
6781
 
6794
6782
  /***/ }),
6783
+ /* 101 */,
6784
+ /* 102 */,
6795
6785
  /* 103 */,
6796
6786
  /* 104 */,
6797
- /* 105 */,
6798
- /* 106 */,
6799
- /* 107 */,
6800
- /* 108 */,
6801
- /* 109 */
6787
+ /* 105 */
6802
6788
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6803
6789
 
6804
6790
  "use strict";
@@ -7380,6 +7366,10 @@ var component = Object(componentNormalizer["a" /* default */])(
7380
7366
  /* harmony default export */ var time_spinner = __webpack_exports__["a"] = (component.exports);
7381
7367
 
7382
7368
  /***/ }),
7369
+ /* 106 */,
7370
+ /* 107 */,
7371
+ /* 108 */,
7372
+ /* 109 */,
7383
7373
  /* 110 */,
7384
7374
  /* 111 */,
7385
7375
  /* 112 */,
@@ -7424,21 +7414,7 @@ var component = Object(componentNormalizer["a" /* default */])(
7424
7414
  /* 151 */,
7425
7415
  /* 152 */,
7426
7416
  /* 153 */,
7427
- /* 154 */,
7428
- /* 155 */,
7429
- /* 156 */,
7430
- /* 157 */,
7431
- /* 158 */,
7432
- /* 159 */,
7433
- /* 160 */,
7434
- /* 161 */,
7435
- /* 162 */,
7436
- /* 163 */,
7437
- /* 164 */,
7438
- /* 165 */,
7439
- /* 166 */,
7440
- /* 167 */,
7441
- /* 168 */
7417
+ /* 154 */
7442
7418
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7443
7419
 
7444
7420
  "use strict";
@@ -7449,10 +7425,10 @@ __webpack_require__.r(__webpack_exports__);
7449
7425
  var es_function_name_js_ = __webpack_require__(5);
7450
7426
 
7451
7427
  // EXTERNAL MODULE: ./packages/date-picker/src/picker.vue + 4 modules
7452
- var picker = __webpack_require__(102);
7428
+ var picker = __webpack_require__(100);
7453
7429
 
7454
7430
  // EXTERNAL MODULE: ./packages/date-picker/src/panel/time.vue + 4 modules
7455
- var time = __webpack_require__(99);
7431
+ var time = __webpack_require__(98);
7456
7432
 
7457
7433
  // 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-range.vue?vue&type=template&id=289f3043
7458
7434
  var render = function render() {
@@ -7596,10 +7572,10 @@ var es_array_concat_js_ = __webpack_require__(21);
7596
7572
  var date_util = __webpack_require__(9);
7597
7573
 
7598
7574
  // EXTERNAL MODULE: ./src/mixins/locale.js
7599
- var locale = __webpack_require__(56);
7575
+ var locale = __webpack_require__(55);
7600
7576
 
7601
7577
  // EXTERNAL MODULE: ./packages/date-picker/src/basic/time-spinner.vue + 4 modules
7602
- var time_spinner = __webpack_require__(109);
7578
+ var time_spinner = __webpack_require__(105);
7603
7579
 
7604
7580
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-range.vue?vue&type=script&lang=js
7605
7581