cy-element-ui 1.0.55 → 1.0.57

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 (220) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +368 -5207
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +101 -192
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +139 -1736
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +110 -454
  14. package/lib/carousel.js +107 -1258
  15. package/lib/cascader-panel.js +196 -3529
  16. package/lib/cascader.js +711 -8071
  17. package/lib/checkbox-button.js +121 -153
  18. package/lib/checkbox-group.js +17 -49
  19. package/lib/checkbox.js +17 -49
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +112 -817
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +846 -4723
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +4783 -10779
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +24 -1202
  29. package/lib/directives/repeat-click.js +2 -2
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +107 -877
  32. package/lib/dropdown-item.js +96 -128
  33. package/lib/dropdown-menu.js +101 -2303
  34. package/lib/dropdown.js +54 -990
  35. package/lib/element-ui.common.js +14292 -31369
  36. package/lib/empty.js +101 -795
  37. package/lib/fileUpload.js +27 -2543
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +206 -3309
  40. package/lib/form.js +117 -131
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +67 -67
  43. package/lib/image.js +155 -1671
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +26 -435
  46. package/lib/input-number.js +35 -1424
  47. package/lib/input.js +39 -511
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +149 -886
  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 +103 -103
  54. package/lib/menu-item.js +139 -3142
  55. package/lib/menu.js +280 -971
  56. package/lib/message-box.js +181 -2736
  57. package/lib/message.js +118 -1196
  58. package/lib/mixins/locale.js +1 -1
  59. package/lib/mixins/migrating.js +2 -2
  60. package/lib/notification.js +118 -1195
  61. package/lib/option-group.js +121 -153
  62. package/lib/option.js +18 -394
  63. package/lib/page-header.js +87 -781
  64. package/lib/pagination.js +642 -7743
  65. package/lib/popconfirm.js +219 -3606
  66. package/lib/popover.js +101 -2626
  67. package/lib/progress.js +4 -4
  68. package/lib/radio-button.js +121 -153
  69. package/lib/radio-group.js +121 -153
  70. package/lib/radio.js +17 -49
  71. package/lib/rate.js +115 -758
  72. package/lib/result.js +108 -108
  73. package/lib/row.js +2 -2
  74. package/lib/scrollbar.js +41 -1813
  75. package/lib/select.js +220 -5558
  76. package/lib/selectDisplayInput.js +4 -4
  77. package/lib/skeleton-item.js +108 -108
  78. package/lib/skeleton.js +108 -108
  79. package/lib/slider.js +814 -5052
  80. package/lib/spinner.js +100 -100
  81. package/lib/statistic.js +114 -9602
  82. package/lib/step.js +108 -108
  83. package/lib/steps.js +99 -514
  84. package/lib/subTitle.js +91 -91
  85. package/lib/submenu.js +76 -2397
  86. package/lib/switch.js +129 -584
  87. package/lib/tab-pane.js +108 -108
  88. package/lib/tabDialog.js +106 -1632
  89. package/lib/table-column.js +267 -1115
  90. package/lib/table.js +1297 -7111
  91. package/lib/tabs.js +115 -1617
  92. package/lib/tag.js +4 -4
  93. package/lib/time-picker.js +599 -6491
  94. package/lib/time-select.js +409 -6336
  95. package/lib/timeline-item.js +108 -108
  96. package/lib/timeline.js +4 -4
  97. package/lib/tooltip.js +44 -2688
  98. package/lib/transfer.js +155 -2247
  99. package/lib/transitions/collapse-transition.js +1 -1
  100. package/lib/tree.js +157 -1572
  101. package/lib/treeSelect.js +108 -3423
  102. package/lib/upload.js +36 -1203
  103. package/lib/utils/clickoutside.js +1 -1
  104. package/lib/utils/date-util.js +2 -2
  105. package/lib/utils/popup/index.js +2 -2
  106. package/lib/utils/popup/popup-manager.js +1 -1
  107. package/lib/utils/util.js +1 -1
  108. package/lib/utils/vdom.js +1 -1
  109. package/lib/utils/vue-popper.js +1 -1
  110. package/package.json +1 -1
  111. package/packages/autocomplete/src/autocomplete-suggestions.vue +3 -3
  112. package/packages/autocomplete/src/autocomplete.vue +6 -6
  113. package/packages/calendar/src/date-table.vue +2 -2
  114. package/packages/calendar/src/main.vue +5 -5
  115. package/packages/carousel/src/item.vue +1 -1
  116. package/packages/carousel/src/main.vue +1 -1
  117. package/packages/cascader/src/cascader.vue +15 -15
  118. package/packages/cascader-panel/src/cascader-menu.vue +3 -3
  119. package/packages/cascader-panel/src/cascader-node.vue +3 -3
  120. package/packages/cascader-panel/src/cascader-panel.vue +4 -4
  121. package/packages/cascader-panel/src/node.js +3 -3
  122. package/packages/cascader-panel/src/store.js +2 -2
  123. package/packages/checkbox/src/checkbox-button.vue +1 -1
  124. package/packages/checkbox/src/checkbox-group.vue +1 -1
  125. package/packages/checkbox/src/checkbox.vue +1 -1
  126. package/packages/collapse/src/collapse-item.vue +3 -3
  127. package/packages/color-picker/src/components/picker-dropdown.vue +4 -4
  128. package/packages/color-picker/src/main.vue +2 -2
  129. package/packages/date-picker/src/basic/date-table.vue +3 -3
  130. package/packages/date-picker/src/basic/month-table.vue +5 -5
  131. package/packages/date-picker/src/basic/time-spinner.vue +3 -3
  132. package/packages/date-picker/src/basic/year-table.vue +3 -3
  133. package/packages/date-picker/src/panel/date-range.vue +5 -5
  134. package/packages/date-picker/src/panel/date.vue +5 -5
  135. package/packages/date-picker/src/panel/month-range.vue +5 -5
  136. package/packages/date-picker/src/panel/time-range.vue +2 -2
  137. package/packages/date-picker/src/panel/time-select.vue +2 -2
  138. package/packages/date-picker/src/panel/time.vue +2 -2
  139. package/packages/date-picker/src/picker.vue +6 -6
  140. package/packages/descriptions/src/index.js +1 -1
  141. package/packages/dialog/src/component.vue +3 -3
  142. package/packages/drawer/src/main.vue +2 -2
  143. package/packages/dropdown/src/dropdown-item.vue +1 -1
  144. package/packages/dropdown/src/dropdown-menu.vue +1 -1
  145. package/packages/dropdown/src/dropdown.vue +6 -6
  146. package/packages/empty/src/index.vue +1 -1
  147. package/packages/fileUpload/src/main.vue +3 -3
  148. package/packages/form/src/form-item.vue +3 -3
  149. package/packages/form/src/form.vue +1 -1
  150. package/packages/image/src/image-viewer.vue +3 -3
  151. package/packages/image/src/main.vue +3 -3
  152. package/packages/infinite-scroll/src/main.js +3 -3
  153. package/packages/input/src/input.vue +4 -4
  154. package/packages/input-number/src/input-number.vue +3 -3
  155. package/packages/loading/src/directive.js +3 -3
  156. package/packages/loading/src/index.js +4 -4
  157. package/packages/menu/src/menu-item.vue +2 -2
  158. package/packages/menu/src/menu.vue +4 -4
  159. package/packages/menu/src/submenu.vue +4 -4
  160. package/packages/message/src/main.js +3 -3
  161. package/packages/message-box/src/main.js +2 -2
  162. package/packages/message-box/src/main.vue +7 -7
  163. package/packages/notification/src/main.js +3 -3
  164. package/packages/page-header/src/main.vue +1 -1
  165. package/packages/pagination/src/pagination.js +5 -5
  166. package/packages/popconfirm/src/main.vue +3 -3
  167. package/packages/popover/src/main.vue +4 -4
  168. package/packages/radio/src/radio-button.vue +1 -1
  169. package/packages/radio/src/radio-group.vue +1 -1
  170. package/packages/radio/src/radio.vue +1 -1
  171. package/packages/rate/src/main.vue +3 -3
  172. package/packages/scrollbar/src/bar.js +1 -1
  173. package/packages/scrollbar/src/main.js +3 -3
  174. package/packages/select/src/option-group.vue +1 -1
  175. package/packages/select/src/option.vue +2 -2
  176. package/packages/select/src/select-dropdown.vue +1 -1
  177. package/packages/select/src/select.vue +11 -11
  178. package/packages/slider/src/button.vue +1 -1
  179. package/packages/slider/src/main.vue +2 -2
  180. package/packages/statistic/src/main.vue +2 -2
  181. package/packages/steps/src/steps.vue +1 -1
  182. package/packages/switch/src/component.vue +3 -3
  183. package/packages/tabDialog/src/main.vue +1 -1
  184. package/packages/table/src/config.js +1 -1
  185. package/packages/table/src/filter-panel.vue +7 -7
  186. package/packages/table/src/store/current.js +1 -1
  187. package/packages/table/src/store/index.js +1 -1
  188. package/packages/table/src/store/watcher.js +1 -1
  189. package/packages/table/src/table-body.js +4 -4
  190. package/packages/table/src/table-column.js +1 -1
  191. package/packages/table/src/table-header.js +2 -2
  192. package/packages/table/src/table-layout.js +1 -1
  193. package/packages/table/src/table-row.js +1 -1
  194. package/packages/table/src/table.vue +5 -5
  195. package/packages/table/src/util.js +1 -1
  196. package/packages/tabs/src/tab-bar.vue +1 -1
  197. package/packages/tabs/src/tab-nav.vue +1 -1
  198. package/packages/tooltip/src/main.js +3 -3
  199. package/packages/transfer/src/main.vue +4 -4
  200. package/packages/transfer/src/transfer-panel.vue +4 -4
  201. package/packages/tree/src/model/node.js +2 -2
  202. package/packages/tree/src/tree-node.vue +3 -3
  203. package/packages/tree/src/tree.vue +3 -3
  204. package/packages/treeSelect/src/main.vue +2 -2
  205. package/packages/upload/src/index.vue +2 -2
  206. package/packages/upload/src/upload-list.vue +2 -2
  207. package/src/directives/repeat-click.js +2 -2
  208. package/src/index.js +1 -1
  209. package/src/locale/format.js +2 -2
  210. package/src/locale/index.js +1 -1
  211. package/src/mixins/locale.js +1 -1
  212. package/src/mixins/migrating.js +2 -2
  213. package/src/transitions/collapse-transition.js +1 -1
  214. package/src/utils/clickoutside.js +1 -1
  215. package/src/utils/date-util.js +2 -2
  216. package/src/utils/popup/index.js +2 -2
  217. package/src/utils/popup/popup-manager.js +1 -1
  218. package/src/utils/util.js +1 -1
  219. package/src/utils/vdom.js +1 -1
  220. package/src/utils/vue-popper.js +1 -1
