iov-design 2.15.60 → 2.15.61

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 (234) hide show
  1. package/README.md +148 -148
  2. package/lib/alert.js +24 -105
  3. package/lib/aside.js +24 -34
  4. package/lib/autocomplete.js +36 -240
  5. package/lib/avatar.js +21 -20
  6. package/lib/backtop.js +27 -52
  7. package/lib/badge.js +30 -58
  8. package/lib/breadcrumb-item.js +24 -53
  9. package/lib/breadcrumb.js +24 -37
  10. package/lib/button-group.js +24 -29
  11. package/lib/button.js +38 -60
  12. package/lib/calendar.js +29 -146
  13. package/lib/card.js +24 -51
  14. package/lib/carousel-item.js +30 -68
  15. package/lib/carousel.js +27 -159
  16. package/lib/cascader-panel.js +41 -64
  17. package/lib/cascader.js +37 -470
  18. package/lib/checkbox-button.js +28 -164
  19. package/lib/checkbox-group.js +24 -37
  20. package/lib/checkbox.js +35 -189
  21. package/lib/col.js +1 -0
  22. package/lib/collapse-item.js +27 -125
  23. package/lib/collapse.js +24 -37
  24. package/lib/color-picker.js +104 -424
  25. package/lib/container.js +24 -34
  26. package/lib/date-picker.js +126 -1981
  27. package/lib/descriptions-item.js +1 -0
  28. package/lib/descriptions.js +1 -0
  29. package/lib/dialog.js +24 -137
  30. package/lib/divider.js +29 -64
  31. package/lib/drawer.js +24 -139
  32. package/lib/dropdown-item.js +27 -45
  33. package/lib/dropdown-menu.js +24 -51
  34. package/lib/dropdown.js +21 -20
  35. package/lib/empty.js +24 -61
  36. package/lib/footer.js +24 -34
  37. package/lib/form-item.js +42 -128
  38. package/lib/form.js +27 -40
  39. package/lib/header.js +24 -34
  40. package/lib/icon.js +24 -29
  41. package/lib/image.js +36 -220
  42. package/lib/index.js +1 -1
  43. package/lib/infinite-scroll.js +1 -0
  44. package/lib/input-number.js +30 -163
  45. package/lib/input.js +42 -274
  46. package/lib/iov-design.common.js +1635 -11132
  47. package/lib/link.js +31 -56
  48. package/lib/loading.js +24 -77
  49. package/lib/locale/format.js +10 -10
  50. package/lib/main.js +24 -29
  51. package/lib/menu-item-group.js +24 -40
  52. package/lib/menu-item.js +27 -83
  53. package/lib/menu.js +21 -20
  54. package/lib/message-box.js +24 -321
  55. package/lib/message.js +30 -82
  56. package/lib/mixins/migrating.js +20 -20
  57. package/lib/notification.js +24 -109
  58. package/lib/option-group.js +24 -50
  59. package/lib/option.js +27 -76
  60. package/lib/page-header.js +24 -56
  61. package/lib/pagination.js +24 -97
  62. package/lib/popconfirm.js +24 -97
  63. package/lib/popover.js +24 -89
  64. package/lib/progress.js +30 -133
  65. package/lib/radio-button.js +29 -111
  66. package/lib/radio-group.js +24 -39
  67. package/lib/radio.js +36 -152
  68. package/lib/rate.js +24 -94
  69. package/lib/result.js +72 -187
  70. package/lib/row.js +1 -0
  71. package/lib/scrollbar.js +1 -0
  72. package/lib/select.js +48 -637
  73. package/lib/skeleton-item.js +36 -68
  74. package/lib/skeleton.js +28 -70
  75. package/lib/slider.js +36 -267
  76. package/lib/spinner.js +24 -51
  77. package/lib/statistic.js +24 -76
  78. package/lib/step.js +29 -118
  79. package/lib/steps.js +27 -40
  80. package/lib/submenu.js +21 -20
  81. package/lib/switch.js +24 -130
  82. package/lib/tab-pane.js +24 -52
  83. package/lib/table-column.js +1 -0
  84. package/lib/table.js +93 -633
  85. package/lib/tabs.js +34 -49
  86. package/lib/tag.js +21 -20
  87. package/lib/theme-chalk/button.css +1 -1
  88. package/lib/theme-chalk/calendar.css +1 -1
  89. package/lib/theme-chalk/dropdown.css +1 -1
  90. package/lib/theme-chalk/index.css +1 -1
  91. package/lib/theme-chalk/link.css +1 -1
  92. package/lib/theme-chalk/message-box.css +1 -1
  93. package/lib/theme-chalk/transfer.css +1 -1
  94. package/lib/time-picker.js +58 -820
  95. package/lib/time-select.js +42 -303
  96. package/lib/timeline-item.js +29 -75
  97. package/lib/timeline.js +21 -20
  98. package/lib/tooltip.js +1 -0
  99. package/lib/transfer.js +36 -299
  100. package/lib/tree.js +54 -243
  101. package/lib/upload.js +86 -654
  102. package/lib/utils/clickoutside.js +7 -7
  103. package/lib/utils/vue-popper.js +7 -7
  104. package/package.json +154 -154
  105. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  106. package/packages/autocomplete/src/autocomplete.vue +285 -285
  107. package/packages/button/src/button.vue +90 -90
  108. package/packages/calendar/src/date-table.vue +200 -200
  109. package/packages/calendar/src/main.vue +280 -280
  110. package/packages/carousel/src/item.vue +138 -138
  111. package/packages/carousel/src/main.vue +315 -315
  112. package/packages/cascader/src/cascader.vue +776 -776
  113. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  114. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  115. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  116. package/packages/cascader-panel/src/node.js +166 -166
  117. package/packages/cascader-panel/src/store.js +58 -58
  118. package/packages/checkbox/src/checkbox-button.vue +199 -199
  119. package/packages/checkbox/src/checkbox-group.vue +49 -49
  120. package/packages/checkbox/src/checkbox.vue +225 -225
  121. package/packages/collapse/src/collapse-item.vue +114 -114
  122. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  123. package/packages/color-picker/src/main.vue +188 -188
  124. package/packages/date-picker/src/basic/date-table.vue +441 -441
  125. package/packages/date-picker/src/basic/month-table.vue +269 -269
  126. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  127. package/packages/date-picker/src/basic/year-table.vue +111 -111
  128. package/packages/date-picker/src/panel/date-range.vue +680 -680
  129. package/packages/date-picker/src/panel/date.vue +609 -609
  130. package/packages/date-picker/src/panel/month-range.vue +289 -289
  131. package/packages/date-picker/src/panel/time-range.vue +248 -248
  132. package/packages/date-picker/src/panel/time-select.vue +178 -178
  133. package/packages/date-picker/src/panel/time.vue +186 -186
  134. package/packages/date-picker/src/picker.vue +967 -967
  135. package/packages/descriptions/src/index.js +180 -180
  136. package/packages/dialog/src/component.vue +262 -262
  137. package/packages/drawer/src/main.vue +205 -205
  138. package/packages/dropdown/src/dropdown-item.vue +37 -37
  139. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  140. package/packages/dropdown/src/dropdown.vue +293 -293
  141. package/packages/empty/src/index.vue +70 -70
  142. package/packages/form/src/form-item.vue +324 -324
  143. package/packages/form/src/form.vue +182 -182
  144. package/packages/image/src/image-viewer.vue +330 -330
  145. package/packages/image/src/main.vue +249 -249
  146. package/packages/infinite-scroll/src/main.js +150 -150
  147. package/packages/input/src/input.vue +477 -477
  148. package/packages/input-number/src/input-number.vue +283 -283
  149. package/packages/loading/src/directive.js +133 -133
  150. package/packages/loading/src/index.js +106 -106
  151. package/packages/menu/src/menu-item.vue +112 -112
  152. package/packages/menu/src/menu.vue +325 -325
  153. package/packages/menu/src/submenu.vue +349 -349
  154. package/packages/message/src/main.js +91 -91
  155. package/packages/message-box/src/main.js +216 -216
  156. package/packages/message-box/src/main.vue +333 -333
  157. package/packages/notification/src/main.js +94 -94
  158. package/packages/page-header/src/main.vue +30 -30
  159. package/packages/pagination/src/pagination.js +390 -390
  160. package/packages/popconfirm/src/main.vue +104 -104
  161. package/packages/popover/src/main.vue +239 -239
  162. package/packages/radio/src/radio-button.vue +115 -115
  163. package/packages/radio/src/radio-group.vue +115 -115
  164. package/packages/radio/src/radio.vue +148 -148
  165. package/packages/rate/src/main.vue +348 -348
  166. package/packages/scrollbar/src/bar.js +92 -92
  167. package/packages/scrollbar/src/main.js +130 -130
  168. package/packages/select/src/option-group.vue +60 -60
  169. package/packages/select/src/option.vue +171 -171
  170. package/packages/select/src/select-dropdown.vue +74 -74
  171. package/packages/select/src/select.vue +979 -979
  172. package/packages/slider/src/button.vue +238 -238
  173. package/packages/slider/src/main.vue +427 -427
  174. package/packages/statistic/src/main.vue +204 -204
  175. package/packages/steps/src/steps.vue +68 -68
  176. package/packages/switch/src/component.vue +182 -182
  177. package/packages/table/src/config.js +153 -153
  178. package/packages/table/src/filter-panel.vue +194 -194
  179. package/packages/table/src/store/current.js +76 -76
  180. package/packages/table/src/store/helper.js +41 -41
  181. package/packages/table/src/store/index.js +147 -147
  182. package/packages/table/src/store/watcher.js +502 -502
  183. package/packages/table/src/table-body.js +469 -469
  184. package/packages/table/src/table-column.js +328 -328
  185. package/packages/table/src/table-header.js +571 -571
  186. package/packages/table/src/table-layout.js +249 -249
  187. package/packages/table/src/table-row.js +101 -101
  188. package/packages/table/src/table.vue +740 -740
  189. package/packages/table/src/util.js +273 -273
  190. package/packages/tabs/src/tab-bar.vue +57 -57
  191. package/packages/tabs/src/tab-nav.vue +294 -294
  192. package/packages/tabs/src/tabs.vue +201 -201
  193. package/packages/theme-chalk/src/button.scss +416 -416
  194. package/packages/theme-chalk/src/cascader.scss +252 -252
  195. package/packages/theme-chalk/src/checkbox.scss +419 -419
  196. package/packages/theme-chalk/src/common/var.scss +795 -795
  197. package/packages/theme-chalk/src/form.scss +201 -201
  198. package/packages/theme-chalk/src/input.scss +591 -591
  199. package/packages/theme-chalk/src/iovfont.scss +803 -803
  200. package/packages/theme-chalk/src/link.scss +8 -8
  201. package/packages/theme-chalk/src/message-box.scss +207 -207
  202. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  203. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  204. package/packages/theme-chalk/src/radio-button.scss +115 -115
  205. package/packages/theme-chalk/src/select.scss +270 -270
  206. package/packages/theme-chalk/src/tabs.scss +755 -755
  207. package/packages/theme-chalk/src/upload.scss +568 -568
  208. package/packages/tooltip/src/main.js +242 -242
  209. package/packages/transfer/src/main.vue +231 -231
  210. package/packages/transfer/src/transfer-panel.vue +251 -251
  211. package/packages/tree/src/model/node.js +484 -484
  212. package/packages/tree/src/tree-node.vue +279 -279
  213. package/packages/tree/src/tree.vue +496 -496
  214. package/packages/upload/src/index.vue +420 -420
  215. package/packages/upload/src/upload-file.vue +98 -98
  216. package/packages/upload/src/upload-list.vue +115 -115
  217. package/packages/upload/src/upload-picture.vue +98 -98
  218. package/packages/upload/src/upload.vue +231 -231
  219. package/packages/upload/src/utils.js +31 -31
  220. package/src/directives/repeat-click.js +26 -26
  221. package/src/index.js +259 -259
  222. package/src/locale/format.js +46 -46
  223. package/src/locale/index.js +48 -48
  224. package/src/locale/lang/lo-LA.js +126 -126
  225. package/src/mixins/locale.js +9 -9
  226. package/src/mixins/migrating.js +54 -54
  227. package/src/transitions/collapse-transition.js +77 -77
  228. package/src/utils/clickoutside.js +76 -76
  229. package/src/utils/date-util.js +282 -282
  230. package/src/utils/popup/index.js +218 -218
  231. package/src/utils/popup/popup-manager.js +194 -194
  232. package/src/utils/util.js +245 -245
  233. package/src/utils/vdom.js +5 -5
  234. package/src/utils/vue-popper.js +198 -198
