cy-element-ui 1.0.71 → 1.0.73

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 (113) hide show
  1. package/lib/alert.js +4 -4
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +3940 -159
  4. package/lib/avatar.js +108 -108
  5. package/lib/backtop.js +110 -110
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +4 -4
  8. package/lib/breadcrumb.js +4 -4
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +1545 -46
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +452 -108
  14. package/lib/carousel.js +185 -116
  15. package/lib/cascader-panel.js +2270 -187
  16. package/lib/cascader.js +6452 -275
  17. package/lib/checkbox-button.js +43 -11
  18. package/lib/checkbox-group.js +47 -15
  19. package/lib/checkbox.js +47 -15
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +815 -110
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +3953 -153
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +5231 -420
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +63 -8
  28. package/lib/dialog.js +1200 -22
  29. package/lib/directives/repeat-click.js +2 -2
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +875 -105
  32. package/lib/dropdown-item.js +43 -11
  33. package/lib/dropdown-menu.js +2274 -72
  34. package/lib/dropdown.js +1072 -136
  35. package/lib/element-ui.common.js +26229 -13291
  36. package/lib/empty.js +603 -7
  37. package/lib/fileUpload.js +2478 -110
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +418 -28
  40. package/lib/form.js +29 -15
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +4 -4
  43. package/lib/image.js +1376 -49
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +311 -21
  46. package/lib/input-number.js +1423 -34
  47. package/lib/input.js +507 -37
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +804 -67
  50. package/lib/locale/format.js +1 -1
  51. package/lib/locale/index.js +1 -1
  52. package/lib/main.js +64 -64
  53. package/lib/menu-item-group.js +4 -4
  54. package/lib/menu-item.js +2925 -41
  55. package/lib/menu.js +745 -54
  56. package/lib/message-box.js +2536 -79
  57. package/lib/message.js +1102 -24
  58. package/lib/mixins/locale.js +1 -1
  59. package/lib/mixins/migrating.js +1 -1
  60. package/lib/notification.js +1102 -25
  61. package/lib/option-group.js +43 -11
  62. package/lib/option.js +394 -18
  63. package/lib/page-header.js +683 -87
  64. package/lib/pagination.js +6078 -139
  65. package/lib/popconfirm.js +3508 -219
  66. package/lib/popover.js +2604 -79
  67. package/lib/progress.js +4 -4
  68. package/lib/radio-button.js +43 -11
  69. package/lib/radio-group.js +43 -11
  70. package/lib/radio.js +47 -15
  71. package/lib/rate.js +756 -113
  72. package/lib/result.js +4 -4
  73. package/lib/row.js +2 -2
  74. package/lib/scrollbar.js +735 -50
  75. package/lib/select.js +4352 -209
  76. package/lib/selectDisplayInput.js +108 -108
  77. package/lib/skeleton-item.js +2 -2
  78. package/lib/skeleton.js +108 -108
  79. package/lib/slider.js +4266 -120
  80. package/lib/spinner.js +4 -4
  81. package/lib/statistic.js +9605 -117
  82. package/lib/step.js +108 -108
  83. package/lib/steps.js +514 -99
  84. package/lib/subTitle.js +91 -91
  85. package/lib/submenu.js +2444 -123
  86. package/lib/switch.js +476 -21
  87. package/lib/tab-pane.js +4 -4
  88. package/lib/tabDialog.js +1544 -18
  89. package/lib/table-column.js +881 -33
  90. package/lib/table.js +4469 -426
  91. package/lib/tabs.js +425 -12
  92. package/lib/tag.js +4 -4
  93. package/lib/theme-chalk/src/index.scss +0 -3
  94. package/lib/time-picker.js +5013 -285
  95. package/lib/time-select.js +4945 -177
  96. package/lib/timeline-item.js +108 -108
  97. package/lib/timeline.js +82 -82
  98. package/lib/tooltip.js +2566 -41
  99. package/lib/transfer.js +2135 -141
  100. package/lib/transitions/collapse-transition.js +1 -1
  101. package/lib/tree.js +1372 -55
  102. package/lib/treeSelect.js +3420 -105
  103. package/lib/upload.js +1047 -28
  104. package/lib/utils/clickoutside.js +1 -1
  105. package/lib/utils/date-util.js +2 -2
  106. package/lib/utils/popup/index.js +2 -2
  107. package/lib/utils/popup/popup-manager.js +1 -1
  108. package/lib/utils/util.js +1 -1
  109. package/lib/utils/vdom.js +1 -1
  110. package/lib/utils/vue-popper.js +1 -1
  111. package/package.json +1 -1
  112. package/packages/theme-chalk/src/index.scss +0 -3
  113. package/src/index.js +1 -1
@@ -85,177 +85,3966 @@ module.exports =
85
85
  /******/ return __webpack_require__(__webpack_require__.s = 68);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