@@ -82,402 +82,27 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 210);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 149);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
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
- /***/ 16:
340
- /***/ (function(module, exports, __webpack_require__) {
341
-
342
- /* eslint-disable no-undefined */
343
-
344
- var throttle = __webpack_require__(17);
345
-
346
- /**
347
- * Debounce execution of a function. Debouncing, unlike throttling,
348
- * guarantees that a function is only executed a single time, either at the
349
- * very beginning of a series of calls, or at the very end.
350
- *
351
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
352
- * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
353
- * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
354
- * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
355
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
356
- * to `callback` when the debounced-function is executed.
357
- *
358
- * @return {Function} A new, debounced function.
359
- */
360
- module.exports = function ( delay, atBegin, callback ) {
361
- return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
362
- };
363
-
364
-
365
- /***/ }),
366
-
367
- /***/ 17:
368
- /***/ (function(module, exports) {
369
-
370
- /* eslint-disable no-undefined,no-param-reassign,no-shadow */
371
-
372
- /**
373
- * Throttle execution of a function. Especially useful for rate limiting
374
- * execution of handlers on events like resize and scroll.
375
- *
376
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
377
- * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
378
- * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
379
- * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
380
- * the internal counter is reset)
381
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
382
- * to `callback` when the throttled-function is executed.
383
- * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
384
- * schedule `callback` to execute after `delay` ms.
385
- *
386
- * @return {Function} A new, throttled, function.
387
- */
388
- module.exports = function ( delay, noTrailing, callback, debounceMode ) {
389
-
390
- // After wrapper has stopped being called, this timeout ensures that
391
- // `callback` is executed at the proper times in `throttle` and `end`
392
- // debounce modes.
393
- var timeoutID;
394
-
395
- // Keep track of the last time `callback` was executed.
396
- var lastExec = 0;
397
-
398
- // `noTrailing` defaults to falsy.
399
- if ( typeof noTrailing !== 'boolean' ) {
400
- debounceMode = callback;
401
- callback = noTrailing;
402
- noTrailing = undefined;
403
- }
404
-
405
- // The `wrapper` function encapsulates all of the throttling / debouncing
406
- // functionality and when executed will limit the rate at which `callback`
407
- // is executed.
408
- function wrapper () {
409
-
410
- var self = this;
411
- var elapsed = Number(new Date()) - lastExec;
412
- var args = arguments;
413
-
414
- // Execute `callback` and update the `lastExec` timestamp.
415
- function exec () {
416
- lastExec = Number(new Date());
417
- callback.apply(self, args);
418
- }
419
-
420
- // If `debounceMode` is true (at begin) this is used to clear the flag
421
- // to allow future `callback` executions.
422
- function clear () {
423
- timeoutID = undefined;
424
- }
425
-
426
- if ( debounceMode && !timeoutID ) {
427
- // Since `wrapper` is being called for the first time and
428
- // `debounceMode` is true (at begin), execute `callback`.
429
- exec();
430
- }
431
-
432
- // Clear any existing timeout.
433
- if ( timeoutID ) {
434
- clearTimeout(timeoutID);
435
- }
436
-
437
- if ( debounceMode === undefined && elapsed > delay ) {
438
- // In throttle mode, if `delay` time has been exceeded, execute
439
- // `callback`.
440
- exec();
441
-
442
- } else if ( noTrailing !== true ) {
443
- // In trailing throttle mode, since `delay` time has not been
444
- // exceeded, schedule `callback` to execute `delay` ms after most
445
- // recent execution.
446
- //
447
- // If `debounceMode` is true (at begin), schedule `clear` to execute
448
- // after `delay` ms.
449
- //
450
- // If `debounceMode` is false (at end), schedule `callback` to
451
- // execute after `delay` ms.
452
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
453
- }
454
-
455
- }
456
-
457
- // Return the wrapper function.
458
- return wrapper;
459
-
460
- };
461
-
462
-
463
- /***/ }),
464
-
465
- /***/ 210:
90
+ /***/ 149:
466
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
467
92
 
