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
package/lib/image.js CHANGED
@@ -88,6 +88,528 @@ module.exports =
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
98
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
+
100
+ "use strict";
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
+ 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; };
115
+
116
+ /* istanbul ignore next */
117
+
118
+
119
+
120
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
124
+
125
+ /* istanbul ignore next */
126
+ var trim = function trim(string) {
127
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
+ };
129
+ /* istanbul ignore next */
130
+ var camelCase = function camelCase(name) {
131
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
+ return offset ? letter.toUpperCase() : letter;
133
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
+ };
135
+
136
+ /* istanbul ignore next */
137
+ var on = function () {
138
+ if (!isServer && document.addEventListener) {
139
+ return function (element, event, handler) {
140
+ if (element && event && handler) {
141
+ element.addEventListener(event, handler, false);
142
+ }
143
+ };
144
+ } else {
145
+ return function (element, event, handler) {
146
+ if (element && event && handler) {
147
+ element.attachEvent('on' + event, handler);
148
+ }
149
+ };
150
+ }
151
+ }();
152
+
153
+ /* istanbul ignore next */
154
+ var off = function () {
155
+ if (!isServer && document.removeEventListener) {
156
+ return function (element, event, handler) {
157
+ if (element && event) {
158
+ element.removeEventListener(event, handler, false);
159
+ }
160
+ };
161
+ } else {
162
+ return function (element, event, handler) {
163
+ if (element && event) {
164
+ element.detachEvent('on' + event, handler);
165
+ }
166
+ };
167
+ }
168
+ }();
169
+
170
+ /* istanbul ignore next */
171
+ var once = function once(el, event, fn) {
172
+ var listener = function listener() {
173
+ if (fn) {
174
+ fn.apply(this, arguments);
175
+ }
176
+ off(el, event, listener);
177
+ };
178
+ on(el, event, listener);
179
+ };
180
+
181
+ /* istanbul ignore next */
182
+ function hasClass(el, cls) {
183
+ if (!el || !cls) return false;
184
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
+ if (el.classList) {
186
+ return el.classList.contains(cls);
187
+ } else {
188
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
+ }
190
+ };
191
+
192
+ /* istanbul ignore next */
193
+ function addClass(el, cls) {
194
+ if (!el) return;
195
+ var curClass = el.className;
196
+ var classes = (cls || '').split(' ');
197
+
198
+ for (var i = 0, j = classes.length; i < j; i++) {
199
+ var clsName = classes[i];
200
+ if (!clsName) continue;
201
+
202
+ if (el.classList) {
203
+ el.classList.add(clsName);
204
+ } else if (!hasClass(el, clsName)) {
205
+ curClass += ' ' + clsName;
206
+ }
207
+ }
208
+ if (!el.classList) {
209
+ el.setAttribute('class', curClass);
210
+ }
211
+ };
212
+
213
+ /* istanbul ignore next */
214
+ function removeClass(el, cls) {
215
+ if (!el || !cls) return;
216
+ var classes = cls.split(' ');
217
+ var curClass = ' ' + el.className + ' ';
218
+
219
+ for (var i = 0, j = classes.length; i < j; i++) {
220
+ var clsName = classes[i];
221
+ if (!clsName) continue;
222
+
223
+ if (el.classList) {
224
+ el.classList.remove(clsName);
225
+ } else if (hasClass(el, clsName)) {
226
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
+ }
228
+ }
229
+ if (!el.classList) {
230
+ el.setAttribute('class', trim(curClass));
231
+ }
232
+ };
233
+
234
+ /* istanbul ignore next */
235
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
236
+ if (isServer) return;
237
+ if (!element || !styleName) return null;
238
+ styleName = camelCase(styleName);
239
+ if (styleName === 'float') {
240
+ styleName = 'styleFloat';
241
+ }
242
+ try {
243
+ switch (styleName) {
244
+ case 'opacity':
245
+ try {
246
+ return element.filters.item('alpha').opacity / 100;
247
+ } catch (e) {
248
+ return 1.0;
249
+ }
250
+ default:
251
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
+ }
253
+ } catch (e) {
254
+ return element.style[styleName];
255
+ }
256
+ } : function (element, styleName) {
257
+ if (isServer) return;
258
+ if (!element || !styleName) return null;
259
+ styleName = camelCase(styleName);
260
+ if (styleName === 'float') {
261
+ styleName = 'cssFloat';
262
+ }
263
+ try {
264
+ var computed = document.defaultView.getComputedStyle(element, '');
265
+ return element.style[styleName] || computed ? computed[styleName] : null;
266
+ } catch (e) {
267
+ return element.style[styleName];
268
+ }
269
+ };
270
+
271
+ /* istanbul ignore next */
272
+ function setStyle(element, styleName, value) {
273
+ if (!element || !styleName) return;
274
+
275
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
+ for (var prop in styleName) {
277
+ if (styleName.hasOwnProperty(prop)) {
278
+ setStyle(element, prop, styleName[prop]);
279
+ }
280
+ }
281
+ } else {
282
+ styleName = camelCase(styleName);
283
+ if (styleName === 'opacity' && ieVersion < 9) {
284
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
+ } else {
286
+ element.style[styleName] = value;
287
+ }
288
+ }
289
+ };
290
+
291
+ var isScroll = function isScroll(el, vertical) {
292
+ if (isServer) return;
293
+
294
+ var determinedDirection = vertical !== null && vertical !== undefined;
295
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
296
+
297
+ return overflow.match(/(scroll|auto|overlay)/);
298
+ };
299
+
300
+ var getScrollContainer = function getScrollContainer(el, vertical) {
301
+ if (isServer) return;
302
+
303
+ var parent = el;
304
+ while (parent) {
305
+ if ([window, document, document.documentElement].includes(parent)) {
306
+ return window;
307
+ }
308
+ if (isScroll(parent, vertical)) {
309
+ return parent;
310
+ }
311
+ parent = parent.parentNode;
312
+ }
313
+
314
+ return parent;
315
+ };
316
+
317
+ var isInContainer = function isInContainer(el, container) {
318
+ if (isServer || !el || !container) return false;
319
+
320
+ var elRect = el.getBoundingClientRect();
321
+ var containerRect = void 0;
322
+
323
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
+ containerRect = {
325
+ top: 0,
326
+ right: window.innerWidth,
327
+ bottom: window.innerHeight,
328
+ left: 0
329
+ };
330
+ } else {
331
+ containerRect = container.getBoundingClientRect();
332
+ }
333
+
334
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
+ };
336
+
337
+ /***/ }),
338
+
339
+ /***/ 11:
340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
+
342
+ "use strict";
343
+
344
+ // EXPORTS
345
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
346
+
347
+ // UNUSED EXPORTS: use, i18n
348
+
349
+ // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
350
+ /* harmony default export */ var zh_CN = ({
351
+ el: {
352
+ colorpicker: {
353
+ confirm: '确定',
354
+ clear: '清空'
355
+ },
356
+ datepicker: {
357
+ now: '此刻',
358
+ today: '今天',
359
+ cancel: '取消',
360
+ clear: '清空',
361
+ confirm: '确定',
362
+ selectDate: '选择日期',
363
+ selectTime: '选择时间',
364
+ startDate: '开始日期',
365
+ startTime: '开始时间',
366
+ endDate: '结束日期',
367
+ endTime: '结束时间',
368
+ prevYear: '前一年',
369
+ nextYear: '后一年',
370
+ prevMonth: '上个月',
371
+ nextMonth: '下个月',
372
+ year: '年',
373
+ month1: '1 月',
374
+ month2: '2 月',
375
+ month3: '3 月',
376
+ month4: '4 月',
377
+ month5: '5 月',
378
+ month6: '6 月',
379
+ month7: '7 月',
380
+ month8: '8 月',
381
+ month9: '9 月',
382
+ month10: '10 月',
383
+ month11: '11 月',
384
+ month12: '12 月',
385
+ // week: '周次',
386
+ weeks: {
387
+ sun: '日',
388
+ mon: '一',
389
+ tue: '二',
390
+ wed: '三',
391
+ thu: '四',
392
+ fri: '五',
393
+ sat: '六'
394
+ },
395
+ months: {
396
+ jan: '一月',
397
+ feb: '二月',
398
+ mar: '三月',
399
+ apr: '四月',
400
+ may: '五月',
401
+ jun: '六月',
402
+ jul: '七月',
403
+ aug: '八月',
404
+ sep: '九月',
405
+ oct: '十月',
406
+ nov: '十一月',
407
+ dec: '十二月'
408
+ }
409
+ },
410
+ select: {
411
+ loading: '加载中',
412
+ noMatch: '无匹配数据',
413
+ noData: '无数据',
414
+ placeholder: '请选择'
415
+ },
416
+ cascader: {
417
+ noMatch: '无匹配数据',
418
+ loading: '加载中',
419
+ placeholder: '请选择',
420
+ noData: '暂无数据'
421
+ },
422
+ pagination: {
423
+ goto: '前往',
424
+ pagesize: '条/页',
425
+ total: '共 {total} 条',
426
+ pageClassifier: '页'
427
+ },
428
+ messagebox: {
429
+ title: '提示',
430
+ confirm: '确定',
431
+ cancel: '取消',
432
+ error: '输入的数据不合法!'
433
+ },
434
+ upload: {
435
+ deleteTip: '按 delete 键可删除',
436
+ delete: '删除',
437
+ preview: '查看图片',
438
+ continue: '继续上传'
439
+ },
440
+ table: {
441
+ emptyText: '暂无数据',
442
+ confirmFilter: '筛选',
443
+ resetFilter: '重置',
444
+ clearFilter: '全部',
445
+ sumText: '合计'
446
+ },
447
+ tree: {
448
+ emptyText: '暂无数据'
449
+ },
450
+ transfer: {
451
+ noMatch: '无匹配数据',
452
+ noData: '无数据',
453
+ titles: ['列表 1', '列表 2'],
454
+ filterPlaceholder: '请输入搜索内容',
455
+ noCheckedFormat: '共 {total} 项',
456
+ hasCheckedFormat: '已选 {checked}/{total} 项'
457
+ },
458
+ image: {
459
+ error: '加载失败'
460
+ },
461
+ pageHeader: {
462
+ title: '返回'
463
+ },
464
+ popconfirm: {
465
+ confirmButtonText: '确定',
466
+ cancelButtonText: '取消'
467
+ },
468
+ empty: {
469
+ description: '暂无数据'
470
+ }
471
+ }
472
+ });
473
+ // EXTERNAL MODULE: external "vue"
474
+ var external_vue_ = __webpack_require__(0);
475
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
476
+
477
+ // EXTERNAL MODULE: external "deepmerge"
478
+ var external_deepmerge_ = __webpack_require__(15);
479
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
480
+
481
+ // EXTERNAL MODULE: ./src/utils/util.js
482
+ var util = __webpack_require__(3);
483
+
484
+ // CONCATENATED MODULE: ./src/locale/format.js
485
+ 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; };
486
+
487
+
488
+
489
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
490
+ /**
491
+ * String format template
492
+ * - Inspired:
493
+ * https://github.com/Matt-Esch/string-template/index.js
494
+ */
495
+ /* harmony default export */ var format = (function (Vue) {
496
+ /**
497
+ * template
498
+ *
499
+ * @param {String} string
500
+ * @param {Array} ...args
501
+ * @return {String}
502
+ */
503
+
504
+ function template(string) {
505
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
506
+ args[_key - 1] = arguments[_key];
507
+ }
508
+
509
+ if (args.length === 1 && _typeof(args[0]) === 'object') {
510
+ args = args[0];
511
+ }
512
+
513
+ if (!args || !args.hasOwnProperty) {
514
+ args = {};
515
+ }
516
+
517
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
518
+ var result = void 0;
519
+
520
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
521
+ return i;
522
+ } else {
523
+ result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
524
+ if (result === null || result === undefined) {
525
+ return '';
526
+ }
527
+
528
+ return result;
529
+ }
530
+ });
531
+ }
532
+
533
+ return template;
534
+ });
535
+ // CONCATENATED MODULE: ./src/locale/index.js
536
+
537
+
538
+
539
+
540
+
541
+ var locale_format = format(external_vue_default.a);
542
+ var lang = zh_CN;
543
+ var merged = false;
544
+ var locale_i18nHandler = function i18nHandler() {
545
+ var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
546
+ if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
547
+ if (!merged) {
548
+ merged = true;
549
+ external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
550
+ }
551
+ return vuei18n.apply(this, arguments);
552
+ }
553
+ };
554
+
555
+ var t = function t(path, options) {
556
+ var value = locale_i18nHandler.apply(this, arguments);
557
+ if (value !== null && value !== undefined) return value;
558
+
559
+ var array = path.split('.');
560
+ var current = lang;
561
+
562
+ for (var i = 0, j = array.length; i < j; i++) {
563
+ var property = array[i];
564
+ value = current[property];
565
+ if (i === j - 1) return locale_format(value, options);
566
+ if (!value) return '';
567
+ current = value;
568
+ }
569
+ return '';
570
+ };
571
+
572
+ var use = function use(l) {
573
+ lang = l || lang;
574
+ };
575
+
576
+ var i18n = function i18n(fn) {
577
+ locale_i18nHandler = fn || locale_i18nHandler;
578
+ };
579
+
580
+ /* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
581
+
582
+ /***/ }),
583
+
584
+ /***/ 13:
585
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
586
+
587
+ "use strict";
588
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
589
+
590
+
591
+ /* harmony default export */ __webpack_exports__["a"] = ({
592
+ methods: {
593
+ t: function t() {
594
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
595
+ args[_key] = arguments[_key];
596
+ }
597
+
598
+ return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
599
+ }
600
+ }
601
+ });
602
+
603
+ /***/ }),
604
+
605
+ /***/ 15:
606
+ /***/ (function(module, exports) {
607
+
608
+ module.exports = require("deepmerge");
609
+
610
+ /***/ }),
611
+
612
+ /***/ 2:
91
613
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
614
 