93
+
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
111
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
112
+ 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; };
113
+
114
+ /* istanbul ignore next */
115
+
116
+
117
+
118
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
119
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
120
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
121
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
122
+
123
+ /* istanbul ignore next */
124
+ var trim = function trim(string) {
125
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
126
+ };
127
+ /* istanbul ignore next */
128
+ var camelCase = function camelCase(name) {
129
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
130
+ return offset ? letter.toUpperCase() : letter;
131
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
132
+ };
133
+
134
+ /* istanbul ignore next */
135
+ var on = function () {
136
+ if (!isServer && document.addEventListener) {
137
+ return function (element, event, handler) {
138
+ if (element && event && handler) {
139
+ element.addEventListener(event, handler, false);
140
+ }
141
+ };
142
+ } else {
143
+ return function (element, event, handler) {
144
+ if (element && event && handler) {
145
+ element.attachEvent('on' + event, handler);
146
+ }
147
+ };
148
+ }
149
+ }();
150
+
151
+ /* istanbul ignore next */
152
+ var off = function () {
153
+ if (!isServer && document.removeEventListener) {
154
+ return function (element, event, handler) {
155
+ if (element && event) {
156
+ element.removeEventListener(event, handler, false);
157
+ }
158
+ };
159
+ } else {
160
+ return function (element, event, handler) {
161
+ if (element && event) {
162
+ element.detachEvent('on' + event, handler);
163
+ }
164
+ };
165
+ }
166
+ }();
167
+
168
+ /* istanbul ignore next */
169
+ var once = function once(el, event, fn) {
170
+ var listener = function listener() {
171
+ if (fn) {
172
+ fn.apply(this, arguments);
173
+ }
174
+ off(el, event, listener);
175
+ };
176
+ on(el, event, listener);
177
+ };
178
+
179
+ /* istanbul ignore next */
180
+ function hasClass(el, cls) {
181
+ if (!el || !cls) return false;
182
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
183
+ if (el.classList) {
184
+ return el.classList.contains(cls);
185
+ } else {
186
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
187
+ }
188
+ };
189
+
190
+ /* istanbul ignore next */
191
+ function addClass(el, cls) {
192
+ if (!el) return;
193
+ var curClass = el.className;
194
+ var classes = (cls || '').split(' ');
195
+
196
+ for (var i = 0, j = classes.length; i < j; i++) {
197
+ var clsName = classes[i];
198
+ if (!clsName) continue;
199
+
200
+ if (el.classList) {
201
+ el.classList.add(clsName);
202
+ } else if (!hasClass(el, clsName)) {
203
+ curClass += ' ' + clsName;
204
+ }
205
+ }
206
+ if (!el.classList) {
207
+ el.setAttribute('class', curClass);
208
+ }
209
+ };
210
+
211
+ /* istanbul ignore next */
212
+ function removeClass(el, cls) {
213
+ if (!el || !cls) return;
214
+ var classes = cls.split(' ');
215
+ var curClass = ' ' + el.className + ' ';
216
+
217
+ for (var i = 0, j = classes.length; i < j; i++) {
218
+ var clsName = classes[i];
219
+ if (!clsName) continue;
220
+
221
+ if (el.classList) {
222
+ el.classList.remove(clsName);
223
+ } else if (hasClass(el, clsName)) {
224
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
225
+ }
226
+ }
227
+ if (!el.classList) {
228
+ el.setAttribute('class', trim(curClass));
229
+ }
230
+ };
231
+
232
+ /* istanbul ignore next */
233
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
234
+ if (isServer) return;
235
+ if (!element || !styleName) return null;
236
+ styleName = camelCase(styleName);
237
+ if (styleName === 'float') {
238
+ styleName = 'styleFloat';
239
+ }
240
+ try {
241
+ switch (styleName) {
242
+ case 'opacity':
243
+ try {
244
+ return element.filters.item('alpha').opacity / 100;
245
+ } catch (e) {
246
+ return 1.0;
247
+ }
248
+ default:
249
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
250
+ }
251
+ } catch (e) {
252
+ return element.style[styleName];
253
+ }
254
+ } : function (element, styleName) {
255
+ if (isServer) return;
256
+ if (!element || !styleName) return null;
257
+ styleName = camelCase(styleName);
258
+ if (styleName === 'float') {
259
+ styleName = 'cssFloat';
260
+ }
261
+ try {
262
+ var computed = document.defaultView.getComputedStyle(element, '');
263
+ return element.style[styleName] || computed ? computed[styleName] : null;
264
+ } catch (e) {
265
+ return element.style[styleName];
266
+ }
267
+ };
268
+
269
+ /* istanbul ignore next */
270
+ function setStyle(element, styleName, value) {
271
+ if (!element || !styleName) return;
272
+
273
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
274
+ for (var prop in styleName) {
275
+ if (styleName.hasOwnProperty(prop)) {
276
+ setStyle(element, prop, styleName[prop]);
277
+ }
278
+ }
279
+ } else {
280
+ styleName = camelCase(styleName);
281
+ if (styleName === 'opacity' && ieVersion < 9) {
282
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
283
+ } else {
284
+ element.style[styleName] = value;
285
+ }
286
+ }
287
+ };
288
+
289
+ var isScroll = function isScroll(el, vertical) {
290
+ if (isServer) return;
291
+
292
+ var determinedDirection = vertical !== null && vertical !== undefined;
293
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
294
+
295
+ return overflow.match(/(scroll|auto|overlay)/);
296
+ };
297
+
298
+ var getScrollContainer = function getScrollContainer(el, vertical) {
299
+ if (isServer) return;
300
+
301
+ var parent = el;
302
+ while (parent) {
303
+ if ([window, document, document.documentElement].includes(parent)) {
304
+ return window;
305
+ }
306
+ if (isScroll(parent, vertical)) {
307
+ return parent;
308
+ }
309
+ parent = parent.parentNode;
310
+ }
311
+
312
+ return parent;
313
+ };
314
+
315
+ var isInContainer = function isInContainer(el, container) {
316
+ if (isServer || !el || !container) return false;
317
+
318
+ var elRect = el.getBoundingClientRect();
319
+ var containerRect = void 0;
320
+
321
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
322
+ containerRect = {
323
+ top: 0,
324
+ right: window.innerWidth,
325
+ bottom: window.innerHeight,
326
+ left: 0
327
+ };
328
+ } else {
329
+ containerRect = container.getBoundingClientRect();
330
+ }
331
+
332
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
333
+ };
334
+
335
+ /***/ }),
336
+ /* 2 */
337
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
338
+
339
+ "use strict";
340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
341
+ /* globals __VUE_SSR_CONTEXT__ */
342
+
343
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
344
+ // This module is a runtime utility for cleaner component module output and will
345
+ // be included in the final webpack user bundle.
346
+
347
+ function normalizeComponent(
348
+ scriptExports,
349
+ render,
350
+ staticRenderFns,
351
+ functionalTemplate,
352
+ injectStyles,
353
+ scopeId,
354
+ moduleIdentifier /* server only */,
355
+ shadowMode /* vue-cli only */
356
+ ) {
357
+ // Vue.extend constructor export interop
358
+ var options =
359
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
360
+
361
+ // render functions
362
+ if (render) {
363
+ options.render = render
364
+ options.staticRenderFns = staticRenderFns
365
+ options._compiled = true
366
+ }
367
+
368
+ // functional template
369
+ if (functionalTemplate) {
370
+ options.functional = true
371
+ }
372
+
373
+ // scopedId
374
+ if (scopeId) {
375
+ options._scopeId = 'data-v-' + scopeId
376
+ }
377
+
378
+ var hook
379
+ if (moduleIdentifier) {
380
+ // server build
381
+ hook = function (context) {
382
+ // 2.3 injection
383
+ context =
384
+ context || // cached call
385
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
386
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
387
+ // 2.2 with runInNewContext: true
388
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
389
+ context = __VUE_SSR_CONTEXT__
390
+ }
391
+ // inject component styles
392
+ if (injectStyles) {
393
+ injectStyles.call(this, context)
394
+ }
395
+ // register component module identifier for async chunk inferrence
396
+ if (context && context._registeredComponents) {
397
+ context._registeredComponents.add(moduleIdentifier)
398
+ }
399
+ }
400
+ // used by ssr in case component is cached and beforeCreate
401
+ // never gets called
402
+ options._ssrRegister = hook
403
+ } else if (injectStyles) {
404
+ hook = shadowMode
405
+ ? function () {
406
+ injectStyles.call(
407
+ this,
408
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
409
+ )
410
+ }
411
+ : injectStyles
412
+ }
413
+
414
+ if (hook) {
415
+ if (options.functional) {
416
+ // for template-only hot-reload because in that case the render fn doesn't
417
+ // go through the normalizer
418
+ options._injectStyles = hook
419
+ // register for functional component in vue file
420
+ var originalRender = options.render
421
+ options.render = function renderWithStyleInjection(h, context) {
422
+ hook.call(context)
423
+ return originalRender(h, context)
424
+ }
425
+ } else {
426
+ // inject component registration as beforeCreate hook
427
+ var existing = options.beforeCreate
428
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
429
+ }
430
+ }
431
+
432
+ return {
433
+ exports: scriptExports,
434
+ options: options
435
+ }
436
+ }
437
+
438
+
439
+ /***/ }),
440
+ /* 3 */
441
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
442
+
443
+ "use strict";
444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
448
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
453
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
461
+ /* unused harmony export looseEqual */
462
+ /* unused harmony export arrayEquals */
463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
466
+ /* unused harmony export objToArray */
467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
468
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
469
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
470
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
471
+ 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; };
472
+
473
+
474
+
475
+
476
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
477
+
478
+ function noop() {};
479
+
480
+ function hasOwn(obj, key) {
481
+ return hasOwnProperty.call(obj, key);
482
+ };
483
+
484
+ function extend(to, _from) {
485
+ for (var key in _from) {
486
+ to[key] = _from[key];
487
+ }
488
+ return to;
489
+ };
490
+
491
+ function toObject(arr) {
492
+ var res = {};
493
+ for (var i = 0; i < arr.length; i++) {
494
+ if (arr[i]) {
495
+ extend(res, arr[i]);
496
+ }
497
+ }
498
+ return res;
499
+ };
500
+
501
+ var getValueByPath = function getValueByPath(object, prop) {
502
+ prop = prop || '';
503
+ var paths = prop.split('.');
504
+ var current = object;
505
+ var result = null;
506
+ for (var i = 0, j = paths.length; i < j; i++) {
507
+ var path = paths[i];
508
+ if (!current) break;
509
+
510
+ if (i === j - 1) {
511
+ result = current[path];
512
+ break;
513
+ }
514
+ current = current[path];
515
+ }
516
+ return result;
517
+ };
518
+
519
+ function getPropByPath(obj, path, strict) {
520
+ var tempObj = obj;
521
+ path = path.replace(/\[(\w+)\]/g, '.$1');
522
+ path = path.replace(/^\./, '');
523
+
524
+ var keyArr = path.split('.');
525
+ var i = 0;
526
+ for (var len = keyArr.length; i < len - 1; ++i) {
527
+ if (!tempObj && !strict) break;
528
+ var key = keyArr[i];
529
+ if (key in tempObj) {
530
+ tempObj = tempObj[key];
531
+ } else {
532
+ if (strict) {
533
+ throw new Error('please transfer a valid prop path to form item!');
534
+ }
535
+ break;
536
+ }
537
+ }
538
+ return {
539
+ o: tempObj,
540
+ k: keyArr[i],
541
+ v: tempObj ? tempObj[keyArr[i]] : null
542
+ };
543
+ };
544
+
545
+ var generateId = function generateId() {
546
+ return Math.floor(Math.random() * 10000);
547
+ };
548
+
549
+ var valueEquals = function valueEquals(a, b) {
550
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
551
+ if (a === b) return true;
552
+ if (!(a instanceof Array)) return false;
553
+ if (!(b instanceof Array)) return false;
554
+ if (a.length !== b.length) return false;
555
+ for (var i = 0; i !== a.length; ++i) {
556
+ if (a[i] !== b[i]) return false;
557
+ }
558
+ return true;
559
+ };
560
+
561
+ var escapeRegexpString = function escapeRegexpString() {
562
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
563
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
564
+ };
565
+
566
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
567
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
568
+ for (var i = 0; i !== arr.length; ++i) {
569
+ if (pred(arr[i])) {
570
+ return i;
571
+ }
572
+ }
573
+ return -1;
574
+ };
575
+
576
+ var arrayFind = function arrayFind(arr, pred) {
577
+ var idx = arrayFindIndex(arr, pred);
578
+ return idx !== -1 ? arr[idx] : undefined;
579
+ };
580
+
581
+ // coerce truthy value to array
582
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
583
+ if (Array.isArray(val)) {
584
+ return val;
585
+ } else if (val) {
586
+ return [val];
587
+ } else {
588
+ return [];
589
+ }
590
+ };
591
+
592
+ var isIE = function isIE() {
593
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
594
+ };
595
+
596
+ var isEdge = function isEdge() {
597
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
598
+ };
599
+
600
+ var isFirefox = function isFirefox() {
601
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
602
+ };
603
+
604
+ var autoprefixer = function autoprefixer(style) {
605
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
606
+ var rules = ['transform', 'transition', 'animation'];
607
+ var prefixes = ['ms-', 'webkit-'];
608
+ rules.forEach(function (rule) {
609
+ var value = style[rule];
610
+ if (rule && value) {
611
+ prefixes.forEach(function (prefix) {
612
+ style[prefix + rule] = value;
613
+ });
614
+ }
615
+ });
616
+ return style;
617
+ };
618
+
619
+ var kebabCase = function kebabCase(str) {
620
+ var hyphenateRE = /([^-])([A-Z])/g;
621
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
622
+ };
623
+
624
+ var capitalize = function capitalize(str) {
625
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
626
+ return str.charAt(0).toUpperCase() + str.slice(1);
627
+ };
628
+
629
+ var looseEqual = function looseEqual(a, b) {
630
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
631
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
632
+ if (isObjectA && isObjectB) {
633
+ return JSON.stringify(a) === JSON.stringify(b);
634
+ } else if (!isObjectA && !isObjectB) {
635
+ return String(a) === String(b);
636
+ } else {
637
+ return false;
638
+ }
639
+ };
640
+
641
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
642
+ arrayA = arrayA || [];
643
+ arrayB = arrayB || [];
644
+
645
+ if (arrayA.length !== arrayB.length) {
646
+ return false;
647
+ }
648
+
649
+ for (var i = 0; i < arrayA.length; i++) {
650
+ if (!looseEqual(arrayA[i], arrayB[i])) {
651
+ return false;
652
+ }
653
+ }
654
+
655
+ return true;
656
+ };
657
+
658
+ var isEqual = function isEqual(value1, value2) {
659
+ if (Array.isArray(value1) && Array.isArray(value2)) {
660
+ return arrayEquals(value1, value2);
661
+ }
662
+ return looseEqual(value1, value2);
663
+ };
664
+
665
+ var isEmpty = function isEmpty(val) {
666
+ // null or undefined
667
+ if (val == null) return true;
668
+
669
+ if (typeof val === 'boolean') return false;
670
+
671
+ if (typeof val === 'number') return !val;
672
+
673
+ if (val instanceof Error) return val.message === '';
674
+
675
+ switch (Object.prototype.toString.call(val)) {
676
+ // String or Array
677
+ case '[object String]':
678
+ case '[object Array]':
679
+ return !val.length;
680
+
681
+ // Map or Set or File
682
+ case '[object File]':
683
+ case '[object Map]':
684
+ case '[object Set]':
685
+ {
686
+ return !val.size;
687
+ }
688
+ // Plain Object
689
+ case '[object Object]':
690
+ {
691
+ return !Object.keys(val).length;
692
+ }
693
+ }
694
+
695
+ return false;
696
+ };
697
+
698
+ function rafThrottle(fn) {
699
+ var locked = false;
700
+ return function () {
701
+ var _this = this;
702
+
703
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
704
+ args[_key] = arguments[_key];
705
+ }
706
+
707
+ if (locked) return;
708
+ locked = true;
709
+ window.requestAnimationFrame(function (_) {
710
+ fn.apply(_this, args);
711
+ locked = false;
712
+ });
713
+ };
714
+ }
715
+
716
+ function objToArray(obj) {
717
+ if (Array.isArray(obj)) {
718
+ return obj;
719
+ }
720
+ return isEmpty(obj) ? [] : [obj];
721
+ }
722
+
723
+ var isMac = function isMac() {
724
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
725
+ };
726
+
727
+ /***/ }),
728
+ /* 4 */
729
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
730
+
731
+ "use strict";
732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
738
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
739
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
740
+ 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; };
741
+
742
+
743
+
744
+ function isString(obj) {
745
+ return Object.prototype.toString.call(obj) === '[object String]';
746
+ }
747
+
748
+ function isObject(obj) {
749
+ return Object.prototype.toString.call(obj) === '[object Object]';
750
+ }
751
+
752
+ function isHtmlElement(node) {
753
+ return node && node.nodeType === Node.ELEMENT_NODE;
754
+ }
755
+
756
+ /**
757
+ * - Inspired:
758
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
759
+ */
760
+ var isFunction = function isFunction(functionToCheck) {
761
+ var getType = {};
762
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
763
+ };
764
+
765
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
766
+ isFunction = function isFunction(obj) {
767
+ return typeof obj === 'function' || false;
768
+ };
769
+ }
770
+
771
+
772
+
773
+ var isUndefined = function isUndefined(val) {
774
+ return val === void 0;
775
+ };
776
+
777
+ var isDefined = function isDefined(val) {
778
+ return val !== undefined && val !== null;
779
+ };
780
+
781
+ /***/ }),
782
+ /* 5 */,
783
+ /* 6 */
784
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
785
+
786
+ "use strict";
787
+ function _broadcast(componentName, eventName, params) {
788
+ this.$children.forEach(function (child) {
789
+ var name = child.$options.componentName;
790
+
791
+ if (name === componentName) {
792
+ child.$emit.apply(child, [eventName].concat(params));
793
+ } else {
794
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
795
+ }
796
+ });
797
+ }
798
+ /* harmony default export */ __webpack_exports__["a"] = ({
799
+ methods: {
800
+ dispatch: function dispatch(componentName, eventName, params) {
801
+ var parent = this.$parent || this.$root;
802
+ var name = parent.$options.componentName;
803
+
804
+ while (parent && (!name || name !== componentName)) {
805
+ parent = parent.$parent;
806
+
807
+ if (parent) {
808
+ name = parent.$options.componentName;
809
+ }
810
+ }
811
+ if (parent) {
812
+ parent.$emit.apply(parent, [eventName].concat(params));
813
+ }
814
+ },
815
+ broadcast: function broadcast(componentName, eventName, params) {
816
+ _broadcast.call(this, componentName, eventName, params);
817
+ }
818
+ }
819
+ });
820
+
821
+ /***/ }),
822
+ /* 7 */
823
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
824
+
825
+ "use strict";
826
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
827
+ for (var i = 1, j = arguments.length; i < j; i++) {
828
+ var source = arguments[i] || {};
829
+ for (var prop in source) {
830
+ if (source.hasOwnProperty(prop)) {
831
+ var value = source[prop];
832
+ if (value !== undefined) {
833
+ target[prop] = value;
834
+ }
835
+ }
836
+ }
837
+ }
838
+
839
+ return target;
840
+ });;
841
+
842
+ /***/ }),
843
+ /* 8 */
844
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
845
+
846
+ "use strict";
847
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
848
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
849
+
850
+
851
+ var scrollBarWidth = void 0;
852
+
853
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
854
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
855
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
856
+
857
+ var outer = document.createElement('div');
858
+ outer.className = 'el-scrollbar__wrap';
859
+ outer.style.visibility = 'hidden';
860
+ outer.style.width = '100px';
861
+ outer.style.position = 'absolute';
862
+ outer.style.top = '-9999px';
863
+ document.body.appendChild(outer);
864
+
865
+ var widthNoScroll = outer.offsetWidth;
866
+ outer.style.overflow = 'scroll';
867
+
868
+ var inner = document.createElement('div');
869
+ inner.style.width = '100%';
870
+ outer.appendChild(inner);
871
+
872
+ var widthWithScroll = inner.offsetWidth;
873
+ outer.parentNode.removeChild(outer);
874
+ scrollBarWidth = widthNoScroll - widthWithScroll;
875
+
876
+ return scrollBarWidth;
877
+ });;
878
+
879
+ /***/ }),
880
+ /* 9 */
881
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
882
+
883
+ "use strict";
884
+
885
+ // EXPORTS
886
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
887
+
888
+ // EXTERNAL MODULE: external "vue"
889
+ var external_vue_ = __webpack_require__(0);
890
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
891
+
892
+ // EXTERNAL MODULE: ./src/utils/merge.js
893
+ var merge = __webpack_require__(7);
894
+
895
+ // EXTERNAL MODULE: ./src/utils/dom.js
896
+ var utils_dom = __webpack_require__(1);
897
+
898
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
899
+
900
+
901
+
902
+ var hasModal = false;
903
+ var hasInitZIndex = false;
904
+ var popup_manager_zIndex = void 0;
905
+
906
+ var popup_manager_getModal = function getModal() {
907
+ if (external_vue_default.a.prototype.$isServer) return;
908
+ var modalDom = PopupManager.modalDom;
909
+ if (modalDom) {
910
+ hasModal = true;
911
+ } else {
912
+ hasModal = false;
913
+ modalDom = document.createElement('div');
914
+ PopupManager.modalDom = modalDom;
915
+
916
+ modalDom.addEventListener('touchmove', function (event) {
917
+ event.preventDefault();
918
+ event.stopPropagation();
919
+ });
920
+
921
+ modalDom.addEventListener('click', function () {
922
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
923
+ });
924
+ }
925
+
926
+ return modalDom;
927
+ };
928
+
929
+ var instances = {};
930
+
931
+ var PopupManager = {
932
+ modalFade: true,
933
+
934
+ getInstance: function getInstance(id) {
935
+ return instances[id];
936
+ },
937
+
938
+ register: function register(id, instance) {
939
+ if (id && instance) {
940
+ instances[id] = instance;
941
+ }
942
+ },
943
+
944
+ deregister: function deregister(id) {
945
+ if (id) {
946
+ instances[id] = null;
947
+ delete instances[id];
948
+ }
949
+ },
950
+
951
+ nextZIndex: function nextZIndex() {
952
+ return PopupManager.zIndex++;
953
+ },
954
+
955
+ modalStack: [],
956
+
957
+ doOnModalClick: function doOnModalClick() {
958
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
959
+ if (!topItem) return;
960
+
961
+ var instance = PopupManager.getInstance(topItem.id);
962
+ if (instance && instance.closeOnClickModal) {
963
+ instance.close();
964
+ }
965
+ },
966
+
967
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
968
+ if (external_vue_default.a.prototype.$isServer) return;
969
+ if (!id || zIndex === undefined) return;
970
+ this.modalFade = modalFade;
971
+
972
+ var modalStack = this.modalStack;
973
+
974
+ for (var i = 0, j = modalStack.length; i < j; i++) {
975
+ var item = modalStack[i];
976
+ if (item.id === id) {
977
+ return;
978
+ }
979
+ }
980
+
981
+ var modalDom = popup_manager_getModal();
982
+
983
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
984
+ if (this.modalFade && !hasModal) {
985
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
986
+ }
987
+ if (modalClass) {
988
+ var classArr = modalClass.trim().split(/\s+/);
989
+ classArr.forEach(function (item) {
990
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
991
+ });
992
+ }
993
+ setTimeout(function () {
994
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
995
+ }, 200);
996
+
997
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
998
+ dom.parentNode.appendChild(modalDom);
999
+ } else {
1000
+ document.body.appendChild(modalDom);
1001
+ }
1002
+
1003
+ if (zIndex) {
1004
+ modalDom.style.zIndex = zIndex;
1005
+ }
1006
+ modalDom.tabIndex = 0;
1007
+ modalDom.style.display = '';
1008
+
1009
+ this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
1010
+ },
1011
+
1012
+ closeModal: function closeModal(id) {
1013
+ var modalStack = this.modalStack;
1014
+ var modalDom = popup_manager_getModal();
1015
+
1016
+ if (modalStack.length > 0) {
1017
+ var topItem = modalStack[modalStack.length - 1];
1018
+ if (topItem.id === id) {
1019
+ if (topItem.modalClass) {
1020
+ var classArr = topItem.modalClass.trim().split(/\s+/);
1021
+ classArr.forEach(function (item) {
1022
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1023
+ });
1024
+ }
1025
+
1026
+ modalStack.pop();
1027
+ if (modalStack.length > 0) {
1028
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1029
+ }
1030
+ } else {
1031
+ for (var i = modalStack.length - 1; i >= 0; i--) {
1032
+ if (modalStack[i].id === id) {
1033
+ modalStack.splice(i, 1);
1034
+ break;
1035
+ }
1036
+ }
1037
+ }
1038
+ }
1039
+
1040
+ if (modalStack.length === 0) {
1041
+ if (this.modalFade) {
1042
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1043
+ }
1044
+ setTimeout(function () {
1045
+ if (modalStack.length === 0) {
1046
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1047
+ modalDom.style.display = 'none';
1048
+ PopupManager.modalDom = undefined;
1049
+ }
1050
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1051
+ }, 200);
1052
+ }
1053
+ }
1054
+ };
1055
+
1056
+ Object.defineProperty(PopupManager, 'zIndex', {
1057
+ configurable: true,
1058
+ get: function get() {
1059
+ if (!hasInitZIndex) {
1060
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1061
+ hasInitZIndex = true;
1062
+ }
1063
+ return popup_manager_zIndex;
1064
+ },
1065
+ set: function set(value) {
1066
+ popup_manager_zIndex = value;
1067
+ }
1068
+ });
1069
+
1070
+ var popup_manager_getTopPopup = function getTopPopup() {
1071
+ if (external_vue_default.a.prototype.$isServer) return;
1072
+ if (PopupManager.modalStack.length > 0) {
1073
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1074
+ if (!topPopup) return;
1075
+ var instance = PopupManager.getInstance(topPopup.id);
1076
+
1077
+ return instance;
1078
+ }
1079
+ };
1080
+
1081
+ if (!external_vue_default.a.prototype.$isServer) {
1082
+ // handle `esc` key when the popup is shown
1083
+ window.addEventListener('keydown', function (event) {
1084
+ if (event.keyCode === 27) {
1085
+ var topPopup = popup_manager_getTopPopup();
1086
+
1087
+ if (topPopup && topPopup.closeOnPressEscape) {
1088
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1089
+ }
1090
+ }
1091
+ });
1092
+ }
1093
+
1094
+ /* harmony default export */ var popup_manager = (PopupManager);
1095
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1096
+ var scrollbar_width = __webpack_require__(8);
1097
+
1098
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+ var idSeed = 1;
1106
+
1107
+ var scrollBarWidth = void 0;
1108
+
1109
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1110
+ props: {
1111
+ visible: {
1112
+ type: Boolean,
1113
+ default: false
1114
+ },
1115
+ openDelay: {},
1116
+ closeDelay: {},
1117
+ zIndex: {},
1118
+ modal: {
1119
+ type: Boolean,
1120
+ default: false
1121
+ },
1122
+ modalFade: {
1123
+ type: Boolean,
1124
+ default: true
1125
+ },
1126
+ modalClass: {},
1127
+ modalAppendToBody: {
1128
+ type: Boolean,
1129
+ default: false
1130
+ },
1131
+ lockScroll: {
1132
+ type: Boolean,
1133
+ default: true
1134
+ },
1135
+ closeOnPressEscape: {
1136
+ type: Boolean,
1137
+ default: false
1138
+ },
1139
+ closeOnClickModal: {
1140
+ type: Boolean,
1141
+ default: false
1142
+ }
1143
+ },
1144
+
1145
+ beforeMount: function beforeMount() {
1146
+ this._popupId = 'popup-' + idSeed++;
1147
+ popup_manager.register(this._popupId, this);
1148
+ },
1149
+ beforeDestroy: function beforeDestroy() {
1150
+ popup_manager.deregister(this._popupId);
1151
+ popup_manager.closeModal(this._popupId);
1152
+
1153
+ this.restoreBodyStyle();
1154
+ },
1155
+ data: function data() {
1156
+ return {
1157
+ opened: false,
1158
+ bodyPaddingRight: null,
1159
+ computedBodyPaddingRight: 0,
1160
+ withoutHiddenClass: true,
1161
+ rendered: false
1162
+ };
1163
+ },
1164
+
1165
+
1166
+ watch: {
1167
+ visible: function visible(val) {
1168
+ var _this = this;
1169
+
1170
+ if (val) {
1171
+ if (this._opening) return;
1172
+ if (!this.rendered) {
1173
+ this.rendered = true;
1174
+ external_vue_default.a.nextTick(function () {
1175
+ _this.open();
1176
+ });
1177
+ } else {
1178
+ this.open();
1179
+ }
1180
+ } else {
1181
+ this.close();
1182
+ }
1183
+ }
1184
+ },
1185
+
1186
+ methods: {
1187
+ open: function open(options) {
1188
+ var _this2 = this;
1189
+
1190
+ if (!this.rendered) {
1191
+ this.rendered = true;
1192
+ }
1193
+
1194
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1195
+
1196
+ if (this._closeTimer) {
1197
+ clearTimeout(this._closeTimer);
1198
+ this._closeTimer = null;
1199
+ }
1200
+ clearTimeout(this._openTimer);
1201
+
1202
+ var openDelay = Number(props.openDelay);
1203
+ if (openDelay > 0) {
1204
+ this._openTimer = setTimeout(function () {
1205
+ _this2._openTimer = null;
1206
+ _this2.doOpen(props);
1207
+ }, openDelay);
1208
+ } else {
1209
+ this.doOpen(props);
1210
+ }
1211
+ },
1212
+ doOpen: function doOpen(props) {
1213
+ if (this.$isServer) return;
1214
+ if (this.willOpen && !this.willOpen()) return;
1215
+ if (this.opened) return;
1216
+
1217
+ this._opening = true;
1218
+
1219
+ var dom = this.$el;
1220
+
1221
+ var modal = props.modal;
1222
+
1223
+ var zIndex = props.zIndex;
1224
+ if (zIndex) {
1225
+ popup_manager.zIndex = zIndex;
1226
+ }
1227
+
1228
+ if (modal) {
1229
+ if (this._closing) {
1230
+ popup_manager.closeModal(this._popupId);
1231
+ this._closing = false;
1232
+ }
1233
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1234
+ if (props.lockScroll) {
1235
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1236
+ if (this.withoutHiddenClass) {
1237
+ this.bodyPaddingRight = document.body.style.paddingRight;
1238
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1239
+ }
1240
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1241
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1242
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1243
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1244
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1245
+ }
1246
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1247
+ }
1248
+ }
1249
+
1250
+ if (getComputedStyle(dom).position === 'static') {
1251
+ dom.style.position = 'absolute';
1252
+ }
1253
+
1254
+ dom.style.zIndex = popup_manager.nextZIndex();
1255
+ this.opened = true;
1256
+
1257
+ this.onOpen && this.onOpen();
1258
+
1259
+ this.doAfterOpen();
1260
+ },
1261
+ doAfterOpen: function doAfterOpen() {
1262
+ this._opening = false;
1263
+ },
1264
+ close: function close() {
1265
+ var _this3 = this;
1266
+
1267
+ if (this.willClose && !this.willClose()) return;
1268
+
1269
+ if (this._openTimer !== null) {
1270
+ clearTimeout(this._openTimer);
1271
+ this._openTimer = null;
1272
+ }
1273
+ clearTimeout(this._closeTimer);
1274
+
1275
+ var closeDelay = Number(this.closeDelay);
1276
+
1277
+ if (closeDelay > 0) {
1278
+ this._closeTimer = setTimeout(function () {
1279
+ _this3._closeTimer = null;
1280
+ _this3.doClose();
1281
+ }, closeDelay);
1282
+ } else {
1283
+ this.doClose();
1284
+ }
1285
+ },
1286
+ doClose: function doClose() {
1287
+ this._closing = true;
1288
+
1289
+ this.onClose && this.onClose();
1290
+
1291
+ if (this.lockScroll) {
1292
+ setTimeout(this.restoreBodyStyle, 200);
1293
+ }
1294
+
1295
+ this.opened = false;
1296
+
1297
+ this.doAfterClose();
1298
+ },
1299
+ doAfterClose: function doAfterClose() {
1300
+ popup_manager.closeModal(this._popupId);
1301
+ this._closing = false;
1302
+ },
1303
+ restoreBodyStyle: function restoreBodyStyle() {
1304
+ if (this.modal && this.withoutHiddenClass) {
1305
+ document.body.style.paddingRight = this.bodyPaddingRight;
1306
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1307
+ }
1308
+ this.withoutHiddenClass = true;
1309
+ }
1310
+ }
1311
+ });
1312
+
1313
+
1314
+
1315
+ /***/ }),
1316
+ /* 10 */
1317
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1318
+
1319
+ "use strict";
1320
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1321
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1322
+ /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
1323
+
1324
+
1325
+
1326
+ var PopperJS = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer ? function () {} : __webpack_require__(23);
1327
+ var stop = function stop(e) {
1328
+ return e.stopPropagation();
1329
+ };
1330
+
1331
+ /**
1332
+ * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
1333
+ * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
1334
+ * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
1335
+ * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
1336
+ * @param {Boolean} [visible=false] Visibility of the popup element.
1337
+ * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
1338
+ */
1339
+ /* harmony default export */ __webpack_exports__["a"] = ({
1340
+ props: {
1341
+ transformOrigin: {
1342
+ type: [Boolean, String],
1343
+ default: true
1344
+ },
1345
+ placement: {
1346
+ type: String,
1347
+ default: 'bottom'
1348
+ },
1349
+ boundariesPadding: {
1350
+ type: Number,
1351
+ default: 5
1352
+ },
1353
+ reference: {},
1354
+ popper: {},
1355
+ offset: {
1356
+ default: 0
1357
+ },
1358
+ value: Boolean,
1359
+ visibleArrow: Boolean,
1360
+ arrowOffset: {
1361
+ type: Number,
1362
+ default: 35
1363
+ },
1364
+ appendToBody: {
1365
+ type: Boolean,
1366
+ default: true
1367
+ },
1368
+ popperOptions: {
1369
+ type: Object,
1370
+ default: function _default() {
1371
+ return {
1372
+ gpuAcceleration: false
1373
+ };
1374
+ }
1375
+ }
1376
+ },
1377
+
1378
+ data: function data() {
1379
+ return {
1380
+ showPopper: false,
1381
+ currentPlacement: ''
1382
+ };
1383
+ },
1384
+
1385
+
1386
+ watch: {
1387
+ value: {
1388
+ immediate: true,
1389
+ handler: function handler(val) {
1390
+ this.showPopper = val;
1391
+ this.$emit('input', val);
1392
+ }
1393
+ },
1394
+
1395
+ showPopper: function showPopper(val) {
1396
+ if (this.disabled) return;
1397
+ val ? this.updatePopper() : this.destroyPopper();
1398
+ this.$emit('input', val);
1399
+ }
1400
+ },
1401
+
1402
+ methods: {
1403
+ createPopper: function createPopper() {
1404
+ var _this = this;
1405
+
1406
+ if (this.$isServer) return;
1407
+ this.currentPlacement = this.currentPlacement || this.placement;
1408
+ if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
1409
+ return;
1410
+ }
1411
+
1412
+ var options = this.popperOptions;
1413
+ var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
1414
+ var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
1415
+
1416
+ if (!reference && this.$slots.reference && this.$slots.reference[0]) {
1417
+ reference = this.referenceElm = this.$slots.reference[0].elm;
1418
+ }
1419
+
1420
+ if (!popper || !reference) return;
1421
+ if (this.visibleArrow) this.appendArrow(popper);
1422
+ if (this.appendToBody) document.body.appendChild(this.popperElm);
1423
+ if (this.popperJS && this.popperJS.destroy) {
1424
+ this.popperJS.destroy();
1425
+ }
1426
+
1427
+ options.placement = this.currentPlacement;
1428
+ options.offset = this.offset;
1429
+ options.arrowOffset = this.arrowOffset;
1430
+ this.popperJS = new PopperJS(reference, popper, options);
1431
+ this.popperJS.onCreate(function (_) {
1432
+ _this.$emit('created', _this);
1433
+ _this.resetTransformOrigin();
1434
+ _this.$nextTick(_this.updatePopper);
1435
+ });
1436
+ if (typeof options.onUpdate === 'function') {
1437
+ this.popperJS.onUpdate(options.onUpdate);
1438
+ }
1439
+ this.popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_1__[/* PopupManager */ "a"].nextZIndex();
1440
+ this.popperElm.addEventListener('click', stop);
1441
+ },
1442
+ updatePopper: function updatePopper() {
1443
+ var popperJS = this.popperJS;
1444
+ if (popperJS) {
1445
+ popperJS.update();
1446
+ if (popperJS._popper) {
1447
+ popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_1__[/* PopupManager */ "a"].nextZIndex();
1448
+ }
1449
+ } else {
1450
+ this.createPopper();
1451
+ }
1452
+ },
1453
+ doDestroy: function doDestroy(forceDestroy) {
1454
+ /* istanbul ignore if */
1455
+ if (!this.popperJS || this.showPopper && !forceDestroy) return;
1456
+ this.popperJS.destroy();
1457
+ this.popperJS = null;
1458
+ },
1459
+ destroyPopper: function destroyPopper() {
1460
+ if (this.popperJS) {
1461
+ this.resetTransformOrigin();
1462
+ }
1463
+ },
1464
+ resetTransformOrigin: function resetTransformOrigin() {
1465
+ if (!this.transformOrigin) return;
1466
+ var placementMap = {
1467
+ top: 'bottom',
1468
+ bottom: 'top',
1469
+ left: 'right',
1470
+ right: 'left'
1471
+ };
1472
+ var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
1473
+ var origin = placementMap[placement];
1474
+ this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? 'center ' + origin : origin + ' center';
1475
+ },
1476
+ appendArrow: function appendArrow(element) {
1477
+ var hash = void 0;
1478
+ if (this.appended) {
1479
+ return;
1480
+ }
1481
+
1482
+ this.appended = true;
1483
+
1484
+ for (var item in element.attributes) {
1485
+ if (/^_v-/.test(element.attributes[item].name)) {
1486
+ hash = element.attributes[item].name;
1487
+ break;
1488
+ }
1489
+ }
1490
+
1491
+ var arrow = document.createElement('div');
1492
+
1493
+ if (hash) {
1494
+ arrow.setAttribute(hash, '');
1495
+ }
1496
+ arrow.setAttribute('x-arrow', '');
1497
+ arrow.className = 'popper__arrow';
1498
+ element.appendChild(arrow);
1499
+ }
1500
+ },
1501
+
1502
+ beforeDestroy: function beforeDestroy() {
1503
+ this.doDestroy(true);
1504
+ if (this.popperElm && this.popperElm.parentNode === document.body) {
1505
+ this.popperElm.removeEventListener('click', stop);
1506
+ document.body.removeChild(this.popperElm);
1507
+ }
1508
+ },
1509
+
1510
+
1511
+ // call destroy in keep-alive mode
1512
+ deactivated: function deactivated() {
1513
+ this.$options.beforeDestroy[0].call(this);
1514
+ }
1515
+ });
1516
+
1517
+ /***/ }),
1518
+ /* 11 */,
1519
+ /* 12 */
1520
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1521
+
1522
+ "use strict";
1523
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
1524
+
1525
+ /**
1526
+ * Show migrating guide in browser console.
1527
+ *
1528
+ * Usage:
1529
+ * import Migrating from 'element-ui/src/mixins/migrating';
1530
+ *
1531
+ * mixins: [Migrating]
1532
+ *
1533
+ * add getMigratingConfig method for your component.
1534
+ * getMigratingConfig() {
1535
+ * return {
1536
+ * props: {
1537
+ * 'allow-no-selection': 'allow-no-selection is removed.',
1538
+ * 'selection-mode': 'selection-mode is removed.'
1539
+ * },
1540
+ * events: {
1541
+ * selectionchange: 'selectionchange is renamed to selection-change.'
1542
+ * }
1543
+ * };
1544
+ * },
1545
+ */
1546
+ /* harmony default export */ __webpack_exports__["a"] = ({
1547
+ mounted: function mounted() {
1548
+ if (true) return;
1549
+ if (!this.$vnode) return;
1550
+
1551
+ var _getMigratingConfig = this.getMigratingConfig(),
1552
+ _getMigratingConfig$p = _getMigratingConfig.props,
1553
+ props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
1554
+ _getMigratingConfig$e = _getMigratingConfig.events,
1555
+ events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
1556
+
1557
+ var _$vnode = this.$vnode,
1558
+ data = _$vnode.data,
1559
+ componentOptions = _$vnode.componentOptions;
1560
+
1561
+ var definedProps = data.attrs || {};
1562
+ var definedEvents = componentOptions.listeners || {};
1563
+
1564
+ for (var propName in definedProps) {
1565
+ propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
1566
+ if (props[propName]) {
1567
+ console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
1568
+ }
1569
+ }
1570
+
1571
+ for (var eventName in definedEvents) {
1572
+ eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
1573
+ if (events[eventName]) {
1574
+ console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
1575
+ }
1576
+ }
1577
+ },
1578
+
1579
+ methods: {
1580
+ getMigratingConfig: function getMigratingConfig() {
1581
+ return {
1582
+ props: {},
1583
+ events: {}
1584
+ };
1585
+ }
1586
+ }
1587
+ });
1588
+
1589
+ /***/ }),
1590
+ /* 13 */,
1591
+ /* 14 */
1592
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1593
+
1594
+ "use strict";
1595
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addResizeListener; });
1596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeResizeListener; });
1597
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
1598
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__);
1599
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
1600
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__);
1601
+
1602
+
1603
+
1604
+ var isServer = typeof window === 'undefined';
1605
+
1606
+ /* istanbul ignore next */
1607
+ var resizeHandler = function resizeHandler(entries) {
1608
+ for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
1609
+ var _ref;
1610
+
1611
+ if (_isArray) {
1612
+ if (_i >= _iterator.length) break;
1613
+ _ref = _iterator[_i++];
1614
+ } else {
1615
+ _i = _iterator.next();
1616
+ if (_i.done) break;
1617
+ _ref = _i.value;
1618
+ }
1619
+
1620
+ var entry = _ref;
1621
+
1622
+ var listeners = entry.target.__resizeListeners__ || [];
1623
+ if (listeners.length) {
1624
+ listeners.forEach(function (fn) {
1625
+ fn();
1626
+ });
1627
+ }
1628
+ }
1629
+ };
1630
+
1631
+ /* istanbul ignore next */
1632
+ var addResizeListener = function addResizeListener(element, fn) {
1633
+ if (isServer) return;
1634
+ if (!element.__resizeListeners__) {
1635
+ element.__resizeListeners__ = [];
1636
+ element.__ro__ = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0___default.a(Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__["debounce"])(16, resizeHandler));
1637
+ element.__ro__.observe(element);
1638
+ }
1639
+ element.__resizeListeners__.push(fn);
1640
+ };
1641
+
1642
+ /* istanbul ignore next */
1643
+ var removeResizeListener = function removeResizeListener(element, fn) {
1644
+ if (!element || !element.__resizeListeners__) return;
1645
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
1646
+ if (!element.__resizeListeners__.length) {
1647
+ element.__ro__.disconnect();
1648
+ }
1649
+ };
1650
+
1651
+ /***/ }),
1652
+ /* 15 */,
1653
+ /* 16 */
1654
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1655
+
1656
+ "use strict";
1657
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDef; });
1658
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isKorean; });
1659
+ function isDef(val) {
1660
+ return val !== undefined && val !== null;
1661
+ }
1662
+ function isKorean(text) {
1663
+ var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
1664
+ return reg.test(text);
1665
+ }
1666
+
1667
+ /***/ }),
1668
+ /* 17 */,
1669
+ /* 18 */
1670
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1671
+
1672
+ "use strict";
1673
+ // ESM COMPAT FLAG
1674
+ __webpack_require__.r(__webpack_exports__);
1675
+
1676
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=af7512c8
1677
+ var render = function render() {
1678
+ var _vm = this,
1679
+ _c = _vm._self._c
1680
+ return _c(
1681
+ "div",
1682
+ {
1683
+ class: [
1684
+ _vm.type === "textarea" ? "el-textarea" : "el-input",
1685
+ _vm.inputSize ? "el-input--" + _vm.inputSize : "",
1686
+ {
1687
+ "is-disabled": _vm.inputDisabled,
1688
+ "is-exceed": _vm.inputExceed,
1689
+ "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
1690
+ "el-input-group--append": _vm.$slots.append,
1691
+ "el-input-group--prepend": _vm.$slots.prepend,
1692
+ "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
1693
+ "el-input--suffix":
1694
+ _vm.$slots.suffix ||
1695
+ _vm.suffixIcon ||
1696
+ _vm.clearable ||
1697
+ _vm.showPassword,
1698
+ },
1699
+ ],
1700
+ on: {
1701
+ mouseenter: function ($event) {
1702
+ _vm.hovering = true
1703
+ },
1704
+ mouseleave: function ($event) {
1705
+ _vm.hovering = false
1706
+ },
1707
+ },
1708
+ },
1709
+ [
1710
+ _vm.type !== "textarea"
1711
+ ? [
1712
+ _vm.$slots.prepend
1713
+ ? _c(
1714
+ "div",
1715
+ { staticClass: "el-input-group__prepend" },
1716
+ [_vm._t("prepend")],
1717
+ 2
1718
+ )
1719
+ : _vm._e(),
1720
+ _vm.type !== "textarea"
1721
+ ? _c(
1722
+ "input",
1723
+ _vm._b(
1724
+ {
1725
+ ref: "input",
1726
+ staticClass: "el-input__inner",
1727
+ attrs: {
1728
+ tabindex: _vm.tabindex,
1729
+ type: _vm.showPassword
1730
+ ? _vm.passwordVisible
1731
+ ? "text"
1732
+ : "password"
1733
+ : _vm.type,
1734
+ disabled: _vm.inputDisabled,
1735
+ readonly: _vm.readonly,
1736
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
1737
+ "aria-label": _vm.label,
1738
+ },
1739
+ on: {
1740
+ compositionstart: _vm.handleCompositionStart,
1741
+ compositionupdate: _vm.handleCompositionUpdate,
1742
+ compositionend: _vm.handleCompositionEnd,
1743
+ input: _vm.handleInput,
1744
+ focus: _vm.handleFocus,
1745
+ blur: _vm.handleBlur,
1746
+ change: _vm.handleChange,
1747
+ },
1748
+ },
1749
+ "input",
1750
+ _vm.$attrs,
1751
+ false
1752
+ )
1753
+ )
1754
+ : _vm._e(),
1755
+ _vm.$slots.prefix || _vm.prefixIcon
1756
+ ? _c(
1757
+ "span",
1758
+ { staticClass: "el-input__prefix" },
1759
+ [
1760
+ _vm._t("prefix"),
1761
+ _vm.prefixIcon
1762
+ ? _c("i", {
1763
+ staticClass: "el-input__icon",
1764
+ class: _vm.prefixIcon,
1765
+ })
1766
+ : _vm._e(),
1767
+ ],
1768
+ 2
1769
+ )
1770
+ : _vm._e(),
1771
+ _vm.getSuffixVisible()
1772
+ ? _c("span", { staticClass: "el-input__suffix" }, [
1773
+ _c(
1774
+ "span",
1775
+ { staticClass: "el-input__suffix-inner" },
1776
+ [
1777
+ !_vm.showClear ||
1778
+ !_vm.showPwdVisible ||
1779
+ !_vm.isWordLimitVisible
1780
+ ? [
1781
+ _vm._t("suffix"),
1782
+ _vm.suffixIcon
1783
+ ? _c("i", {
1784
+ staticClass: "el-input__icon",
1785
+ class: _vm.suffixIcon,
1786
+ })
1787
+ : _vm._e(),
1788
+ ]
1789
+ : _vm._e(),
1790
+ _vm.showClear
1791
+ ? _c("i", {
1792
+ staticClass:
1793
+ "el-input__icon el-icon-circle-close el-input__clear",
1794
+ on: {
1795
+ mousedown: function ($event) {
1796
+ $event.preventDefault()
1797
+ },
1798
+ click: _vm.clear,
1799
+ },
1800
+ })
1801
+ : _vm._e(),
1802
+ _vm.showPwdVisible
1803
+ ? _c("i", {
1804
+ staticClass:
1805
+ "el-input__icon el-icon-view el-input__clear",
1806
+ on: { click: _vm.handlePasswordVisible },
1807
+ })
1808
+ : _vm._e(),
1809
+ _vm.isWordLimitVisible
1810
+ ? _c("span", { staticClass: "el-input__count" }, [
1811
+ _c(
1812
+ "span",
1813
+ { staticClass: "el-input__count-inner" },
1814
+ [
1815
+ _vm._v(
1816
+ "\n\t\t\t\t\t\t" +
1817
+ _vm._s(_vm.textLength) +
1818
+ "/" +
1819
+ _vm._s(_vm.upperLimit) +
1820
+ "\n\t\t\t\t\t"
1821
+ ),
1822
+ ]
1823
+ ),
1824
+ ])
1825
+ : _vm._e(),
1826
+ ],
1827
+ 2
1828
+ ),
1829
+ _vm.validateState
1830
+ ? _c("i", {
1831
+ staticClass: "el-input__icon",
1832
+ class: ["el-input__validateIcon", _vm.validateIcon],
1833
+ })
1834
+ : _vm._e(),
1835
+ ])
1836
+ : _vm._e(),
1837
+ _vm.$slots.append
1838
+ ? _c(
1839
+ "div",
1840
+ { staticClass: "el-input-group__append" },
1841
+ [_vm._t("append")],
1842
+ 2
1843
+ )
1844
+ : _vm._e(),
1845
+ ]
1846
+ : _c(
1847
+ "textarea",
1848
+ _vm._b(
1849
+ {
1850
+ ref: "textarea",
1851
+ staticClass: "el-textarea__inner",
1852
+ style: _vm.textareaStyle,
1853
+ attrs: {
1854
+ tabindex: _vm.tabindex,
1855
+ disabled: _vm.inputDisabled,
1856
+ readonly: _vm.readonly,
1857
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
1858
+ "aria-label": _vm.label,
1859
+ },
1860
+ on: {
1861
+ compositionstart: _vm.handleCompositionStart,
1862
+ compositionupdate: _vm.handleCompositionUpdate,
1863
+ compositionend: _vm.handleCompositionEnd,
1864
+ input: _vm.handleInput,
1865
+ focus: _vm.handleFocus,
1866
+ blur: _vm.handleBlur,
1867
+ change: _vm.handleChange,
1868
+ },
1869
+ },
1870
+ "textarea",
1871
+ _vm.$attrs,
1872
+ false
1873
+ )
1874
+ ),
1875
+ _vm.isWordLimitVisible && _vm.type === "textarea"
1876
+ ? _c("span", { staticClass: "el-input__count" }, [
1877
+ _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
1878
+ ])
1879
+ : _vm._e(),
1880
+ ],
1881
+ 2
1882
+ )
1883
+ }
1884
+ var staticRenderFns = []
1885
+ render._withStripped = true
1886
+
1887
+
1888
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=af7512c8
1889
+
1890
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
1891
+ var emitter = __webpack_require__(6);
1892
+
1893
+ // EXTERNAL MODULE: ./src/mixins/migrating.js
1894
+ var migrating = __webpack_require__(12);
1895
+
1896
+ // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
1897
+ var hiddenTextarea = void 0;
1898
+
1899
+ var HIDDEN_STYLE = '\n\theight:0 !important;\n\tvisibility:hidden !important;\n\toverflow:hidden !important;\n\tposition:absolute !important;\n\tz-index:-1000 !important;\n\ttop:0 !important;\n\tright:0 !important\n';
1900
+
1901
+ var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
1902
+
1903
+ function calculateNodeStyling(targetElement) {
1904
+ var style = window.getComputedStyle(targetElement);
1905
+
1906
+ var boxSizing = style.getPropertyValue('box-sizing');
1907
+
1908
+ var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
1909
+
1910
+ var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
1911
+
1912
+ var contextStyle = CONTEXT_STYLE.map(function (name) {
1913
+ return name + ':' + style.getPropertyValue(name);
1914
+ }).join(';');
1915
+
1916
+ return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
1917
+ }
1918
+
1919
+ function calcTextareaHeight(targetElement) {
1920
+ var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
1921
+ var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
1922
+
1923
+ if (!hiddenTextarea) {
1924
+ hiddenTextarea = document.createElement('textarea');
1925
+ document.body.appendChild(hiddenTextarea);
1926
+ }
1927
+
1928
+ var _calculateNodeStyling = calculateNodeStyling(targetElement),
1929
+ paddingSize = _calculateNodeStyling.paddingSize,
1930
+ borderSize = _calculateNodeStyling.borderSize,
1931
+ boxSizing = _calculateNodeStyling.boxSizing,
1932
+ contextStyle = _calculateNodeStyling.contextStyle;
1933
+
1934
+ hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
1935
+ hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
1936
+
1937
+ var height = hiddenTextarea.scrollHeight;
1938
+ var result = {};
1939
+
1940
+ if (boxSizing === 'border-box') {
1941
+ height = height + borderSize;
1942
+ } else if (boxSizing === 'content-box') {
1943
+ height = height - paddingSize;
1944
+ }
1945
+
1946
+ hiddenTextarea.value = '';
1947
+ var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
1948
+
1949
+ if (minRows !== null) {
1950
+ var minHeight = singleRowHeight * minRows;
1951
+ if (boxSizing === 'border-box') {
1952
+ minHeight = minHeight + paddingSize + borderSize;
1953
+ }
1954
+ height = Math.max(minHeight, height);
1955
+ result.minHeight = minHeight + 'px';
1956
+ }
1957
+ if (maxRows !== null) {
1958
+ var maxHeight = singleRowHeight * maxRows;
1959
+ if (boxSizing === 'border-box') {
1960
+ maxHeight = maxHeight + paddingSize + borderSize;
1961
+ }
1962
+ height = Math.min(maxHeight, height);
1963
+ }
1964
+ result.height = height + 'px';
1965
+ hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
1966
+ hiddenTextarea = null;
1967
+ return result;
1968
+ };
1969
+ // EXTERNAL MODULE: ./src/utils/merge.js
1970
+ var merge = __webpack_require__(7);
1971
+
1972
+ // EXTERNAL MODULE: ./src/utils/shared.js
1973
+ var shared = __webpack_require__(16);
1974
+
1975
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+ /* harmony default export */ var inputvue_type_script_lang_js = ({
1984
+ name: 'ElInput',
1985
+
1986
+ componentName: 'ElInput',
1987
+
1988
+ mixins: [emitter["a" /* default */], migrating["a" /* default */]],
1989
+
1990
+ inheritAttrs: false,
1991
+
1992
+ inject: {
1993
+ elForm: {
1994
+ default: ''
1995
+ },
1996
+ elFormItem: {
1997
+ default: ''
1998
+ }
1999
+ },
2000
+
2001
+ data: function data() {
2002
+ return {
2003
+ textareaCalcStyle: {},
2004
+ hovering: false,
2005
+ focused: false,
2006
+ isComposing: false,
2007
+ passwordVisible: false
2008
+ };
2009
+ },
2010
+
2011
+
2012
+ props: {
2013
+ value: [String, Number],
2014
+ size: String,
2015
+ resize: String,
2016
+ form: String,
2017
+ disabled: Boolean,
2018
+ readonly: Boolean,
2019
+ type: {
2020
+ type: String,
2021
+ default: 'text'
2022
+ },
2023
+ autosize: {
2024
+ type: [Boolean, Object],
2025
+ default: false
2026
+ },
2027
+ autocomplete: {
2028
+ type: String,
2029
+ default: 'off'
2030
+ },
2031
+ /** @Deprecated in next major version */
2032
+ autoComplete: {
2033
+ type: String,
2034
+ validator: function validator(val) {
2035
+ false && false;
2036
+ return true;
2037
+ }
2038
+ },
2039
+ validateEvent: {
2040
+ type: Boolean,
2041
+ default: true
2042
+ },
2043
+ suffixIcon: String,
2044
+ prefixIcon: String,
2045
+ label: String,
2046
+ clearable: {
2047
+ type: Boolean,
2048
+ default: false
2049
+ },
2050
+ showPassword: {
2051
+ type: Boolean,
2052
+ default: false
2053
+ },
2054
+ showWordLimit: {
2055
+ type: Boolean,
2056
+ default: false
2057
+ },
2058
+ tabindex: String
2059
+ },
2060
+
2061
+ computed: {
2062
+ _elFormItemSize: function _elFormItemSize() {
2063
+ return (this.elFormItem || {}).elFormItemSize;
2064
+ },
2065
+ validateState: function validateState() {
2066
+ return this.elFormItem ? this.elFormItem.validateState : '';
2067
+ },
2068
+ needStatusIcon: function needStatusIcon() {
2069
+ return this.elForm ? this.elForm.statusIcon : false;
2070
+ },
2071
+ validateIcon: function validateIcon() {
2072
+ return {
2073
+ validating: 'el-icon-loading',
2074
+ success: 'el-icon-circle-check',
2075
+ error: 'el-icon-circle-close'
2076
+ }[this.validateState];
2077
+ },
2078
+ textareaStyle: function textareaStyle() {
2079
+ return Object(merge["a" /* default */])({}, this.textareaCalcStyle, { resize: this.resize });
2080
+ },
2081
+ inputSize: function inputSize() {
2082
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2083
+ },
2084
+ inputDisabled: function inputDisabled() {
2085
+ return this.disabled || (this.elForm || {}).disabled;
2086
+ },
2087
+ nativeInputValue: function nativeInputValue() {
2088
+ return this.value === null || this.value === undefined ? '' : String(this.value);
2089
+ },
2090
+ showClear: function showClear() {
2091
+ return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
2092
+ },
2093
+ showPwdVisible: function showPwdVisible() {
2094
+ return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
2095
+ },
2096
+ isWordLimitVisible: function isWordLimitVisible() {
2097
+ return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
2098
+ },
2099
+ upperLimit: function upperLimit() {
2100
+ return this.$attrs.maxlength;
2101
+ },
2102
+ textLength: function textLength() {
2103
+ if (typeof this.value === 'number') {
2104
+ return String(this.value).length;
2105
+ }
2106
+
2107
+ return (this.value || '').length;
2108
+ },
2109
+ inputExceed: function inputExceed() {
2110
+ // show exceed style if length of initial value greater then maxlength
2111
+ return this.isWordLimitVisible && this.textLength > this.upperLimit;
2112
+ }
2113
+ },
2114
+
2115
+ watch: {
2116
+ value: function value(val) {
2117
+ this.$nextTick(this.resizeTextarea);
2118
+ if (this.validateEvent) {
2119
+ this.dispatch('ElFormItem', 'el.form.change', [val]);
2120
+ }
2121
+ },
2122
+
2123
+ // native input value is set explicitly
2124
+ // do not use v-model / :value in template
2125
+ // see: https://github.com/ElemeFE/element/issues/14521
2126
+ nativeInputValue: function nativeInputValue() {
2127
+ this.setNativeInputValue();
2128
+ },
2129
+
2130
+ // when change between <input> and <textarea>,
2131
+ // update DOM dependent value and styles
2132
+ // https://github.com/ElemeFE/element/issues/14857
2133
+ type: function type() {
2134
+ var _this = this;
2135
+
2136
+ this.$nextTick(function () {
2137
+ _this.setNativeInputValue();
2138
+ _this.resizeTextarea();
2139
+ _this.updateIconOffset();
2140
+ });
2141
+ }
2142
+ },
2143
+
2144
+ methods: {
2145
+ focus: function focus() {
2146
+ this.getInput().focus();
2147
+ },
2148
+ blur: function blur() {
2149
+ this.getInput().blur();
2150
+ },
2151
+ getMigratingConfig: function getMigratingConfig() {
2152
+ return {
2153
+ props: {
2154
+ 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
2155
+ 'on-icon-click': 'on-icon-click is removed.'
2156
+ },
2157
+ events: {
2158
+ 'click': 'click is removed.'
2159
+ }
2160
+ };
2161
+ },
2162
+ handleBlur: function handleBlur(event) {
2163
+ this.focused = false;
2164
+ this.$emit('blur', event);
2165
+ if (this.validateEvent) {
2166
+ this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
2167
+ }
2168
+ },
2169
+ select: function select() {
2170
+ this.getInput().select();
2171
+ },
2172
+ resizeTextarea: function resizeTextarea() {
2173
+ if (this.$isServer) return;
2174
+ var autosize = this.autosize,
2175
+ type = this.type;
2176
+
2177
+ if (type !== 'textarea') return;
2178
+ if (!autosize) {
2179
+ this.textareaCalcStyle = {
2180
+ minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
2181
+ };
2182
+ return;
2183
+ }
2184
+ var minRows = autosize.minRows;
2185
+ var maxRows = autosize.maxRows;
2186
+
2187
+ this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
2188
+ },
2189
+ setNativeInputValue: function setNativeInputValue() {
2190
+ var input = this.getInput();
2191
+ if (!input) return;
2192
+ if (input.value === this.nativeInputValue) return;
2193
+ input.value = this.nativeInputValue;
2194
+ },
2195
+ handleFocus: function handleFocus(event) {
2196
+ this.focused = true;
2197
+ this.$emit('focus', event);
2198
+ },
2199
+ handleCompositionStart: function handleCompositionStart(event) {
2200
+ this.$emit('compositionstart', event);
2201
+ this.isComposing = true;
2202
+ },
2203
+ handleCompositionUpdate: function handleCompositionUpdate(event) {
2204
+ this.$emit('compositionupdate', event);
2205
+ var text = event.target.value;
2206
+ var lastCharacter = text[text.length - 1] || '';
2207
+ this.isComposing = !Object(shared["b" /* isKorean */])(lastCharacter);
2208
+ },
2209
+ handleCompositionEnd: function handleCompositionEnd(event) {
2210
+ this.$emit('compositionend', event);
2211
+ if (this.isComposing) {
2212
+ this.isComposing = false;
2213
+ this.handleInput(event);
2214
+ }
2215
+ },
2216
+ handleInput: function handleInput(event) {
2217
+ // should not emit input during composition
2218
+ // see: https://github.com/ElemeFE/element/issues/10516
2219
+ if (this.isComposing) return;
2220
+
2221
+ // hack for https://github.com/ElemeFE/element/issues/8548
2222
+ // should remove the following line when we don't support IE
2223
+ if (event.target.value === this.nativeInputValue) return;
2224
+
2225
+ this.$emit('input', event.target.value);
2226
+
2227
+ // ensure native input value is controlled
2228
+ // see: https://github.com/ElemeFE/element/issues/12850
2229
+ this.$nextTick(this.setNativeInputValue);
2230
+ },
2231
+ handleChange: function handleChange(event) {
2232
+ this.$emit('change', event.target.value);
2233
+ },
2234
+ calcIconOffset: function calcIconOffset(place) {
2235
+ var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
2236
+ if (!elList.length) return;
2237
+ var el = null;
2238
+ for (var i = 0; i < elList.length; i++) {
2239
+ if (elList[i].parentNode === this.$el) {
2240
+ el = elList[i];
2241
+ break;
2242
+ }
2243
+ }
2244
+ if (!el) return;
2245
+ var pendantMap = {
2246
+ suffix: 'append',
2247
+ prefix: 'prepend'
2248
+ };
2249
+
2250
+ var pendant = pendantMap[place];
2251
+ if (this.$slots[pendant]) {
2252
+ el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
2253
+ } else {
2254
+ el.removeAttribute('style');
2255
+ }
2256
+ },
2257
+ updateIconOffset: function updateIconOffset() {
2258
+ this.calcIconOffset('prefix');
2259
+ this.calcIconOffset('suffix');
2260
+ },
2261
+ clear: function clear() {
2262
+ this.$emit('input', '');
2263
+ this.$emit('change', '');
2264
+ this.$emit('clear');
2265
+ },
2266
+ handlePasswordVisible: function handlePasswordVisible() {
2267
+ var _this2 = this;
2268
+
2269
+ this.passwordVisible = !this.passwordVisible;
2270
+ this.$nextTick(function () {
2271
+ _this2.focus();
2272
+ });
2273
+ },
2274
+ getInput: function getInput() {
2275
+ return this.$refs.input || this.$refs.textarea;
2276
+ },
2277
+ getSuffixVisible: function getSuffixVisible() {
2278
+ return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
2279
+ }
2280
+ },
2281
+
2282
+ created: function created() {
2283
+ this.$on('inputSelect', this.select);
2284
+ },
2285
+ mounted: function mounted() {
2286
+ this.setNativeInputValue();
2287
+ this.resizeTextarea();
2288
+ this.updateIconOffset();
2289
+ },
2290
+ updated: function updated() {
2291
+ this.$nextTick(this.updateIconOffset);
2292
+ }
2293
+ });
2294
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
2295
+ /* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
2296
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2297
+ var componentNormalizer = __webpack_require__(2);
2298
+
2299
+ // CONCATENATED MODULE: ./packages/input/src/input.vue
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+ /* normalize component */
2306
+
2307
+ var component = Object(componentNormalizer["a" /* default */])(
2308
+ src_inputvue_type_script_lang_js,
2309
+ render,
2310
+ staticRenderFns,
2311
+ false,
2312
+ null,
2313
+ null,
2314
+ null
2315
+
2316
+ )
2317
+
2318
+ /* harmony default export */ var input = (component.exports);
2319
+ // CONCATENATED MODULE: ./packages/input/index.js
2320
+
2321
+
2322
+ /* istanbul ignore next */
2323
+ input.install = function (Vue) {
2324
+ Vue.component(input.name, input);
2325
+ };
2326
+
2327
+ /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
2328
+
2329
+ /***/ }),
2330
+ /* 19 */
2331
+ /***/ (function(module, exports) {
2332
+
2333
+ module.exports = require("throttle-debounce");
2334
+
2335
+ /***/ }),
2336
+ /* 20 */
2337
+ /***/ (function(module, exports) {
2338
+
2339
+ module.exports = require("resize-observer-polyfill");
2340
+
2341
+ /***/ }),
2342
+ /* 21 */
2343
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2344
+
2345
+ "use strict";
2346
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2347
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
2348
+ /* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
2349
+
2350
+
2351
+
2352
+ var nodeList = [];
2353
+ var ctx = '@@clickoutsideContext';
2354
+
2355
+ var startClick = void 0;
2356
+ var seed = 0;
2357
+
2358
+ !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && Object(_dom__WEBPACK_IMPORTED_MODULE_1__[/* on */ "g"])(document, 'mousedown', function (e) {
2359
+ return startClick = e;
2360
+ });
2361
+
2362
+ !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && Object(_dom__WEBPACK_IMPORTED_MODULE_1__[/* on */ "g"])(document, 'mouseup', function (e) {
2363
+ nodeList.forEach(function (node) {
2364
+ return node[ctx].documentHandler(e, startClick);
2365
+ });
2366
+ });
2367
+
2368
+ function createDocumentHandler(el, binding, vnode) {
2369
+ return function () {
2370
+ var mouseup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2371
+ var mousedown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2372
+
2373
+ if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target || vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target))) return;
2374
+
2375
+ if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
2376
+ vnode.context[el[ctx].methodName]();
2377
+ } else {
2378
+ el[ctx].bindingFn && el[ctx].bindingFn();
2379
+ }
2380
+ };
2381
+ }
2382
+
2383
+ /**
2384
+ * v-clickoutside
2385
+ * @desc 点击元素外面才会触发的事件
2386
+ * @example
2387
+ * ```vue
2388
+ * <div v-element-clickoutside="handleClose">
2389
+ * ```
2390
+ */
2391
+ /* harmony default export */ __webpack_exports__["a"] = ({
2392
+ bind: function bind(el, binding, vnode) {
2393
+ nodeList.push(el);
2394
+ var id = seed++;
2395
+ el[ctx] = {
2396
+ id: id,
2397
+ documentHandler: createDocumentHandler(el, binding, vnode),
2398
+ methodName: binding.expression,
2399
+ bindingFn: binding.value
2400
+ };
2401
+ },
2402
+ update: function update(el, binding, vnode) {
2403
+ el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
2404
+ el[ctx].methodName = binding.expression;
2405
+ el[ctx].bindingFn = binding.value;
2406
+ },
2407
+ unbind: function unbind(el) {
2408
+ var len = nodeList.length;
2409
+
2410
+ for (var i = 0; i < len; i++) {
2411
+ if (nodeList[i][ctx].id === el[ctx].id) {
2412
+ nodeList.splice(i, 1);
2413
+ break;
2414
+ }
2415
+ }
2416
+ delete el[ctx];
2417
+ }
2418
+ });
2419
+
2420
+ /***/ }),
2421
+ /* 22 */
2422
+ /***/ (function(module, exports) {
2423
+
2424
+ module.exports = require("throttle-debounce/debounce");
2425
+
2426
+ /***/ }),
2427
+ /* 23 */
2428
+ /***/ (function(module, exports, __webpack_require__) {
2429
+
2430
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;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; };
2431
+
2432
+ /**
2433
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
2434
+ * @version {{version}}
2435
+ * @license
2436
+ * Copyright (c) 2016 Federico Zivolo and contributors
2437
+ *
2438
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2439
+ * of this software and associated documentation files (the "Software"), to deal
2440
+ * in the Software without restriction, including without limitation the rights
2441
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2442
+ * copies of the Software, and to permit persons to whom the Software is
2443
+ * furnished to do so, subject to the following conditions:
2444
+ *
2445
+ * The above copyright notice and this permission notice shall be included in all
2446
+ * copies or substantial portions of the Software.
2447
+ *
2448
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2449
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2450
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2451
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2452
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2453
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2454
+ * SOFTWARE.
2455
+ */
2456
+
2457
+ //
2458
+ // Cross module loader
2459
+ // Supported: Node, AMD, Browser globals
2460
+ //
2461
+ ;(function (root, factory) {
2462
+ if (true) {
2463
+ // AMD. Register as an anonymous module.
2464
+ !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2465
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2466
+ (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
2467
+ __WEBPACK_AMD_DEFINE_FACTORY__),
2468
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2469
+ } else {}
2470
+ })(this, function () {
2471
+
2472
+ 'use strict';
2473
+
2474
+ var root = window;
2475
+
2476
+ // default options
2477
+ var DEFAULTS = {
2478
+ // placement of the popper
2479
+ placement: 'bottom',
2480
+
2481
+ gpuAcceleration: true,
2482
+
2483
+ // shift popper from its origin by the given amount of pixels (can be negative)
2484
+ offset: 0,
2485
+
2486
+ // the element which will act as boundary of the popper
2487
+ boundariesElement: 'viewport',
2488
+
2489
+ // amount of pixel used to define a minimum distance between the boundaries and the popper
2490
+ boundariesPadding: 5,
2491
+
2492
+ // popper will try to prevent overflow following this order,
2493
+ // by default, then, it could overflow on the left and on top of the boundariesElement
2494
+ preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
2495
+
2496
+ // the behavior used by flip to change the placement of the popper
2497
+ flipBehavior: 'flip',
2498
+
2499
+ arrowElement: '[x-arrow]',
2500
+
2501
+ arrowOffset: 0,
2502
+
2503
+ // list of functions used to modify the offsets before they are applied to the popper
2504
+ modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
2505
+
2506
+ modifiersIgnored: [],
2507
+
2508
+ forceAbsolute: false
2509
+ };
2510
+
2511
+ /**
2512
+ * Create a new Popper.js instance
2513
+ * @constructor Popper
2514
+ * @param {HTMLElement} reference - The reference element used to position the popper
2515
+ * @param {HTMLElement|Object} popper
2516
+ * The HTML element used as popper, or a configuration used to generate the popper.
2517
+ * @param {String} [popper.tagName='div'] The tag name of the generated popper.
2518
+ * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
2519
+ * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
2520
+ * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
2521
+ * @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
2522
+ * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
2523
+ * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
2524
+ * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
2525
+ * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
2526
+ * @param {Object} options
2527
+ * @param {String} [options.placement=bottom]
2528
+ * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
2529
+ * left(-start, -end)`
2530
+ *
2531
+ * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
2532
+ * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
2533
+ * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
2534
+ * reference element.
2535
+ * By default, it will look for a child node of the popper with the `x-arrow` attribute.
2536
+ *
2537
+ * @param {Boolean} [options.gpuAcceleration=true]
2538
+ * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
2539
+ * browser to use the GPU to accelerate the rendering.
2540
+ * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
2541
+ *
2542
+ * @param {Number} [options.offset=0]
2543
+ * Amount of pixels the popper will be shifted (can be negative).
2544
+ *
2545
+ * @param {String|Element} [options.boundariesElement='viewport']
2546
+ * The element which will define the boundaries of the popper position, the popper will never be placed outside
2547
+ * of the defined boundaries (except if `keepTogether` is enabled)
2548
+ *
2549
+ * @param {Number} [options.boundariesPadding=5]
2550
+ * Additional padding for the boundaries
2551
+ *
2552
+ * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
2553
+ * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
2554
+ * this means that the last ones will never overflow
2555
+ *
2556
+ * @param {String|Array} [options.flipBehavior='flip']
2557
+ * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
2558
+ * overlap its reference element. Defining `flip` as value, the placement will be flipped on
2559
+ * its axis (`right - left`, `top - bottom`).
2560
+ * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
2561
+ * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
2562
+ * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
2563
+ *
2564
+ * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
2565
+ * List of functions used to modify the data before they are applied to the popper, add your custom functions
2566
+ * to this array to edit the offsets and placement.
2567
+ * The function should reflect the @params and @returns of preventOverflow
2568
+ *
2569
+ * @param {Array} [options.modifiersIgnored=[]]
2570
+ * Put here any built-in modifier name you want to exclude from the modifiers list
2571
+ * The function should reflect the @params and @returns of preventOverflow
2572
+ *
2573
+ * @param {Boolean} [options.removeOnDestroy=false]
2574
+ * Set to true if you want to automatically remove the popper when you call the `destroy` method.
2575
+ */
2576
+ function Popper(reference, popper, options) {
2577
+ this._reference = reference.jquery ? reference[0] : reference;
2578
+ this.state = {};
2579
+
2580
+ // if the popper variable is a configuration object, parse it to generate an HTMLElement
2581
+ // generate a default popper if is not defined
2582
+ var isNotDefined = typeof popper === 'undefined' || popper === null;
2583
+ var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
2584
+ if (isNotDefined || isConfig) {
2585
+ this._popper = this.parse(isConfig ? popper : {});
2586
+ }
2587
+ // otherwise, use the given HTMLElement as popper
2588
+ else {
2589
+ this._popper = popper.jquery ? popper[0] : popper;
2590
+ }
2591
+
2592
+ // with {} we create a new object with the options inside it
2593
+ this._options = Object.assign({}, DEFAULTS, options);
2594
+
2595
+ // refactoring modifiers' list
2596
+ this._options.modifiers = this._options.modifiers.map(function (modifier) {
2597
+ // remove ignored modifiers
2598
+ if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
2599
+
2600
+ // set the x-placement attribute before everything else because it could be used to add margins to the popper
2601
+ // margins needs to be calculated to get the correct popper offsets
2602
+ if (modifier === 'applyStyle') {
2603
+ this._popper.setAttribute('x-placement', this._options.placement);
2604
+ }
2605
+
2606
+ // return predefined modifier identified by string or keep the custom one
2607
+ return this.modifiers[modifier] || modifier;
2608
+ }.bind(this));
2609
+
2610
+ // make sure to apply the popper position before any computation
2611
+ this.state.position = this._getPosition(this._popper, this._reference);
2612
+ setStyle(this._popper, { position: this.state.position, top: 0 });
2613
+
2614
+ // fire the first update to position the popper in the right place
2615
+ this.update();
2616
+
2617
+ // setup event listeners, they will take care of update the position in specific situations
2618
+ this._setupEventListeners();
2619
+ return this;
2620
+ }
2621
+
2622
+ //
2623
+ // Methods
2624
+ //
2625
+ /**
2626
+ * Destroy the popper
2627
+ * @method
2628
+ * @memberof Popper
2629
+ */
2630
+ Popper.prototype.destroy = function () {
2631
+ this._popper.removeAttribute('x-placement');
2632
+ this._popper.style.left = '';
2633
+ this._popper.style.position = '';
2634
+ this._popper.style.top = '';
2635
+ this._popper.style[getSupportedPropertyName('transform')] = '';
2636
+ this._removeEventListeners();
2637
+
2638
+ // remove the popper if user explicity asked for the deletion on destroy
2639
+ if (this._options.removeOnDestroy) {
2640
+ this._popper.remove();
2641
+ }
2642
+ return this;
2643
+ };
2644
+
2645
+ /**
2646
+ * Updates the position of the popper, computing the new offsets and applying the new style
2647
+ * @method
2648
+ * @memberof Popper
2649
+ */
2650
+ Popper.prototype.update = function () {
2651
+ var data = { instance: this, styles: {} };
2652
+
2653
+ // store placement inside the data object, modifiers will be able to edit `placement` if needed
2654
+ // and refer to _originalPlacement to know the original value
2655
+ data.placement = this._options.placement;
2656
+ data._originalPlacement = this._options.placement;
2657
+
2658
+ // compute the popper and reference offsets and put them inside data.offsets
2659
+ data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
2660
+
2661
+ // get boundaries
2662
+ data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
2663
+
2664
+ data = this.runModifiers(data, this._options.modifiers);
2665
+
2666
+ if (typeof this.state.updateCallback === 'function') {
2667
+ this.state.updateCallback(data);
2668
+ }
2669
+ };
2670
+
2671
+ /**
2672
+ * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
2673
+ * @method
2674
+ * @memberof Popper
2675
+ * @param {Function} callback
2676
+ */
2677
+ Popper.prototype.onCreate = function (callback) {
2678
+ // the createCallbacks return as first argument the popper instance
2679
+ callback(this);
2680
+ return this;
2681
+ };
2682
+
2683
+ /**
2684
+ * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
2685
+ * used to style popper and its arrow.
2686
+ * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
2687
+ * @method
2688
+ * @memberof Popper
2689
+ * @param {Function} callback
2690
+ */
2691
+ Popper.prototype.onUpdate = function (callback) {
2692
+ this.state.updateCallback = callback;
2693
+ return this;
2694
+ };
2695
+
2696
+ /**
2697
+ * Helper used to generate poppers from a configuration file
2698
+ * @method
2699
+ * @memberof Popper
2700
+ * @param config {Object} configuration
2701
+ * @returns {HTMLElement} popper
2702
+ */
2703
+ Popper.prototype.parse = function (config) {
2704
+ var defaultConfig = {
2705
+ tagName: 'div',
2706
+ classNames: ['popper'],
2707
+ attributes: [],
2708
+ parent: root.document.body,
2709
+ content: '',
2710
+ contentType: 'text',
2711
+ arrowTagName: 'div',
2712
+ arrowClassNames: ['popper__arrow'],
2713
+ arrowAttributes: ['x-arrow']
2714
+ };
2715
+ config = Object.assign({}, defaultConfig, config);
2716
+
2717
+ var d = root.document;
2718
+
2719
+ var popper = d.createElement(config.tagName);
2720
+ addClassNames(popper, config.classNames);
2721
+ addAttributes(popper, config.attributes);
2722
+ if (config.contentType === 'node') {
2723
+ popper.appendChild(config.content.jquery ? config.content[0] : config.content);
2724
+ } else if (config.contentType === 'html') {
2725
+ popper.innerHTML = config.content;
2726
+ } else {
2727
+ popper.textContent = config.content;
2728
+ }
2729
+
2730
+ if (config.arrowTagName) {
2731
+ var arrow = d.createElement(config.arrowTagName);
2732
+ addClassNames(arrow, config.arrowClassNames);
2733
+ addAttributes(arrow, config.arrowAttributes);
2734
+ popper.appendChild(arrow);
2735
+ }
2736
+
2737
+ var parent = config.parent.jquery ? config.parent[0] : config.parent;
2738
+
2739
+ // if the given parent is a string, use it to match an element
2740
+ // if more than one element is matched, the first one will be used as parent
2741
+ // if no elements are matched, the script will throw an error
2742
+ if (typeof parent === 'string') {
2743
+ parent = d.querySelectorAll(config.parent);
2744
+ if (parent.length > 1) {
2745
+ console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
2746
+ }
2747
+ if (parent.length === 0) {
2748
+ throw 'ERROR: the given `parent` doesn\'t exists!';
2749
+ }
2750
+ parent = parent[0];
2751
+ }
2752
+ // if the given parent is a DOM nodes list or an array of nodes with more than one element,
2753
+ // the first one will be used as parent
2754
+ if (parent.length > 1 && parent instanceof Element === false) {
2755
+ console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
2756
+ parent = parent[0];
2757
+ }
2758
+
2759
+ // append the generated popper to its parent
2760
+ parent.appendChild(popper);
2761
+
2762
+ return popper;
2763
+
2764
+ /**
2765
+ * Adds class names to the given element
2766
+ * @function
2767
+ * @ignore
2768
+ * @param {HTMLElement} target
2769
+ * @param {Array} classes
2770
+ */
2771
+ function addClassNames(element, classNames) {
2772
+ classNames.forEach(function (className) {
2773
+ element.classList.add(className);
2774
+ });
2775
+ }
2776
+
2777
+ /**
2778
+ * Adds attributes to the given element
2779
+ * @function
2780
+ * @ignore
2781
+ * @param {HTMLElement} target
2782
+ * @param {Array} attributes
2783
+ * @example
2784
+ * addAttributes(element, [ 'data-info:foobar' ]);
2785
+ */
2786
+ function addAttributes(element, attributes) {
2787
+ attributes.forEach(function (attribute) {
2788
+ element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
2789
+ });
2790
+ }
2791
+ };
2792
+
2793
+ /**
2794
+ * Helper used to get the position which will be applied to the popper
2795
+ * @method
2796
+ * @memberof Popper
2797
+ * @param config {HTMLElement} popper element
2798
+ * @param reference {HTMLElement} reference element
2799
+ * @returns {String} position
2800
+ */
2801
+ Popper.prototype._getPosition = function (popper, reference) {
2802
+ var container = getOffsetParent(reference);
2803
+
2804
+ if (this._options.forceAbsolute) {
2805
+ return 'absolute';
2806
+ }
2807
+
2808
+ // Decide if the popper will be fixed
2809
+ // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
2810
+ var isParentFixed = isFixed(reference, container);
2811
+ return isParentFixed ? 'fixed' : 'absolute';
2812
+ };
2813
+
2814
+ /**
2815
+ * Get offsets to the popper
2816
+ * @method
2817
+ * @memberof Popper
2818
+ * @access private
2819
+ * @param {Element} popper - the popper element
2820
+ * @param {Element} reference - the reference element (the popper will be relative to this)
2821
+ * @returns {Object} An object containing the offsets which will be applied to the popper
2822
+ */
2823
+ Popper.prototype._getOffsets = function (popper, reference, placement) {
2824
+ placement = placement.split('-')[0];
2825
+ var popperOffsets = {};
2826
+
2827
+ popperOffsets.position = this.state.position;
2828
+ var isParentFixed = popperOffsets.position === 'fixed';
2829
+
2830
+ //
2831
+ // Get reference element position
2832
+ //
2833
+ var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
2834
+
2835
+ //
2836
+ // Get popper sizes
2837
+ //
2838
+ var popperRect = getOuterSizes(popper);
2839
+
2840
+ //
2841
+ // Compute offsets of popper
2842
+ //
2843
+
2844
+ // depending by the popper placement we have to compute its offsets slightly differently
2845
+ if (['right', 'left'].indexOf(placement) !== -1) {
2846
+ popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
2847
+ if (placement === 'left') {
2848
+ popperOffsets.left = referenceOffsets.left - popperRect.width;
2849
+ } else {
2850
+ popperOffsets.left = referenceOffsets.right;
2851
+ }
2852
+ } else {
2853
+ popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
2854
+ if (placement === 'top') {
2855
+ popperOffsets.top = referenceOffsets.top - popperRect.height;
2856
+ } else {
2857
+ popperOffsets.top = referenceOffsets.bottom;
2858
+ }
2859
+ }
2860
+
2861
+ // Add width and height to our offsets object
2862
+ popperOffsets.width = popperRect.width;
2863
+ popperOffsets.height = popperRect.height;
2864
+
2865
+ return {
2866
+ popper: popperOffsets,
2867
+ reference: referenceOffsets
2868
+ };
2869
+ };
2870
+
2871
+ /**
2872
+ * Setup needed event listeners used to update the popper position
2873
+ * @method
2874
+ * @memberof Popper
2875
+ * @access private
2876
+ */
2877
+ Popper.prototype._setupEventListeners = function () {
2878
+ // NOTE: 1 DOM access here
2879
+ this.state.updateBound = this.update.bind(this);
2880
+ root.addEventListener('resize', this.state.updateBound);
2881
+ // if the boundariesElement is window we don't need to listen for the scroll event
2882
+ if (this._options.boundariesElement !== 'window') {
2883
+ var target = getScrollParent(this._reference);
2884
+ // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
2885
+ if (target === root.document.body || target === root.document.documentElement) {
2886
+ target = root;
2887
+ }
2888
+ target.addEventListener('scroll', this.state.updateBound);
2889
+ this.state.scrollTarget = target;
2890
+ }
2891
+ };
2892
+
2893
+ /**
2894
+ * Remove event listeners used to update the popper position
2895
+ * @method
2896
+ * @memberof Popper
2897
+ * @access private
2898
+ */
2899
+ Popper.prototype._removeEventListeners = function () {
2900
+ // NOTE: 1 DOM access here
2901
+ root.removeEventListener('resize', this.state.updateBound);
2902
+ if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
2903
+ this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
2904
+ this.state.scrollTarget = null;
2905
+ }
2906
+ this.state.updateBound = null;
2907
+ };
2908
+
2909
+ /**
2910
+ * Computed the boundaries limits and return them
2911
+ * @method
2912
+ * @memberof Popper
2913
+ * @access private
2914
+ * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
2915
+ * @param {Number} padding - Boundaries padding
2916
+ * @param {Element} boundariesElement - Element used to define the boundaries
2917
+ * @returns {Object} Coordinates of the boundaries
2918
+ */
2919
+ Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
2920
+ // NOTE: 1 DOM access here
2921
+ var boundaries = {};
2922
+ var width, height;
2923
+ if (boundariesElement === 'window') {
2924
+ var body = root.document.body,
2925
+ html = root.document.documentElement;
2926
+
2927
+ height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
2928
+ width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
2929
+
2930
+ boundaries = {
2931
+ top: 0,
2932
+ right: width,
2933
+ bottom: height,
2934
+ left: 0
2935
+ };
2936
+ } else if (boundariesElement === 'viewport') {
2937
+ var offsetParent = getOffsetParent(this._popper);
2938
+ var scrollParent = getScrollParent(this._popper);
2939
+ var offsetParentRect = getOffsetRect(offsetParent);
2940
+
2941
+ // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
2942
+ var getScrollTopValue = function getScrollTopValue(element) {
2943
+ return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
2944
+ };
2945
+ var getScrollLeftValue = function getScrollLeftValue(element) {
2946
+ return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
2947
+ };
2948
+
2949
+ // if the popper is fixed we don't have to substract scrolling from the boundaries
2950
+ var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
2951
+ var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
2952
+
2953
+ boundaries = {
2954
+ top: 0 - (offsetParentRect.top - scrollTop),
2955
+ right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
2956
+ bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
2957
+ left: 0 - (offsetParentRect.left - scrollLeft)
2958
+ };
2959
+ } else {
2960
+ if (getOffsetParent(this._popper) === boundariesElement) {
2961
+ boundaries = {
2962
+ top: 0,
2963
+ left: 0,
2964
+ right: boundariesElement.clientWidth,
2965
+ bottom: boundariesElement.clientHeight
2966
+ };
2967
+ } else {
2968
+ boundaries = getOffsetRect(boundariesElement);
2969
+ }
2970
+ }
2971
+ boundaries.left += padding;
2972
+ boundaries.right -= padding;
2973
+ boundaries.top = boundaries.top + padding;
2974
+ boundaries.bottom = boundaries.bottom - padding;
2975
+ return boundaries;
2976
+ };
2977
+
2978
+ /**
2979
+ * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
2980
+ * @method
2981
+ * @memberof Popper
2982
+ * @access public
2983
+ * @param {Object} data
2984
+ * @param {Array} modifiers
2985
+ * @param {Function} ends
2986
+ */
2987
+ Popper.prototype.runModifiers = function (data, modifiers, ends) {
2988
+ var modifiersToRun = modifiers.slice();
2989
+ if (ends !== undefined) {
2990
+ modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
2991
+ }
2992
+
2993
+ modifiersToRun.forEach(function (modifier) {
2994
+ if (isFunction(modifier)) {
2995
+ data = modifier.call(this, data);
2996
+ }
2997
+ }.bind(this));
2998
+
2999
+ return data;
3000
+ };
3001
+
3002
+ /**
3003
+ * Helper used to know if the given modifier depends from another one.
3004
+ * @method
3005
+ * @memberof Popper
3006
+ * @param {String} requesting - name of requesting modifier
3007
+ * @param {String} requested - name of requested modifier
3008
+ * @returns {Boolean}
3009
+ */
3010
+ Popper.prototype.isModifierRequired = function (requesting, requested) {
3011
+ var index = getArrayKeyIndex(this._options.modifiers, requesting);
3012
+ return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
3013
+ return modifier === requested;
3014
+ }).length;
3015
+ };
3016
+
3017
+ //
3018
+ // Modifiers
3019
+ //
3020
+
3021
+ /**
3022
+ * Modifiers list
3023
+ * @namespace Popper.modifiers
3024
+ * @memberof Popper
3025
+ * @type {Object}
3026
+ */
3027
+ Popper.prototype.modifiers = {};
3028
+
3029
+ /**
3030
+ * Apply the computed styles to the popper element
3031
+ * @method
3032
+ * @memberof Popper.modifiers
3033
+ * @argument {Object} data - The data object generated by `update` method
3034
+ * @returns {Object} The same data object
3035
+ */
3036
+ Popper.prototype.modifiers.applyStyle = function (data) {
3037
+ // apply the final offsets to the popper
3038
+ // NOTE: 1 DOM access here
3039
+ var styles = {
3040
+ position: data.offsets.popper.position
3041
+ };
3042
+
3043
+ // round top and left to avoid blurry text
3044
+ var left = Math.round(data.offsets.popper.left);
3045
+ var top = Math.round(data.offsets.popper.top);
3046
+
3047
+ // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
3048
+ // we automatically use the supported prefixed version if needed
3049
+ var prefixedProperty;
3050
+ if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
3051
+ styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
3052
+ styles.top = 0;
3053
+ styles.left = 0;
3054
+ }
3055
+ // othwerise, we use the standard `left` and `top` properties
3056
+ else {
3057
+ styles.left = left;
3058
+ styles.top = top;
3059
+ }
3060
+
3061
+ // any property present in `data.styles` will be applied to the popper,
3062
+ // in this way we can make the 3rd party modifiers add custom styles to it
3063
+ // Be aware, modifiers could override the properties defined in the previous
3064
+ // lines of this modifier!
3065
+ Object.assign(styles, data.styles);
3066
+
3067
+ setStyle(this._popper, styles);
3068
+
3069
+ // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
3070
+ // NOTE: 1 DOM access here
3071
+ this._popper.setAttribute('x-placement', data.placement);
3072
+
3073
+ // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
3074
+ if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
3075
+ setStyle(data.arrowElement, data.offsets.arrow);
3076
+ }
3077
+
3078
+ return data;
3079
+ };
3080
+
3081
+ /**
3082
+ * Modifier used to shift the popper on the start or end of its reference element side
3083
+ * @method
3084
+ * @memberof Popper.modifiers
3085
+ * @argument {Object} data - The data object generated by `update` method
3086
+ * @returns {Object} The data object, properly modified
3087
+ */
3088
+ Popper.prototype.modifiers.shift = function (data) {
3089
+ var placement = data.placement;
3090
+ var basePlacement = placement.split('-')[0];
3091
+ var shiftVariation = placement.split('-')[1];
3092
+
3093
+ // if shift shiftVariation is specified, run the modifier
3094
+ if (shiftVariation) {
3095
+ var reference = data.offsets.reference;
3096
+ var popper = getPopperClientRect(data.offsets.popper);
3097
+
3098
+ var shiftOffsets = {
3099
+ y: {
3100
+ start: { top: reference.top },
3101
+ end: { top: reference.top + reference.height - popper.height }
3102
+ },
3103
+ x: {
3104
+ start: { left: reference.left },
3105
+ end: { left: reference.left + reference.width - popper.width }
3106
+ }
3107
+ };
3108
+
3109
+ var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
3110
+
3111
+ data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
3112
+ }
3113
+
3114
+ return data;
3115
+ };
3116
+
3117
+ /**
3118
+ * Modifier used to make sure the popper does not overflows from it's boundaries
3119
+ * @method
3120
+ * @memberof Popper.modifiers
3121
+ * @argument {Object} data - The data object generated by `update` method
3122
+ * @returns {Object} The data object, properly modified
3123
+ */
3124
+ Popper.prototype.modifiers.preventOverflow = function (data) {
3125
+ var order = this._options.preventOverflowOrder;
3126
+ var popper = getPopperClientRect(data.offsets.popper);
3127
+
3128
+ var check = {
3129
+ left: function left() {
3130
+ var left = popper.left;
3131
+ if (popper.left < data.boundaries.left) {
3132
+ left = Math.max(popper.left, data.boundaries.left);
3133
+ }
3134
+ return { left: left };
3135
+ },
3136
+ right: function right() {
3137
+ var left = popper.left;
3138
+ if (popper.right > data.boundaries.right) {
3139
+ left = Math.min(popper.left, data.boundaries.right - popper.width);
3140
+ }
3141
+ return { left: left };
3142
+ },
3143
+ top: function top() {
3144
+ var top = popper.top;
3145
+ if (popper.top < data.boundaries.top) {
3146
+ top = Math.max(popper.top, data.boundaries.top);
3147
+ }
3148
+ return { top: top };
3149
+ },
3150
+ bottom: function bottom() {
3151
+ var top = popper.top;
3152
+ if (popper.bottom > data.boundaries.bottom) {
3153
+ top = Math.min(popper.top, data.boundaries.bottom - popper.height);
3154
+ }
3155
+ return { top: top };
3156
+ }
3157
+ };
3158
+
3159
+ order.forEach(function (direction) {
3160
+ data.offsets.popper = Object.assign(popper, check[direction]());
3161
+ });
3162
+
3163
+ return data;
3164
+ };
3165
+
3166
+ /**
3167
+ * Modifier used to make sure the popper is always near its reference
3168
+ * @method
3169
+ * @memberof Popper.modifiers
3170
+ * @argument {Object} data - The data object generated by _update method
3171
+ * @returns {Object} The data object, properly modified
3172
+ */
3173
+ Popper.prototype.modifiers.keepTogether = function (data) {
3174
+ var popper = getPopperClientRect(data.offsets.popper);
3175
+ var reference = data.offsets.reference;
3176
+ var f = Math.floor;
3177
+
3178
+ if (popper.right < f(reference.left)) {
3179
+ data.offsets.popper.left = f(reference.left) - popper.width;
3180
+ }
3181
+ if (popper.left > f(reference.right)) {
3182
+ data.offsets.popper.left = f(reference.right);
3183
+ }
3184
+ if (popper.bottom < f(reference.top)) {
3185
+ data.offsets.popper.top = f(reference.top) - popper.height;
3186
+ }
3187
+ if (popper.top > f(reference.bottom)) {
3188
+ data.offsets.popper.top = f(reference.bottom);
3189
+ }
3190
+
3191
+ return data;
3192
+ };
3193
+
3194
+ /**
3195
+ * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
3196
+ * Requires the `preventOverflow` modifier before it in order to work.
3197
+ * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
3198
+ * @method
3199
+ * @memberof Popper.modifiers
3200
+ * @argument {Object} data - The data object generated by _update method
3201
+ * @returns {Object} The data object, properly modified
3202
+ */
3203
+ Popper.prototype.modifiers.flip = function (data) {
3204
+ // check if preventOverflow is in the list of modifiers before the flip modifier.
3205
+ // otherwise flip would not work as expected.
3206
+ if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
3207
+ console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
3208
+ return data;
3209
+ }
3210
+
3211
+ if (data.flipped && data.placement === data._originalPlacement) {
3212
+ // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
3213
+ return data;
3214
+ }
3215
+
3216
+ var placement = data.placement.split('-')[0];
3217
+ var placementOpposite = getOppositePlacement(placement);
3218
+ var variation = data.placement.split('-')[1] || '';
3219
+
3220
+ var flipOrder = [];
3221
+ if (this._options.flipBehavior === 'flip') {
3222
+ flipOrder = [placement, placementOpposite];
3223
+ } else {
3224
+ flipOrder = this._options.flipBehavior;
3225
+ }
3226
+
3227
+ flipOrder.forEach(function (step, index) {
3228
+ if (placement !== step || flipOrder.length === index + 1) {
3229
+ return;
3230
+ }
3231
+
3232
+ placement = data.placement.split('-')[0];
3233
+ placementOpposite = getOppositePlacement(placement);
3234
+
3235
+ var popperOffsets = getPopperClientRect(data.offsets.popper);
3236
+
3237
+ // this boolean is used to distinguish right and bottom from top and left
3238
+ // they need different computations to get flipped
3239
+ var a = ['right', 'bottom'].indexOf(placement) !== -1;
3240
+
3241
+ // using Math.floor because the reference offsets may contain decimals we are not going to consider here
3242
+ if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
3243
+ // we'll use this boolean to detect any flip loop
3244
+ data.flipped = true;
3245
+ data.placement = flipOrder[index + 1];
3246
+ if (variation) {
3247
+ data.placement += '-' + variation;
3248
+ }
3249
+ data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
3250
+
3251
+ data = this.runModifiers(data, this._options.modifiers, this._flip);
3252
+ }
3253
+ }.bind(this));
3254
+ return data;
3255
+ };
3256
+
3257
+ /**
3258
+ * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
3259
+ * The offsets will shift the popper on the side of its reference element.
3260
+ * @method
3261
+ * @memberof Popper.modifiers
3262
+ * @argument {Object} data - The data object generated by _update method
3263
+ * @returns {Object} The data object, properly modified
3264
+ */
3265
+ Popper.prototype.modifiers.offset = function (data) {
3266
+ var offset = this._options.offset;
3267
+ var popper = data.offsets.popper;
3268
+
3269
+ if (data.placement.indexOf('left') !== -1) {
3270
+ popper.top -= offset;
3271
+ } else if (data.placement.indexOf('right') !== -1) {
3272
+ popper.top += offset;
3273
+ } else if (data.placement.indexOf('top') !== -1) {
3274
+ popper.left -= offset;
3275
+ } else if (data.placement.indexOf('bottom') !== -1) {
3276
+ popper.left += offset;
3277
+ }
3278
+ return data;
3279
+ };
3280
+
3281
+ /**
3282
+ * Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
3283
+ * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
3284
+ * @method
3285
+ * @memberof Popper.modifiers
3286
+ * @argument {Object} data - The data object generated by _update method
3287
+ * @returns {Object} The data object, properly modified
3288
+ */
3289
+ Popper.prototype.modifiers.arrow = function (data) {
3290
+ var arrow = this._options.arrowElement;
3291
+ var arrowOffset = this._options.arrowOffset;
3292
+
3293
+ // if the arrowElement is a string, suppose it's a CSS selector
3294
+ if (typeof arrow === 'string') {
3295
+ arrow = this._popper.querySelector(arrow);
3296
+ }
89
3297
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3298
+ // if arrow element is not found, don't run the modifier
3299
+ if (!arrow) {
3300
+ return data;
3301
+ }
92
3302
 
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
3303
+ // the arrow element must be child of its popper
3304
+ if (!this._popper.contains(arrow)) {
3305
+ console.warn('WARNING: `arrowElement` must be child of its popper element!');
3306
+ return data;
3307
+ }
96
3308
 
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.
3309
+ // arrow depends on keepTogether in order to work
3310
+ if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
3311
+ console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
3312
+ return data;
3313
+ }
100
3314
 
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
3315
+ var arrowStyle = {};
3316
+ var placement = data.placement.split('-')[0];
3317
+ var popper = getPopperClientRect(data.offsets.popper);
3318
+ var reference = data.offsets.reference;
3319
+ var isVertical = ['left', 'right'].indexOf(placement) !== -1;
114
3320
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
3321
+ var len = isVertical ? 'height' : 'width';
3322
+ var side = isVertical ? 'top' : 'left';
3323
+ var translate = isVertical ? 'translateY' : 'translateX';
3324
+ var altSide = isVertical ? 'left' : 'top';
3325
+ var opSide = isVertical ? 'bottom' : 'right';
3326
+ var arrowSize = getOuterSizes(arrow)[len];
121
3327
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
3328
+ //
3329
+ // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
3330
+ //
126
3331
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
3332
+ // top/left side
3333
+ if (reference[opSide] - arrowSize < popper[side]) {
3334
+ data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
3335
+ }
3336
+ // bottom/right side
3337
+ if (reference[side] + arrowSize > popper[opSide]) {
3338
+ data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
3339
+ }
131
3340
 
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
- }
3341
+ // compute center of the popper
3342
+ var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
3343
+
3344
+ var sideValue = center - popper[side];
3345
+
3346
+ // prevent arrow from being placed not contiguously to its popper
3347
+ sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
3348
+ arrowStyle[side] = sideValue;
3349
+ arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
3350
+
3351
+ data.offsets.arrow = arrowStyle;
3352
+ data.arrowElement = arrow;
3353
+
3354
+ return data;
3355
+ };
3356
+
3357
+ //
3358
+ // Helpers
3359
+ //
3360
+
3361
+ /**
3362
+ * Get the outer sizes of the given element (offset size + margins)
3363
+ * @function
3364
+ * @ignore
3365
+ * @argument {Element} element
3366
+ * @returns {Object} object containing width and height properties
3367
+ */
3368
+ function getOuterSizes(element) {
3369
+ // NOTE: 1 DOM access here
3370
+ var _display = element.style.display,
3371
+ _visibility = element.style.visibility;
3372
+ element.style.display = 'block';element.style.visibility = 'hidden';
3373
+ var calcWidthToForceRepaint = element.offsetWidth;
3374
+
3375
+ // original method
3376
+ var styles = root.getComputedStyle(element);
3377
+ var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
3378
+ var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
3379
+ var result = { width: element.offsetWidth + y, height: element.offsetHeight + x };
3380
+
3381
+ // reset element styles
3382
+ element.style.display = _display;element.style.visibility = _visibility;
3383
+ return result;
153
3384
  }
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
- )
3385
+
3386
+ /**
3387
+ * Get the opposite placement of the given one/
3388
+ * @function
3389
+ * @ignore
3390
+ * @argument {String} placement
3391
+ * @returns {String} flipped placement
3392
+ */
3393
+ function getOppositePlacement(placement) {
3394
+ var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
3395
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
3396
+ return hash[matched];
3397
+ });
3398
+ }
3399
+
3400
+ /**
3401
+ * Given the popper offsets, generate an output similar to getBoundingClientRect
3402
+ * @function
3403
+ * @ignore
3404
+ * @argument {Object} popperOffsets
3405
+ * @returns {Object} ClientRect like output
3406
+ */
3407
+ function getPopperClientRect(popperOffsets) {
3408
+ var offsets = Object.assign({}, popperOffsets);
3409
+ offsets.right = offsets.left + offsets.width;
3410
+ offsets.bottom = offsets.top + offsets.height;
3411
+ return offsets;
3412
+ }
3413
+
3414
+ /**
3415
+ * Given an array and the key to find, returns its index
3416
+ * @function
3417
+ * @ignore
3418
+ * @argument {Array} arr
3419
+ * @argument keyToFind
3420
+ * @returns index or null
3421
+ */
3422
+ function getArrayKeyIndex(arr, keyToFind) {
3423
+ var i = 0,
3424
+ key;
3425
+ for (key in arr) {
3426
+ if (arr[key] === keyToFind) {
3427
+ return i;
3428
+ }
3429
+ i++;
164
3430
  }
165
- : injectStyles
166
- }
3431
+ return null;
3432
+ }
167
3433
 
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]
3434
+ /**
3435
+ * Get CSS computed property of the given element
3436
+ * @function
3437
+ * @ignore
3438
+ * @argument {Eement} element
3439
+ * @argument {String} property
3440
+ */
3441
+ function getStyleComputedProperty(element, property) {
3442
+ // NOTE: 1 DOM access here
3443
+ var css = root.getComputedStyle(element, null);
3444
+ return css[property];
183
3445
  }