package/lib/popover.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -214,80 +217,15 @@ module.exports = require("iov-design/lib/utils/vue-popper");
214
217
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
215
218
 
216
219
  "use strict";
220
+ // ESM COMPAT FLAG
217
221
  __webpack_require__.r(__webpack_exports__);
218
222
 
219
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=52060272&
220
- var render = function() {
221
- var _vm = this
222
- var _h = _vm.$createElement
223
- var _c = _vm._self._c || _h
224
- return _c(
225
- "span",
226
- [
227
- _c(
228
- "transition",
229
- {
230
- attrs: { name: _vm.transition },
231
- on: {
232
- "after-enter": _vm.handleAfterEnter,
233
- "after-leave": _vm.handleAfterLeave
234
- }
235
- },
236
- [
237
- _c(
238
- "div",
239
- {
240
- directives: [
241
- {
242
- name: "show",
243
- rawName: "v-show",
244
- value: !_vm.disabled && _vm.showPopper,
245
- expression: "!disabled && showPopper"
246
- }
247
- ],
248
- ref: "popper",
249
- staticClass: "el-popover el-popper",
250
- class: [_vm.popperClass, _vm.content && "el-popover--plain"],
251
- style: { width: _vm.width + "px" },
252
- attrs: {
253
- role: "tooltip",
254
- id: _vm.tooltipId,
255
- "aria-hidden":
256
- _vm.disabled || !_vm.showPopper ? "true" : "false"
257
- }
258
- },
259
- [
260
- _vm.title
261
- ? _c("div", {
262
- staticClass: "el-popover__title",
263
- domProps: { textContent: _vm._s(_vm.title) }
264
- })
265
- : _vm._e(),
266
- _c(
267
- "div",
268
- { staticClass: "el-popover__content" },
269
- [_vm._t("default", [_vm._v(_vm._s(_vm.content))])],
270
- 2
271
- )
272
- ]
273
- )
274
- ]
275
- ),
276
- _c(
277
- "span",
278
- { ref: "wrapper", staticClass: "el-popover__reference-wrapper" },
279
- [_vm._t("reference")],
280
- 2
281
- )
282
- ],
283
- 1
284
- )
285
- }
223
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=template&id=6dff254a
224
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('transition',{attrs:{"name":_vm.transition},on:{"after-enter":_vm.handleAfterEnter,"after-leave":_vm.handleAfterLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.disabled && _vm.showPopper),expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[_vm.popperClass, _vm.content && 'el-popover--plain'],style:({ width: _vm.width + 'px' }),attrs:{"role":"tooltip","id":_vm.tooltipId,"aria-hidden":(_vm.disabled || !_vm.showPopper) ? 'true' : 'false'}},[(_vm.title)?_c('div',{staticClass:"el-popover__title",domProps:{"textContent":_vm._s(_vm.title)}}):_vm._e(),_c('div',{staticClass:"el-popover__content"},[_vm._t("default",[_vm._v(_vm._s(_vm.content))])],2)])]),_c('span',{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[_vm._t("reference")],2)],1)}
286
225
  var staticRenderFns = []
