iov-design 2.15.59 → 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 (250) 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 +1638 -11132
  47. package/lib/link.js +33 -55
  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 +22 -21
  87. package/lib/theme-chalk/base.css +1 -1
  88. package/lib/theme-chalk/button.css +1 -1
  89. package/lib/theme-chalk/calendar.css +1 -1
  90. package/lib/theme-chalk/cascader-panel.css +1 -1
  91. package/lib/theme-chalk/cascader.css +1 -1
  92. package/lib/theme-chalk/dropdown.css +1 -1
  93. package/lib/theme-chalk/index.css +1 -1
  94. package/lib/theme-chalk/iovfont.css +1 -1
  95. package/lib/theme-chalk/link.css +1 -1
  96. package/lib/theme-chalk/message-box.css +1 -1
  97. package/lib/theme-chalk/pagination.css +1 -1
  98. package/lib/theme-chalk/radio.css +1 -1
  99. package/lib/theme-chalk/select.css +1 -1
  100. package/lib/theme-chalk/table-column.css +1 -1
  101. package/lib/theme-chalk/table.css +1 -1
  102. package/lib/theme-chalk/tabs.css +1 -1
  103. package/lib/theme-chalk/tag.css +1 -1
  104. package/lib/theme-chalk/transfer.css +1 -1
  105. package/lib/time-picker.js +58 -820
  106. package/lib/time-select.js +42 -303
  107. package/lib/timeline-item.js +29 -75
  108. package/lib/timeline.js +21 -20
  109. package/lib/tooltip.js +1 -0
  110. package/lib/transfer.js +36 -299
  111. package/lib/tree.js +54 -243
  112. package/lib/upload.js +86 -654
  113. package/lib/utils/clickoutside.js +7 -7
  114. package/lib/utils/vue-popper.js +7 -7
  115. package/package.json +154 -154
  116. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  117. package/packages/autocomplete/src/autocomplete.vue +285 -285
  118. package/packages/button/src/button.vue +90 -90
  119. package/packages/calendar/src/date-table.vue +200 -200
  120. package/packages/calendar/src/main.vue +280 -280
  121. package/packages/carousel/src/item.vue +138 -138
  122. package/packages/carousel/src/main.vue +315 -315
  123. package/packages/cascader/src/cascader.vue +776 -776
  124. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  125. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  126. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  127. package/packages/cascader-panel/src/node.js +166 -166
  128. package/packages/cascader-panel/src/store.js +58 -58
  129. package/packages/checkbox/src/checkbox-button.vue +199 -199
  130. package/packages/checkbox/src/checkbox-group.vue +49 -49
  131. package/packages/checkbox/src/checkbox.vue +225 -225
  132. package/packages/collapse/src/collapse-item.vue +114 -114
  133. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  134. package/packages/color-picker/src/main.vue +188 -188
  135. package/packages/date-picker/src/basic/date-table.vue +441 -441
  136. package/packages/date-picker/src/basic/month-table.vue +269 -269
  137. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  138. package/packages/date-picker/src/basic/year-table.vue +111 -111
  139. package/packages/date-picker/src/panel/date-range.vue +680 -680
  140. package/packages/date-picker/src/panel/date.vue +609 -609
  141. package/packages/date-picker/src/panel/month-range.vue +289 -289
  142. package/packages/date-picker/src/panel/time-range.vue +248 -248
  143. package/packages/date-picker/src/panel/time-select.vue +178 -178
  144. package/packages/date-picker/src/panel/time.vue +186 -186
  145. package/packages/date-picker/src/picker.vue +967 -967
  146. package/packages/descriptions/src/index.js +180 -180
  147. package/packages/dialog/src/component.vue +262 -262
  148. package/packages/drawer/src/main.vue +205 -205
  149. package/packages/dropdown/src/dropdown-item.vue +37 -37
  150. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  151. package/packages/dropdown/src/dropdown.vue +293 -293
  152. package/packages/empty/src/index.vue +70 -70
  153. package/packages/form/src/form-item.vue +324 -324
  154. package/packages/form/src/form.vue +182 -182
  155. package/packages/image/src/image-viewer.vue +330 -330
  156. package/packages/image/src/main.vue +249 -249
  157. package/packages/infinite-scroll/src/main.js +150 -150
  158. package/packages/input/src/input.vue +477 -477
  159. package/packages/input-number/src/input-number.vue +283 -283
  160. package/packages/link/src/main.vue +2 -0
  161. package/packages/loading/src/directive.js +133 -133
  162. package/packages/loading/src/index.js +106 -106
  163. package/packages/menu/src/menu-item.vue +112 -112
  164. package/packages/menu/src/menu.vue +325 -325
  165. package/packages/menu/src/submenu.vue +349 -349
  166. package/packages/message/src/main.js +91 -91
  167. package/packages/message-box/src/main.js +216 -216
  168. package/packages/message-box/src/main.vue +333 -333
  169. package/packages/notification/src/main.js +94 -94
  170. package/packages/page-header/src/main.vue +30 -30
  171. package/packages/pagination/src/pagination.js +390 -390
  172. package/packages/popconfirm/src/main.vue +104 -104
  173. package/packages/popover/src/main.vue +239 -239
  174. package/packages/radio/src/radio-button.vue +115 -115
  175. package/packages/radio/src/radio-group.vue +115 -115
  176. package/packages/radio/src/radio.vue +148 -148
  177. package/packages/rate/src/main.vue +348 -348
  178. package/packages/scrollbar/src/bar.js +92 -92
  179. package/packages/scrollbar/src/main.js +130 -130
  180. package/packages/select/src/option-group.vue +60 -60
  181. package/packages/select/src/option.vue +171 -171
  182. package/packages/select/src/select-dropdown.vue +74 -74
  183. package/packages/select/src/select.vue +979 -979
  184. package/packages/slider/src/button.vue +238 -238
  185. package/packages/slider/src/main.vue +427 -427
  186. package/packages/statistic/src/main.vue +204 -204
  187. package/packages/steps/src/steps.vue +68 -68
  188. package/packages/switch/src/component.vue +182 -182
  189. package/packages/table/src/config.js +153 -153
  190. package/packages/table/src/filter-panel.vue +194 -194
  191. package/packages/table/src/store/current.js +76 -76
  192. package/packages/table/src/store/helper.js +41 -41
  193. package/packages/table/src/store/index.js +147 -147
  194. package/packages/table/src/store/watcher.js +502 -502
  195. package/packages/table/src/table-body.js +469 -469
  196. package/packages/table/src/table-column.js +328 -328
  197. package/packages/table/src/table-header.js +571 -571
  198. package/packages/table/src/table-layout.js +249 -249
  199. package/packages/table/src/table-row.js +101 -101
  200. package/packages/table/src/table.vue +740 -740
  201. package/packages/table/src/util.js +273 -273
  202. package/packages/tabs/src/tab-bar.vue +57 -57
  203. package/packages/tabs/src/tab-nav.vue +294 -294
  204. package/packages/tabs/src/tabs.vue +201 -201
  205. package/packages/tag/src/tag.vue +1 -1
  206. package/packages/theme-chalk/src/button.scss +416 -416
  207. package/packages/theme-chalk/src/cascader.scss +252 -252
  208. package/packages/theme-chalk/src/checkbox.scss +419 -419
  209. package/packages/theme-chalk/src/common/var.scss +795 -816
  210. package/packages/theme-chalk/src/form.scss +201 -201
  211. package/packages/theme-chalk/src/input.scss +591 -591
  212. package/packages/theme-chalk/src/iovfont.scss +803 -784
  213. package/packages/theme-chalk/src/link.scss +36 -19
  214. package/packages/theme-chalk/src/message-box.scss +207 -207
  215. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  216. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  217. package/packages/theme-chalk/src/radio-button.scss +115 -115
  218. package/packages/theme-chalk/src/radio.scss +1 -0
  219. package/packages/theme-chalk/src/select.scss +270 -270
  220. package/packages/theme-chalk/src/table.scss +1 -2
  221. package/packages/theme-chalk/src/tabs.scss +755 -750
  222. package/packages/theme-chalk/src/tag.scss +4 -4
  223. package/packages/theme-chalk/src/upload.scss +568 -568
  224. package/packages/tooltip/src/main.js +242 -242
  225. package/packages/transfer/src/main.vue +231 -231
  226. package/packages/transfer/src/transfer-panel.vue +251 -251
  227. package/packages/tree/src/model/node.js +484 -484
  228. package/packages/tree/src/tree-node.vue +279 -279
  229. package/packages/tree/src/tree.vue +496 -496
  230. package/packages/upload/src/index.vue +420 -420
  231. package/packages/upload/src/upload-file.vue +98 -98
  232. package/packages/upload/src/upload-list.vue +115 -115
  233. package/packages/upload/src/upload-picture.vue +98 -98
  234. package/packages/upload/src/upload.vue +231 -231
  235. package/packages/upload/src/utils.js +31 -31
  236. package/src/directives/repeat-click.js +26 -26
  237. package/src/index.js +259 -259
  238. package/src/locale/format.js +46 -46
  239. package/src/locale/index.js +48 -48
  240. package/src/locale/lang/lo-LA.js +126 -126
  241. package/src/mixins/locale.js +9 -9
  242. package/src/mixins/migrating.js +54 -54
  243. package/src/transitions/collapse-transition.js +77 -77
  244. package/src/utils/clickoutside.js +76 -76
  245. package/src/utils/date-util.js +282 -282
  246. package/src/utils/popup/index.js +218 -218
  247. package/src/utils/popup/popup-manager.js +194 -194
  248. package/src/utils/util.js +245 -245
  249. package/src/utils/vdom.js +5 -5
  250. package/src/utils/vue-popper.js +198 -198
