buefy 0.9.21 → 0.9.23

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 (297) hide show
  1. package/README.md +4 -0
  2. package/dist/buefy.css +76 -24
  3. package/dist/buefy.esm.js +103 -89
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +103 -88
  6. package/dist/buefy.min.css +1 -1
  7. package/dist/buefy.min.js +2 -2
  8. package/dist/cjs/autocomplete.js +2 -2
  9. package/dist/cjs/{chunk-dddb035c.js → chunk-37e64a78.js} +6 -2
  10. package/dist/cjs/{chunk-f8eb56c6.js → chunk-4702fda4.js} +1 -1
  11. package/dist/cjs/{chunk-bcab8905.js → chunk-6e9f64e7.js} +3 -3
  12. package/dist/cjs/{chunk-eba24a95.js → chunk-8ab08774.js} +5 -5
  13. package/dist/cjs/{chunk-85b00a19.js → chunk-94bbc46e.js} +4 -4
  14. package/dist/cjs/{chunk-befea70a.js → chunk-994f8066.js} +22 -8
  15. package/dist/cjs/{chunk-95c4b826.js → chunk-a39776c7.js} +4 -1
  16. package/dist/cjs/{chunk-cc9676a6.js → chunk-b7163607.js} +2 -1
  17. package/dist/cjs/clockpicker.js +3 -3
  18. package/dist/cjs/colorpicker-a5bbcf7b.js +1774 -0
  19. package/dist/cjs/colorpicker.js +14 -1750
  20. package/dist/cjs/datepicker.js +4 -4
  21. package/dist/cjs/datetimepicker.js +5 -5
  22. package/dist/cjs/dialog.js +1 -1
  23. package/dist/cjs/dropdown.js +1 -1
  24. package/dist/cjs/field.js +1 -1
  25. package/dist/cjs/index.js +12 -11
  26. package/dist/cjs/input.js +1 -1
  27. package/dist/cjs/message.js +1 -1
  28. package/dist/cjs/modal.js +1 -1
  29. package/dist/cjs/navbar.js +4 -1
  30. package/dist/cjs/notification.js +1 -1
  31. package/dist/cjs/numberinput.js +7 -2
  32. package/dist/cjs/sidebar.js +6 -44
  33. package/dist/cjs/steps.js +1 -1
  34. package/dist/cjs/table.js +5 -5
  35. package/dist/cjs/tabs.js +1 -1
  36. package/dist/cjs/taginput.js +7 -3
  37. package/dist/cjs/timepicker.js +4 -4
  38. package/dist/components/autocomplete/index.js +26 -9
  39. package/dist/components/autocomplete/index.min.js +2 -2
  40. package/dist/components/breadcrumb/index.js +1 -1
  41. package/dist/components/breadcrumb/index.min.js +1 -1
  42. package/dist/components/button/index.js +1 -1
  43. package/dist/components/button/index.min.js +1 -1
  44. package/dist/components/carousel/index.js +1 -1
  45. package/dist/components/carousel/index.min.js +1 -1
  46. package/dist/components/checkbox/index.js +1 -1
  47. package/dist/components/checkbox/index.min.js +1 -1
  48. package/dist/components/clockpicker/index.js +12 -5
  49. package/dist/components/clockpicker/index.min.js +2 -2
  50. package/dist/components/collapse/index.js +1 -1
  51. package/dist/components/collapse/index.min.js +1 -1
  52. package/dist/components/colorpicker/index.js +46 -21
  53. package/dist/components/colorpicker/index.min.js +2 -2
  54. package/dist/components/datepicker/index.js +13 -6
  55. package/dist/components/datepicker/index.min.js +2 -2
  56. package/dist/components/datetimepicker/index.js +13 -6
  57. package/dist/components/datetimepicker/index.min.js +2 -2
  58. package/dist/components/dialog/index.js +3 -2
  59. package/dist/components/dialog/index.min.js +2 -2
  60. package/dist/components/dropdown/index.js +7 -3
  61. package/dist/components/dropdown/index.min.js +2 -2
  62. package/dist/components/field/index.js +2 -2
  63. package/dist/components/field/index.min.js +2 -2
  64. package/dist/components/icon/index.js +1 -1
  65. package/dist/components/icon/index.min.js +1 -1
  66. package/dist/components/image/index.js +1 -1
  67. package/dist/components/image/index.min.js +1 -1
  68. package/dist/components/input/index.js +5 -2
  69. package/dist/components/input/index.min.js +2 -2
  70. package/dist/components/loading/index.js +1 -1
  71. package/dist/components/loading/index.min.js +1 -1
  72. package/dist/components/menu/index.js +1 -1
  73. package/dist/components/menu/index.min.js +1 -1
  74. package/dist/components/message/index.js +2 -2
  75. package/dist/components/message/index.min.js +2 -2
  76. package/dist/components/modal/index.js +3 -2
  77. package/dist/components/modal/index.min.js +2 -2
  78. package/dist/components/navbar/index.js +5 -2
  79. package/dist/components/navbar/index.min.js +2 -2
  80. package/dist/components/notification/index.js +2 -2
  81. package/dist/components/notification/index.min.js +2 -2
  82. package/dist/components/numberinput/index.js +11 -3
  83. package/dist/components/numberinput/index.min.js +2 -2
  84. package/dist/components/pagination/index.js +1 -1
  85. package/dist/components/pagination/index.min.js +1 -1
  86. package/dist/components/progress/index.js +1 -1
  87. package/dist/components/progress/index.min.js +1 -1
  88. package/dist/components/radio/index.js +1 -1
  89. package/dist/components/radio/index.min.js +1 -1
  90. package/dist/components/rate/index.js +1 -1
  91. package/dist/components/rate/index.min.js +1 -1
  92. package/dist/components/select/index.js +1 -1
  93. package/dist/components/select/index.min.js +1 -1
  94. package/dist/components/sidebar/index.js +7 -48
  95. package/dist/components/sidebar/index.min.js +2 -2
  96. package/dist/components/skeleton/index.js +1 -1
  97. package/dist/components/skeleton/index.min.js +1 -1
  98. package/dist/components/slider/index.js +1 -1
  99. package/dist/components/slider/index.min.js +1 -1
  100. package/dist/components/snackbar/index.js +1 -1
  101. package/dist/components/snackbar/index.min.js +1 -1
  102. package/dist/components/steps/index.js +6 -6
  103. package/dist/components/steps/index.min.js +2 -2
  104. package/dist/components/switch/index.js +1 -1
  105. package/dist/components/switch/index.min.js +1 -1
  106. package/dist/components/table/index.js +9 -6
  107. package/dist/components/table/index.min.js +2 -2
  108. package/dist/components/tabs/index.js +6 -6
  109. package/dist/components/tabs/index.min.js +2 -2
  110. package/dist/components/tag/index.js +1 -1
  111. package/dist/components/tag/index.min.js +1 -1
  112. package/dist/components/taginput/index.js +31 -10
  113. package/dist/components/taginput/index.min.js +2 -2
  114. package/dist/components/timepicker/index.js +12 -5
  115. package/dist/components/timepicker/index.min.js +2 -2
  116. package/dist/components/toast/index.js +1 -1
  117. package/dist/components/toast/index.min.js +1 -1
  118. package/dist/components/tooltip/index.js +1 -1
  119. package/dist/components/tooltip/index.min.js +1 -1
  120. package/dist/components/upload/index.js +1 -1
  121. package/dist/components/upload/index.min.js +1 -1
  122. package/dist/esm/autocomplete.js +6 -6
  123. package/dist/esm/button.js +4 -4
  124. package/dist/esm/carousel.js +4 -4
  125. package/dist/esm/{chunk-293c457c.js → chunk-007b3ff8.js} +7 -7
  126. package/dist/esm/{chunk-c5284276.js → chunk-048831a9.js} +2 -2
  127. package/dist/esm/{chunk-493ff0a9.js → chunk-07da0ba7.js} +1 -1
  128. package/dist/esm/{chunk-ade5b253.js → chunk-0c67e5e7.js} +8 -4
  129. package/dist/esm/{chunk-9b0b8225.js → chunk-18dce47f.js} +1 -1
  130. package/dist/esm/{chunk-6e56b8bc.js → chunk-27ec55c7.js} +1 -1
  131. package/dist/esm/{chunk-7e17a637.js → chunk-4b289821.js} +1 -1
  132. package/dist/esm/{chunk-d46e7ff0.js → chunk-6a7209ee.js} +2 -2
  133. package/dist/esm/{chunk-b5576437.js → chunk-6b514c98.js} +2 -2
  134. package/dist/esm/{chunk-f32d0228.js → chunk-6efa106e.js} +9 -9
  135. package/dist/esm/{chunk-60a03517.js → chunk-70481141.js} +1 -1
  136. package/dist/esm/{chunk-455cdeae.js → chunk-851d1b8f.js} +1 -1
  137. package/dist/esm/{chunk-33e1434e.js → chunk-8e497030.js} +2 -1
  138. package/dist/esm/{chunk-b0123b89.js → chunk-9bd1f33e.js} +24 -10
  139. package/dist/esm/{chunk-4e788733.js → chunk-bf29bc31.js} +3 -3
  140. package/dist/esm/{chunk-7bb9107f.js → chunk-d62aa1f5.js} +2 -2
  141. package/dist/esm/{chunk-83c8b459.js → chunk-d77d421b.js} +7 -4
  142. package/dist/esm/{chunk-6c64686f.js → chunk-dc931ea5.js} +8 -8
  143. package/dist/esm/clockpicker.js +8 -8
  144. package/dist/esm/colorpicker-91643f19.js +1770 -0
  145. package/dist/esm/colorpicker.js +13 -1754
  146. package/dist/esm/config.js +1 -1
  147. package/dist/esm/datepicker.js +10 -10
  148. package/dist/esm/datetimepicker.js +11 -11
  149. package/dist/esm/dialog.js +4 -4
  150. package/dist/esm/dropdown.js +4 -4
  151. package/dist/esm/field.js +3 -3
  152. package/dist/esm/helpers.js +1 -1
  153. package/dist/esm/icon.js +3 -3
  154. package/dist/esm/image.js +3 -3
  155. package/dist/esm/index.js +24 -24
  156. package/dist/esm/input.js +5 -5
  157. package/dist/esm/loading.js +3 -3
  158. package/dist/esm/menu.js +2 -2
  159. package/dist/esm/message.js +4 -4
  160. package/dist/esm/modal.js +3 -3
  161. package/dist/esm/navbar.js +5 -2
  162. package/dist/esm/notification.js +5 -5
  163. package/dist/esm/numberinput.js +10 -5
  164. package/dist/esm/pagination.js +4 -4
  165. package/dist/esm/progress.js +2 -2
  166. package/dist/esm/rate.js +2 -2
  167. package/dist/esm/select.js +5 -5
  168. package/dist/esm/sidebar.js +8 -46
  169. package/dist/esm/slider.js +2 -2
  170. package/dist/esm/snackbar.js +2 -2
  171. package/dist/esm/steps.js +5 -5
  172. package/dist/esm/table.js +12 -12
  173. package/dist/esm/tabs.js +5 -5
  174. package/dist/esm/taginput.js +10 -6
  175. package/dist/esm/timepicker.js +11 -11
  176. package/dist/esm/toast.js +2 -2
  177. package/dist/esm/tooltip.js +3 -3
  178. package/dist/esm/upload.js +2 -2
  179. package/dist/vetur/attributes.json +12 -0
  180. package/dist/vetur/tags.json +5 -2
  181. package/package.json +3 -2
  182. package/src/components/autocomplete/Autocomplete.vue +23 -4
  183. package/src/components/autocomplete/index.js +1 -1
  184. package/src/components/breadcrumb/Breadcrumb.vue +0 -2
  185. package/src/components/breadcrumb/BreadcrumbItem.spec.js +1 -1
  186. package/src/components/breadcrumb/BreadcrumbItem.vue +0 -3
  187. package/src/components/breadcrumb/index.js +2 -2
  188. package/src/components/button/Button.vue +1 -1
  189. package/src/components/button/index.js +1 -1
  190. package/src/components/carousel/Carousel.vue +1 -1
  191. package/src/components/carousel/CarouselList.vue +2 -2
  192. package/src/components/carousel/index.js +3 -3
  193. package/src/components/checkbox/Checkbox.vue +1 -1
  194. package/src/components/checkbox/CheckboxButton.vue +1 -1
  195. package/src/components/checkbox/index.js +2 -2
  196. package/src/components/clockpicker/Clockpicker.vue +5 -5
  197. package/src/components/clockpicker/index.js +1 -1
  198. package/src/components/collapse/index.js +1 -1
  199. package/src/components/colorpicker/Colorpicker.vue +50 -31
  200. package/src/components/colorpicker/ColorpickerAlphaSlider.spec.js +3 -1
  201. package/src/components/colorpicker/ColorpickerAlphaSlider.vue +1 -1
  202. package/src/components/colorpicker/index.js +1 -1
  203. package/src/components/datepicker/Datepicker.spec.js +4 -4
  204. package/src/components/datepicker/Datepicker.vue +14 -13
  205. package/src/components/datepicker/DatepickerTable.vue +1 -1
  206. package/src/components/datepicker/index.js +1 -1
  207. package/src/components/datetimepicker/Datetimepicker.vue +2 -2
  208. package/src/components/datetimepicker/index.js +1 -1
  209. package/src/components/dialog/Dialog.vue +3 -3
  210. package/src/components/dialog/index.js +1 -1
  211. package/src/components/dropdown/Dropdown.vue +6 -2
  212. package/src/components/dropdown/index.js +2 -2
  213. package/src/components/field/Field.spec.js +11 -2
  214. package/src/components/field/Field.vue +6 -2
  215. package/src/components/field/index.js +1 -1
  216. package/src/components/icon/index.js +1 -1
  217. package/src/components/image/index.js +1 -1
  218. package/src/components/input/Input.spec.js +11 -0
  219. package/src/components/input/Input.vue +5 -2
  220. package/src/components/input/index.js +1 -1
  221. package/src/components/loading/index.js +1 -1
  222. package/src/components/menu/MenuItem.vue +1 -1
  223. package/src/components/menu/index.js +3 -3
  224. package/src/components/message/Message.vue +2 -1
  225. package/src/components/message/index.js +1 -1
  226. package/src/components/modal/Modal.vue +2 -1
  227. package/src/components/modal/index.js +1 -1
  228. package/src/components/navbar/NavBar.spec.js +1 -1
  229. package/src/components/navbar/{NavbarBurger.spec.js → NavBarBurger.spec.js} +1 -1
  230. package/src/components/navbar/NavBarItem.spec.js +1 -1
  231. package/src/components/navbar/NavbarDropdown.spec.js +1 -1
  232. package/src/components/navbar/NavbarDropdown.vue +10 -1
  233. package/src/components/navbar/index.js +3 -3
  234. package/src/components/notification/Notification.vue +3 -2
  235. package/src/components/notification/NotificationNotice.vue +1 -1
  236. package/src/components/notification/index.js +2 -2
  237. package/src/components/numberinput/Numberinput.spec.js +31 -0
  238. package/src/components/numberinput/Numberinput.vue +8 -3
  239. package/src/components/numberinput/index.js +1 -1
  240. package/src/components/pagination/Pagination.vue +2 -2
  241. package/src/components/pagination/index.js +2 -2
  242. package/src/components/progress/index.js +2 -2
  243. package/src/components/radio/Radio.vue +1 -1
  244. package/src/components/radio/RadioButton.vue +1 -1
  245. package/src/components/radio/index.js +2 -2
  246. package/src/components/rate/Rate.vue +1 -1
  247. package/src/components/rate/index.js +1 -1
  248. package/src/components/select/Select.vue +1 -1
  249. package/src/components/select/index.js +1 -1
  250. package/src/components/sidebar/Sidebar.vue +6 -25
  251. package/src/components/sidebar/index.js +1 -1
  252. package/src/components/skeleton/index.js +1 -1
  253. package/src/components/slider/Slider.vue +2 -2
  254. package/src/components/slider/SliderThumb.vue +1 -1
  255. package/src/components/slider/index.js +2 -2
  256. package/src/components/snackbar/Snackbar.vue +1 -1
  257. package/src/components/snackbar/index.js +1 -1
  258. package/src/components/steps/StepItem.vue +1 -1
  259. package/src/components/steps/Steps.vue +2 -2
  260. package/src/components/steps/index.js +2 -2
  261. package/src/components/switch/index.js +1 -1
  262. package/src/components/table/Table.vue +31 -19
  263. package/src/components/table/TableColumn.vue +121 -121
  264. package/src/components/table/TableMobileSort.vue +2 -2
  265. package/src/components/table/TablePagination.vue +1 -1
  266. package/src/components/table/index.js +2 -2
  267. package/src/components/tabs/TabItem.vue +1 -1
  268. package/src/components/tabs/Tabs.vue +1 -1
  269. package/src/components/tabs/index.js +2 -2
  270. package/src/components/tag/index.js +2 -2
  271. package/src/components/taginput/Taginput.vue +7 -3
  272. package/src/components/taginput/index.js +1 -1
  273. package/src/components/timepicker/Timepicker.vue +6 -6
  274. package/src/components/timepicker/index.js +1 -1
  275. package/src/components/toast/Toast.vue +1 -1
  276. package/src/components/toast/index.js +1 -1
  277. package/src/components/tooltip/Tooltip.spec.js +35 -0
  278. package/src/components/tooltip/index.js +1 -1
  279. package/src/components/upload/index.js +1 -1
  280. package/src/index.js +1 -0
  281. package/src/scss/components/_colorpicker.scss +1 -1
  282. package/src/scss/components/_datepicker.scss +2 -2
  283. package/src/scss/components/_message.scss +8 -2
  284. package/src/scss/components/_notification.scss +5 -5
  285. package/src/scss/components/_radio.scss +3 -0
  286. package/src/scss/components/_table.scss +1 -0
  287. package/src/utils/MessageMixin.js +1 -1
  288. package/src/utils/TabbedChildMixin.js +1 -1
  289. package/src/utils/TabbedMixin.js +1 -1
  290. package/src/utils/color.js +3 -2
  291. package/src/utils/color.spec.js +3 -1
  292. package/CHANGELOG.md +0 -1741
  293. /package/dist/esm/{chunk-6d0f2352.js → chunk-241dbe8d.js} +0 -0
  294. /package/dist/esm/{chunk-17b33cd2.js → chunk-6ca75105.js} +0 -0
  295. /package/dist/esm/{chunk-c9c18b2f.js → chunk-f37c671e.js} +0 -0
  296. /package/dist/esm/{chunk-a32d1427.js → chunk-f4922148.js} +0 -0
  297. /package/src/components/colorpicker/__snapshots__/{ColorPickerHSLRepresentationSquare.spec.js.snap → ColorpickerHSLRepresentationSquare.spec.js.snap} +0 -0