93
615
  "use strict";
@@ -192,45 +714,376 @@ function normalizeComponent(
192
714
 
193
715
  /***/ }),
194
716
 
195
- /***/ 14:
196
- /***/ (function(module, exports) {
717
+ /***/ 3:
718
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
719
 
198
- module.exports = require("cy-element-ui/lib/utils/popup");
720
+ "use strict";
721
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
722
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
730
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
731
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
738
+ /* unused harmony export looseEqual */
739
+ /* unused harmony export arrayEquals */
740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
741
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
742
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
743
+ /* unused harmony export objToArray */
744
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
745
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
746
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
747
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
748
+ 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; };
749
+
750
+
751
+
752
+
753
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
754
+
755
+ function noop() {};
756
+
757
+ function hasOwn(obj, key) {
758
+ return hasOwnProperty.call(obj, key);
759
+ };
199
760
 
200
- /***/ }),
761
+ function extend(to, _from) {
762
+ for (var key in _from) {
763
+ to[key] = _from[key];
764
+ }
765
+ return to;
766
+ };
201
767
 
202
- /***/ 18:
203
- /***/ (function(module, exports) {
768
+ function toObject(arr) {
769
+ var res = {};
770
+ for (var i = 0; i < arr.length; i++) {
771
+ if (arr[i]) {
772
+ extend(res, arr[i]);
773
+ }
774
+ }
775
+ return res;
776
+ };
204
777
 
205
- module.exports = require("cy-element-ui/lib/utils/types");
778
+ var getValueByPath = function getValueByPath(object, prop) {
779
+ prop = prop || '';
780
+ var paths = prop.split('.');
781
+ var current = object;
782
+ var result = null;
783
+ for (var i = 0, j = paths.length; i < j; i++) {
784
+ var path = paths[i];
785
+ if (!current) break;
786
+
787
+ if (i === j - 1) {
788
+ result = current[path];
789
+ break;
790
+ }
791
+ current = current[path];
792
+ }
793
+ return result;
794
+ };
206
795
 
207
- /***/ }),
796
+ function getPropByPath(obj, path, strict) {
797
+ var tempObj = obj;
798
+ path = path.replace(/\[(\w+)\]/g, '.$1');
799
+ path = path.replace(/^\./, '');
800
+
801
+ var keyArr = path.split('.');
802
+ var i = 0;
803
+ for (var len = keyArr.length; i < len - 1; ++i) {
804
+ if (!tempObj && !strict) break;
805
+ var key = keyArr[i];
806
+ if (key in tempObj) {
807
+ tempObj = tempObj[key];
808
+ } else {
809
+ if (strict) {
810
+ throw new Error('please transfer a valid prop path to form item!');
811
+ }
812
+ break;
813
+ }
814
+ }
815
+ return {
816
+ o: tempObj,
817
+ k: keyArr[i],
818
+ v: tempObj ? tempObj[keyArr[i]] : null
819
+ };
820
+ };
208
821
 