184
- }
185
3446
 
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
3447
+ /**
3448
+ * Returns the offset parent of the given element
3449
+ * @function
3450
+ * @ignore
3451
+ * @argument {Element} element
3452
+ * @returns {Element} offset parent
3453
+ */
3454
+ function getOffsetParent(element) {
3455
+ // NOTE: 1 DOM access here
3456
+ var offsetParent = element.offsetParent;
3457
+ return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
3458
+ }
191
3459
 
3460
+ /**
3461
+ * Returns the scrolling parent of the given element
3462
+ * @function
3463
+ * @ignore
3464
+ * @argument {Element} element
3465
+ * @returns {Element} offset parent
3466
+ */
3467
+ function getScrollParent(element) {
3468
+ var parent = element.parentNode;
192
3469
 
193
- /***/ }),
3470
+ if (!parent) {
3471
+ return element;
3472
+ }
194
3473
 
195
- /***/ 10:
196
- /***/ (function(module, exports) {
3474
+ if (parent === root.document) {
3475
+ // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
3476
+ // greater than 0 and return the proper element
3477
+ if (root.document.body.scrollTop || root.document.body.scrollLeft) {
3478
+ return root.document.body;
3479
+ } else {
3480
+ return root.document.documentElement;
3481
+ }
3482
+ }
197
3483
 
198
- module.exports = require("cy-element-ui/lib/input");
3484
+ // Firefox want us to check `-x` and `-y` variations as well
3485
+ if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
3486
+ // If the detected scrollParent is body, we perform an additional check on its parentNode
3487
+ // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
3488
+ // fixes issue #65
3489
+ return parent;
3490
+ }
3491
+ return getScrollParent(element.parentNode);
3492
+ }
199
3493
 