287
226
  render._withStripped = true
288
227
 
289
-
290
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=52060272&
228
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=template&id=6dff254a
291
229
 
292
230
  // EXTERNAL MODULE: external "iov-design/lib/utils/vue-popper"
293
231
  var vue_popper_ = __webpack_require__(5);
@@ -299,7 +237,7 @@ var dom_ = __webpack_require__(2);
299
237
  // EXTERNAL MODULE: external "iov-design/lib/utils/util"
300
238
  var util_ = __webpack_require__(3);
301
239
 
302
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js&
240
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popover/src/main.vue?vue&type=script&lang=js
303
241
  //
304
242
  //
305
243
  //
@@ -333,7 +271,7 @@ var util_ = __webpack_require__(3);
333
271
 
334
272
 
335
273
 
336
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
274
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
337
275
  name: 'ElPopover',
338
276
 
339
277
  mixins: [vue_popper_default.a],
@@ -541,8 +479,8 @@ var util_ = __webpack_require__(3);
541
479
  Object(dom_["off"])(document, 'click', this.handleDocumentClick);
542
480
  }
543
481
  });
544
- // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js&
545
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
482
+ // CONCATENATED MODULE: ./packages/popover/src/main.vue?vue&type=script&lang=js
483
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
546
484
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
547
485
  var componentNormalizer = __webpack_require__(0);
