buefy 0.9.20 → 0.9.21

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 (214) hide show
  1. package/CHANGELOG.md +1741 -1741
  2. package/dist/buefy.css +1 -1
  3. package/dist/buefy.esm.js +45 -25
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +45 -25
  6. package/dist/buefy.min.css +1 -1
  7. package/dist/buefy.min.js +2 -2
  8. package/dist/cjs/autocomplete.js +5 -5
  9. package/dist/cjs/breadcrumb.js +1 -1
  10. package/dist/cjs/button.js +3 -3
  11. package/dist/cjs/carousel.js +3 -3
  12. package/dist/cjs/{chunk-5ed8a75a.js → chunk-09574ad9.js} +3 -3
  13. package/dist/cjs/{chunk-7c11fdde.js → chunk-201c9e5c.js} +1 -1
  14. package/dist/cjs/{chunk-545e1c7f.js → chunk-2a96ec68.js} +2 -2
  15. package/dist/cjs/{chunk-9103eeda.js → chunk-437dd7a0.js} +1 -0
  16. package/dist/cjs/{chunk-7545a2bd.js → chunk-7b44db6e.js} +2 -2
  17. package/dist/cjs/{chunk-670ac7e7.js → chunk-85b00a19.js} +7 -7
  18. package/dist/cjs/{chunk-3ef2e7dd.js → chunk-95c4b826.js} +3 -3
  19. package/dist/cjs/{chunk-5010c284.js → chunk-99367591.js} +18 -2
  20. package/dist/cjs/{chunk-73f8eef8.js → chunk-a6b29437.js} +1 -1
  21. package/dist/cjs/{chunk-cd626a19.js → chunk-bcab8905.js} +6 -6
  22. package/dist/cjs/{chunk-7e877557.js → chunk-befea70a.js} +2 -2
  23. package/dist/cjs/{chunk-4bcfaf1c.js → chunk-cc9676a6.js} +1 -1
  24. package/dist/cjs/{chunk-03279fd8.js → chunk-dddb035c.js} +1 -1
  25. package/dist/cjs/{chunk-e872f5e2.js → chunk-e0373ab6.js} +1 -1
  26. package/dist/cjs/{chunk-2d94476d.js → chunk-e90b3d05.js} +2 -2
  27. package/dist/cjs/{chunk-f5285f14.js → chunk-eba24a95.js} +1 -1
  28. package/dist/cjs/{chunk-e86d3eeb.js → chunk-f5139026.js} +1 -1
  29. package/dist/cjs/{chunk-d03d9202.js → chunk-f8eb56c6.js} +21 -21
  30. package/dist/cjs/{chunk-93c51748.js → chunk-fb8ff6be.js} +1 -1
  31. package/dist/cjs/clockpicker.js +7 -7
  32. package/dist/cjs/colorpicker.js +8 -8
  33. package/dist/cjs/config.js +1 -1
  34. package/dist/cjs/datepicker.js +8 -8
  35. package/dist/cjs/datetimepicker.js +10 -10
  36. package/dist/cjs/dialog.js +4 -4
  37. package/dist/cjs/dropdown.js +2 -2
  38. package/dist/cjs/field.js +2 -2
  39. package/dist/cjs/icon.js +2 -2
  40. package/dist/cjs/image.js +2 -2
  41. package/dist/cjs/index.js +19 -19
  42. package/dist/cjs/input.js +4 -4
  43. package/dist/cjs/loading.js +1 -1
  44. package/dist/cjs/menu.js +2 -2
  45. package/dist/cjs/message.js +3 -3
  46. package/dist/cjs/modal.js +2 -2
  47. package/dist/cjs/notification.js +4 -4
  48. package/dist/cjs/numberinput.js +4 -4
  49. package/dist/cjs/pagination.js +3 -3
  50. package/dist/cjs/progress.js +1 -1
  51. package/dist/cjs/rate.js +2 -2
  52. package/dist/cjs/select.js +4 -4
  53. package/dist/cjs/sidebar.js +1 -1
  54. package/dist/cjs/slider.js +2 -2
  55. package/dist/cjs/snackbar.js +2 -2
  56. package/dist/cjs/steps.js +3 -3
  57. package/dist/cjs/switch.js +1 -1
  58. package/dist/cjs/table.js +11 -8
  59. package/dist/cjs/tabs.js +3 -3
  60. package/dist/cjs/taginput.js +5 -5
  61. package/dist/cjs/timepicker.js +9 -9
  62. package/dist/cjs/toast.js +2 -2
  63. package/dist/cjs/tooltip.js +2 -2
  64. package/dist/cjs/upload.js +2 -2
  65. package/dist/components/autocomplete/index.js +2 -1
  66. package/dist/components/autocomplete/index.min.js +2 -2
  67. package/dist/components/breadcrumb/index.js +2 -1
  68. package/dist/components/breadcrumb/index.min.js +1 -1
  69. package/dist/components/button/index.js +3 -2
  70. package/dist/components/button/index.min.js +2 -2
  71. package/dist/components/carousel/index.js +2 -1
  72. package/dist/components/carousel/index.min.js +2 -2
  73. package/dist/components/checkbox/index.js +1 -1
  74. package/dist/components/checkbox/index.min.js +1 -1
  75. package/dist/components/clockpicker/index.js +22 -21
  76. package/dist/components/clockpicker/index.min.js +2 -2
  77. package/dist/components/collapse/index.js +1 -1
  78. package/dist/components/collapse/index.min.js +1 -1
  79. package/dist/components/colorpicker/index.js +39 -22
  80. package/dist/components/colorpicker/index.min.js +2 -2
  81. package/dist/components/datepicker/index.js +22 -21
  82. package/dist/components/datepicker/index.min.js +2 -2
  83. package/dist/components/datetimepicker/index.js +22 -21
  84. package/dist/components/datetimepicker/index.min.js +2 -2
  85. package/dist/components/dialog/index.js +3 -2
  86. package/dist/components/dialog/index.min.js +2 -2
  87. package/dist/components/dropdown/index.js +2 -1
  88. package/dist/components/dropdown/index.min.js +1 -1
  89. package/dist/components/field/index.js +22 -21
  90. package/dist/components/field/index.min.js +1 -1
  91. package/dist/components/icon/index.js +2 -1
  92. package/dist/components/icon/index.min.js +2 -2
  93. package/dist/components/image/index.js +2 -1
  94. package/dist/components/image/index.min.js +2 -2
  95. package/dist/components/input/index.js +2 -1
  96. package/dist/components/input/index.min.js +2 -2
  97. package/dist/components/loading/index.js +1 -1
  98. package/dist/components/loading/index.min.js +1 -1
  99. package/dist/components/menu/index.js +2 -1
  100. package/dist/components/menu/index.min.js +2 -2
  101. package/dist/components/message/index.js +2 -1
  102. package/dist/components/message/index.min.js +2 -2
  103. package/dist/components/modal/index.js +2 -1
  104. package/dist/components/modal/index.min.js +2 -2
  105. package/dist/components/navbar/index.js +1 -1
  106. package/dist/components/navbar/index.min.js +1 -1
  107. package/dist/components/notification/index.js +2 -1
  108. package/dist/components/notification/index.min.js +2 -2
  109. package/dist/components/numberinput/index.js +2 -1
  110. package/dist/components/numberinput/index.min.js +2 -2
  111. package/dist/components/pagination/index.js +2 -1
  112. package/dist/components/pagination/index.min.js +2 -2
  113. package/dist/components/progress/index.js +2 -1
  114. package/dist/components/progress/index.min.js +2 -2
  115. package/dist/components/radio/index.js +1 -1
  116. package/dist/components/radio/index.min.js +1 -1
  117. package/dist/components/rate/index.js +2 -1
  118. package/dist/components/rate/index.min.js +2 -2
  119. package/dist/components/select/index.js +2 -1
  120. package/dist/components/select/index.min.js +2 -2
  121. package/dist/components/sidebar/index.js +2 -1
  122. package/dist/components/sidebar/index.min.js +1 -1
  123. package/dist/components/skeleton/index.js +1 -1
  124. package/dist/components/skeleton/index.min.js +1 -1
  125. package/dist/components/slider/index.js +19 -2
  126. package/dist/components/slider/index.min.js +2 -2
  127. package/dist/components/snackbar/index.js +2 -1
  128. package/dist/components/snackbar/index.min.js +1 -1
  129. package/dist/components/steps/index.js +2 -1
  130. package/dist/components/steps/index.min.js +2 -2
  131. package/dist/components/switch/index.js +2 -1
  132. package/dist/components/switch/index.min.js +1 -1
  133. package/dist/components/table/index.js +7 -3
  134. package/dist/components/table/index.min.js +2 -2
  135. package/dist/components/tabs/index.js +2 -1
  136. package/dist/components/tabs/index.min.js +2 -2
  137. package/dist/components/tag/index.js +1 -1
  138. package/dist/components/tag/index.min.js +1 -1
  139. package/dist/components/taginput/index.js +2 -1
  140. package/dist/components/taginput/index.min.js +2 -2
  141. package/dist/components/timepicker/index.js +22 -21
  142. package/dist/components/timepicker/index.min.js +2 -2
  143. package/dist/components/toast/index.js +2 -1
  144. package/dist/components/toast/index.min.js +1 -1
  145. package/dist/components/tooltip/index.js +19 -2
  146. package/dist/components/tooltip/index.min.js +2 -2
  147. package/dist/components/upload/index.js +2 -1
  148. package/dist/components/upload/index.min.js +2 -2
  149. package/dist/esm/autocomplete.js +6 -6
  150. package/dist/esm/breadcrumb.js +1 -1
  151. package/dist/esm/button.js +4 -4
  152. package/dist/esm/carousel.js +3 -3
  153. package/dist/esm/{chunk-726445a2.js → chunk-17b33cd2.js} +1 -1
  154. package/dist/esm/{chunk-aed3f638.js → chunk-293c457c.js} +6 -6
  155. package/dist/esm/{chunk-d35985c7.js → chunk-33e1434e.js} +1 -1
  156. package/dist/esm/{chunk-690d5be4.js → chunk-493ff0a9.js} +1 -1
  157. package/dist/esm/{chunk-51455f8c.js → chunk-4e788733.js} +2 -2
  158. package/dist/esm/{chunk-970672ce.js → chunk-6c64686f.js} +7 -7
  159. package/dist/esm/{chunk-c2803e80.js → chunk-6e56b8bc.js} +2 -2
  160. package/dist/esm/{chunk-5435bd9a.js → chunk-7bb9107f.js} +1 -1
  161. package/dist/esm/{chunk-e044aa02.js → chunk-7e17a637.js} +1 -1
  162. package/dist/esm/{chunk-4fb80d59.js → chunk-83c8b459.js} +3 -3
  163. package/dist/esm/{chunk-ced7578e.js → chunk-9b0b8225.js} +18 -2
  164. package/dist/esm/{chunk-d9232770.js → chunk-a32d1427.js} +1 -1
  165. package/dist/esm/{chunk-598015da.js → chunk-ade5b253.js} +1 -1
  166. package/dist/esm/{chunk-8747d0a8.js → chunk-b0123b89.js} +2 -2
  167. package/dist/esm/{chunk-58cdbf2b.js → chunk-b5576437.js} +3 -3
  168. package/dist/esm/{chunk-1a4fde6d.js → chunk-c5284276.js} +2 -2
  169. package/dist/esm/{chunk-2509b537.js → chunk-d46e7ff0.js} +21 -21
  170. package/dist/esm/{chunk-8ed29c41.js → chunk-e92e3389.js} +1 -0
  171. package/dist/esm/{chunk-6d96579e.js → chunk-f32d0228.js} +1 -1
  172. package/dist/esm/clockpicker.js +7 -7
  173. package/dist/esm/colorpicker.js +8 -8
  174. package/dist/esm/config.js +1 -1
  175. package/dist/esm/datepicker.js +9 -9
  176. package/dist/esm/datetimepicker.js +10 -10
  177. package/dist/esm/dialog.js +4 -4
  178. package/dist/esm/dropdown.js +3 -3
  179. package/dist/esm/field.js +3 -3
  180. package/dist/esm/icon.js +3 -3
  181. package/dist/esm/image.js +3 -3
  182. package/dist/esm/index.js +19 -19
  183. package/dist/esm/input.js +5 -5
  184. package/dist/esm/loading.js +1 -1
  185. package/dist/esm/menu.js +2 -2
  186. package/dist/esm/message.js +3 -3
  187. package/dist/esm/modal.js +3 -3
  188. package/dist/esm/notification.js +4 -4
  189. package/dist/esm/numberinput.js +4 -4
  190. package/dist/esm/pagination.js +4 -4
  191. package/dist/esm/progress.js +1 -1
  192. package/dist/esm/rate.js +2 -2
  193. package/dist/esm/select.js +5 -5
  194. package/dist/esm/sidebar.js +1 -1
  195. package/dist/esm/slider.js +2 -2
  196. package/dist/esm/snackbar.js +2 -2
  197. package/dist/esm/steps.js +3 -3
  198. package/dist/esm/switch.js +1 -1
  199. package/dist/esm/table.js +11 -8
  200. package/dist/esm/tabs.js +3 -3
  201. package/dist/esm/taginput.js +5 -5
  202. package/dist/esm/timepicker.js +10 -10
  203. package/dist/esm/toast.js +2 -2
  204. package/dist/esm/tooltip.js +3 -3
  205. package/dist/esm/upload.js +2 -2
  206. package/dist/vetur/attributes.json +5 -1
  207. package/dist/vetur/tags.json +1 -1
  208. package/package.json +1 -1
  209. package/src/components/button/Button.spec.js +14 -0
  210. package/src/components/button/Button.vue +1 -1
  211. package/src/components/field/Field.vue +272 -272
  212. package/src/components/table/TableColumn.vue +121 -118
  213. package/src/components/tooltip/Tooltip.vue +12 -1
  214. package/src/utils/config.js +1 -0