209
- /***/ 2:
210
- /***/ (function(module, exports) {
822
+ var generateId = function generateId() {
823
+ return Math.floor(Math.random() * 10000);
824
+ };
825
+
826
+ var valueEquals = function valueEquals(a, b) {
827
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
828
+ if (a === b) return true;
829
+ if (!(a instanceof Array)) return false;
830
+ if (!(b instanceof Array)) return false;
831
+ if (a.length !== b.length) return false;
832
+ for (var i = 0; i !== a.length; ++i) {
833
+ if (a[i] !== b[i]) return false;
834
+ }
835
+ return true;
836
+ };
837
+
838
+ var escapeRegexpString = function escapeRegexpString() {
839
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
840
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
841
+ };
842
+
843
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
844
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
845
+ for (var i = 0; i !== arr.length; ++i) {
846
+ if (pred(arr[i])) {
847
+ return i;
848
+ }
849
+ }
850
+ return -1;
851
+ };
852
+
853
+ var arrayFind = function arrayFind(arr, pred) {
854
+ var idx = arrayFindIndex(arr, pred);
855
+ return idx !== -1 ? arr[idx] : undefined;
856
+ };
857
+
858
+ // coerce truthy value to array
859
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
860
+ if (Array.isArray(val)) {
861
+ return val;
862
+ } else if (val) {
863
+ return [val];
864
+ } else {
865
+ return [];
866
+ }
867
+ };
868
+
869
+ var isIE = function isIE() {
870
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
871
+ };
872
+
873
+ var isEdge = function isEdge() {
874
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
875
+ };
876
+
877
+ var isFirefox = function isFirefox() {
878
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
879
+ };
880
+
881
+ var autoprefixer = function autoprefixer(style) {
882
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
883
+ var rules = ['transform', 'transition', 'animation'];
884
+ var prefixes = ['ms-', 'webkit-'];
885
+ rules.forEach(function (rule) {
886
+ var value = style[rule];
887
+ if (rule && value) {
888
+ prefixes.forEach(function (prefix) {
889
+ style[prefix + rule] = value;
890
+ });
891
+ }
892
+ });
893
+ return style;
894
+ };
895
+
896
+ var kebabCase = function kebabCase(str) {
897
+ var hyphenateRE = /([^-])([A-Z])/g;
898
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
899
+ };
900
+
901
+ var capitalize = function capitalize(str) {
902
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
903
+ return str.charAt(0).toUpperCase() + str.slice(1);
904
+ };
905
+
906
+ var looseEqual = function looseEqual(a, b) {
907
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
908
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
909
+ if (isObjectA && isObjectB) {
910
+ return JSON.stringify(a) === JSON.stringify(b);
911
+ } else if (!isObjectA && !isObjectB) {
912
+ return String(a) === String(b);
913
+ } else {
914
+ return false;
915
+ }
916
+ };
917
+
918
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
919
+ arrayA = arrayA || [];
920
+ arrayB = arrayB || [];
921
+
922
+ if (arrayA.length !== arrayB.length) {
923
+ return false;
924
+ }
925
+
926
+ for (var i = 0; i < arrayA.length; i++) {
927
+ if (!looseEqual(arrayA[i], arrayB[i])) {
928
+ return false;
929
+ }
930
+ }
931
+
932
+ return true;
933
+ };
934
+
935
+ var isEqual = function isEqual(value1, value2) {
936
+ if (Array.isArray(value1) && Array.isArray(value2)) {
937
+ return arrayEquals(value1, value2);
938
+ }
939
+ return looseEqual(value1, value2);
940
+ };
941
+
942
+ var isEmpty = function isEmpty(val) {
943
+ // null or undefined
944
+ if (val == null) return true;
945
+
946
+ if (typeof val === 'boolean') return false;
947
+
948
+ if (typeof val === 'number') return !val;
949
+
950
+ if (val instanceof Error) return val.message === '';
951
+
952
+ switch (Object.prototype.toString.call(val)) {
953
+ // String or Array
954
+ case '[object String]':
955
+ case '[object Array]':
956
+ return !val.length;
957
+
958
+ // Map or Set or File
959
+ case '[object File]':
960
+ case '[object Map]':
961
+ case '[object Set]':
962
+ {
963
+ return !val.size;
964
+ }
965
+ // Plain Object
966
+ case '[object Object]':
967
+ {
968
+ return !Object.keys(val).length;
969
+ }
970
+ }
971
+
972
+ return false;
973
+ };
974
+
975
+ function rafThrottle(fn) {
976
+ var locked = false;
977
+ return function () {
978
+ var _this = this;
979
+
980
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
981
+ args[_key] = arguments[_key];
982
+ }
983
+
984
+ if (locked) return;
985
+ locked = true;
986
+ window.requestAnimationFrame(function (_) {
987
+ fn.apply(_this, args);
988
+ locked = false;
989
+ });
990
+ };
991
+ }
992
+
993
+ function objToArray(obj) {
994
+ if (Array.isArray(obj)) {
995
+ return obj;
996
+ }
997
+ return isEmpty(obj) ? [] : [obj];
998
+ }
211
999
 
