cy-element-ui 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +5199 -360
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +192 -101
  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 +1734 -137
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +452 -108
  14. package/lib/carousel.js +1256 -105
  15. package/lib/cascader-panel.js +3524 -191
  16. package/lib/cascader.js +8077 -717
  17. package/lib/checkbox-button.js +151 -119
  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 +4705 -828
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +10735 -4739
  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/divider.js +104 -104
  30. package/lib/drawer.js +875 -105
  31. package/lib/dropdown-item.js +128 -96
  32. package/lib/dropdown-menu.js +2301 -99
  33. package/lib/dropdown.js +990 -54
  34. package/lib/element-ui.common.js +31058 -13663
  35. package/lib/empty.js +793 -99
  36. package/lib/fileUpload.js +2542 -26
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +3305 -202
  39. package/lib/form.js +129 -115
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +1662 -146
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +435 -26
  45. package/lib/input-number.js +1421 -32
  46. package/lib/input.js +509 -37
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +886 -149
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +3140 -137
  52. package/lib/menu.js +959 -268
  53. package/lib/message-box.js +2743 -188
  54. package/lib/message.js +1196 -118
  55. package/lib/notification.js +1196 -119
  56. package/lib/option-group.js +151 -119
  57. package/lib/option.js +392 -16
  58. package/lib/page-header.js +781 -87
  59. package/lib/pagination.js +7747 -646
  60. package/lib/popconfirm.js +3606 -219
  61. package/lib/popover.js +2604 -79
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +151 -119
  64. package/lib/radio-group.js +151 -119
  65. package/lib/radio.js +47 -15
  66. package/lib/rate.js +756 -113
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +1813 -41
  70. package/lib/select.js +5547 -209
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +4768 -530
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +9600 -112
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +514 -99
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +2397 -76
  81. package/lib/switch.js +582 -127
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +1630 -104
  84. package/lib/table-column.js +1115 -267
  85. package/lib/table.js +7067 -1253
  86. package/lib/tabs.js +1615 -113
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +6481 -589
  89. package/lib/time-select.js +6334 -407
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +2688 -44
  93. package/lib/transfer.js +2238 -146
  94. package/lib/tree.js +1563 -148
  95. package/lib/treeSelect.js +3421 -106
  96. package/lib/upload.js +1198 -31
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/avatar.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 143);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 205);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 2:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 143:
195
+ /***/ 205:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -326,7 +326,7 @@ __webpack_require__.r(__webpack_exports__);
326
326
  // CONCATENATED MODULE: ./packages/avatar/src/main.vue?vue&type=script&lang=js
327
327
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
328
328
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
329
- var componentNormalizer = __webpack_require__(0);
329
+ var componentNormalizer = __webpack_require__(2);
330
330
 
331
331
  // CONCATENATED MODULE: ./packages/avatar/src/main.vue
332
332
  var render, staticRenderFns
package/lib/backtop.js CHANGED
@@ -82,117 +82,110 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 128);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 192);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
90
+ /***/ 17:
91
+ /***/ (function(module, exports) {
92
92
 
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
93
+ /* eslint-disable no-undefined,no-param-reassign,no-shadow */
94
+
95
+ /**
96
+ * Throttle execution of a function. Especially useful for rate limiting
97
+ * execution of handlers on events like resize and scroll.
98
+ *
99
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
100
+ * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
101
+ * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
102
+ * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
103
+ * the internal counter is reset)
104
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
105
+ * to `callback` when the throttled-function is executed.
106
+ * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
107
+ * schedule `callback` to execute after `delay` ms.
108
+ *
109
+ * @return {Function} A new, throttled, function.
110
+ */
111
+ module.exports = function ( delay, noTrailing, callback, debounceMode ) {
112
+
113
+ // After wrapper has stopped being called, this timeout ensures that
114
+ // `callback` is executed at the proper times in `throttle` and `end`
115
+ // debounce modes.
116
+ var timeoutID;
117
+
118
+ // Keep track of the last time `callback` was executed.
119
+ var lastExec = 0;
120
+
121
+ // `noTrailing` defaults to falsy.
122
+ if ( typeof noTrailing !== 'boolean' ) {
123
+ debounceMode = callback;
124
+ callback = noTrailing;
125
+ noTrailing = undefined;
126
+ }
96
127
 
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.
128
+ // The `wrapper` function encapsulates all of the throttling / debouncing
129
+ // functionality and when executed will limit the rate at which `callback`
130
+ // is executed.
131
+ function wrapper () {
100
132
 
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
133
+ var self = this;
134
+ var elapsed = Number(new Date()) - lastExec;
135
+ var args = arguments;
114
136
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
137
+ // Execute `callback` and update the `lastExec` timestamp.
138
+ function exec () {
139
+ lastExec = Number(new Date());
140
+ callback.apply(self, args);
141
+ }
121
142
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
143
+ // If `debounceMode` is true (at begin) this is used to clear the flag
144
+ // to allow future `callback` executions.
145
+ function clear () {
146
+ timeoutID = undefined;
147
+ }
126
148
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
149
+ if ( debounceMode && !timeoutID ) {
150
+ // Since `wrapper` is being called for the first time and
151
+ // `debounceMode` is true (at begin), execute `callback`.
152
+ exec();
153
+ }
131
154
 
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
- }
155
+ // Clear any existing timeout.
156
+ if ( timeoutID ) {
157
+ clearTimeout(timeoutID);
158
+ }
167
159
 
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
- }
160
+ if ( debounceMode === undefined && elapsed > delay ) {
161
+ // In throttle mode, if `delay` time has been exceeded, execute
162
+ // `callback`.
163
+ exec();
164
+
165
+ } else if ( noTrailing !== true ) {
166
+ // In trailing throttle mode, since `delay` time has not been
167
+ // exceeded, schedule `callback` to execute `delay` ms after most
168
+ // recent execution.
169
+ //
170
+ // If `debounceMode` is true (at begin), schedule `clear` to execute
171
+ // after `delay` ms.
172
+ //
173
+ // If `debounceMode` is false (at end), schedule `callback` to
174
+ // execute after `delay` ms.
175
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
176
+ }
185
177
 
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
178
+ }
179
+
180
+ // Return the wrapper function.
181
+ return wrapper;
182
+
183
+ };
191
184
 
