cy-element-ui 1.0.49 → 1.0.50

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 (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +359 -5198
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +101 -192
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +137 -1734
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +108 -452
  14. package/lib/carousel.js +105 -1256
  15. package/lib/cascader-panel.js +191 -3524
  16. package/lib/cascader.js +709 -8069
  17. package/lib/checkbox-button.js +119 -151
  18. package/lib/checkbox-group.js +15 -47
  19. package/lib/checkbox.js +15 -47
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +110 -815
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +835 -4712
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +4596 -10622
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +22 -1200
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +105 -875
  31. package/lib/dropdown-item.js +96 -128
  32. package/lib/dropdown-menu.js +99 -2301
  33. package/lib/dropdown.js +54 -990
  34. package/lib/element-ui.common.js +29758 -47436
  35. package/lib/empty.js +99 -793
  36. package/lib/fileUpload.js +25 -2541
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +208 -3311
  39. package/lib/form.js +115 -129
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +146 -1662
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +26 -435
  45. package/lib/input-number.js +24 -1458
  46. package/lib/input.js +37 -509
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +149 -886
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +137 -3140
  52. package/lib/menu.js +123 -1058
  53. package/lib/message-box.js +179 -2734
  54. package/lib/message.js +118 -1196
  55. package/lib/notification.js +118 -1195
  56. package/lib/option-group.js +119 -151
  57. package/lib/option.js +16 -392
  58. package/lib/page-header.js +87 -781
  59. package/lib/pagination.js +642 -7743
  60. package/lib/popconfirm.js +219 -3606
  61. package/lib/popover.js +99 -2624
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +119 -151
  64. package/lib/radio-group.js +119 -151
  65. package/lib/radio.js +15 -47
  66. package/lib/rate.js +113 -756
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +41 -1813
  70. package/lib/select.js +209 -5547
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +815 -5053
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +112 -9600
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +99 -514
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +76 -2397
  81. package/lib/switch.js +127 -582
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +104 -1630
  84. package/lib/table-column.js +267 -1115
  85. package/lib/table.js +1289 -7121
  86. package/lib/tabs.js +113 -1615
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +554 -6491
  89. package/lib/time-select.js +407 -6334
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +44 -2688
  93. package/lib/transfer.js +146 -2238
  94. package/lib/tree.js +148 -1563
  95. package/lib/treeSelect.js +106 -3421
  96. package/lib/upload.js +31 -1198
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/switch.js CHANGED
@@ -82,91 +82,138 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 166);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 98);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 11:
91
196
  /***/ (function(module, exports) {
92
197
 
93
- module.exports = require("vue");
198
+ module.exports = require("element-ui/src/mixins/migrating");
94
199
 
95
200
  /***/ }),
96
201
 
97
- /***/ 12:
98
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
202
+ /***/ 22:
203
+ /***/ (function(module, exports) {
99
204
 
100
- "use strict";
101
- /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
102
-
103
- /**
104
- * Show migrating guide in browser console.
105
- *
106
- * Usage:
107
- * import Migrating from 'element-ui/src/mixins/migrating';
108
- *
109
- * mixins: [Migrating]
110
- *
111
- * add getMigratingConfig method for your component.
112
- * getMigratingConfig() {
113
- * return {
114
- * props: {
115
- * 'allow-no-selection': 'allow-no-selection is removed.',
116
- * 'selection-mode': 'selection-mode is removed.'
117
- * },
118
- * events: {
119
- * selectionchange: 'selectionchange is renamed to selection-change.'
120
- * }
121
- * };
122
- * },
123
- */
124
- /* harmony default export */ __webpack_exports__["a"] = ({
125
- mounted: function mounted() {
126
- if (true) return;
127
- if (!this.$vnode) return;
128
-
129
- var _getMigratingConfig = this.getMigratingConfig(),
130
- _getMigratingConfig$p = _getMigratingConfig.props,
131
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
132
- _getMigratingConfig$e = _getMigratingConfig.events,
133
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
134
-
135
- var _$vnode = this.$vnode,
136
- data = _$vnode.data,
137
- componentOptions = _$vnode.componentOptions;
138
-
139
- var definedProps = data.attrs || {};
140
- var definedEvents = componentOptions.listeners || {};
141
-
142
- for (var propName in definedProps) {
143
- propName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
144
- if (props[propName]) {
145
- console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
146
- }
147
- }
205
+ module.exports = require("element-ui/src/mixins/focus");
148
206
 
149
- for (var eventName in definedEvents) {
150
- eventName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
151
- if (events[eventName]) {
152
- console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
153
- }
154
- }
155
- },
207
+ /***/ }),
156
208
 
157
- methods: {
158
- getMigratingConfig: function getMigratingConfig() {
159
- return {
160
- props: {},
161
- events: {}
162
- };
163
- }
164
- }
165
- });
209
+ /***/ 4:
210
+ /***/ (function(module, exports) {
211
+
212
+ module.exports = require("element-ui/src/mixins/emitter");
166
213
 
167
214
  /***/ }),