200
- /***/ }),
3494
+ /**
3495
+ * Check if the given element is fixed or is inside a fixed parent
3496
+ * @function
3497
+ * @ignore
3498
+ * @argument {Element} element
3499
+ * @argument {Element} customContainer
3500
+ * @returns {Boolean} answer to "isFixed?"
3501
+ */
3502
+ function isFixed(element) {
3503
+ if (element === root.document.body) {
3504
+ return false;
3505
+ }
3506
+ if (getStyleComputedProperty(element, 'position') === 'fixed') {
3507
+ return true;
3508
+ }
3509
+ return element.parentNode ? isFixed(element.parentNode) : element;
3510
+ }
201
3511
 
202
- /***/ 11:
203
- /***/ (function(module, exports) {
3512
+ /**
3513
+ * Set the style to the given popper
3514
+ * @function
3515
+ * @ignore
3516
+ * @argument {Element} element - Element to apply the style to
3517
+ * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
3518
+ */
3519
+ function setStyle(element, styles) {
3520
+ function is_numeric(n) {
3521
+ return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
3522
+ }
3523
+ Object.keys(styles).forEach(function (prop) {
3524
+ var unit = '';
3525
+ // add unit if the value is numeric and is one of the following
3526
+ if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
3527
+ unit = 'px';
3528
+ }
3529
+ element.style[prop] = styles[prop] + unit;
3530
+ });
3531
+ }
204
3532
 
205
- module.exports = require("cy-element-ui/lib/mixins/migrating");
3533
+ /**
3534
+ * Check if the given variable is a function
3535
+ * @function
3536
+ * @ignore
3537
+ * @argument {*} functionToCheck - variable to check
3538
+ * @returns {Boolean} answer to: is a function?
3539
+ */
3540
+ function isFunction(functionToCheck) {
3541
+ var getType = {};
3542
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
3543
+ }
206
3544
 
207
- /***/ }),
3545
+ /**
3546
+ * Get the position of the given element, relative to its offset parent
3547
+ * @function
3548
+ * @ignore
3549
+ * @param {Element} element
3550
+ * @return {Object} position - Coordinates of the element and its `scrollTop`
3551
+ */
3552
+ function getOffsetRect(element) {
3553
+ var elementRect = {
3554
+ width: element.offsetWidth,
3555
+ height: element.offsetHeight,
3556
+ left: element.offsetLeft,
3557
+ top: element.offsetTop
3558
+ };
208
3559
 
209
- /***/ 12:
210
- /***/ (function(module, exports) {
3560
+ elementRect.right = elementRect.left + elementRect.width;
3561
+ elementRect.bottom = elementRect.top + elementRect.height;
211
3562
 
212
- module.exports = require("cy-element-ui/lib/utils/clickoutside");
3563
+ // position
3564
+ return elementRect;
3565
+ }
213
3566
 
214
- /***/ }),
3567
+ /**
3568
+ * Get bounding client rect of given element
3569
+ * @function
3570
+ * @ignore
3571
+ * @param {HTMLElement} element
3572
+ * @return {Object} client rect
3573
+ */
3574
+ function getBoundingClientRect(element) {
3575
+ var rect = element.getBoundingClientRect();
215
3576
 
216
- /***/ 16:
217
- /***/ (function(module, exports) {
3577
+ // whether the IE version is lower than 11
3578
+ var isIE = navigator.userAgent.indexOf("MSIE") != -1;
218
3579
 
219
- module.exports = require("cy-element-ui/lib/scrollbar");
3580
+ // fix ie document bounding top always 0 bug
3581
+ var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
220
3582
 
221
- /***/ }),
3583
+ return {
3584
+ left: rect.left,
3585
+ top: rectTop,
3586
+ right: rect.right,
3587
+ bottom: rect.bottom,
3588
+ width: rect.right - rect.left,
3589
+ height: rect.bottom - rectTop
3590
+ };
3591
+ }
222
3592
 