192
185
 
193
186
  /***/ }),
194
187
 
195
- /***/ 128:
188
+ /***/ 192:
196
189
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
190
 
198
191
  "use strict";
@@ -236,9 +229,9 @@ render._withStripped = true
236
229
 
237
230
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=template&id=51b1362e
238
231
 
239
- // EXTERNAL MODULE: external "throttle-debounce/throttle"
240
- var throttle_ = __webpack_require__(25);
241
- var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
232
+ // EXTERNAL MODULE: ./node_modules/throttle-debounce/throttle.js
233
+ var throttle = __webpack_require__(17);
234
+ var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle);
242
235
 
243
236
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/backtop/src/main.vue?vue&type=script&lang=js
244
237
 
@@ -342,7 +335,7 @@ var easeInOutCubic = function easeInOutCubic(value) {
342
335
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=script&lang=js
343
336
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
344
337
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
345
- var componentNormalizer = __webpack_require__(0);
338
+ var componentNormalizer = __webpack_require__(2);
346
339
 
347
340
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue
348
341
 
@@ -376,10 +369,108 @@ main.install = function (Vue) {
376
369
 
377
370
  /***/ }),
378
371
 
379
- /***/ 25:
380
- /***/ (function(module, exports) {
372
+ /***/ 2:
373
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
374
+
375
+ "use strict";
376
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
377
+ /* globals __VUE_SSR_CONTEXT__ */
378
+
379
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
380
+ // This module is a runtime utility for cleaner component module output and will
381
+ // be included in the final webpack user bundle.
382
+
383
+ function normalizeComponent(
384
+ scriptExports,
385
+ render,
386
+ staticRenderFns,
387
+ functionalTemplate,
388
+ injectStyles,
389
+ scopeId,
390
+ moduleIdentifier /* server only */,
391
+ shadowMode /* vue-cli only */
392
+ ) {
393
+ // Vue.extend constructor export interop
394
+ var options =
395
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
396
+
397
+ // render functions
398
+ if (render) {
399
+ options.render = render
400
+ options.staticRenderFns = staticRenderFns
401
+ options._compiled = true
402
+ }
403
+
404
+ // functional template
405
+ if (functionalTemplate) {
406
+ options.functional = true
407
+ }
408
+
409
+ // scopedId
410
+ if (scopeId) {
411
+ options._scopeId = 'data-v-' + scopeId
412
+ }
413
+
414
+ var hook
415
+ if (moduleIdentifier) {
416
+ // server build
417
+ hook = function (context) {
418
+ // 2.3 injection
419
+ context =
420
+ context || // cached call
421
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
422
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
423
+ // 2.2 with runInNewContext: true
424
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
425
+ context = __VUE_SSR_CONTEXT__
426
+ }
427
+ // inject component styles
428
+ if (injectStyles) {
429
+ injectStyles.call(this, context)
430
+ }
431
+ // register component module identifier for async chunk inferrence
432
+ if (context && context._registeredComponents) {
433
+ context._registeredComponents.add(moduleIdentifier)
434
+ }
435
+ }
436
+ // used by ssr in case component is cached and beforeCreate
437
+ // never gets called
438
+ options._ssrRegister = hook
439
+ } else if (injectStyles) {
440
+ hook = shadowMode
441
+ ? function () {
442
+ injectStyles.call(
443
+ this,
444
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
445
+ )
446
+ }
447
+ : injectStyles
448
+ }
449
+
450
+ if (hook) {
451
+ if (options.functional) {
452
+ // for template-only hot-reload because in that case the render fn doesn't
453
+ // go through the normalizer
454
+ options._injectStyles = hook
455
+ // register for functional component in vue file
456
+ var originalRender = options.render
457
+ options.render = function renderWithStyleInjection(h, context) {
458
+ hook.call(context)
459
+ return originalRender(h, context)
460
+ }
461
+ } else {
462
+ // inject component registration as beforeCreate hook
463
+ var existing = options.beforeCreate
464
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
465
+ }
466
+ }
467
+
468
+ return {
469
+ exports: scriptExports,
470
+ options: options
471
+ }
472
+ }
381
473
 
382
- module.exports = require("throttle-debounce/throttle");
383
474
 
384
475
  /***/ })