@@ -1,118 +1,121 @@
1
- <script>
2
- import { toCssWidth } from '../../utils/helpers'
3
-
4
- export default {
5
- name: 'BTableColumn',
6
- inject: {
7
- $table: { name: '$table', default: false }
8
- },
9
- props: {
10
- label: String,
11
- customKey: [String, Number],
12
- field: String,
13
- meta: [String, Number, Boolean, Function, Object, Array],
14
- width: [Number, String],
15
- numeric: Boolean,
16
- centered: Boolean,
17
- searchable: Boolean,
18
- sortable: Boolean,
19
- visible: {
20
- type: Boolean,
21
- default: true
22
- },
23
- subheading: [String, Number],
24
- customSort: Function,
25
- customSearch: Function,
26
- sticky: Boolean,
27
- headerSelectable: Boolean,
28
- headerClass: String,
29
- cellClass: String,
30
- thAttrs: {
31
- type: Function,
32
- default: () => ({})
33
- },
34
- tdAttrs: {
35
- type: Function,
36
- default: () => ({})
37
- }
38
- },
39
- data() {
40
- return {
41
- newKey: this.customKey || this.label,
42
- _isTableColumn: true
43
- }
44
- },
45
- computed: {
46
- thClasses() {
47
- const attrs = this.thAttrs(this)
48
- const classes = [this.headerClass, {
49
- 'is-sortable': this.sortable,
50
- 'is-sticky': this.sticky,
51
- 'is-unselectable': this.isHeaderUnSelectable
52
- }]
53
- if (attrs && attrs.class) {
54
- classes.push(attrs.class)
55
- }
56
- return classes
57
- },
58
- thStyle() {
59
- const attrs = this.thAttrs(this)
60
- const style = [this.style]
61
- if (attrs && attrs.style) {
62
- style.push(attrs.style)
63
- }
64
- return style
65
- },
66
- rootClasses() {
67
- return [this.cellClass, {
68
- 'has-text-right': this.numeric && !this.centered,
69
- 'has-text-centered': this.centered,
70
- 'is-sticky': this.sticky
71
- }]
72
- },
73
- style() {
74
- return {
75
- width: toCssWidth(this.width)
76
- }
77
- },
78
- hasDefaultSlot() {
79
- return !!this.$scopedSlots.default
80
- },
81
- /**
82
- * Return if column header is un-selectable
83
- */
84
- isHeaderUnSelectable() {
85
- return !this.headerSelectable && this.sortable
86
- }
87
- },
88
- methods: {
89
- getRootClasses(row) {
90
- const attrs = this.tdAttrs(row, this)
91
- const classes = [this.rootClasses]
92
- if (attrs && attrs.class) {
93
- classes.push(attrs.class)
94
- }
95
- return classes
96
- },
97
- getRootStyle(row) {
98
- const attrs = this.tdAttrs(row, this)
99
- const style = []
100
- if (attrs && attrs.style) {
101
- style.push(attrs.style)
102
- }
103
- return style
104
- }
105
- },
106
- created() {
107
- if (!this.$table) {
108
- this.$destroy()
109
- throw new Error('You should wrap bTableColumn on a bTable')
110
- }
111
- this.$table.refreshSlots()
112
- },
113
- render(createElement) {
114
- // renderless
115
- return null
116
- }
117
- }
118
- </script>
1
+ <script>
2
+ import { toCssWidth } from '../../utils/helpers'
3
+
4
+ export default {
5
+ name: 'BTableColumn',
6
+ inject: {
7
+ $table: { name: '$table', default: false }
8
+ },
9
+ props: {
10
+ label: String,
11
+ customKey: [String, Number],
12
+ field: String,
13
+ meta: [String, Number, Boolean, Function, Object, Array],
14
+ width: [Number, String],
15
+ numeric: Boolean,
16
+ centered: Boolean,
17
+ searchable: Boolean,
18
+ sortable: Boolean,
19
+ visible: {
20
+ type: Boolean,
21
+ default: true
22
+ },
23
+ subheading: [String, Number],
24
+ customSort: Function,
25
+ customSearch: Function,
26
+ sticky: Boolean,
27
+ headerSelectable: Boolean,
28
+ headerClass: String,
29
+ cellClass: String,
30
+ thAttrs: {
31
+ type: Function,
32
+ default: () => ({})
33
+ },
34
+ tdAttrs: {
35
+ type: Function,
36
+ default: () => ({})
37
+ }
38
+ },
39
+ data() {
40
+ return {
41
+ newKey: this.customKey || this.label,
42
+ _isTableColumn: true
43
+ }
44
+ },
45
+ computed: {
46
+ thClasses() {
47
+ const attrs = this.thAttrs(this)
48
+ const classes = [this.headerClass, {
49
+ 'is-sortable': this.sortable,
50
+ 'is-sticky': this.sticky,
51
+ 'is-unselectable': this.isHeaderUnSelectable
52
+ }]
53
+ if (attrs && attrs.class) {
54
+ classes.push(attrs.class)
55
+ }
56
+ return classes
57
+ },
58
+ thStyle() {
59
+ const attrs = this.thAttrs(this)
60
+ const style = [this.style]
61
+ if (attrs && attrs.style) {
62
+ style.push(attrs.style)
63
+ }
64
+ return style
65
+ },
66
+ rootClasses() {
67
+ return [this.cellClass, {
68
+ 'has-text-right': this.numeric && !this.centered,
69
+ 'has-text-centered': this.centered,
70
+ 'is-sticky': this.sticky
71
+ }]
72
+ },
73
+ style() {
74
+ return {
75
+ width: toCssWidth(this.width)
76
+ }
77
+ },
78
+ hasDefaultSlot() {
79
+ return !!this.$scopedSlots.default
80
+ },
81
+ /**
82
+ * Return if column header is un-selectable
83
+ */
84
+ isHeaderUnSelectable() {
85
+ return !this.headerSelectable && this.sortable
86
+ }
87
+ },
88
+ methods: {
89
+ getRootClasses(row) {
90
+ const attrs = this.tdAttrs(row, this)
91
+ const classes = [this.rootClasses]
92
+ if (attrs && attrs.class) {
93
+ classes.push(attrs.class)
94
+ }
95
+ return classes
96
+ },
97
+ getRootStyle(row) {
98
+ const attrs = this.tdAttrs(row, this)
99
+ const style = []
100
+ if (attrs && attrs.style) {
101
+ style.push(attrs.style)
102
+ }
103
+ return style
104
+ }
105
+ },
106
+ created() {
107
+ if (!this.$table) {
108
+ this.$destroy()
109
+ throw new Error('You should wrap bTableColumn on a bTable')
110
+ }
111
+ this.$table.refreshSlots()
112
+ },
113
+ beforeDestroy() {
114
+ this.$table.refreshSlots()
115
+ },
116
+ render(createElement) {
117
+ // renderless
118
+ return null
119
+ }
120
+ }
121
+ </script>
@@ -46,6 +46,10 @@ export default {
46
46
  type: Number,
47
47
  default: () => config.defaultTooltipDelay
48
48
  },
49
+ closeDelay: {
50
+ type: Number,
51
+ default: () => config.defaultTooltipCloseDelay
52
+ },
49
53
  position: {
50
54
  type: String,
51
55
  default: 'is-top',
@@ -214,8 +218,15 @@ export default {
214
218
  },
215
219
  close() {
216
220
  if (typeof this.autoClose === 'boolean') {
217
- this.isActive = !this.autoClose
218
221
  if (this.autoClose && this.timer) clearTimeout(this.timer)
222
+ if (this.closeDelay) {
223
+ this.timer = setTimeout(() => {
224
+ this.isActive = !this.autoClose
225
+ this.timer = null
226
+ }, this.closeDelay)
227
+ } else {
228
+ this.isActive = !this.autoClose
229
+ }
219
230
  }
220
231
  },
221
232
  /**
@@ -15,6 +15,7 @@ let config = {
15
15
  defaultNotificationPosition: null,
16
16
  defaultTooltipType: 'is-primary',
17
17
  defaultTooltipDelay: null,
18
+ defaultTooltipCloseDelay: null,
18
19
  defaultSidebarDelay: null,
19
20
  defaultInputAutocomplete: 'on',
20
21
  defaultDateFormatter: null,