212
- module.exports = require("cy-element-ui/lib/utils/dom");
1000
+ var isMac = function isMac() {
1001
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
1002
+ };
213
1003
 
214
1004
  /***/ }),
215
1005
 
216
- /***/ 25:
1006
+ /***/ 38:
217
1007
  /***/ (function(module, exports) {
218
1008
 
219
1009
  module.exports = require("throttle-debounce/throttle");
220
1010
 
221
1011
  /***/ }),
222
1012
 
223
- /***/ 3:
224
- /***/ (function(module, exports) {
1013
+ /***/ 4:
1014
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1015
+
1016
+ "use strict";
1017
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
1018
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
1019
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
1020
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
1021
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
1022
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
1023
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1024
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1025
+ 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; };
1026
+
1027
+
1028
+
1029
+ function isString(obj) {
1030
+ return Object.prototype.toString.call(obj) === '[object String]';
1031
+ }
1032
+
1033
+ function isObject(obj) {
1034
+ return Object.prototype.toString.call(obj) === '[object Object]';
1035
+ }
1036
+
1037
+ function isHtmlElement(node) {
1038
+ return node && node.nodeType === Node.ELEMENT_NODE;
1039
+ }
1040
+
1041
+ /**
1042
+ * - Inspired:
1043
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
1044
+ */
1045
+ var isFunction = function isFunction(functionToCheck) {
1046
+ var getType = {};
1047
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1048
+ };
1049
+
1050
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
1051
+ isFunction = function isFunction(obj) {
1052
+ return typeof obj === 'function' || false;
1053
+ };
1054
+ }
1055
+
225
1056
 
226
- module.exports = require("cy-element-ui/lib/utils/util");
1057
+
1058
+ var isUndefined = function isUndefined(val) {
1059
+ return val === void 0;
1060
+ };
1061
+
1062
+ var isDefined = function isDefined(val) {
1063
+ return val !== undefined && val !== null;
1064
+ };
227
1065
 