168
215
 
169
- /***/ 166:
216
+ /***/ 98:
170
217
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
171
218
 
172
219
  "use strict";
@@ -276,14 +323,17 @@ render._withStripped = true
276
323
 
277
324
  // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=template&id=5fd9d0ee
278
325
 
279
- // EXTERNAL MODULE: ./src/mixins/emitter.js
280
- var emitter = __webpack_require__(6);
326
+ // EXTERNAL MODULE: external "element-ui/src/mixins/emitter"
327
+ var emitter_ = __webpack_require__(4);
328
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
281
329
 
282
- // EXTERNAL MODULE: ./src/mixins/focus.js
283
- var mixins_focus = __webpack_require__(32);
330
+ // EXTERNAL MODULE: external "element-ui/src/mixins/focus"
331
+ var focus_ = __webpack_require__(22);
332
+ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
284
333
 
285
- // EXTERNAL MODULE: ./src/mixins/migrating.js
286
- var migrating = __webpack_require__(12);
334
+ // EXTERNAL MODULE: external "element-ui/src/mixins/migrating"
335
+ var migrating_ = __webpack_require__(11);
336
+ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
287
337
 
288
338
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=script&lang=js
289
339
 
@@ -293,7 +343,7 @@ var migrating = __webpack_require__(12);
293
343
 