223
- /***/ 19:
224
- /***/ (function(module, exports) {
3593
+ /**
3594
+ * Given an element and one of its parents, return the offset
3595
+ * @function
3596
+ * @ignore
3597
+ * @param {HTMLElement} element
3598
+ * @param {HTMLElement} parent
3599
+ * @return {Object} rect
3600
+ */
3601
+ function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
3602
+ var elementRect = getBoundingClientRect(element);
3603
+ var parentRect = getBoundingClientRect(parent);
225
3604
 
226
- module.exports = require("throttle-debounce/debounce");
3605
+ if (fixed) {
3606
+ var scrollParent = getScrollParent(parent);
3607
+ parentRect.top += scrollParent.scrollTop;
3608
+ parentRect.bottom += scrollParent.scrollTop;
3609
+ parentRect.left += scrollParent.scrollLeft;
3610
+ parentRect.right += scrollParent.scrollLeft;
3611
+ }
227
3612
 
228
- /***/ }),
3613
+ var rect = {
3614
+ top: elementRect.top - parentRect.top,
3615
+ left: elementRect.left - parentRect.left,
3616
+ bottom: elementRect.top - parentRect.top + elementRect.height,
3617
+ right: elementRect.left - parentRect.left + elementRect.width,
3618
+ width: elementRect.width,
3619
+ height: elementRect.height
3620
+ };
3621
+ return rect;
3622
+ }
229
3623
 