@@ -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
 
@@ -249,316 +252,19 @@ module.exports = require("iov-design/lib/mixins/locale");
249
252
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
250
253
 
251
254
  "use strict";
255
+ // ESM COMPAT FLAG
252
256
  __webpack_require__.r(__webpack_exports__);
253
257
 
254
258
  // EXTERNAL MODULE: external "vue"
255
259
  var external_vue_ = __webpack_require__(8);
256
260
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
257
261
 
258
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=template&id=6b29b012&
259
- var render = function() {
260
- var _vm = this
261
- var _h = _vm.$createElement
262
- var _c = _vm._self._c || _h
263
- return _c("transition", { attrs: { name: "msgbox-fade" } }, [
264
- _c(
265
- "div",
266
- {
267
- directives: [
268
- {
269
- name: "show",
270
- rawName: "v-show",
271
- value: _vm.visible,
272
- expression: "visible"
273
- }
274
- ],
275
- staticClass: "el-message-box__wrapper",
276
- attrs: {
277
- tabindex: "-1",
278
- role: "dialog",
279
- "aria-modal": "true",
280
- "aria-label": _vm.title || "dialog"
281
- },
282
- on: {
283
- click: function($event) {
284
- if ($event.target !== $event.currentTarget) {
285
- return null
286
- }
287
- return _vm.handleWrapperClick($event)
288
- }
289
- }
290
- },
291
- [
292
- _c(
293
- "div",
294
- {
295
- staticClass: "el-message-box",
296
- class: [
297
- _vm.customClass,
298
- _vm.showTitleIcon && "el-message-box--title-icon"
299
- ]
300
- },
301
- [
302
- _vm.title !== null
303
- ? _c("div", { staticClass: "el-message-box__header" }, [
304
- _c("div", { staticClass: "el-message-box__title" }, [
305
- _vm.icon && _vm.showTitleIcon
306
- ? _c("div", {
307
- class: ["el-message-box__status", _vm.icon]
308
- })
309
- : _vm._e(),
310
- _c("span", [_vm._v(_vm._s(_vm.title))])
311
- ]),
312
- _vm.showClose
313
- ? _c(
314
- "span",
315
- {
316
- staticClass: "el-message-box__headerbtn",
317
- attrs: { type: "button", "aria-label": "Close" },
318
- on: {
319
- click: function($event) {
320
- _vm.handleAction(
321
- _vm.distinguishCancelAndClose
322
- ? "close"
323
- : "cancel"
324
- )
325
- },
326
- keydown: function($event) {
327
- if (
328
- !("button" in $event) &&
329
- _vm._k(
330
- $event.keyCode,
331
- "enter",
332
- 13,
333
- $event.key,
334
- "Enter"
335
- )
336
- ) {
337
- return null
338
- }
339
- _vm.handleAction(
340
- _vm.distinguishCancelAndClose
341
- ? "close"
342
- : "cancel"
343
- )
344
- }
345
- }
346
- },
347
- [
348
- _c("i", {
349
- staticClass: "el-message-box__close iov-icon-close"
350
- })
351
- ]
352
- )
353
- : _vm._e()
354
- ])
355
- : _vm._e(),
356
- _vm.message !== ""
357
- ? _c("div", { staticClass: "el-message-box__content" }, [
358
- _c("div", { staticClass: "el-message-box__container" }, [
359
- _vm.icon && !_vm.showTitleIcon && _vm.message !== ""
360
- ? _c("div", {
361
- class: ["el-message-box__status", _vm.icon]
362
- })
363
- : _vm._e(),
364
- _vm.message !== ""
365
- ? _c(
366
- "div",
367
- {
368
- staticClass: "el-message-box__message",
369
- class: [!_vm.icon && "no-type"]
370
- },
371
- [
372
- _vm._t("default", [
373
- !_vm.dangerouslyUseHTMLString
374
- ? _c("p", [_vm._v(_vm._s(_vm.message))])
375
- : _c("p", {
376
- domProps: { innerHTML: _vm._s(_vm.message) }
377
- })
378
- ])
379
- ],
380
- 2
381
- )
382
- : _vm._e()
383
- ]),
384
- _c(
385
- "div",
386
- {
387
- directives: [
388
- {
389
- name: "show",
390
- rawName: "v-show",
391
- value: _vm.showInput,
392
- expression: "showInput"
393
- }
394
- ],
395
- staticClass: "el-message-box__input"
396
- },
397
- [
398
- _c("el-input", {
399
- ref: "input",
400
- attrs: {
401
- size: "small",
402
- type: _vm.inputType,
403
- placeholder: _vm.inputPlaceholder
404
- },
405
- nativeOn: {
406
- keydown: function($event) {
407
- if (
408
- !("button" in $event) &&
409
- _vm._k(
410
- $event.keyCode,
411
- "enter",
412
- 13,
413
- $event.key,
414
- "Enter"
415
- )
416
- ) {
417
- return null
418
- }
419
- return _vm.handleInputEnter($event)
420
- }
421
- },
422
- model: {
423
- value: _vm.inputValue,
424
- callback: function($$v) {
425
- _vm.inputValue = $$v
426
- },
427
- expression: "inputValue"
428
- }
429
- }),
430
- _c(
431
- "div",
432
- {
433
- staticClass: "el-message-box__errormsg",
434
- style: {
435
- visibility: !!_vm.editorErrorMessage
436
- ? "visible"
437
- : "hidden"
438
- }
439
- },
440
- [_vm._v(_vm._s(_vm.editorErrorMessage))]
441
- )
442
- ],
443
- 1
444
- )
445
- ])
446
- : _vm._e(),
447
- _c(
448
- "div",
449
- { staticClass: "el-message-box__btns" },
450
- [
451
- _vm.showCancelButton
452
- ? _c(
453
- "el-button",
454
- {
455
- class: [_vm.cancelButtonClasses],
456
- attrs: {
457
- loading: _vm.cancelButtonLoading,
458
- round: _vm.roundButton,
459
- size: "small"
460
- },
461
- on: {
462
- keydown: function($event) {
463
- if (
464
- !("button" in $event) &&
465
- _vm._k(
466
- $event.keyCode,
467
- "enter",
468
- 13,
469
- $event.key,
470
- "Enter"
471
- )
472
- ) {
473
- return null
474
- }
475
- _vm.handleAction("cancel")
476
- }
477
- },
478
- nativeOn: {
479
- click: function($event) {
480
- _vm.handleAction("cancel")
481
- }
482
- }
483
- },
484
- [
485
- _vm._v(
486
- "\n " +
487
- _vm._s(
488
- _vm.cancelButtonText ||
489
- _vm.t("el.messagebox.cancel")
490
- ) +
491
- "\n "
492
- )
493
- ]
494
- )
495
- : _vm._e(),
496
- _c(
497
- "el-button",
498
- {
499
- directives: [
500
- {
501
- name: "show",
502
- rawName: "v-show",
503
- value: _vm.showConfirmButton,
504
- expression: "showConfirmButton"
505
- }
506
- ],
507
- ref: "confirm",
508
- class: [_vm.confirmButtonClasses],
509
- attrs: {
510
- loading: _vm.confirmButtonLoading,
511
- round: _vm.roundButton,
512
- size: "small"
513
- },
514
- on: {
515
- keydown: function($event) {
516
- if (
517
- !("button" in $event) &&
518
- _vm._k(
519
- $event.keyCode,
520
- "enter",
521
- 13,
522
- $event.key,
523
- "Enter"
524
- )
525
- ) {
526
- return null
527
- }
528
- _vm.handleAction("confirm")
529
- }
530
- },
531
- nativeOn: {
532
- click: function($event) {
533
- _vm.handleAction("confirm")
534
- }
535
- }
536
- },
537
- [
538
- _vm._v(
539
- "\n " +
540
- _vm._s(
541
- _vm.confirmButtonText ||
542
- _vm.t("el.messagebox.confirm")
543
- ) +
544
- "\n "
545
- )
546
- ]
547
- )
548
- ],
549
- 1
550
- )
551
- ]
552
- )
553
- ]
554
- )
555
- ])
556
- }
262
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=template&id=02284efc
263
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"msgbox-fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{"tabindex":"-1","role":"dialog","aria-modal":"true","aria-label":_vm.title || 'dialog'},on:{"click":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.handleWrapperClick($event)}}},[_c('div',{staticClass:"el-message-box",class:[_vm.customClass, _vm.showTitleIcon && 'el-message-box--title-icon']},[(_vm.title !== null)?_c('div',{staticClass:"el-message-box__header"},[_c('div',{staticClass:"el-message-box__title"},[(_vm.icon && _vm.showTitleIcon)?_c('div',{class:['el-message-box__status', _vm.icon]}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.title))])]),(_vm.showClose)?_c('span',{staticClass:"el-message-box__headerbtn",attrs:{"type":"button","aria-label":"Close"},on:{"click":function($event){_vm.handleAction(_vm.distinguishCancelAndClose ? 'close' : 'cancel')},"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }_vm.handleAction(_vm.distinguishCancelAndClose ? 'close' : 'cancel')}}},[_c('i',{staticClass:"el-message-box__close iov-icon-close"})]):_vm._e()]):_vm._e(),(_vm.message !== '')?_c('div',{staticClass:"el-message-box__content"},[_c('div',{staticClass:"el-message-box__container"},[(_vm.icon && !_vm.showTitleIcon && _vm.message !== '')?_c('div',{class:['el-message-box__status', _vm.icon]}):_vm._e(),(_vm.message !== '')?_c('div',{staticClass:"el-message-box__message",class:[!_vm.icon && 'no-type']},[_vm._t("default",[(!_vm.dangerouslyUseHTMLString)?_c('p',[_vm._v(_vm._s(_vm.message))]):_c('p',{domProps:{"innerHTML":_vm._s(_vm.message)}})])],2):_vm._e()]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showInput),expression:"showInput"}],staticClass:"el-message-box__input"},[_c('el-input',{ref:"input",attrs:{"size":"small","type":_vm.inputType,"placeholder":_vm.inputPlaceholder},nativeOn:{"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleInputEnter($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}),_c('div',{staticClass:"el-message-box__errormsg",style:({ visibility: !!_vm.editorErrorMessage ? 'visible' : 'hidden' })},[_vm._v(_vm._s(_vm.editorErrorMessage))])],1)]):_vm._e(),_c('div',{staticClass:"el-message-box__btns"},[(_vm.showCancelButton)?_c('el-button',{class:[ _vm.cancelButtonClasses ],attrs:{"loading":_vm.cancelButtonLoading,"round":_vm.roundButton,"size":"small"},on:{"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }_vm.handleAction('cancel')}},nativeOn:{"click":function($event){_vm.handleAction('cancel')}}},[_vm._v("\n "+_vm._s(_vm.cancelButtonText || _vm.t('el.messagebox.cancel'))+"\n ")]):_vm._e(),_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.showConfirmButton),expression:"showConfirmButton"}],ref:"confirm",class:[ _vm.confirmButtonClasses ],attrs:{"loading":_vm.confirmButtonLoading,"round":_vm.roundButton,"size":"small"},on:{"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }_vm.handleAction('confirm')}},nativeOn:{"click":function($event){_vm.handleAction('confirm')}}},[_vm._v("\n "+_vm._s(_vm.confirmButtonText || _vm.t('el.messagebox.confirm'))+"\n ")])],1)])])])}
557
264
  var staticRenderFns = []
558
265
  render._withStripped = true
559
266
 
560
-
561
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=template&id=6b29b012&
267
+ // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=template&id=02284efc
562
268
 
563
269
  // EXTERNAL MODULE: external "iov-design/lib/utils/popup"
564
270
  var popup_ = __webpack_require__(13);
@@ -586,7 +292,7 @@ var lib_locale_ = __webpack_require__(20);
586
292
  var aria_dialog_ = __webpack_require__(49);
587
293
  var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
588
294
 
589
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=script&lang=js&
295
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=script&lang=js
590
296
  //
591
297
  //
592
298
  //
@@ -685,7 +391,7 @@ var typeMap = {
685
391
  error: 'fail'
686
392
  };
687
393
 
688
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
394
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
689
395
  mixins: [popup_default.a, locale_default.a],
690
396
 
691
397
  props: {
@@ -924,8 +630,8 @@ var typeMap = {
924
630
  };
925
631
  }
926
632
  });