294
344
  /* harmony default export */ var componentvue_type_script_lang_js = ({
295
345
  name: 'ElSwitch',
296
- mixins: [Object(mixins_focus["a" /* default */])('input'), migrating["a" /* default */], emitter["a" /* default */]],
346
+ mixins: [focus_default()('input'), migrating_default.a, emitter_default.a],
297
347
  inject: {
298
348
  elForm: {
299
349
  default: ''
@@ -428,7 +478,7 @@ var migrating = __webpack_require__(12);
428
478
  // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=script&lang=js
429
479
  /* harmony default export */ var src_componentvue_type_script_lang_js = (componentvue_type_script_lang_js);
430
480
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
431
- var componentNormalizer = __webpack_require__(2);
481
+ var componentNormalizer = __webpack_require__(0);
432
482
 
433
483
  // CONCATENATED MODULE: ./packages/switch/src/component.vue
434
484
 
@@ -460,511 +510,6 @@ src_component.install = function (Vue) {
460
510
 
461
511
  /* harmony default export */ var packages_switch = __webpack_exports__["default"] = (src_component);
462
512
 
463
- /***/ }),
464
-
465
- /***/ 2:
466
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
467
-
468
- "use strict";
469
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
470
- /* globals __VUE_SSR_CONTEXT__ */
471
-
472
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
473
- // This module is a runtime utility for cleaner component module output and will
474
- // be included in the final webpack user bundle.
475
-
476
- function normalizeComponent(
477
- scriptExports,
478
- render,
479
- staticRenderFns,
480
- functionalTemplate,
481
- injectStyles,
482
- scopeId,
483
- moduleIdentifier /* server only */,
484
- shadowMode /* vue-cli only */
485
- ) {
486
- // Vue.extend constructor export interop
487
- var options =
488
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
489
-
490
- // render functions
491
- if (render) {
492
- options.render = render
493
- options.staticRenderFns = staticRenderFns
494
- options._compiled = true
495
- }
496
-
497
- // functional template
498
- if (functionalTemplate) {
499
- options.functional = true
500
- }
501
-
502
- // scopedId
503
- if (scopeId) {
504
- options._scopeId = 'data-v-' + scopeId
505
- }
506
-
507
- var hook
508
- if (moduleIdentifier) {
509
- // server build
510
- hook = function (context) {
511
- // 2.3 injection
512
- context =
513
- context || // cached call
514
- (this.$vnode && this.$vnode.ssrContext) || // stateful
515
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
516
- // 2.2 with runInNewContext: true
517
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
518
- context = __VUE_SSR_CONTEXT__
519
- }
520
- // inject component styles
521
- if (injectStyles) {
522
- injectStyles.call(this, context)
523
- }
524
- // register component module identifier for async chunk inferrence
525
- if (context && context._registeredComponents) {
526
- context._registeredComponents.add(moduleIdentifier)
527
- }
528
- }
529
- // used by ssr in case component is cached and beforeCreate
530
- // never gets called
531
- options._ssrRegister = hook
532
- } else if (injectStyles) {
533
- hook = shadowMode
534
- ? function () {
535
- injectStyles.call(
536
- this,
537
- (options.functional ? this.parent : this).$root.$options.shadowRoot
538
- )
539
- }
540
- : injectStyles
541
- }
542
-
543
- if (hook) {
544
- if (options.functional) {
545
- // for template-only hot-reload because in that case the render fn doesn't
546
- // go through the normalizer
547
- options._injectStyles = hook
548
- // register for functional component in vue file
549
- var originalRender = options.render
550
- options.render = function renderWithStyleInjection(h, context) {
551
- hook.call(context)
552
- return originalRender(h, context)
553
- }
554
- } else {
555
- // inject component registration as beforeCreate hook
556
- var existing = options.beforeCreate
557
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
558
- }
559
- }
560
-
561
- return {
562
- exports: scriptExports,
563
- options: options
564
- }
565
- }
566
-
567
-
568
- /***/ }),
569
-
570
- /***/ 3:
571
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
572
-
573
- "use strict";
574
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
576
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
577
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
578
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
579
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
589
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
591
- /* unused harmony export looseEqual */
592
- /* unused harmony export arrayEquals */
593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
596
- /* unused harmony export objToArray */
597
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
598
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
599
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
600
- /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
601
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
602
-
603
-
604
-
605
-
606
- var hasOwnProperty = Object.prototype.hasOwnProperty;
607
-
608
- function noop() {};
609
-
610
- function hasOwn(obj, key) {
611
- return hasOwnProperty.call(obj, key);
612
- };
613
-
614
- function extend(to, _from) {
615
- for (var key in _from) {
616
- to[key] = _from[key];
617
- }
618
- return to;
619
- };
620
-
621
- function toObject(arr) {
622
- var res = {};
623
- for (var i = 0; i < arr.length; i++) {
624
- if (arr[i]) {
625
- extend(res, arr[i]);
626
- }
627
- }
628
- return res;
629
- };
630
-
631
- var getValueByPath = function getValueByPath(object, prop) {
632
- prop = prop || '';
633
- var paths = prop.split('.');
634
- var current = object;
635
- var result = null;
636
- for (var i = 0, j = paths.length; i < j; i++) {
637
- var path = paths[i];
638
- if (!current) break;
639
-
640
- if (i === j - 1) {
641
- result = current[path];
642
- break;
643
- }
644
- current = current[path];
645
- }
646
- return result;
647
- };
648
-
649
- function getPropByPath(obj, path, strict) {
650
- var tempObj = obj;
651
- path = path.replace(/\[(\w+)\]/g, '.$1');
652
- path = path.replace(/^\./, '');
653
-
654
- var keyArr = path.split('.');
655
- var i = 0;
656
- for (var len = keyArr.length; i < len - 1; ++i) {
657
- if (!tempObj && !strict) break;
658
- var key = keyArr[i];
659
- if (key in tempObj) {
660
- tempObj = tempObj[key];
661
- } else {
662
- if (strict) {
663
- throw new Error('please transfer a valid prop path to form item!');
664
- }
665
- break;
666
- }
667
- }
668
- return {
669
- o: tempObj,
670
- k: keyArr[i],
671
- v: tempObj ? tempObj[keyArr[i]] : null
672
- };
673
- };
674
-
675
- var generateId = function generateId() {
676
- return Math.floor(Math.random() * 10000);
677
- };
678
-
679
- var valueEquals = function valueEquals(a, b) {
680
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
681
- if (a === b) return true;
682
- if (!(a instanceof Array)) return false;
683
- if (!(b instanceof Array)) return false;
684
- if (a.length !== b.length) return false;
685
- for (var i = 0; i !== a.length; ++i) {
686
- if (a[i] !== b[i]) return false;
687
- }
688
- return true;
689
- };
690
-
691
- var escapeRegexpString = function escapeRegexpString() {
692
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
693
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
694
- };
695
-
696
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
697
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
698
- for (var i = 0; i !== arr.length; ++i) {
699
- if (pred(arr[i])) {
700
- return i;
701
- }
702
- }
703
- return -1;
704
- };
705
-
706
- var arrayFind = function arrayFind(arr, pred) {
707
- var idx = arrayFindIndex(arr, pred);
708
- return idx !== -1 ? arr[idx] : undefined;
709
- };
710
-
711
- // coerce truthy value to array
712
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
713
- if (Array.isArray(val)) {
714
- return val;
715
- } else if (val) {
716
- return [val];
717
- } else {
718
- return [];
719
- }
720
- };
721
-
722
- var isIE = function isIE() {
723
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
724
- };
725
-
726
- var isEdge = function isEdge() {
727
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
728
- };
729
-
730
- var isFirefox = function isFirefox() {
731
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
732
- };
733
-
734
- var autoprefixer = function autoprefixer(style) {
735
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
736
- var rules = ['transform', 'transition', 'animation'];
737
- var prefixes = ['ms-', 'webkit-'];
738
- rules.forEach(function (rule) {
739
- var value = style[rule];
740
- if (rule && value) {
741
- prefixes.forEach(function (prefix) {
742
- style[prefix + rule] = value;
743
- });
744
- }
745
- });
746
- return style;
747
- };
748
-
749
- var kebabCase = function kebabCase(str) {
750
- var hyphenateRE = /([^-])([A-Z])/g;
751
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
752
- };
753
-
754
- var capitalize = function capitalize(str) {
755
- if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
756
- return str.charAt(0).toUpperCase() + str.slice(1);
757
- };
758
-
759
- var looseEqual = function looseEqual(a, b) {
760
- var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
761
- var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
762
- if (isObjectA && isObjectB) {
763
- return JSON.stringify(a) === JSON.stringify(b);
764
- } else if (!isObjectA && !isObjectB) {
765
- return String(a) === String(b);
766
- } else {
767
- return false;
768
- }
769
- };
770
-
771
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
772
- arrayA = arrayA || [];
773
- arrayB = arrayB || [];
774
-
775
- if (arrayA.length !== arrayB.length) {
776
- return false;
777
- }
778
-
779
- for (var i = 0; i < arrayA.length; i++) {
780
- if (!looseEqual(arrayA[i], arrayB[i])) {
781
- return false;
782
- }
783
- }
784
-
785
- return true;
786
- };
787
-
788
- var isEqual = function isEqual(value1, value2) {
789
- if (Array.isArray(value1) && Array.isArray(value2)) {
790
- return arrayEquals(value1, value2);
791
- }
792
- return looseEqual(value1, value2);
793
- };
794
-
795
- var isEmpty = function isEmpty(val) {
796
- // null or undefined
797
- if (val == null) return true;
798
-
799
- if (typeof val === 'boolean') return false;
800
-
801
- if (typeof val === 'number') return !val;
802
-
803
- if (val instanceof Error) return val.message === '';
804
-
805
- switch (Object.prototype.toString.call(val)) {
806
- // String or Array
807
- case '[object String]':
808
- case '[object Array]':
809
- return !val.length;
810
-
811
- // Map or Set or File
812
- case '[object File]':
813
- case '[object Map]':
814
- case '[object Set]':
815
- {
816
- return !val.size;
817
- }
818
- // Plain Object
819
- case '[object Object]':
820
- {
821
- return !Object.keys(val).length;
822
- }
823
- }
824
-
825
- return false;
826
- };
827
-
828
- function rafThrottle(fn) {
829
- var locked = false;
830
- return function () {
831
- var _this = this;
832
-
833
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
834
- args[_key] = arguments[_key];
835
- }
836
-
837
- if (locked) return;
838
- locked = true;
839
- window.requestAnimationFrame(function (_) {
840
- fn.apply(_this, args);
841
- locked = false;
842
- });
843
- };
844
- }
845
-
846
- function objToArray(obj) {
847
- if (Array.isArray(obj)) {
848
- return obj;
849
- }
850
- return isEmpty(obj) ? [] : [obj];
851
- }
852
-
853
- var isMac = function isMac() {
854
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
855
- };
856
-
857
- /***/ }),
858
-
859
- /***/ 32:
860
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
861
-
862
- "use strict";
863
- /* harmony default export */ __webpack_exports__["a"] = (function (ref) {
864
- return {
865
- methods: {
866
- focus: function focus() {
867
- this.$refs[ref].focus();
868
- }
869
- }
870
- };
871
- });;
872
-
873
- /***/ }),
874
-
875
- /***/ 4:
876
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
877
-
878
- "use strict";
879
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
880
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
881
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
882
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
883
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
884
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
885
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
886
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
887
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
888
-
889
-
890
-
891
- function isString(obj) {
892
- return Object.prototype.toString.call(obj) === '[object String]';
893
- }
894
-
895
- function isObject(obj) {
896
- return Object.prototype.toString.call(obj) === '[object Object]';
897
- }
898
-
899
- function isHtmlElement(node) {
900
- return node && node.nodeType === Node.ELEMENT_NODE;
901
- }
902
-
903
- /**
904
- * - Inspired:
905
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
906
- */
907
- var isFunction = function isFunction(functionToCheck) {
908
- var getType = {};
909
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
910
- };
911
-
912
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
913
- isFunction = function isFunction(obj) {
914
- return typeof obj === 'function' || false;
915
- };
916
- }
917
-
918
-
919
-
920
- var isUndefined = function isUndefined(val) {
921
- return val === void 0;
922
- };
923
-
924
- var isDefined = function isDefined(val) {
925
- return val !== undefined && val !== null;
926
- };
927
-
928
- /***/ }),
929
-
930
- /***/ 6:
931
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
932
-
933
- "use strict";
934
- function _broadcast(componentName, eventName, params) {
935
- this.$children.forEach(function (child) {
936
- var name = child.$options.componentName;
937
-
938
- if (name === componentName) {
939
- child.$emit.apply(child, [eventName].concat(params));
940
- } else {
941
- _broadcast.apply(child, [componentName, eventName].concat([params]));
942
- }
943
- });
944
- }
945
- /* harmony default export */ __webpack_exports__["a"] = ({
946
- methods: {
947
- dispatch: function dispatch(componentName, eventName, params) {
948
- var parent = this.$parent || this.$root;
949
- var name = parent.$options.componentName;
950
-
951
- while (parent && (!name || name !== componentName)) {
952
- parent = parent.$parent;
953
-
954
- if (parent) {
955
- name = parent.$options.componentName;
956
- }
957
- }
958
- if (parent) {
959
- parent.$emit.apply(parent, [eventName].concat(params));
960
- }
961
- },
962
- broadcast: function broadcast(componentName, eventName, params) {
963
- _broadcast.call(this, componentName, eventName, params);
964
- }
965
- }
966
- });
967
-
968
513
  /***/ })
969
514
 
970
515
  /******/ });