230
- /***/ 22:
231
- /***/ (function(module, exports) {
3624
+ /**
3625
+ * Get the prefixed supported property name
3626
+ * @function
3627
+ * @ignore
3628
+ * @argument {String} property (camelCase)
3629
+ * @returns {String} prefixed property (camelCase)
3630
+ */
3631
+ function getSupportedPropertyName(property) {
3632
+ var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
3633
+
3634
+ for (var i = 0; i < prefixes.length; i++) {
3635
+ var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
3636
+ if (typeof root.document.body.style[toCheck] !== 'undefined') {
3637
+ return toCheck;
3638
+ }
3639
+ }
3640
+ return null;
3641
+ }
232
3642
 
233
- module.exports = require("cy-element-ui/lib/mixins/focus");
3643
+ /**
3644
+ * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
3645
+ * objects to a target object. It will return the target object.
3646
+ * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
3647
+ * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
3648
+ * @function
3649
+ * @ignore
3650
+ */
3651
+ if (!Object.assign) {
3652
+ Object.defineProperty(Object, 'assign', {
3653
+ enumerable: false,
3654
+ configurable: true,
3655
+ writable: true,
3656
+ value: function value(target) {
3657
+ if (target === undefined || target === null) {
3658
+ throw new TypeError('Cannot convert first argument to object');
3659
+ }
234
3660
 
235
- /***/ }),
3661
+ var to = Object(target);
3662
+ for (var i = 1; i < arguments.length; i++) {
3663
+ var nextSource = arguments[i];
3664
+ if (nextSource === undefined || nextSource === null) {
3665
+ continue;
3666
+ }
3667
+ nextSource = Object(nextSource);
236
3668
 
237
- /***/ 3:
238
- /***/ (function(module, exports) {
3669
+ var keysArray = Object.keys(nextSource);
3670
+ for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
3671
+ var nextKey = keysArray[nextIndex];
3672
+ var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
3673
+ if (desc !== undefined && desc.enumerable) {
3674
+ to[nextKey] = nextSource[nextKey];
3675
+ }
3676
+ }
3677
+ }
3678
+ return to;
3679
+ }
3680
+ });
3681
+ }
239
3682
 
240
- module.exports = require("cy-element-ui/lib/utils/util");
3683
+ return Popper;
3684
+ });
241
3685
 
