cy-element-ui 1.0.39 → 1.0.41

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 (119) hide show
  1. package/README.md +8 -7
  2. package/lib/alert.js +13 -31
  3. package/lib/aside.js +77 -84
  4. package/lib/autocomplete.js +3969 -268
  5. package/lib/avatar.js +108 -108
  6. package/lib/backtop.js +118 -136
  7. package/lib/badge.js +112 -133
  8. package/lib/breadcrumb-item.js +8 -21
  9. package/lib/breadcrumb.js +8 -14
  10. package/lib/button-group.js +8 -14
  11. package/lib/button.js +8 -33
  12. package/lib/calendar.js +1549 -109
  13. package/lib/card.js +96 -104
  14. package/lib/carousel-item.js +456 -135
  15. package/lib/carousel.js +191 -179
  16. package/lib/cascader-panel.js +2275 -209
  17. package/lib/cascader.js +6410 -349
  18. package/lib/checkbox-button.js +52 -62
  19. package/lib/checkbox-group.js +51 -20
  20. package/lib/checkbox.js +51 -75
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +829 -170
  23. package/lib/collapse.js +112 -118
  24. package/lib/color-picker.js +3917 -258
  25. package/lib/container.js +88 -95
  26. package/lib/date-picker.js +8736 -4669
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +63 -8
  29. package/lib/dialog.js +1213 -75
  30. package/lib/divider.js +104 -120
  31. package/lib/drawer.js +897 -173
  32. package/lib/dropdown-item.js +47 -31
  33. package/lib/dropdown-menu.js +2275 -81
  34. package/lib/dropdown.js +1072 -136
  35. package/lib/element-ui.common.js +910 -4903
  36. package/lib/empty.js +625 -169
  37. package/lib/fileUpload.js +3593 -520
  38. package/lib/footer.js +77 -84
  39. package/lib/form-item.js +450 -99
  40. package/lib/form.js +33 -28
  41. package/lib/header.js +77 -84
  42. package/lib/icon.js +67 -72
  43. package/lib/image.js +1400 -152
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +311 -21
  46. package/lib/input-number.js +1438 -100
  47. package/lib/input.js +511 -151
  48. package/lib/link.js +9 -33
  49. package/lib/loading.js +808 -90
  50. package/lib/main.js +64 -71
  51. package/lib/menu-item-group.js +8 -20
  52. package/lib/menu-item.js +2912 -59
  53. package/lib/menu.js +745 -54
  54. package/lib/message-box.js +2556 -184
  55. package/lib/message.js +1117 -64
  56. package/lib/notification.js +1114 -67
  57. package/lib/option-group.js +47 -27
  58. package/lib/option.js +404 -43
  59. package/lib/page-header.js +683 -94
  60. package/lib/pagination.js +6078 -170
  61. package/lib/popconfirm.js +3514 -263
  62. package/lib/popover.js +2594 -93
  63. package/lib/progress.js +9 -62
  64. package/lib/radio-button.js +48 -55
  65. package/lib/radio-group.js +47 -26
  66. package/lib/radio.js +52 -67
  67. package/lib/rate.js +760 -152
  68. package/lib/result.js +39 -89
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +735 -50
  71. package/lib/select.js +4294 -326
  72. package/lib/skeleton-item.js +13 -33
  73. package/lib/skeleton.js +116 -143
  74. package/lib/slider.js +4285 -254
  75. package/lib/spinner.js +100 -108
  76. package/lib/statistic.js +9627 -161
  77. package/lib/step.js +140 -186
  78. package/lib/steps.js +514 -111
  79. package/lib/subTitle.js +91 -100
  80. package/lib/submenu.js +2444 -123
  81. package/lib/switch.js +483 -67
  82. package/lib/tab-pane.js +10 -24
  83. package/lib/tabDialog.js +1548 -71
  84. package/lib/table-column.js +880 -32
  85. package/lib/table.js +4530 -744
  86. package/lib/tabs.js +432 -23
  87. package/lib/tag.js +4 -4
  88. package/lib/theme-chalk/gulpfile.js +27 -0
  89. package/lib/time-picker.js +5016 -566
  90. package/lib/time-select.js +4976 -313
  91. package/lib/timeline-item.js +114 -156
  92. package/lib/timeline.js +82 -82
  93. package/lib/tooltip.js +2566 -41
  94. package/lib/transfer.js +2143 -247
  95. package/lib/tree.js +1387 -180
  96. package/lib/treeSelect.js +3426 -153
  97. package/lib/upload.js +1154 -207
  98. package/package.json +10 -11
  99. package/packages/input-number/src/input-number.vue +7 -4
  100. package/packages/selectDisplayInput/index.js +8 -0
  101. package/packages/selectDisplayInput/src/main.vue +75 -0
  102. package/packages/theme-chalk/gulpfile.js +27 -0
  103. package/packages/theme-cy/gulpfile.js +27 -0
  104. package/packages/theme-cy/src/base.scss +3 -0
  105. package/packages/theme-cy/src/index.scss +1 -0
  106. package/packages/theme-cy/src/selectDisplayInput.scss +76 -0
  107. package/packages/theme-cy/src/treeSelect.scss +9 -4
  108. package/packages/treeSelect/src/main.vue +79 -0
  109. package/src/index.js +7 -4
  110. package/types/element-ui.d.ts +5 -1
  111. package/types/selectDisplayInput.d.ts +5 -0
  112. package/CHANGELOG.md +0 -280
  113. /package/{packages/theme-cy/lib → lib/theme-chalk}/base.css +0 -0
  114. /package/{packages/theme-cy/lib → lib/theme-chalk}/element.css +0 -0
  115. /package/{packages/theme-cy/lib → lib/theme-chalk}/fileUpload.css +0 -0
  116. /package/{packages/theme-cy/lib → lib/theme-chalk}/index.css +0 -0
  117. /package/{packages/theme-cy/lib → lib/theme-chalk}/subTitle.css +0 -0
  118. /package/{packages/theme-cy/lib → lib/theme-chalk}/tabDialog.css +0 -0
  119. /package/{packages/theme-cy/lib → lib/theme-chalk}/treeSelect.css +0 -0