927
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=script&lang=js&
928
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
633
+ // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=script&lang=js
634
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
929
635
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
930
636
  var componentNormalizer = __webpack_require__(0);
931
637
 
@@ -938,7 +644,7 @@ var componentNormalizer = __webpack_require__(0);
938
644
  /* normalize component */
939
645
 
940
646
  var component = Object(componentNormalizer["a" /* default */])(
941
- src_mainvue_type_script_lang_js_,
647
+ src_mainvue_type_script_lang_js,
942
648
  render,
943
649
  staticRenderFns,
944
650
  false,
@@ -948,9 +654,6 @@ var component = Object(componentNormalizer["a" /* default */])(
948
654
 
949
655
  )
950
656
 
951
- /* hot reload */
952
- if (false) { var api; }
953
- component.options.__file = "packages/message-box/src/main.vue"
954
657
  /* harmony default export */ var main = (component.exports);
955
658
  // EXTERNAL MODULE: external "iov-design/lib/utils/merge"
956
659
  var merge_ = __webpack_require__(9);
package/lib/message.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
 
@@ -221,79 +224,27 @@ module.exports = require("vue");
221
224
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
222
225
 
223
226
  "use strict";
227
+ // ESM COMPAT FLAG
224
228
  __webpack_require__.r(__webpack_exports__);
225
229
 
226
230
  // EXTERNAL MODULE: external "vue"
227
231
  var external_vue_ = __webpack_require__(8);
228
232
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
229
233
 
230
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=template&id=455b9f60&
231
- var render = function() {
232
- var _vm = this
233
- var _h = _vm.$createElement
234
- var _c = _vm._self._c || _h
235
- return _c(
236
- "transition",
237
- {
238
- attrs: { name: "el-message-fade" },
239
- on: { "after-leave": _vm.handleAfterLeave }
240
- },
241
- [
242
- _c(
243
- "div",
244
- {
245
- directives: [
246
- {
247
- name: "show",
248
- rawName: "v-show",
249
- value: _vm.visible,
250
- expression: "visible"
251
- }
252
- ],
253
- class: [
254
- "el-message",
255
- _vm.type && !_vm.iconClass ? "el-message--" + _vm.type : "",
256
- _vm.center ? "is-center" : "",
257
- _vm.showClose ? "is-closable" : "",
258
- _vm.customClass
259
- ],
260
- style: _vm.positionStyle,
261
- attrs: { role: "alert" },
262
- on: { mouseenter: _vm.clearTimer, mouseleave: _vm.startTimer }
263
- },
264
- [
265
- _vm.iconClass
266
- ? _c("i", { class: _vm.iconClass })
267
- : _c("i", { class: _vm.typeClass }),
268
- _vm._t("default", [
269
- !_vm.dangerouslyUseHTMLString
270
- ? _c("p", { staticClass: "el-message__content" }, [
271
- _vm._v(_vm._s(_vm.message))
272
- ])
273
- : _c("p", {
274
- staticClass: "el-message__content",
275
- domProps: { innerHTML: _vm._s(_vm.message) }
276
- })
277
- ]),
278
- _vm.showClose
279
- ? _c("i", {
280
- staticClass: "el-message__closeBtn iov-icon-close",
281
- on: { click: _vm.close }
282
- })
283
- : _vm._e()
284
- ],
285
- 2
286
- )
287
- ]
288
- )
289
- }
234
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=template&id=995493c2
235
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-message-fade"},on:{"after-leave":_vm.handleAfterLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],class:[
236
+ 'el-message',
237
+ _vm.type && !_vm.iconClass ? ("el-message--" + _vm.type) : '',
238
+ _vm.center ? 'is-center' : '',
239
+ _vm.showClose ? 'is-closable' : '',
240
+ _vm.customClass
241
+ ],style:(_vm.positionStyle),attrs:{"role":"alert"},on:{"mouseenter":_vm.clearTimer,"mouseleave":_vm.startTimer}},[(_vm.iconClass)?_c('i',{class:_vm.iconClass}):_c('i',{class:_vm.typeClass}),_vm._t("default",[(!_vm.dangerouslyUseHTMLString)?_c('p',{staticClass:"el-message__content"},[_vm._v(_vm._s(_vm.message))]):_c('p',{staticClass:"el-message__content",domProps:{"innerHTML":_vm._s(_vm.message)}})]),(_vm.showClose)?_c('i',{staticClass:"el-message__closeBtn iov-icon-close",on:{"click":_vm.close}}):_vm._e()],2)])}
290
242
  var staticRenderFns = []