242
3686
  /***/ }),
3687
+ /* 24 */,
3688
+ /* 25 */
3689
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
243
3690
 
244
- /***/ 4:
245
- /***/ (function(module, exports) {
3691
+ "use strict";
3692
+ // ESM COMPAT FLAG
3693
+ __webpack_require__.r(__webpack_exports__);
246
3694
 
247
- module.exports = require("cy-element-ui/lib/mixins/emitter");
3695
+ // EXTERNAL MODULE: ./src/utils/resize-event.js
3696
+ var resize_event = __webpack_require__(14);
248
3697
 
249
- /***/ }),
3698
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
3699
+ var scrollbar_width = __webpack_require__(8);
250
3700
 
251
- /***/ 5:
252
- /***/ (function(module, exports) {
3701
+ // EXTERNAL MODULE: ./src/utils/util.js
3702
+ var util = __webpack_require__(3);
3703
+
3704
+ // EXTERNAL MODULE: ./src/utils/dom.js
3705
+ var dom = __webpack_require__(1);
3706
+
3707
+ // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
3708
+ var BAR_MAP = {
3709
+ vertical: {
3710
+ offset: 'offsetHeight',
3711
+ scroll: 'scrollTop',
3712
+ scrollSize: 'scrollHeight',
3713
+ size: 'height',
3714
+ key: 'vertical',
3715
+ axis: 'Y',
3716
+ client: 'clientY',
3717
+ direction: 'top'
3718
+ },
3719
+ horizontal: {
3720
+ offset: 'offsetWidth',
3721
+ scroll: 'scrollLeft',
3722
+ scrollSize: 'scrollWidth',
3723
+ size: 'width',
3724
+ key: 'horizontal',
3725
+ axis: 'X',
3726
+ client: 'clientX',
3727
+ direction: 'left'
3728
+ }
3729
+ };
3730
+
3731
+ function renderThumbStyle(_ref) {
3732
+ var move = _ref.move,
3733
+ size = _ref.size,
3734
+ bar = _ref.bar;
3735
+
3736
+ var style = {};
3737
+ var translate = 'translate' + bar.axis + '(' + move + '%)';
3738
+
3739
+ style[bar.size] = size;
3740
+ style.transform = translate;
3741
+ style.msTransform = translate;
3742
+ style.webkitTransform = translate;
3743
+
3744
+ return style;
3745
+ };
3746
+ // CONCATENATED MODULE: ./packages/scrollbar/src/bar.js
3747
+
3748
+
3749
+
3750
+ /* istanbul ignore next */
3751
+ /* harmony default export */ var src_bar = ({
3752
+ name: 'Bar',
3753
+
3754
+ props: {
3755
+ vertical: Boolean,
3756
+ size: String,
3757
+ move: Number
3758
+ },
3759
+
3760
+ computed: {
3761
+ bar: function bar() {
3762
+ return BAR_MAP[this.vertical ? 'vertical' : 'horizontal'];
3763
+ },
3764
+ wrap: function wrap() {
3765
+ return this.$parent.wrap;
3766
+ }
3767
+ },
3768
+
3769
+ render: function render(h) {
3770
+ var size = this.size,
3771
+ move = this.move,
3772
+ bar = this.bar;
3773
+
3774
+
3775
+ return h(
3776
+ 'div',
3777
+ {
3778
+ 'class': ['el-scrollbar__bar', 'is-' + bar.key],
3779
+ on: {
3780
+ 'mousedown': this.clickTrackHandler
3781
+ }
3782
+ },
3783
+ [h('div', {
3784
+ ref: 'thumb',
3785
+ 'class': 'el-scrollbar__thumb',
3786
+ on: {
3787
+ 'mousedown': this.clickThumbHandler
3788
+ },
3789
+
3790
+ style: renderThumbStyle({ size: size, move: move, bar: bar }) })]
3791
+ );
3792
+ },
3793
+
3794
+
3795
+ methods: {
3796
+ clickThumbHandler: function clickThumbHandler(e) {
3797
+ // prevent click event of right button
3798
+ if (e.ctrlKey || e.button === 2) {
3799
+ return;
3800
+ }
3801
+ this.startDrag(e);
3802
+ this[this.bar.axis] = e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]);
3803
+ },
3804
+ clickTrackHandler: function clickTrackHandler(e) {
3805
+ var offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
3806
+ var thumbHalf = this.$refs.thumb[this.bar.offset] / 2;
3807
+ var thumbPositionPercentage = (offset - thumbHalf) * 100 / this.$el[this.bar.offset];
3808
+
3809
+ this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
3810
+ },
3811
+ startDrag: function startDrag(e) {
3812
+ e.stopImmediatePropagation();
3813
+ this.cursorDown = true;
3814
+
3815
+ Object(dom["g" /* on */])(document, 'mousemove', this.mouseMoveDocumentHandler);
3816
+ Object(dom["g" /* on */])(document, 'mouseup', this.mouseUpDocumentHandler);
3817
+ document.onselectstart = function () {
3818
+ return false;
3819
+ };
3820
+ },
3821
+ mouseMoveDocumentHandler: function mouseMoveDocumentHandler(e) {
3822
+ if (this.cursorDown === false) return;
3823
+ var prevPage = this[this.bar.axis];
3824
+
3825
+ if (!prevPage) return;
3826
+
3827
+ var offset = (this.$el.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]) * -1;
3828
+ var thumbClickPosition = this.$refs.thumb[this.bar.offset] - prevPage;
3829
+ var thumbPositionPercentage = (offset - thumbClickPosition) * 100 / this.$el[this.bar.offset];
3830
+
3831
+ this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
3832
+ },
3833
+ mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
3834
+ this.cursorDown = false;
3835
+ this[this.bar.axis] = 0;
3836
+ Object(dom["f" /* off */])(document, 'mousemove', this.mouseMoveDocumentHandler);
3837
+ document.onselectstart = null;
3838
+ }
3839
+ },
3840
+
3841
+ destroyed: function destroyed() {
3842
+ Object(dom["f" /* off */])(document, 'mouseup', this.mouseUpDocumentHandler);
3843
+ }
3844
+ });
3845
+ // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
3846
+ // reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
3847
+
3848
+
3849
+
3850
+
3851
+
3852
+
3853
+ /* istanbul ignore next */
3854
+ /* harmony default export */ var main = ({
3855
+ name: 'ElScrollbar',
3856
+
3857
+ components: { Bar: src_bar },
3858
+
3859
+ props: {
3860
+ native: Boolean,
3861
+ wrapStyle: {},
3862
+ wrapClass: {},
3863
+ viewClass: {},
3864
+ viewStyle: {},
3865
+ noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
3866
+ tag: {
3867
+ type: String,
3868
+ default: 'div'
3869
+ }
3870
+ },
3871
+
3872
+ data: function data() {
3873
+ return {
3874
+ sizeWidth: '0',
3875
+ sizeHeight: '0',
3876
+ moveX: 0,
3877
+ moveY: 0
3878
+ };
3879
+ },
3880
+
3881
+
3882
+ computed: {
3883
+ wrap: function wrap() {
3884
+ return this.$refs.wrap;
3885
+ }
3886
+ },
3887
+
3888
+ render: function render(h) {
3889
+ var gutter = Object(scrollbar_width["a" /* default */])();
3890
+ var style = this.wrapStyle;
3891
+
3892
+ if (gutter) {
3893
+ var gutterWith = '-' + gutter + 'px';
3894
+ var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
3895
+
3896
+ if (Array.isArray(this.wrapStyle)) {
3897
+ style = Object(util["t" /* toObject */])(this.wrapStyle);
3898
+ style.marginRight = style.marginBottom = gutterWith;
3899
+ } else if (typeof this.wrapStyle === 'string') {
3900
+ style += gutterStyle;
3901
+ } else {
3902
+ style = gutterStyle;
3903
+ }
3904
+ }
3905
+ var view = h(this.tag, {
3906
+ class: ['el-scrollbar__view', this.viewClass],
3907
+ style: this.viewStyle,
3908
+ ref: 'resize'
3909
+ }, this.$slots.default);
3910
+ var wrap = h(
3911
+ 'div',
3912
+ {
3913
+ ref: 'wrap',
3914
+ style: style,
3915
+ on: {
3916
+ 'scroll': this.handleScroll
3917
+ },
3918
+
3919
+ 'class': [this.wrapClass, 'el-scrollbar__wrap', gutter ? '' : 'el-scrollbar__wrap--hidden-default'] },
3920
+ [[view]]
3921
+ );
3922
+ var nodes = void 0;
3923
+
3924
+ if (!this.native) {
3925
+ nodes = [wrap, h(src_bar, {
3926
+ attrs: {
3927
+ move: this.moveX,
3928
+ size: this.sizeWidth }
3929
+ }), h(src_bar, {
3930
+ attrs: {
3931
+ vertical: true,
3932
+ move: this.moveY,
3933
+ size: this.sizeHeight }
3934
+ })];
3935
+ } else {
3936
+ nodes = [h(
3937
+ 'div',
3938
+ {
3939
+ ref: 'wrap',
3940
+ 'class': [this.wrapClass, 'el-scrollbar__wrap'],
3941
+ style: style },
3942
+ [[view]]
3943
+ )];
3944
+ }
3945
+ return h('div', { class: 'el-scrollbar' }, nodes);
3946
+ },
3947
+
3948
+
3949
+ methods: {
3950
+ handleScroll: function handleScroll() {
3951
+ var wrap = this.wrap;
3952
+
3953
+ this.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
3954
+ this.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
3955
+ },
3956
+ update: function update() {
3957
+ var heightPercentage = void 0,
3958
+ widthPercentage = void 0;
3959
+ var wrap = this.wrap;
3960
+ if (!wrap) return;
3961
+
3962
+ heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
3963
+ widthPercentage = wrap.clientWidth * 100 / wrap.scrollWidth;
3964
+
3965
+ this.sizeHeight = heightPercentage < 100 ? heightPercentage + '%' : '';
3966
+ this.sizeWidth = widthPercentage < 100 ? widthPercentage + '%' : '';
3967
+ }
3968
+ },
3969
+
3970
+ mounted: function mounted() {
3971
+ if (this.native) return;
3972
+ this.$nextTick(this.update);
3973
+ !this.noresize && Object(resize_event["a" /* addResizeListener */])(this.$refs.resize, this.update);
3974
+ },
3975
+ beforeDestroy: function beforeDestroy() {
3976
+ if (this.native) return;
3977
+ !this.noresize && Object(resize_event["b" /* removeResizeListener */])(this.$refs.resize, this.update);
3978
+ }
3979
+ });
3980
+ // CONCATENATED MODULE: ./packages/scrollbar/index.js
3981
+
3982
+
3983
+ /* istanbul ignore next */
3984
+ main.install = function (Vue) {
3985
+ Vue.component(main.name, main);
3986
+ };
253
3987
 