package/lib/rate.js CHANGED
@@ -82,135 +82,271 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 112);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 104);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
91
98
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
99
 
93
100
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
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; };
96
115
 
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.
116
+ /* istanbul ignore next */
100
117
 
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
118
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
119
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
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);
126
124
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
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
+ };
131
135
 
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
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
+ }();
167
152
 
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
- }
184
- }
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
+ }();
185
169
 
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
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
191
 
192
+ /* istanbul ignore next */
193
+ function addClass(el, cls) {
194
+ if (!el) return;
195
+ var curClass = el.className;
196
+ var classes = (cls || '').split(' ');
192
197
 
193
- /***/ }),
198
+ for (var i = 0, j = classes.length; i < j; i++) {
199
+ var clsName = classes[i];
200
+ if (!clsName) continue;
194
201
 
195
- /***/ 11:
196
- /***/ (function(module, exports) {
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
+ };
197
299
 
198
- module.exports = require("element-ui/lib/mixins/migrating");
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
+ };
199
336
 
200
337
  /***/ }),
201
338
 
202
- /***/ 112:
339
+ /***/ 104:
203
340
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
341
 
205
342
  "use strict";
206
343
  // ESM COMPAT FLAG
207
344
  __webpack_require__.r(__webpack_exports__);
208
345
 