548
486
 
@@ -555,7 +493,7 @@ var componentNormalizer = __webpack_require__(0);
555
493
  /* normalize component */
556
494
 
557
495
  var component = Object(componentNormalizer["a" /* default */])(
558
- src_mainvue_type_script_lang_js_,
496
+ src_mainvue_type_script_lang_js,
559
497
  render,
560
498
  staticRenderFns,
561
499
  false,
@@ -565,9 +503,6 @@ var component = Object(componentNormalizer["a" /* default */])(
565
503
 
566
504
  )
567
505
 
568
- /* hot reload */
569
- if (false) { var api; }
570
- component.options.__file = "packages/popover/src/main.vue"
571
506
  /* harmony default export */ var main = (component.exports);
572
507
  // CONCATENATED MODULE: ./packages/popover/src/directive.js
573
508
  var getReference = function getReference(el, binding, vnode) {
package/lib/progress.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,127 +196,24 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c(
204
- "div",
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=6da3006f
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-progress",class:[
204
+ 'el-progress--' + _vm.type,
205
+ _vm.status ? 'is-' + _vm.status : '',
205
206
  {
206
- staticClass: "el-progress",
207
- class: [
208
- "el-progress--" + _vm.type,
209
- _vm.status ? "is-" + _vm.status : "",
210
- {
211
- "el-progress--without-text": !_vm.showText,
212
- "el-progress--text-inside": _vm.textInside
213
- }
214
- ],
215
- attrs: {
216
- role: "progressbar",
217
- "aria-valuenow": _vm.percentage,
218
- "aria-valuemin": "0",
219
- "aria-valuemax": "100"
220
- }
221
- },
222
- [
223
- _vm.type === "line"
224
- ? _c("div", { staticClass: "el-progress-bar" }, [
225
- _c(
226
- "div",
227
- {
228
- staticClass: "el-progress-bar__outer",
229
- style: {
230
- height: _vm.strokeWidth + "px",
231
- backgroundColor: _vm.defineBackColor
232
- }
233
- },
234
- [
235
- _c(
236
- "div",
237
- {
238
- staticClass: "el-progress-bar__inner",
239
- style: _vm.barStyle
240
- },
241
- [
242
- _vm.showText && _vm.textInside
243
- ? _c(
244
- "div",
245
- {
246
- staticClass: "el-progress-bar__innerText",
247
- style: { color: _vm.textColor }
248
- },
249
- [_vm._v(_vm._s(_vm.content))]
250
- )
251
- : _vm._e()
252
- ]
253
- )
254
- ]
255
- )
256
- ])
257
- : _c(
258
- "div",
259
- {
260
- staticClass: "el-progress-circle",
261
- style: { height: _vm.width + "px", width: _vm.width + "px" }
262
- },
263
- [
264
- _c("svg", { attrs: { viewBox: "0 0 100 100" } }, [
265
- _c("path", {
266
- staticClass: "el-progress-circle__track",
267
- style: _vm.trailPathStyle,
268
- attrs: {
269
- d: _vm.trackPath,
270
- stroke: _vm.defineBackColor,
271
- "stroke-width": _vm.relativeStrokeWidth,
272
- fill: "none"
273
- }
274
- }),
275
- _c("path", {
276
- staticClass: "el-progress-circle__path",
277
- style: _vm.circlePathStyle,
278
- attrs: {
279
- d: _vm.trackPath,
280
- stroke: _vm.stroke,
281
- fill: "none",
282
- "stroke-linecap": _vm.strokeLinecap,
283
- "stroke-width": _vm.percentage ? _vm.relativeStrokeWidth : 0
284
- }
285
- })
286
- ])
287
- ]
288
- ),
289
- _vm.showText && !_vm.textInside
290
- ? _c(
291
- "div",
292
- {
293
- staticClass: "el-progress__text",
294
- style: {
295
- fontSize: _vm.progressTextSize + "px",
296
- color: _vm.textColor
297
- }
298
- },
299
- [
300
- !_vm.status
301
- ? [_vm._v(_vm._s(_vm.content))]
302
- : _c("i", { class: _vm.iconClass })
303
- ],
304
- 2
305
- )
306
- : _vm._e()
307
- ]
308
- )
309
- }
207
+ 'el-progress--without-text': !_vm.showText,
208
+ 'el-progress--text-inside': _vm.textInside,
209
+ }
210
+ ],attrs:{"role":"progressbar","aria-valuenow":_vm.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},[(_vm.type === 'line')?_c('div',{staticClass:"el-progress-bar"},[_c('div',{staticClass:"el-progress-bar__outer",style:({height: _vm.strokeWidth + 'px', backgroundColor:_vm.defineBackColor})},[_c('div',{staticClass:"el-progress-bar__inner",style:(_vm.barStyle)},[(_vm.showText && _vm.textInside)?_c('div',{staticClass:"el-progress-bar__innerText",style:({color:_vm.textColor})},[_vm._v(_vm._s(_vm.content))]):_vm._e()])])]):_c('div',{staticClass:"el-progress-circle",style:({height: _vm.width + 'px', width: _vm.width + 'px'})},[_c('svg',{attrs:{"viewBox":"0 0 100 100"}},[_c('path',{staticClass:"el-progress-circle__track",style:(_vm.trailPathStyle),attrs:{"d":_vm.trackPath,"stroke":_vm.defineBackColor,"stroke-width":_vm.relativeStrokeWidth,"fill":"none"}}),_c('path',{staticClass:"el-progress-circle__path",style:(_vm.circlePathStyle),attrs:{"d":_vm.trackPath,"stroke":_vm.stroke,"fill":"none","stroke-linecap":_vm.strokeLinecap,"stroke-width":_vm.percentage ? _vm.relativeStrokeWidth : 0}})])]),(_vm.showText && !_vm.textInside)?_c('div',{staticClass:"el-progress__text",style:({fontSize: _vm.progressTextSize + 'px', color:_vm.textColor})},[(!_vm.status)?[_vm._v(_vm._s(_vm.content))]:_c('i',{class:_vm.iconClass})],2):_vm._e()])}
310
211
  var staticRenderFns = []