254
- module.exports = require("cy-element-ui/lib/utils/vue-popper");
3988
+ /* harmony default export */ var scrollbar = __webpack_exports__["default"] = (main);
255
3989
 
256
3990
  /***/ }),
3991
+ /* 26 */,
3992
+ /* 27 */,
3993
+ /* 28 */,
3994
+ /* 29 */,
3995
+ /* 30 */
3996
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3997
+
3998
+ "use strict";
3999
+ /* harmony default export */ __webpack_exports__["a"] = (function (ref) {
4000
+ return {
4001
+ methods: {
4002
+ focus: function focus() {
4003
+ this.$refs[ref].focus();
4004
+ }
4005
+ }
4006
+ };
4007
+ });;
257
4008
 
258
- /***/ 68:
4009
+ /***/ }),
4010
+ /* 31 */,
4011
+ /* 32 */,
4012
+ /* 33 */,
4013
+ /* 34 */,
4014
+ /* 35 */,
4015
+ /* 36 */,
4016
+ /* 37 */,
4017
+ /* 38 */,
4018
+ /* 39 */,
4019
+ /* 40 */,
4020
+ /* 41 */,
4021
+ /* 42 */,
4022
+ /* 43 */,
4023
+ /* 44 */,
4024
+ /* 45 */,
4025
+ /* 46 */,
4026
+ /* 47 */,
4027
+ /* 48 */,
4028
+ /* 49 */,
4029
+ /* 50 */,
4030
+ /* 51 */,
4031
+ /* 52 */,
4032
+ /* 53 */,
4033
+ /* 54 */,
4034
+ /* 55 */,
4035
+ /* 56 */,
4036
+ /* 57 */,
4037
+ /* 58 */,
4038
+ /* 59 */,
4039
+ /* 60 */,
4040
+ /* 61 */,
4041
+ /* 62 */,
4042
+ /* 63 */,
4043
+ /* 64 */,
4044
+ /* 65 */,
4045
+ /* 66 */,
4046
+ /* 67 */,
4047
+ /* 68 */
259
4048
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
260
4049
 
261
4050
  "use strict";
@@ -422,16 +4211,14 @@ render._withStripped = true
422
4211
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=55ba585e
423
4212
 
424
4213
  // EXTERNAL MODULE: external "throttle-debounce/debounce"
425
- var debounce_ = __webpack_require__(19);
4214
+ var debounce_ = __webpack_require__(22);
426
4215
  var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
427
4216
 
428
- // EXTERNAL MODULE: external "cy-element-ui/lib/input"
429
- var input_ = __webpack_require__(10);
430
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
4217
+ // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
4218
+ var input = __webpack_require__(18);
431
4219
 
432
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/clickoutside"
433
- var clickoutside_ = __webpack_require__(12);
434
- var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
4220
+ // EXTERNAL MODULE: ./src/utils/clickoutside.js
4221
+ var clickoutside = __webpack_require__(21);
435
4222
 
436
4223
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=30e01fae
437
4224
  var autocomplete_suggestionsvue_type_template_id_30e01fae_render = function render() {
@@ -488,17 +4275,14 @@ autocomplete_suggestionsvue_type_template_id_30e01fae_render._withStripped = tru
488
4275
 
489
4276
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=30e01fae
490
4277
 
491
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/vue-popper"
492
- var vue_popper_ = __webpack_require__(5);
493
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
4278
+ // EXTERNAL MODULE: ./src/utils/vue-popper.js
4279
+ var vue_popper = __webpack_require__(10);
494
4280
 
495
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/emitter"
496
- var emitter_ = __webpack_require__(4);
497
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
4281
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
4282
+ var emitter = __webpack_require__(6);
498
4283
 
499
- // EXTERNAL MODULE: external "cy-element-ui/lib/scrollbar"
500
- var scrollbar_ = __webpack_require__(16);
501
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
4284
+ // EXTERNAL MODULE: ./packages/scrollbar/index.js + 3 modules
4285
+ var scrollbar = __webpack_require__(25);
502
4286
 
503
4287
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js
504
4288
 
@@ -507,8 +4291,8 @@ var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
507
4291
 
508
4292
 
509
4293
  /* harmony default export */ var autocomplete_suggestionsvue_type_script_lang_js = ({
510
- components: { ElScrollbar: scrollbar_default.a },
511
- mixins: [vue_popper_default.a, emitter_default.a],
4294
+ components: { ElScrollbar: scrollbar["default"] },
4295
+ mixins: [vue_popper["a" /* default */], emitter["a" /* default */]],
512
4296
 
513
4297
  componentName: 'ElAutocompleteSuggestions',
514
4298
 
@@ -563,7 +4347,7 @@ var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
563
4347
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js
564
4348
  /* harmony default export */ var src_autocomplete_suggestionsvue_type_script_lang_js = (autocomplete_suggestionsvue_type_script_lang_js);
565
4349
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
566
- var componentNormalizer = __webpack_require__(0);
4350
+ var componentNormalizer = __webpack_require__(2);
567
4351
 
568
4352
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue
569
4353
 
@@ -585,16 +4369,14 @@ var component = Object(componentNormalizer["a" /* default */])(
585
4369
  )
586
4370
 
587
4371
  /* harmony default export */ var autocomplete_suggestions = (component.exports);
588
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/migrating"
589
- var migrating_ = __webpack_require__(11);
590
- var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
4372
+ // EXTERNAL MODULE: ./src/mixins/migrating.js
4373
+ var migrating = __webpack_require__(12);
591
4374
 
592
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/util"
593
- var util_ = __webpack_require__(3);
4375
+ // EXTERNAL MODULE: ./src/utils/util.js
4376
+ var util = __webpack_require__(3);
594
4377
 
595
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/focus"
596
- var focus_ = __webpack_require__(22);
597
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
4378
+ // EXTERNAL MODULE: ./src/mixins/focus.js
4379
+ var mixins_focus = __webpack_require__(30);
598
4380
 
599
4381
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js
600
4382
 
@@ -610,18 +4392,18 @@ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
610
4392
  /* harmony default export */ var autocompletevue_type_script_lang_js = ({
611
4393
  name: 'ElAutocomplete',
612
4394
 
613
- mixins: [emitter_default.a, focus_default()('input'), migrating_default.a],
4395
+ mixins: [emitter["a" /* default */], Object(mixins_focus["a" /* default */])('input'), migrating["a" /* default */]],
614
4396
 
615
4397
  inheritAttrs: false,
616
4398
 
617
4399
  componentName: 'ElAutocomplete',
618
4400
 
619
4401
  components: {
620
- ElInput: input_default.a,
4402
+ ElInput: input["default"],
621
4403
  ElAutocompleteSuggestions: autocomplete_suggestions
622
4404
  },
623
4405
 
624
- directives: { Clickoutside: clickoutside_default.a },
4406
+ directives: { Clickoutside: clickoutside["a" /* default */] },
625
4407
 
626
4408
  props: {
627
4409
  valueKey: {
@@ -690,7 +4472,7 @@ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
690
4472
  return (isValidData || this.loading) && this.activated;
691
4473
  },
692
4474
  id: function id() {
693
- return 'el-autocomplete-' + Object(util_["generateId"])();
4475
+ return 'el-autocomplete-' + Object(util["g" /* generateId */])();
694
4476
  }
695
4477
  },
696
4478
  watch: {
@@ -866,5 +4648,4 @@ autocomplete.install = function (Vue) {
866
4648
  /* harmony default export */ var packages_autocomplete = __webpack_exports__["default"] = (autocomplete);
867
4649
 
868
4650
  /***/ })
869
-
870
- /******/ });
4651
+ /******/ ]);