228
1066
  /***/ }),
229
1067
 
230
- /***/ 6:
231
- /***/ (function(module, exports) {
1068
+ /***/ 7:
1069
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
232
1070
 
233
- module.exports = require("cy-element-ui/lib/mixins/locale");
1071
+ "use strict";
1072
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
1073
+ for (var i = 1, j = arguments.length; i < j; i++) {
1074
+ var source = arguments[i] || {};
1075
+ for (var prop in source) {
1076
+ if (source.hasOwnProperty(prop)) {
1077
+ var value = source[prop];
1078
+ if (value !== undefined) {
1079
+ target[prop] = value;
1080
+ }
1081
+ }
1082
+ }
1083
+ }
1084
+
1085
+ return target;
1086
+ });;
234
1087
 
235
1088
  /***/ }),
236
1089
 
@@ -435,14 +1288,14 @@ image_viewervue_type_template_id_1cbbb3b9_render._withStripped = true
435
1288
 
436
1289
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=template&id=1cbbb3b9
437
1290
 
438
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/dom"
439
- var dom_ = __webpack_require__(2);
1291
+ // EXTERNAL MODULE: ./src/utils/dom.js
1292
+ var dom = __webpack_require__(1);
440
1293
 
441
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/util"
442
- var util_ = __webpack_require__(3);
1294
+ // EXTERNAL MODULE: ./src/utils/util.js
1295
+ var util = __webpack_require__(3);
443
1296
 
444
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/popup"
445
- var popup_ = __webpack_require__(14);
1297
+ // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
1298
+ var popup = __webpack_require__(9);
446
1299
 
447
1300
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=script&lang=js
448
1301
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -462,7 +1315,7 @@ var Mode = {
462
1315
  }
463
1316
  };
464
1317
 
465
- var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mousewheel';
1318
+ var mousewheelEventName = Object(util["n" /* isFirefox */])() ? 'DOMMouseScroll' : 'mousewheel';
466
1319
 
467
1320
  /* harmony default export */ var image_viewervue_type_script_lang_js = ({
468
1321
  name: 'ElImageViewer',
@@ -550,7 +1403,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
550
1403
  return style;
551
1404
  },
552
1405
  viewerZIndex: function viewerZIndex() {
553
- var nextZIndex = popup_["PopupManager"].nextZIndex();
1406
+ var nextZIndex = popup["a" /* PopupManager */].nextZIndex();
554
1407
  return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;
555
1408
  }
556
1409
  },
@@ -610,7 +1463,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
610
1463
  break;
611
1464
  }
612
1465
  };