311
212
  render._withStripped = true
312
213
 
214
+ // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=6da3006f
313
215
 
314
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=229ee406&
315
-
316
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js&
216
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js
317
217
  //
318
218
  //
319
219
  //
@@ -367,7 +267,7 @@ render._withStripped = true
367
267
  //
368
268
  //
369
269
 
370
- /* harmony default export */ var progressvue_type_script_lang_js_ = ({
270
+ /* harmony default export */ var progressvue_type_script_lang_js = ({
371
271
  name: 'ElProgress',
372
272
  props: {
373
273
  type: {
@@ -549,8 +449,8 @@ render._withStripped = true
549
449
  }
550
450
  }
551
451
  });
552
- // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js&
553
- /* harmony default export */ var src_progressvue_type_script_lang_js_ = (progressvue_type_script_lang_js_);
452
+ // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js
453
+ /* harmony default export */ var src_progressvue_type_script_lang_js = (progressvue_type_script_lang_js);
554
454
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
555
455
  var componentNormalizer = __webpack_require__(0);
556
456
 
@@ -563,7 +463,7 @@ var componentNormalizer = __webpack_require__(0);
563
463
  /* normalize component */
564
464
 
565
465
  var component = Object(componentNormalizer["a" /* default */])(
566
- src_progressvue_type_script_lang_js_,
466
+ src_progressvue_type_script_lang_js,
567
467
  render,
568
468
  staticRenderFns,
569
469
  false,
@@ -573,9 +473,6 @@ var component = Object(componentNormalizer["a" /* default */])(
573
473
 
574
474
  )
575
475
 
576
- /* hot reload */
577
- if (false) { var api; }
578
- component.options.__file = "packages/progress/src/progress.vue"
579
476
  /* harmony default export */ var progress = (component.exports);
580
477
  // CONCATENATED MODULE: ./packages/progress/index.js
581
478
 
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -200,108 +203,26 @@ module.exports = require("iov-design/lib/mixins/emitter");
200
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
201
204
 
202
205
  "use strict";
206
+ // ESM COMPAT FLAG
203
207
  __webpack_require__.r(__webpack_exports__);
204
208
 
205
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=template&id=18a77a32&
206
- var render = function() {
207
- var _vm = this
208
- var _h = _vm.$createElement
209
- var _c = _vm._self._c || _h
210
- return _c(
211
- "label",
212
- {
213
- staticClass: "el-radio-button",
214
- class: [
215
- _vm.size ? "el-radio-button--" + _vm.size : "",
216
- { "is-active": _vm.value === _vm.label },
217
- { "is-disabled": _vm.isDisabled },
218
- { "is-focus": _vm.focus }
219
- ],
220
- attrs: {
221
- role: "radio",
222
- "aria-checked": _vm.value === _vm.label,
223
- "aria-disabled": _vm.isDisabled,
224
- tabindex: _vm.tabIndex
225
- },
226
- on: {
227
- keydown: function($event) {
228
- if (
229
- !("button" in $event) &&
230
- _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
231
- ) {
232
- return null
233
- }
234
- $event.stopPropagation()
235
- $event.preventDefault()
236
- _vm.value = _vm.isDisabled ? _vm.value : _vm.label
237
- }
238
- }
239
- },
240
- [
241
- _c("input", {
242
- directives: [
243
- {
244
- name: "model",
245
- rawName: "v-model",
246
- value: _vm.value,
247
- expression: "value"
248
- }
249
- ],
250
- staticClass: "el-radio-button__orig-radio",
251
- attrs: {
252
- type: "radio",
253
- name: _vm.name,
254
- disabled: _vm.isDisabled,
255
- tabindex: "-1",
256
- autocomplete: "off"
257
- },
258
- domProps: { value: _vm.label, checked: _vm._q(_vm.value, _vm.label) },
259
- on: {
260
- change: [
261
- function($event) {
262
- _vm.value = _vm.label
263
- },
264
- _vm.handleChange
265
- ],
266
- focus: function($event) {
267
- _vm.focus = true
268
- },
269
- blur: function($event) {
270
- _vm.focus = false
271
- }
272
- }
273
- }),
274
- _c(
275
- "span",
276
- {
277
- staticClass: "el-radio-button__inner",
278
- style: _vm.value === _vm.label ? _vm.activeStyle : null,
279
- on: {
280
- keydown: function($event) {
281
- $event.stopPropagation()
282
- }
283
- }
284
- },
285
- [
286
- _vm._t("default"),
287
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
288
- ],
289
- 2
290
- )
291
- ]
292
- )
293
- }
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=template&id=0162c6fb
210
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"el-radio-button",class:[
211
+ _vm.size ? 'el-radio-button--' + _vm.size : '',
212
+ { 'is-active': _vm.value === _vm.label },
213
+ { 'is-disabled': _vm.isDisabled },
214
+ { 'is-focus': _vm.focus }
215
+ ],attrs:{"role":"radio","aria-checked":_vm.value === _vm.label,"aria-disabled":_vm.isDisabled,"tabindex":_vm.tabIndex},on:{"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.stopPropagation();$event.preventDefault();_vm.value = _vm.isDisabled ? _vm.value : _vm.label}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{"type":"radio","name":_vm.name,"disabled":_vm.isDisabled,"tabindex":"-1","autocomplete":"off"},domProps:{"value":_vm.label,"checked":_vm._q(_vm.value,_vm.label)},on:{"change":[function($event){_vm.value=_vm.label},_vm.handleChange],"focus":function($event){_vm.focus = true},"blur":function($event){_vm.focus = false}}}),_c('span',{staticClass:"el-radio-button__inner",style:(_vm.value === _vm.label ? _vm.activeStyle : null),on:{"keydown":function($event){$event.stopPropagation();}}},[_vm._t("default"),(!_vm.$slots.default)?[_vm._v(_vm._s(_vm.label))]:_vm._e()],2)])}
294
216
  var staticRenderFns = []
295
217
  render._withStripped = true
296
218
 
297
-
298
- // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=template&id=18a77a32&
219
+ // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=template&id=0162c6fb
299
220
 
300
221
  // EXTERNAL MODULE: external "iov-design/lib/mixins/emitter"
301
222
  var emitter_ = __webpack_require__(4);
302
223
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
303
224
 
304
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=script&lang=js&
225
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=script&lang=js
305
226
  //
306
227
  //
307
228
  //
@@ -342,7 +263,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
342
263
 
343
264
 
344
265
 
345
- /* harmony default export */ var radio_buttonvue_type_script_lang_js_ = ({
266
+ /* harmony default export */ var radio_buttonvue_type_script_lang_js = ({
346
267
  name: 'ElRadioButton',
347
268
 
348
269
  mixins: [emitter_default.a],
@@ -419,8 +340,8 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
419
340
  }
420
341
  }
421
342
  });
422
- // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=script&lang=js&
423
- /* harmony default export */ var src_radio_buttonvue_type_script_lang_js_ = (radio_buttonvue_type_script_lang_js_);
343
+ // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=script&lang=js
344
+ /* harmony default export */ var src_radio_buttonvue_type_script_lang_js = (radio_buttonvue_type_script_lang_js);
424
345
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
425
346
  var componentNormalizer = __webpack_require__(0);
426
347
 
@@ -433,7 +354,7 @@ var componentNormalizer = __webpack_require__(0);
433
354
  /* normalize component */
434
355
 
435
356
  var component = Object(componentNormalizer["a" /* default */])(
436
- src_radio_buttonvue_type_script_lang_js_,
357
+ src_radio_buttonvue_type_script_lang_js,
437
358
  render,
438
359
  staticRenderFns,
439
360
  false,
@@ -443,9 +364,6 @@ var component = Object(componentNormalizer["a" /* default */])(
443
364
 
444
365
  )
445
366
 
446
- /* hot reload */
447
- if (false) { var api; }
448
- component.options.__file = "packages/radio/src/radio-button.vue"
449
367
  /* harmony default export */ var radio_button = (component.exports);
450
368
  // CONCATENATED MODULE: ./packages/radio-button/index.js
451
369