291
243
  render._withStripped = true
292
244
 
245
+ // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=template&id=995493c2
293
246
 
294
- // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=template&id=455b9f60&
295
-
296
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=script&lang=js&
247
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=script&lang=js
297
248
  //
298
249
  //
299
250
  //
@@ -328,7 +279,7 @@ var typeMap = {
328
279
  error: 'fail'
329
280
  };
330
281
 
331
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
282
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
332
283
  data: function data() {
333
284
  return {
334
285
  visible: false,
@@ -409,8 +360,8 @@ var typeMap = {
409
360
  document.removeEventListener('keydown', this.keydown);
410
361
  }
411
362
  });
412
- // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=script&lang=js&
413
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
363
+ // CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=script&lang=js
364
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
414
365
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
415
366
  var componentNormalizer = __webpack_require__(0);
416
367
 
@@ -423,7 +374,7 @@ var componentNormalizer = __webpack_require__(0);
423
374
  /* normalize component */
424
375
 
425
376
  var component = Object(componentNormalizer["a" /* default */])(
426
- src_mainvue_type_script_lang_js_,
377
+ src_mainvue_type_script_lang_js,
427
378
  render,
428
379
  staticRenderFns,
429
380
  false,
@@ -433,9 +384,6 @@ var component = Object(componentNormalizer["a" /* default */])(
433
384
 
434
385
  )
435
386
 
436
- /* hot reload */
437
- if (false) { var api; }
438
- component.options.__file = "packages/message/src/main.vue"
439
387
  /* harmony default export */ var main = (component.exports);
440
388
  // EXTERNAL MODULE: external "iov-design/lib/utils/popup"
441
389
  var popup_ = __webpack_require__(13);