@@ -32,7 +32,8 @@
32
32
  </div>
33
33
  </div>
34
34
  <b-progress
35
- v-if="progressBar"
35
+ v-if="autoClose && progressBar"
36
+ class="auto-close-progress"
36
37
  :value="remainingTime - 1"
37
38
  :max="duration / 1000 - 1"
38
39
  :type="type"
@@ -42,7 +43,7 @@
42
43
  </template>
43
44
 
44
45
  <script>
45
- import MessageMixin from '../../utils/MessageMixin.js'
46
+ import MessageMixin from '../../utils/MessageMixin'
46
47
 
47
48
  export default {
48
49
  name: 'BNotification',
@@ -12,7 +12,7 @@
12
12
 
13
13
  <script>
14
14
  import config from '../../utils/config'
15
- import NoticeMixin from '../../utils/NoticeMixin.js'
15
+ import NoticeMixin from '../../utils/NoticeMixin'
16
16
  import { removeElement } from '../../utils/helpers'
17
17
 
18
18
  export default {
@@ -1,5 +1,5 @@
1
- import Notification from './Notification'
2
- import NotificationNotice from './NotificationNotice'
1
+ import Notification from './Notification.vue'
2
+ import NotificationNotice from './NotificationNotice.vue'
3
3
 
4
4
  import config, { VueInstance } from '../../utils/config'
5
5
  import { merge } from '../../utils/helpers'
@@ -92,6 +92,37 @@ describe('BNumberinput', () => {
92
92
  expect(wrapper.vm.computedValue).toBe(val)
93
93
  })
94
94
 
95
+ it('does not increment/decrement on long pressing when feature is disabled', async () => {
96
+ wrapper.setProps({
97
+ longPress: false
98
+ })
99
+ jest.useFakeTimers()
100
+ wrapper.vm.computedValue = 0
101
+
102
+ // Increment
103
+ wrapper.find('.control.plus button').trigger('mousedown')
104
+
105
+ // await wait(2000)
106
+ jest.runOnlyPendingTimers()
107
+ jest.runOnlyPendingTimers()
108
+ jest.runOnlyPendingTimers()
109
+
110
+ wrapper.find('.control.plus').trigger('mouseup')
111
+ expect(wrapper.vm.computedValue).toBe(0)
112
+
113
+ // Decrement
114
+ wrapper.find('.control.minus button').trigger('mousedown')
115
+
116
+ jest.runOnlyPendingTimers()
117
+ jest.runOnlyPendingTimers()
118
+
119
+ wrapper.find('.control.minus button').trigger('mouseup')
120
+ // Trigger it another time to check for unexpected browser behavior
121
+ wrapper.find('.control.minus button').trigger('mouseup')
122
+
123
+ expect(wrapper.vm.computedValue).toBe(0)
124
+ })
125
+
95
126
  it('increments/decrements after manually set value on input', async () => {
96
127
  wrapper.setProps({exponential: true, value: 1, step: 1})
97
128
  const BASE_VALUE = Math.floor(Math.random() * 10 + 1)
@@ -91,8 +91,8 @@
91
91
  </template>
92
92
 
93
93
  <script>
94
- import Icon from '../icon/Icon'
95
- import Input from '../input/Input'
94
+ import Icon from '../icon/Icon.vue'
95
+ import Input from '../input/Input.vue'
96
96
  import FormElementMixin from '../../utils/FormElementMixin'
97
97
 
98
98
  export default {
@@ -143,7 +143,11 @@ export default {
143
143
  controlsPosition: String,
144
144
  placeholder: [Number, String],
145
145
  ariaMinusLabel: String,
146
- ariaPlusLabel: String
146
+ ariaPlusLabel: String,
147
+ longPress: {
148
+ type: Boolean,
149
+ default: true
150
+ }
147
151
  },
148
152
  data() {
149
153
  return {
@@ -301,6 +305,7 @@ export default {
301
305
  }, this.exponential ? (250 / (this.exponential * this.timesPressed++)) : 250)
302
306
  },
303
307
  onStartLongPress(event, inc) {
308
+ if (!this.longPress) return
304
309
  if (event.button !== 0 && event.type !== 'touchstart') return
305
310
  clearTimeout(this._$intervalRef)
306
311
  this.longPressTick(inc)
@@ -1,4 +1,4 @@
1
- import Numberinput from './Numberinput'
1
+ import Numberinput from './Numberinput.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -108,8 +108,8 @@
108
108
  </template>
109
109
 
110
110
  <script>
111
- import PaginationButton from './PaginationButton'
112
- import Icon from '../icon/Icon'
111
+ import PaginationButton from './PaginationButton.vue'
112
+ import Icon from '../icon/Icon.vue'
113
113
  import config from '../../utils/config'
114
114
  import debounce from '../../utils/debounce'
115
115
 
@@ -1,5 +1,5 @@
1
- import Pagination from './Pagination'
2
- import PaginationButton from './PaginationButton'
1
+ import Pagination from './Pagination.vue'
2
+ import PaginationButton from './PaginationButton.vue'
3
3
 
4
4
  import { use, registerComponent } from '../../utils/plugins'
5
5
 
@@ -1,5 +1,5 @@
1
- import Progress from './Progress'
2
- import ProgressBar from './ProgressBar'
1
+ import Progress from './Progress.vue'
2
+ import ProgressBar from './ProgressBar.vue'
3
3
 
4
4
  import { use, registerComponent } from '../../utils/plugins'
5
5
 
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script>
24
- import CheckRadioMixin from '../../utils/CheckRadioMixin.js'
24
+ import CheckRadioMixin from '../../utils/CheckRadioMixin'
25
25
 
26
26
  export default {
27
27
  name: 'BRadio',
@@ -24,7 +24,7 @@
24
24
  </template>
25
25
 
26
26
  <script>
27
- import CheckRadioMixin from '../../utils/CheckRadioMixin.js'
27
+ import CheckRadioMixin from '../../utils/CheckRadioMixin'
28
28
 
29
29
  export default {
30
30
  name: 'BRadioButton',
@@ -1,5 +1,5 @@
1
- import Radio from './Radio'
2
- import RadioButton from './RadioButton'
1
+ import Radio from './Radio.vue'
2
+ import RadioButton from './RadioButton.vue'
3
3
 
4
4
  import { use, registerComponent } from '../../utils/plugins'
5
5
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  <script>
38
38
  import config from '../../utils/config'
39
- import Icon from '../icon/Icon'
39
+ import Icon from '../icon/Icon.vue'
40
40
 
41
41
  export default {
42
42
  name: 'BRate',
@@ -1,4 +1,4 @@
1
- import Rate from './Rate'
1
+ import Rate from './Rate.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <script>
41
- import Icon from '../icon/Icon'
41
+ import Icon from '../icon/Icon.vue'
42
42
  import FormElementMixin from '../../utils/FormElementMixin'
43
43
 
44
44
  export default {
@@ -1,4 +1,4 @@
1
- import Select from './Select'
1
+ import Select from './Select.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  <script>
25
25
  import config from '../../utils/config'
26
- import { removeElement, isCustomElement } from '../../utils/helpers'
26
+ import { removeElement } from '../../utils/helpers'
27
27
 
28
28
  export default {
29
29
  name: 'BSidebar',
@@ -89,8 +89,7 @@ export default {
89
89
  transitionName: null,
90
90
  animating: true,
91
91
  savedScrollTop: null,
92
- hasLeaved: false,
93
- whiteList: []
92
+ hasLeaved: false
94
93
  }
95
94
  },
96
95
  computed: {
@@ -175,13 +174,10 @@ export default {
175
174
  * Close fixed sidebar if clicked outside.
176
175
  */
177
176
  clickedOutside(event) {
178
- if (this.isFixed) {
179
- if (this.isOpen && !this.animating) {
180
- const target = isCustomElement(this) ? event.composedPath()[0] : event.target
181
- if (this.whiteList.indexOf(target) < 0) {
182
- this.cancel('outside')
183
- }
184
- }
177
+ if (!this.isFixed || !this.isOpen || this.animating) { return }
178
+
179
+ if (!event.composedPath().includes(this.$refs.sidebarContent)) {
180
+ this.cancel('outside')
185
181
  }
186
182
  },
187
183
 
@@ -283,21 +279,6 @@ export default {
283
279
  if (this.isFixed) {
284
280
  removeElement(this.$el)
285
281
  }
286
- },
287
- beforeUpdate() {
288
- /**
289
- * White-listed items to not close when clicked.
290
- * Add sidebar content and all children.
291
- */
292
- this.whiteList = []
293
- this.whiteList.push(this.$refs.sidebarContent)
294
- // Add all chidren from sidebar
295
- if (this.$refs.sidebarContent !== undefined) {
296
- const children = this.$refs.sidebarContent.querySelectorAll('*')
297
- for (const child of children) {
298
- this.whiteList.push(child)
299
- }
300
- }
301
282
  }
302
283
  }
303
284
  </script>
@@ -1,4 +1,4 @@
1
- import Sidebar from './Sidebar'
1
+ import Sidebar from './Sidebar.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -1,4 +1,4 @@
1
- import Skeleton from './Skeleton'
1
+ import Skeleton from './Skeleton.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -60,8 +60,8 @@
60
60
  </template>
61
61
 
62
62
  <script>
63
- import SliderThumb from './SliderThumb'
64
- import SliderTick from './SliderTick'
63
+ import SliderThumb from './SliderThumb.vue'
64
+ import SliderTick from './SliderTick.vue'
65
65
  import config from '../../utils/config'
66
66
  import {bound} from '../../utils/helpers'
67
67
 
@@ -29,7 +29,7 @@
29
29
  </template>
30
30
 
31
31
  <script>
32
- import Tooltip from '../tooltip/Tooltip'
32
+ import Tooltip from '../tooltip/Tooltip.vue'
33
33
  import config from '../../utils/config'
34
34
 
35
35
  export default {
@@ -1,5 +1,5 @@
1
- import Slider from './Slider'
2
- import SliderTick from './SliderTick'
1
+ import Slider from './Slider.vue'
2
+ import SliderTick from './SliderTick.vue'
3
3
 
4
4
  import { use, registerComponent } from '../../utils/plugins'
5
5
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  <script>
36
36
  import config from '../../utils/config'
37
- import NoticeMixin from '../../utils/NoticeMixin.js'
37
+ import NoticeMixin from '../../utils/NoticeMixin'
38
38
 
39
39
  export default {
40
40
  name: 'BSnackbar',
@@ -1,4 +1,4 @@
1
- import Snackbar from './Snackbar'
1
+ import Snackbar from './Snackbar.vue'
2
2
 
3
3
  import config, { VueInstance } from '../../utils/config'
4
4
  import { merge } from '../../utils/helpers'
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import TabbedChildMixin from '../../utils/TabbedChildMixin.js'
2
+ import TabbedChildMixin from '../../utils/TabbedChildMixin'
3
3
 
4
4
  export default {
5
5
  name: 'BStepItem',
@@ -68,9 +68,9 @@
68
68
  </template>
69
69
 
70
70
  <script>
71
- import Icon from '../icon/Icon'
71
+ import Icon from '../icon/Icon.vue'
72
72
 
73
- import TabbedMixin from '../../utils/TabbedMixin.js'
73
+ import TabbedMixin from '../../utils/TabbedMixin'
74
74
  import config from '../../utils/config'
75
75
 
76
76
  export default {
@@ -1,5 +1,5 @@
1
- import Steps from './Steps'
2
- import StepItem from './StepItem'
1
+ import Steps from './Steps.vue'
2
+ import StepItem from './StepItem.vue'
3
3
 
4
4
  import { use, registerComponent } from '../../utils/plugins'
5
5
 
@@ -1,4 +1,4 @@
1
- import Switch from './Switch'
1
+ import Switch from './Switch.vue'
2
2
 
3
3
  import { use, registerComponent } from '../../utils/plugins'
4
4
 
@@ -63,12 +63,18 @@
63
63
  :class="['checkbox-cell', { 'is-sticky': stickyCheckbox } ]"
64
64
  v-if="checkable && checkboxPosition === 'left'">
65
65
  <template v-if="headerCheckable">
66
- <b-checkbox
67
- autocomplete="off"
68
- :value="isAllChecked"
69
- :type="checkboxType"
70
- :disabled="isAllUncheckable"
71
- @change.native="checkAll"/>
66
+ <slot
67
+ name="check-all"
68
+ :isAllChecked="isAllChecked"
69
+ :isAllUncheckable="isAllUncheckable"
70
+ :checkAll="checkAll">
71
+ <b-checkbox
72
+ autocomplete="off"
73
+ :value="isAllChecked"
74
+ :type="checkboxType"
75
+ :disabled="isAllUncheckable"
76
+ @change.native="checkAll"/>
77
+ </slot>
72
78
  </template>
73
79
  </th>
74
80
  <th
@@ -146,12 +152,18 @@
146
152
  :class="['checkbox-cell', { 'is-sticky': stickyCheckbox } ]"
147
153
  v-if="checkable && checkboxPosition === 'right'">
148
154
  <template v-if="headerCheckable">
149
- <b-checkbox
150
- autocomplete="off"
151
- :value="isAllChecked"
152
- :type="checkboxType"
153
- :disabled="isAllUncheckable"
154
- @change.native="checkAll"/>
155
+ <slot
156
+ name="check-all"
157
+ :isAllChecked="isAllChecked"
158
+ :isAllUncheckable="isAllUncheckable"
159
+ :checkAll="checkAll">
160
+ <b-checkbox
161
+ autocomplete="off"
162
+ :value="isAllChecked"
163
+ :type="checkboxType"
164
+ :disabled="isAllUncheckable"
165
+ @change.native="checkAll"/>
166
+ </slot>
155
167
  </template>
156
168
  </th>
157
169
  </tr>
@@ -387,14 +399,14 @@
387
399
  import { getValueByPath, indexOf, multiColumnSort, escapeRegExpChars, toCssWidth, removeDiacriticsFromString, isNil } from '../../utils/helpers'
388
400
  import debounce from '../../utils/debounce'
389
401
  import { VueInstance } from '../../utils/config'
390
- import Checkbox from '../checkbox/Checkbox'
391
- import Icon from '../icon/Icon'
392
- import Input from '../input/Input'
393
- import Loading from '../loading/Loading'
402
+ import Checkbox from '../checkbox/Checkbox.vue'
403
+ import Icon from '../icon/Icon.vue'
404
+ import Input from '../input/Input.vue'
405
+ import Loading from '../loading/Loading.vue'
394
406
  import SlotComponent from '../../utils/SlotComponent'
395
- import TableMobileSort from './TableMobileSort'
396
- import TableColumn from './TableColumn'
397
- import TablePagination from './TablePagination'
407
+ import TableMobileSort from './TableMobileSort.vue'
408
+ import TableColumn from './TableColumn.vue'
409
+ import TablePagination from './TablePagination.vue'
398
410
 
399
411
  export default {
400
412
  name: 'BTable',