613
- this._mouseWheelHandler = Object(util_["rafThrottle"])(function (e) {
1466
+ this._mouseWheelHandler = Object(util["s" /* rafThrottle */])(function (e) {
614
1467
  var delta = e.wheelDelta ? e.wheelDelta : -e.detail;
615
1468
  if (delta > 0) {
616
1469
  _this2.handleActions('zoomIn', {
@@ -624,12 +1477,12 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
624
1477
  });
625
1478
  }
626
1479
  });
627
- Object(dom_["on"])(document, 'keydown', this._keyDownHandler);
628
- Object(dom_["on"])(document, mousewheelEventName, this._mouseWheelHandler);
1480
+ Object(dom["g" /* on */])(document, 'keydown', this._keyDownHandler);
1481
+ Object(dom["g" /* on */])(document, mousewheelEventName, this._mouseWheelHandler);
629
1482
  },
630
1483
  deviceSupportUninstall: function deviceSupportUninstall() {
631
- Object(dom_["off"])(document, 'keydown', this._keyDownHandler);
632
- Object(dom_["off"])(document, mousewheelEventName, this._mouseWheelHandler);
1484
+ Object(dom["f" /* off */])(document, 'keydown', this._keyDownHandler);
1485
+ Object(dom["f" /* off */])(document, mousewheelEventName, this._mouseWheelHandler);
633
1486
  this._keyDownHandler = null;
634
1487
  this._mouseWheelHandler = null;
635
1488
  },
@@ -651,13 +1504,13 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
651
1504
 
652
1505
  var startX = e.pageX;
653
1506
  var startY = e.pageY;
654
- this._dragHandler = Object(util_["rafThrottle"])(function (ev) {
1507
+ this._dragHandler = Object(util["s" /* rafThrottle */])(function (ev) {
655
1508
  _this3.transform.offsetX = offsetX + ev.pageX - startX;
656
1509
  _this3.transform.offsetY = offsetY + ev.pageY - startY;
657
1510
  });
658
- Object(dom_["on"])(document, 'mousemove', this._dragHandler);
659
- Object(dom_["on"])(document, 'mouseup', function (ev) {
660
- Object(dom_["off"])(document, 'mousemove', _this3._dragHandler);
1511
+ Object(dom["g" /* on */])(document, 'mousemove', this._dragHandler);
1512
+ Object(dom["g" /* on */])(document, 'mouseup', function (ev) {
1513
+ Object(dom["f" /* off */])(document, 'mousemove', _this3._dragHandler);
661
1514
  });
662
1515
 
663
1516
  e.preventDefault();
@@ -750,7 +1603,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
750
1603
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=script&lang=js
751
1604
  /* harmony default export */ var src_image_viewervue_type_script_lang_js = (image_viewervue_type_script_lang_js);
752
1605
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
753
- var componentNormalizer = __webpack_require__(0);
1606
+ var componentNormalizer = __webpack_require__(2);
754
1607
 
755
1608
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue
756
1609
 
@@ -772,15 +1625,14 @@ var component = Object(componentNormalizer["a" /* default */])(
772
1625
  )
773
1626
 
774
1627
  /* harmony default export */ var image_viewer = (component.exports);
775
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/locale"
776
- var locale_ = __webpack_require__(6);
777
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
1628
+ // EXTERNAL MODULE: ./src/mixins/locale.js
1629
+ var locale = __webpack_require__(13);
778
1630
 
779
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/types"
780
- var types_ = __webpack_require__(18);
1631
+ // EXTERNAL MODULE: ./src/utils/types.js
1632
+ var types = __webpack_require__(4);
781
1633
 
782
1634
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
783
- var throttle_ = __webpack_require__(25);
1635
+ var throttle_ = __webpack_require__(38);
784
1636
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
785
1637
 
786
1638
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=script&lang=js
@@ -808,7 +1660,7 @@ var prevOverflow = '';
808
1660
  /* harmony default export */ var mainvue_type_script_lang_js = ({
809
1661
  name: 'ElImage',
810
1662
 
811
- mixins: [locale_default.a],
1663
+ mixins: [locale["a" /* default */]],
812
1664
  inheritAttrs: false,
813
1665
 
814
1666
  components: {
@@ -935,7 +1787,7 @@ var prevOverflow = '';
935
1787
  this.$emit('error', e);
936
1788
  },
937
1789
  handleLazyLoad: function handleLazyLoad() {
938
- if (Object(dom_["isInContainer"])(this.$el, this._scrollContainer)) {
1790
+ if (Object(dom["e" /* isInContainer */])(this.$el, this._scrollContainer)) {
939
1791
  this.show = true;
940
1792
  this.removeLazyLoadListener();
941
1793
  }
@@ -947,18 +1799,18 @@ var prevOverflow = '';
947
1799
 
948
1800
  var _scrollContainer = null;
949
1801
 
950
- if (Object(types_["isHtmlElement"])(scrollContainer)) {
1802
+ if (Object(types["c" /* isHtmlElement */])(scrollContainer)) {
951
1803
  _scrollContainer = scrollContainer;
952
- } else if (Object(types_["isString"])(scrollContainer)) {
1804
+ } else if (Object(types["e" /* isString */])(scrollContainer)) {
953
1805
  _scrollContainer = document.querySelector(scrollContainer);
954
1806
  } else {
955
- _scrollContainer = Object(dom_["getScrollContainer"])(this.$el);
1807
+ _scrollContainer = Object(dom["b" /* getScrollContainer */])(this.$el);
956
1808
  }
957
1809
 
958
1810
  if (_scrollContainer) {
959
1811
  this._scrollContainer = _scrollContainer;
960
1812
  this._lazyLoadHandler = throttle_default()(200, this.handleLazyLoad);
961
- Object(dom_["on"])(_scrollContainer, 'scroll', this._lazyLoadHandler);
1813
+ Object(dom["g" /* on */])(_scrollContainer, 'scroll', this._lazyLoadHandler);
962
1814
  this.handleLazyLoad();
963
1815
  }
964
1816
  },
@@ -969,7 +1821,7 @@ var prevOverflow = '';
969
1821
 
970
1822
  if (this.$isServer || !_scrollContainer || !_lazyLoadHandler) return;
971
1823
 
972
- Object(dom_["off"])(_scrollContainer, 'scroll', _lazyLoadHandler);
1824
+ Object(dom["f" /* off */])(_scrollContainer, 'scroll', _lazyLoadHandler);
973
1825
  this._scrollContainer = null;
974
1826
  this._lazyLoadHandler = null;
975
1827
  },
@@ -1054,6 +1906,481 @@ main.install = function (Vue) {
1054
1906
 
1055
1907
  /* harmony default export */ var packages_image = __webpack_exports__["default"] = (main);
1056
1908
 
1909
+ /***/ }),
1910
+
1911
+ /***/ 8:
1912
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1913
+
1914
+ "use strict";
1915
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1916
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1917
+
1918
+
1919
+ var scrollBarWidth = void 0;
1920
+
1921
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
1922
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
1923
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
1924
+
1925
+ var outer = document.createElement('div');
1926
+ outer.className = 'el-scrollbar__wrap';
1927
+ outer.style.visibility = 'hidden';
1928
+ outer.style.width = '100px';
1929
+ outer.style.position = 'absolute';
1930
+ outer.style.top = '-9999px';
1931
+ document.body.appendChild(outer);
1932
+
1933
+ var widthNoScroll = outer.offsetWidth;
1934
+ outer.style.overflow = 'scroll';
1935
+
1936
+ var inner = document.createElement('div');
1937
+ inner.style.width = '100%';
1938
+ outer.appendChild(inner);
1939
+
1940
+ var widthWithScroll = inner.offsetWidth;
1941
+ outer.parentNode.removeChild(outer);
1942
+ scrollBarWidth = widthNoScroll - widthWithScroll;
1943
+
1944
+ return scrollBarWidth;
1945
+ });;
1946
+
1947
+ /***/ }),
1948
+
1949
+ /***/ 9:
1950
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1951
+
1952
+ "use strict";
1953
+
1954
+ // EXPORTS
1955
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1956
+
1957
+ // EXTERNAL MODULE: external "vue"
1958
+ var external_vue_ = __webpack_require__(0);
1959
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1960
+
1961
+ // EXTERNAL MODULE: ./src/utils/merge.js
1962
+ var merge = __webpack_require__(7);
1963
+
1964
+ // EXTERNAL MODULE: ./src/utils/dom.js
1965
+ var utils_dom = __webpack_require__(1);
1966
+
1967
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1968
+
1969
+
1970
+
1971
+ var hasModal = false;
1972
+ var hasInitZIndex = false;
1973
+ var popup_manager_zIndex = void 0;
1974
+
1975
+ var popup_manager_getModal = function getModal() {
1976
+ if (external_vue_default.a.prototype.$isServer) return;
1977
+ var modalDom = PopupManager.modalDom;
1978
+ if (modalDom) {
1979
+ hasModal = true;
1980
+ } else {
1981
+ hasModal = false;
1982
+ modalDom = document.createElement('div');
1983
+ PopupManager.modalDom = modalDom;
1984
+
1985
+ modalDom.addEventListener('touchmove', function (event) {
1986
+ event.preventDefault();
1987
+ event.stopPropagation();
1988
+ });
1989
+
1990
+ modalDom.addEventListener('click', function () {
1991
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1992
+ });
1993
+ }
1994
+
1995
+ return modalDom;
1996
+ };
1997
+
1998
+ var instances = {};
1999
+
2000
+ var PopupManager = {
2001
+ modalFade: true,
2002
+
2003
+ getInstance: function getInstance(id) {
2004
+ return instances[id];
2005
+ },
2006
+
2007
+ register: function register(id, instance) {
2008
+ if (id && instance) {
2009
+ instances[id] = instance;
2010
+ }
2011
+ },
2012
+
2013
+ deregister: function deregister(id) {
2014
+ if (id) {
2015
+ instances[id] = null;
2016
+ delete instances[id];
2017
+ }
2018
+ },
2019
+
2020
+ nextZIndex: function nextZIndex() {
2021
+ return PopupManager.zIndex++;
2022
+ },
2023
+
2024
+ modalStack: [],
2025
+
2026
+ doOnModalClick: function doOnModalClick() {
2027
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2028
+ if (!topItem) return;
2029
+
2030
+ var instance = PopupManager.getInstance(topItem.id);
2031
+ if (instance && instance.closeOnClickModal) {
2032
+ instance.close();
2033
+ }
2034
+ },
2035
+
2036
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
2037
+ if (external_vue_default.a.prototype.$isServer) return;
2038
+ if (!id || zIndex === undefined) return;
2039
+ this.modalFade = modalFade;
2040
+
2041
+ var modalStack = this.modalStack;
2042
+
2043
+ for (var i = 0, j = modalStack.length; i < j; i++) {
2044
+ var item = modalStack[i];
2045
+ if (item.id === id) {
2046
+ return;
2047
+ }
2048
+ }
2049
+
2050
+ var modalDom = popup_manager_getModal();
2051
+
2052
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
2053
+ if (this.modalFade && !hasModal) {
2054
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
2055
+ }
2056
+ if (modalClass) {
2057
+ var classArr = modalClass.trim().split(/\s+/);
2058
+ classArr.forEach(function (item) {
2059
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
2060
+ });
2061
+ }
2062
+ setTimeout(function () {
2063
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
2064
+ }, 200);
2065
+
2066
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
2067
+ dom.parentNode.appendChild(modalDom);
2068
+ } else {
2069
+ document.body.appendChild(modalDom);
2070
+ }
2071
+
2072
+ if (zIndex) {
2073
+ modalDom.style.zIndex = zIndex;
2074
+ }
2075
+ modalDom.tabIndex = 0;
2076
+ modalDom.style.display = '';
2077
+
2078
+ this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
2079
+ },
2080
+
2081
+ closeModal: function closeModal(id) {
2082
+ var modalStack = this.modalStack;
2083
+ var modalDom = popup_manager_getModal();
2084
+
2085
+ if (modalStack.length > 0) {
2086
+ var topItem = modalStack[modalStack.length - 1];
2087
+ if (topItem.id === id) {
2088
+ if (topItem.modalClass) {
2089
+ var classArr = topItem.modalClass.trim().split(/\s+/);
2090
+ classArr.forEach(function (item) {
2091
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
2092
+ });
2093
+ }
2094
+
2095
+ modalStack.pop();
2096
+ if (modalStack.length > 0) {
2097
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
2098
+ }
2099
+ } else {
2100
+ for (var i = modalStack.length - 1; i >= 0; i--) {
2101
+ if (modalStack[i].id === id) {
2102
+ modalStack.splice(i, 1);
2103
+ break;
2104
+ }
2105
+ }
2106
+ }
2107
+ }
2108
+
2109
+ if (modalStack.length === 0) {
2110
+ if (this.modalFade) {
2111
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
2112
+ }
2113
+ setTimeout(function () {
2114
+ if (modalStack.length === 0) {
2115
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
2116
+ modalDom.style.display = 'none';
2117
+ PopupManager.modalDom = undefined;
2118
+ }
2119
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
2120
+ }, 200);
2121
+ }
2122
+ }
2123
+ };
2124
+
2125
+ Object.defineProperty(PopupManager, 'zIndex', {
2126
+ configurable: true,
2127
+ get: function get() {
2128
+ if (!hasInitZIndex) {
2129
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
2130
+ hasInitZIndex = true;
2131
+ }
2132
+ return popup_manager_zIndex;
2133
+ },
2134
+ set: function set(value) {
2135
+ popup_manager_zIndex = value;
2136
+ }
2137
+ });
2138
+
2139
+ var popup_manager_getTopPopup = function getTopPopup() {
2140
+ if (external_vue_default.a.prototype.$isServer) return;
2141
+ if (PopupManager.modalStack.length > 0) {
2142
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2143
+ if (!topPopup) return;
2144
+ var instance = PopupManager.getInstance(topPopup.id);
2145
+
2146
+ return instance;
2147
+ }
2148
+ };
2149
+
2150
+ if (!external_vue_default.a.prototype.$isServer) {
2151
+ // handle `esc` key when the popup is shown
2152
+ window.addEventListener('keydown', function (event) {
2153
+ if (event.keyCode === 27) {
2154
+ var topPopup = popup_manager_getTopPopup();
2155
+
2156
+ if (topPopup && topPopup.closeOnPressEscape) {
2157
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
2158
+ }
2159
+ }
2160
+ });
2161
+ }
2162
+
2163
+ /* harmony default export */ var popup_manager = (PopupManager);
2164
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
2165
+ var scrollbar_width = __webpack_require__(8);
2166
+
2167
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+ var idSeed = 1;
2175
+
2176
+ var scrollBarWidth = void 0;
2177
+
2178
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
2179
+ props: {
2180
+ visible: {
2181
+ type: Boolean,
2182
+ default: false
2183
+ },
2184
+ openDelay: {},
2185
+ closeDelay: {},
2186
+ zIndex: {},
2187
+ modal: {
2188
+ type: Boolean,
2189
+ default: false
2190
+ },
2191
+ modalFade: {
2192
+ type: Boolean,
2193
+ default: true
2194
+ },
2195
+ modalClass: {},
2196
+ modalAppendToBody: {
2197
+ type: Boolean,
2198
+ default: false
2199
+ },
2200
+ lockScroll: {
2201
+ type: Boolean,
2202
+ default: true
2203
+ },
2204
+ closeOnPressEscape: {
2205
+ type: Boolean,
2206
+ default: false
2207
+ },
2208
+ closeOnClickModal: {
2209
+ type: Boolean,
2210
+ default: false
2211
+ }
2212
+ },
2213
+
2214
+ beforeMount: function beforeMount() {
2215
+ this._popupId = 'popup-' + idSeed++;
2216
+ popup_manager.register(this._popupId, this);
2217
+ },
2218
+ beforeDestroy: function beforeDestroy() {
2219
+ popup_manager.deregister(this._popupId);
2220
+ popup_manager.closeModal(this._popupId);
2221
+
2222
+ this.restoreBodyStyle();
2223
+ },
2224
+ data: function data() {
2225
+ return {
2226
+ opened: false,
2227
+ bodyPaddingRight: null,
2228
+ computedBodyPaddingRight: 0,
2229
+ withoutHiddenClass: true,
2230
+ rendered: false
2231
+ };
2232
+ },
2233
+
2234
+
2235
+ watch: {
2236
+ visible: function visible(val) {
2237
+ var _this = this;
2238
+
2239
+ if (val) {
2240
+ if (this._opening) return;
2241
+ if (!this.rendered) {
2242
+ this.rendered = true;
2243
+ external_vue_default.a.nextTick(function () {
2244
+ _this.open();
2245
+ });
2246
+ } else {
2247
+ this.open();
2248
+ }
2249
+ } else {
2250
+ this.close();
2251
+ }
2252
+ }
2253
+ },
2254
+
2255
+ methods: {
2256
+ open: function open(options) {
2257
+ var _this2 = this;
2258
+
2259
+ if (!this.rendered) {
2260
+ this.rendered = true;
2261
+ }
2262
+
2263
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
2264
+
2265
+ if (this._closeTimer) {
2266
+ clearTimeout(this._closeTimer);
2267
+ this._closeTimer = null;
2268
+ }
2269
+ clearTimeout(this._openTimer);
2270
+
2271
+ var openDelay = Number(props.openDelay);
2272
+ if (openDelay > 0) {
2273
+ this._openTimer = setTimeout(function () {
2274
+ _this2._openTimer = null;
2275
+ _this2.doOpen(props);
2276
+ }, openDelay);
2277
+ } else {
2278
+ this.doOpen(props);
2279
+ }
2280
+ },
2281
+ doOpen: function doOpen(props) {
2282
+ if (this.$isServer) return;
2283
+ if (this.willOpen && !this.willOpen()) return;
2284
+ if (this.opened) return;
2285
+
2286
+ this._opening = true;
2287
+
2288
+ var dom = this.$el;
2289
+
2290
+ var modal = props.modal;
2291
+
2292
+ var zIndex = props.zIndex;
2293
+ if (zIndex) {
2294
+ popup_manager.zIndex = zIndex;
2295
+ }
2296
+
2297
+ if (modal) {
2298
+ if (this._closing) {
2299
+ popup_manager.closeModal(this._popupId);
2300
+ this._closing = false;
2301
+ }
2302
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
2303
+ if (props.lockScroll) {
2304
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
2305
+ if (this.withoutHiddenClass) {
2306
+ this.bodyPaddingRight = document.body.style.paddingRight;
2307
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
2308
+ }
2309
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
2310
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
2311
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
2312
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
2313
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
2314
+ }
2315
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
2316
+ }
2317
+ }
2318
+
2319
+ if (getComputedStyle(dom).position === 'static') {
2320
+ dom.style.position = 'absolute';
2321
+ }
2322
+
2323
+ dom.style.zIndex = popup_manager.nextZIndex();
2324
+ this.opened = true;
2325
+
2326
+ this.onOpen && this.onOpen();
2327
+
2328
+ this.doAfterOpen();
2329
+ },
2330
+ doAfterOpen: function doAfterOpen() {
2331
+ this._opening = false;
2332
+ },
2333
+ close: function close() {
2334
+ var _this3 = this;
2335
+
2336
+ if (this.willClose && !this.willClose()) return;
2337
+
2338
+ if (this._openTimer !== null) {
2339
+ clearTimeout(this._openTimer);
2340
+ this._openTimer = null;
2341
+ }
2342
+ clearTimeout(this._closeTimer);
2343
+
2344
+ var closeDelay = Number(this.closeDelay);
2345
+
2346
+ if (closeDelay > 0) {
2347
+ this._closeTimer = setTimeout(function () {
2348
+ _this3._closeTimer = null;
2349
+ _this3.doClose();
2350
+ }, closeDelay);
2351
+ } else {
2352
+ this.doClose();
2353
+ }
2354
+ },
2355
+ doClose: function doClose() {
2356
+ this._closing = true;
2357
+
2358
+ this.onClose && this.onClose();
2359
+
2360
+ if (this.lockScroll) {
2361
+ setTimeout(this.restoreBodyStyle, 200);
2362
+ }
2363
+
2364
+ this.opened = false;
2365
+
2366
+ this.doAfterClose();
2367
+ },
2368
+ doAfterClose: function doAfterClose() {
2369
+ popup_manager.closeModal(this._popupId);
2370
+ this._closing = false;
2371
+ },
2372
+ restoreBodyStyle: function restoreBodyStyle() {
2373
+ if (this.modal && this.withoutHiddenClass) {
2374
+ document.body.style.paddingRight = this.bodyPaddingRight;
2375
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
2376
+ }
2377
+ this.withoutHiddenClass = true;
2378
+ }
2379
+ }
2380
+ });
2381
+
2382
+
2383
+
1057
2384
  /***/ })
1058
2385
 
1059
2386
  /******/ });