209
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=template&id=bd056dda
210
- var render = function () {
211
- var _vm = this
212
- var _h = _vm.$createElement
213
- var _c = _vm._self._c || _h
346
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=template&id=bd056dda
347
+ var render = function render() {
348
+ var _vm = this,
349
+ _c = _vm._self._c
214
350
  return _c(
215
351
  "div",
216
352
  {
@@ -284,51 +420,16 @@ render._withStripped = true
284
420
 
285
421
  // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=template&id=bd056dda
286
422
 
287
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
288
- var dom_ = __webpack_require__(2);
423
+ // EXTERNAL MODULE: ./src/utils/dom.js
424
+ var dom = __webpack_require__(1);
289
425
 
290
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
291
- var types_ = __webpack_require__(18);
426
+ // EXTERNAL MODULE: ./src/utils/types.js
427
+ var types = __webpack_require__(4);
292
428
 
293
- // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
294
- var migrating_ = __webpack_require__(11);
295
- var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
429
+ // EXTERNAL MODULE: ./src/mixins/migrating.js
430
+ var migrating = __webpack_require__(12);
296
431
 
297
432
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=script&lang=js
298
- //
299
- //
300
- //
301
- //
302
- //
303
- //
304
- //
305
- //
306
- //
307
- //
308
- //
309
- //
310
- //
311
- //
312
- //
313
- //
314
- //
315
- //
316
- //
317
- //
318
- //
319
- //
320
- //
321
- //
322
- //
323
- //
324
- //
325
- //
326
- //
327
- //
328
- //
329
- //
330
- //
331
- //
332
433
 
333
434
 
334
435
 
@@ -337,7 +438,7 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
337
438
  /* harmony default export */ var mainvue_type_script_lang_js = ({
338
439
  name: 'ElRate',
339
440
 
340
- mixins: [migrating_default.a],
441
+ mixins: [migrating["a" /* default */]],
341
442
 
342
443
  inject: {
343
444
  elForm: {
@@ -516,13 +617,13 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
516
617
  getValueFromMap: function getValueFromMap(value, map) {
517
618
  var matchedKeys = Object.keys(map).filter(function (key) {
518
619
  var val = map[key];
519
- var excluded = Object(types_["isObject"])(val) ? val.excluded : false;
620
+ var excluded = Object(types["d" /* isObject */])(val) ? val.excluded : false;
520
621
  return excluded ? value < key : value <= key;
521
622
  }).sort(function (a, b) {
522
623
  return a - b;
523
624
  });
524
625
  var matchedValue = map[matchedKeys[0]];
525
- return Object(types_["isObject"])(matchedValue) ? matchedValue.value : matchedValue || '';
626
+ return Object(types["d" /* isObject */])(matchedValue) ? matchedValue.value : matchedValue || '';
526
627
  },
527
628
  showDecimalIcon: function showDecimalIcon(item) {
528
629
  var showWhenDisabled = this.rateDisabled && this.valueDecimal > 0 && item - 1 < this.value && item > this.value;
@@ -585,10 +686,10 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
585
686
  /* istanbul ignore if */
586
687
  if (this.allowHalf) {
587
688
  var target = event.target;
588
- if (Object(dom_["hasClass"])(target, 'el-rate__item')) {
689
+ if (Object(dom["d" /* hasClass */])(target, 'el-rate__item')) {
589
690
  target = target.querySelector('.el-rate__icon');
590
691
  }
591
- if (Object(dom_["hasClass"])(target, 'el-rate__decimal')) {
692
+ if (Object(dom["d" /* hasClass */])(target, 'el-rate__decimal')) {
592
693
  target = target.parentNode;
593
694
  }
594
695
  this.pointerAtLeftHalf = event.offsetX * 2 <= target.clientWidth;
@@ -619,7 +720,7 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
619
720
  // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=script&lang=js
620
721
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
621
722
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
622
- var componentNormalizer = __webpack_require__(0);
723
+ var componentNormalizer = __webpack_require__(2);
623
724
 
624
725
  // CONCATENATED MODULE: ./packages/rate/src/main.vue
625
726
 
@@ -653,17 +754,524 @@ main.install = function (Vue) {
653
754
 
654
755
  /***/ }),
655
756
 
656
- /***/ 18:
657
- /***/ (function(module, exports) {
757
+ /***/ 12:
758
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
759
+
760
+ "use strict";
761
+ /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
762
+
763
+ /**
764
+ * Show migrating guide in browser console.
765
+ *
766
+ * Usage:
767
+ * import Migrating from 'element-ui/src/mixins/migrating';
768
+ *
769
+ * mixins: [Migrating]
770
+ *
771
+ * add getMigratingConfig method for your component.
772
+ * getMigratingConfig() {
773
+ * return {
774
+ * props: {
775
+ * 'allow-no-selection': 'allow-no-selection is removed.',
776
+ * 'selection-mode': 'selection-mode is removed.'
777
+ * },
778
+ * events: {
779
+ * selectionchange: 'selectionchange is renamed to selection-change.'
780
+ * }
781
+ * };
782
+ * },
783
+ */
784
+ /* harmony default export */ __webpack_exports__["a"] = ({
785
+ mounted: function mounted() {
786
+ if (true) return;
787
+ if (!this.$vnode) return;
788
+
789
+ var _getMigratingConfig = this.getMigratingConfig(),
790
+ _getMigratingConfig$p = _getMigratingConfig.props,
791
+ props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
792
+ _getMigratingConfig$e = _getMigratingConfig.events,
793
+ events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
794
+
795
+ var _$vnode = this.$vnode,
796
+ data = _$vnode.data,
797
+ componentOptions = _$vnode.componentOptions;
658
798
 
659
- module.exports = require("element-ui/lib/utils/types");
799
+ var definedProps = data.attrs || {};
800
+ var definedEvents = componentOptions.listeners || {};
801
+
802
+ for (var propName in definedProps) {
803
+ propName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
804
+ if (props[propName]) {
805
+ console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
806
+ }
807
+ }
808
+
809
+ for (var eventName in definedEvents) {
810
+ eventName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
811
+ if (events[eventName]) {
812
+ console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
813
+ }
814
+ }
815
+ },
816
+
817
+ methods: {
818
+ getMigratingConfig: function getMigratingConfig() {
819
+ return {
820
+ props: {},
821
+ events: {}
822
+ };
823
+ }
824
+ }
825
+ });
660
826
 
661
827
  /***/ }),
662
828
 
663
829
  /***/ 2:
664
- /***/ (function(module, exports) {
830
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
831
+
832
+ "use strict";
833
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
834
+ /* globals __VUE_SSR_CONTEXT__ */
835
+
836
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
837
+ // This module is a runtime utility for cleaner component module output and will
838
+ // be included in the final webpack user bundle.
839
+
840
+ function normalizeComponent(
841
+ scriptExports,
842
+ render,
843
+ staticRenderFns,
844
+ functionalTemplate,
845
+ injectStyles,
846
+ scopeId,
847
+ moduleIdentifier /* server only */,
848
+ shadowMode /* vue-cli only */
849
+ ) {
850
+ // Vue.extend constructor export interop
851
+ var options =
852
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
853
+
854
+ // render functions
855
+ if (render) {
856
+ options.render = render
857
+ options.staticRenderFns = staticRenderFns
858
+ options._compiled = true
859
+ }
860
+
861
+ // functional template
862
+ if (functionalTemplate) {
863
+ options.functional = true
864
+ }
665
865
 
666
- module.exports = require("element-ui/lib/utils/dom");
866
+ // scopedId
867
+ if (scopeId) {
868
+ options._scopeId = 'data-v-' + scopeId
869
+ }
870
+
871
+ var hook
872
+ if (moduleIdentifier) {
873
+ // server build
874
+ hook = function (context) {
875
+ // 2.3 injection
876
+ context =
877
+ context || // cached call
878
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
879
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
880
+ // 2.2 with runInNewContext: true
881
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
882
+ context = __VUE_SSR_CONTEXT__
883
+ }
884
+ // inject component styles
885
+ if (injectStyles) {
886
+ injectStyles.call(this, context)
887
+ }
888
+ // register component module identifier for async chunk inferrence
889
+ if (context && context._registeredComponents) {
890
+ context._registeredComponents.add(moduleIdentifier)
891
+ }
892
+ }
893
+ // used by ssr in case component is cached and beforeCreate
894
+ // never gets called
895
+ options._ssrRegister = hook
896
+ } else if (injectStyles) {
897
+ hook = shadowMode
898
+ ? function () {
899
+ injectStyles.call(
900
+ this,
901
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
902
+ )
903
+ }
904
+ : injectStyles
905
+ }
906
+
907
+ if (hook) {
908
+ if (options.functional) {
909
+ // for template-only hot-reload because in that case the render fn doesn't
910
+ // go through the normalizer
911
+ options._injectStyles = hook
912
+ // register for functional component in vue file
913
+ var originalRender = options.render
914
+ options.render = function renderWithStyleInjection(h, context) {
915
+ hook.call(context)
916
+ return originalRender(h, context)
917
+ }
918
+ } else {
919
+ // inject component registration as beforeCreate hook
920
+ var existing = options.beforeCreate
921
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
922
+ }
923
+ }
924
+
925
+ return {
926
+ exports: scriptExports,
927
+ options: options
928
+ }
929
+ }
930
+
931
+
932
+ /***/ }),
933
+
934
+ /***/ 3:
935
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
936
+
937
+ "use strict";
938
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
939
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
940
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
941
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
942
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
943
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
944
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
945
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
946
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
947
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
948
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
949
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
950
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
951
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
952
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
953
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
954
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
955
+ /* unused harmony export looseEqual */
956
+ /* unused harmony export arrayEquals */
957
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
958
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
959
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
960
+ /* unused harmony export objToArray */
961
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
962
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
963
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
964
+ /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
965
+ 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; };
966
+
967
+
968
+
969
+
970
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
971
+
972
+ function noop() {};
973
+
974
+ function hasOwn(obj, key) {
975
+ return hasOwnProperty.call(obj, key);
976
+ };
977
+
978
+ function extend(to, _from) {
979
+ for (var key in _from) {
980
+ to[key] = _from[key];
981
+ }
982
+ return to;
983
+ };
984
+
985
+ function toObject(arr) {
986
+ var res = {};
987
+ for (var i = 0; i < arr.length; i++) {
988
+ if (arr[i]) {
989
+ extend(res, arr[i]);
990
+ }
991
+ }
992
+ return res;
993
+ };
994
+
995
+ var getValueByPath = function getValueByPath(object, prop) {
996
+ prop = prop || '';
997
+ var paths = prop.split('.');
998
+ var current = object;
999
+ var result = null;
1000
+ for (var i = 0, j = paths.length; i < j; i++) {
1001
+ var path = paths[i];
1002
+ if (!current) break;
1003
+
1004
+ if (i === j - 1) {
1005
+ result = current[path];
1006
+ break;
1007
+ }
1008
+ current = current[path];
1009
+ }
1010
+ return result;
1011
+ };
1012
+
1013
+ function getPropByPath(obj, path, strict) {
1014
+ var tempObj = obj;
1015
+ path = path.replace(/\[(\w+)\]/g, '.$1');
1016
+ path = path.replace(/^\./, '');
1017
+
1018
+ var keyArr = path.split('.');
1019
+ var i = 0;
1020
+ for (var len = keyArr.length; i < len - 1; ++i) {
1021
+ if (!tempObj && !strict) break;
1022
+ var key = keyArr[i];
1023
+ if (key in tempObj) {
1024
+ tempObj = tempObj[key];
1025
+ } else {
1026
+ if (strict) {
1027
+ throw new Error('please transfer a valid prop path to form item!');
1028
+ }
1029
+ break;
1030
+ }
1031
+ }
1032
+ return {
1033
+ o: tempObj,
1034
+ k: keyArr[i],
1035
+ v: tempObj ? tempObj[keyArr[i]] : null
1036
+ };
1037
+ };
1038
+
1039
+ var generateId = function generateId() {
1040
+ return Math.floor(Math.random() * 10000);
1041
+ };
1042
+
1043
+ var valueEquals = function valueEquals(a, b) {
1044
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
1045
+ if (a === b) return true;
1046
+ if (!(a instanceof Array)) return false;
1047
+ if (!(b instanceof Array)) return false;
1048
+ if (a.length !== b.length) return false;
1049
+ for (var i = 0; i !== a.length; ++i) {
1050
+ if (a[i] !== b[i]) return false;
1051
+ }
1052
+ return true;
1053
+ };
1054
+
1055
+ var escapeRegexpString = function escapeRegexpString() {
1056
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1057
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
1058
+ };
1059
+
1060
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
1061
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
1062
+ for (var i = 0; i !== arr.length; ++i) {
1063
+ if (pred(arr[i])) {
1064
+ return i;
1065
+ }
1066
+ }
1067
+ return -1;
1068
+ };
1069
+
1070
+ var arrayFind = function arrayFind(arr, pred) {
1071
+ var idx = arrayFindIndex(arr, pred);
1072
+ return idx !== -1 ? arr[idx] : undefined;
1073
+ };
1074
+
1075
+ // coerce truthy value to array
1076
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
1077
+ if (Array.isArray(val)) {
1078
+ return val;
1079
+ } else if (val) {
1080
+ return [val];
1081
+ } else {
1082
+ return [];
1083
+ }
1084
+ };
1085
+
1086
+ var isIE = function isIE() {
1087
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
1088
+ };
1089
+
1090
+ var isEdge = function isEdge() {
1091
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
1092
+ };
1093
+
1094
+ var isFirefox = function isFirefox() {
1095
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
1096
+ };
1097
+
1098
+ var autoprefixer = function autoprefixer(style) {
1099
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
1100
+ var rules = ['transform', 'transition', 'animation'];
1101
+ var prefixes = ['ms-', 'webkit-'];
1102
+ rules.forEach(function (rule) {
1103
+ var value = style[rule];
1104
+ if (rule && value) {
1105
+ prefixes.forEach(function (prefix) {
1106
+ style[prefix + rule] = value;
1107
+ });
1108
+ }
1109
+ });
1110
+ return style;
1111
+ };
1112
+
1113
+ var kebabCase = function kebabCase(str) {
1114
+ var hyphenateRE = /([^-])([A-Z])/g;
1115
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
1116
+ };
1117
+
1118
+ var capitalize = function capitalize(str) {
1119
+ if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
1120
+ return str.charAt(0).toUpperCase() + str.slice(1);
1121
+ };
1122
+
1123
+ var looseEqual = function looseEqual(a, b) {
1124
+ var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
1125
+ var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
1126
+ if (isObjectA && isObjectB) {
1127
+ return JSON.stringify(a) === JSON.stringify(b);
1128
+ } else if (!isObjectA && !isObjectB) {
1129
+ return String(a) === String(b);
1130
+ } else {
1131
+ return false;
1132
+ }
1133
+ };
1134
+
1135
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
1136
+ arrayA = arrayA || [];
1137
+ arrayB = arrayB || [];
1138
+
1139
+ if (arrayA.length !== arrayB.length) {
1140
+ return false;
1141
+ }
1142
+
1143
+ for (var i = 0; i < arrayA.length; i++) {
1144
+ if (!looseEqual(arrayA[i], arrayB[i])) {
1145
+ return false;
1146
+ }
1147
+ }
1148
+
1149
+ return true;
1150
+ };
1151
+
1152
+ var isEqual = function isEqual(value1, value2) {
1153
+ if (Array.isArray(value1) && Array.isArray(value2)) {
1154
+ return arrayEquals(value1, value2);
1155
+ }
1156
+ return looseEqual(value1, value2);
1157
+ };
1158
+
1159
+ var isEmpty = function isEmpty(val) {
1160
+ // null or undefined
1161
+ if (val == null) return true;
1162
+
1163
+ if (typeof val === 'boolean') return false;
1164
+
1165
+ if (typeof val === 'number') return !val;
1166
+
1167
+ if (val instanceof Error) return val.message === '';
1168
+
1169
+ switch (Object.prototype.toString.call(val)) {
1170
+ // String or Array
1171
+ case '[object String]':
1172
+ case '[object Array]':
1173
+ return !val.length;
1174
+
1175
+ // Map or Set or File
1176
+ case '[object File]':
1177
+ case '[object Map]':
1178
+ case '[object Set]':
1179
+ {
1180
+ return !val.size;
1181
+ }
1182
+ // Plain Object
1183
+ case '[object Object]':
1184
+ {
1185
+ return !Object.keys(val).length;
1186
+ }
1187
+ }
1188
+
1189
+ return false;
1190
+ };
1191
+
1192
+ function rafThrottle(fn) {
1193
+ var locked = false;
1194
+ return function () {
1195
+ var _this = this;
1196
+
1197
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1198
+ args[_key] = arguments[_key];
1199
+ }
1200
+
1201
+ if (locked) return;
1202
+ locked = true;
1203
+ window.requestAnimationFrame(function (_) {
1204
+ fn.apply(_this, args);
1205
+ locked = false;
1206
+ });
1207
+ };
1208
+ }
1209
+
1210
+ function objToArray(obj) {
1211
+ if (Array.isArray(obj)) {
1212
+ return obj;
1213
+ }
1214
+ return isEmpty(obj) ? [] : [obj];
1215
+ }
1216
+
1217
+ var isMac = function isMac() {
1218
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
1219
+ };
1220
+
1221
+ /***/ }),
1222
+
1223
+ /***/ 4:
1224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1225
+
1226
+ "use strict";
1227
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
1228
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
1229
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
1230
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
1231
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
1232
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
1233
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1234
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1235
+ 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; };
1236
+
1237
+
1238
+
1239
+ function isString(obj) {
1240
+ return Object.prototype.toString.call(obj) === '[object String]';
1241
+ }
1242
+
1243
+ function isObject(obj) {
1244
+ return Object.prototype.toString.call(obj) === '[object Object]';
1245
+ }
1246
+
1247
+ function isHtmlElement(node) {
1248
+ return node && node.nodeType === Node.ELEMENT_NODE;
1249
+ }
1250
+
1251
+ /**
1252
+ * - Inspired:
1253
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
1254
+ */
1255
+ var isFunction = function isFunction(functionToCheck) {
1256
+ var getType = {};
1257
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1258
+ };
1259
+
1260
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
1261
+ isFunction = function isFunction(obj) {
1262
+ return typeof obj === 'function' || false;
1263
+ };
1264
+ }
1265
+
1266
+
1267
+
1268
+ var isUndefined = function isUndefined(val) {
1269
+ return val === void 0;
1270
+ };
1271
+
1272
+ var isDefined = function isDefined(val) {
1273
+ return val !== undefined && val !== null;
1274
+ };
667
1275
 
668
1276
  /***/ })
669
1277