385
476
 
package/lib/badge.js CHANGED
@@ -82,117 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 110);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 175);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
-
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
100
-
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
-
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
-
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
167
-
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
- }
184
- }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
191
-
192
-
193
- /***/ }),
194
-
195
- /***/ 110:
90
+ /***/ 175:
196
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
92
 
198
93
  "use strict";
@@ -276,7 +171,7 @@ render._withStripped = true
276
171
  // CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=script&lang=js
277
172
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
278
173
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
279
- var componentNormalizer = __webpack_require__(0);
174
+ var componentNormalizer = __webpack_require__(2);
280
175
 
281
176
  // CONCATENATED MODULE: ./packages/badge/src/main.vue
282
177
 
@@ -308,6 +203,111 @@ main.install = function (Vue) {
308
203
 
309
204
  /* harmony default export */ var badge = __webpack_exports__["default"] = (main);
310
205
 
206
+ /***/ }),
207
+
208
+ /***/ 2:
209
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
210
+
211
+ "use strict";
212
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
213
+ /* globals __VUE_SSR_CONTEXT__ */
214
+
215
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
216
+ // This module is a runtime utility for cleaner component module output and will
217
+ // be included in the final webpack user bundle.
218
+
219
+ function normalizeComponent(
220
+ scriptExports,
221
+ render,
222
+ staticRenderFns,
223
+ functionalTemplate,
224
+ injectStyles,
225
+ scopeId,
226
+ moduleIdentifier /* server only */,
227
+ shadowMode /* vue-cli only */
228
+ ) {
229
+ // Vue.extend constructor export interop
230
+ var options =
231
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
232
+
233
+ // render functions
234
+ if (render) {
235
+ options.render = render
236
+ options.staticRenderFns = staticRenderFns
237
+ options._compiled = true
238
+ }
239
+
240
+ // functional template
241
+ if (functionalTemplate) {
242
+ options.functional = true
243
+ }
244
+
245
+ // scopedId
246
+ if (scopeId) {
247
+ options._scopeId = 'data-v-' + scopeId
248
+ }
249
+
250
+ var hook
251
+ if (moduleIdentifier) {
252
+ // server build
253
+ hook = function (context) {
254
+ // 2.3 injection
255
+ context =
256
+ context || // cached call
257
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
258
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
259
+ // 2.2 with runInNewContext: true
260
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
261
+ context = __VUE_SSR_CONTEXT__
262
+ }
263
+ // inject component styles
264
+ if (injectStyles) {
265
+ injectStyles.call(this, context)
266
+ }
267
+ // register component module identifier for async chunk inferrence
268
+ if (context && context._registeredComponents) {
269
+ context._registeredComponents.add(moduleIdentifier)
270
+ }
271
+ }
272
+ // used by ssr in case component is cached and beforeCreate
273
+ // never gets called
274
+ options._ssrRegister = hook
275
+ } else if (injectStyles) {
276
+ hook = shadowMode
277
+ ? function () {
278
+ injectStyles.call(
279
+ this,
280
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
281
+ )
282
+ }
283
+ : injectStyles
284
+ }
285
+
286
+ if (hook) {
287
+ if (options.functional) {
288
+ // for template-only hot-reload because in that case the render fn doesn't
289
+ // go through the normalizer
290
+ options._injectStyles = hook
291
+ // register for functional component in vue file
292
+ var originalRender = options.render
293
+ options.render = function renderWithStyleInjection(h, context) {
294
+ hook.call(context)
295
+ return originalRender(h, context)
296
+ }
297
+ } else {
298
+ // inject component registration as beforeCreate hook
299
+ var existing = options.beforeCreate
300
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
301
+ }
302
+ }
303
+
304
+ return {
305
+ exports: scriptExports,
306
+ options: options
307
+ }
308
+ }
309
+
310
+
311
311
  /***/ })
312
312
 
313
313
  /******/ });