468
93
  "use strict";
469
94
  // ESM COMPAT FLAG
470
95
  __webpack_require__.r(__webpack_exports__);
471
96
 
472
- // EXTERNAL MODULE: ./node_modules/throttle-debounce/debounce.js
473
- var debounce = __webpack_require__(16);
474
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
97
+ // EXTERNAL MODULE: external "throttle-debounce/debounce"
98
+ var debounce_ = __webpack_require__(19);
99
+ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
475
100
 
476
- // EXTERNAL MODULE: ./src/utils/types.js
477
- var types = __webpack_require__(4);
101
+ // EXTERNAL MODULE: external "cy-element-ui/lib/utils/types"
102
+ var types_ = __webpack_require__(18);
478
103
 
479
- // EXTERNAL MODULE: ./src/utils/dom.js
480
- var dom = __webpack_require__(1);
104
+ // EXTERNAL MODULE: external "cy-element-ui/lib/utils/dom"
105
+ var dom_ = __webpack_require__(2);
481
106
 
482
107
  // CONCATENATED MODULE: ./packages/infinite-scroll/src/main.js
483
108
 
@@ -536,7 +161,7 @@ var attributes = {
536
161
  };
537
162
 
538
163
  var main_getScrollOptions = function getScrollOptions(el, vm) {
539
- if (!Object(types["c" /* isHtmlElement */])(el)) return {};
164
+ if (!Object(types_["isHtmlElement"])(el)) return {};
540
165
 
541
166
  return entries(attributes).reduce(function (map, _ref) {
542
167
  var key = _ref[0],
@@ -545,14 +170,14 @@ var main_getScrollOptions = function getScrollOptions(el, vm) {
545
170
  defaultValue = option.default;
546
171
 
547
172
  var value = el.getAttribute('infinite-scroll-' + key);
548
- value = Object(types["f" /* isUndefined */])(vm[value]) ? value : vm[value];
173
+ value = Object(types_["isUndefined"])(vm[value]) ? value : vm[value];
549
174
  switch (type) {
550
175
  case Number:
551
176
  value = Number(value);
552
177
  value = Number.isNaN(value) ? defaultValue : value;
553
178
  break;
554
179
  case Boolean:
555
- value = Object(types["a" /* isDefined */])(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
180
+ value = Object(types_["isDefined"])(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
556
181
  break;
557
182
  default:
558
183
  value = type(value);
@@ -595,7 +220,7 @@ var main_handleScroll = function handleScroll(cb) {
595
220
  shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
596
221
  }
597
222
 
598
- if (shouldTrigger && Object(types["b" /* isFunction */])(cb)) {
223
+ if (shouldTrigger && Object(types_["isFunction"])(cb)) {
599
224
  cb.call(vm);
600
225
  } else if (observer) {
601
226
  observer.disconnect();
@@ -610,7 +235,7 @@ var main_handleScroll = function handleScroll(cb) {
610
235
 
611
236
  var vm = vnode.context;
612
237
  // only include vertical scroll
613
- var container = Object(dom["b" /* getScrollContainer */])(el, true);
238
+ var container = Object(dom_["getScrollContainer"])(el, true);
614
239
 
615
240
  var _getScrollOptions2 = main_getScrollOptions(el, vm),
616
241
  delay = _getScrollOptions2.delay,
@@ -652,58 +277,24 @@ main.install = function (Vue) {
652
277
 
653
278
  /***/ }),
654
279
 
655
- /***/ 4:
656
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
280
+ /***/ 18:
281
+ /***/ (function(module, exports) {
657
282
 
658
- "use strict";
659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
665
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
666
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
667
- 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; };
668
-
669
-
670
-
671
- function isString(obj) {
672
- return Object.prototype.toString.call(obj) === '[object String]';
673
- }
674
-
675
- function isObject(obj) {
676
- return Object.prototype.toString.call(obj) === '[object Object]';
677
- }
678
-
679
- function isHtmlElement(node) {
680
- return node && node.nodeType === Node.ELEMENT_NODE;
681
- }
682
-
683
- /**
684
- * - Inspired:
685
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
686
- */
687
- var isFunction = function isFunction(functionToCheck) {
688
- var getType = {};
689
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
690
- };
283
+ module.exports = require("cy-element-ui/lib/utils/types");
691
284
 
692
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
693
- isFunction = function isFunction(obj) {
694
- return typeof obj === 'function' || false;
695
- };
696
- }
285
+ /***/ }),
697
286
 
287
+ /***/ 19:
288
+ /***/ (function(module, exports) {
698
289
 
290
+ module.exports = require("throttle-debounce/debounce");
699
291
 
700
- var isUndefined = function isUndefined(val) {
701
- return val === void 0;
702
- };
292
+ /***/ }),
703
293
 
704
- var isDefined = function isDefined(val) {
705
- return val !== undefined && val !== null;
706
- };
294
+ /***/ 2:
295
+ /***/ (function(module, exports) {
296
+
297
+ module.exports = require("cy-element-ui/lib/utils/dom");
707
298
 
708
299
  /***/ })
709
300