buefy 0.9.9 → 0.9.13

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 (278) hide show
  1. package/CHANGELOG.md +1639 -1609
  2. package/dist/buefy.css +20 -2
  3. package/dist/buefy.esm.js +2227 -1869
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +2266 -1907
  6. package/dist/buefy.min.css +1 -1
  7. package/dist/buefy.min.js +2 -2
  8. package/dist/cjs/autocomplete.js +6 -6
  9. package/dist/cjs/breadcrumb.js +127 -0
  10. package/dist/cjs/button.js +6 -107
  11. package/dist/cjs/carousel.js +9 -7
  12. package/dist/cjs/checkbox.js +5 -5
  13. package/dist/cjs/{chunk-d33a8a78.js → chunk-114191ae.js} +3 -3
  14. package/dist/cjs/{chunk-dafdb70c.js → chunk-2062216d.js} +39 -3
  15. package/dist/cjs/{chunk-64efc596.js → chunk-2911aa4b.js} +20 -16
  16. package/dist/cjs/{chunk-96ab31c1.js → chunk-2ae50815.js} +7 -7
  17. package/dist/cjs/{chunk-c3032504.js → chunk-2c7de785.js} +3 -3
  18. package/dist/cjs/{chunk-50ff3a78.js → chunk-30670fac.js} +96 -15
  19. package/dist/cjs/{chunk-e57b3891.js → chunk-34949503.js} +2 -2
  20. package/dist/cjs/{chunk-0abd2223.js → chunk-3b43d77a.js} +2 -2
  21. package/dist/cjs/{chunk-dcdbe2e8.js → chunk-3cc5d9a6.js} +1 -1
  22. package/dist/cjs/{chunk-0b57168e.js → chunk-61023b09.js} +3 -3
  23. package/dist/cjs/chunk-6cb902f8.js +314 -0
  24. package/dist/cjs/{chunk-adb01a93.js → chunk-7da0c017.js} +26 -24
  25. package/dist/cjs/{chunk-60255743.js → chunk-9103eeda.js} +4 -0
  26. package/dist/cjs/{chunk-14c82365.js → chunk-92621ff7.js} +37 -0
  27. package/dist/cjs/{chunk-816cba7a.js → chunk-9e4cf4c5.js} +1 -1
  28. package/dist/cjs/{chunk-33b9d1cf.js → chunk-a11294f9.js} +27 -26
  29. package/dist/cjs/{chunk-430b5370.js → chunk-bfcad370.js} +25 -2
  30. package/dist/cjs/{chunk-cc470e7c.js → chunk-c6fbc7b4.js} +7 -7
  31. package/dist/cjs/{chunk-993f89de.js → chunk-c7b2aa4b.js} +5 -4
  32. package/dist/cjs/{chunk-6474e963.js → chunk-d0f8ea39.js} +9 -9
  33. package/dist/cjs/{chunk-3acb500b.js → chunk-d120e215.js} +2 -2
  34. package/dist/cjs/{chunk-f5baaa70.js → chunk-d54e40f6.js} +2 -1
  35. package/dist/cjs/{chunk-916a2858.js → chunk-f5106717.js} +4 -4
  36. package/dist/cjs/chunk-fe2f57ee.js +110 -0
  37. package/dist/cjs/{chunk-2571dc7c.js → chunk-fefd7b77.js} +0 -0
  38. package/dist/cjs/clockpicker.js +11 -11
  39. package/dist/cjs/config.js +2 -2
  40. package/dist/cjs/datepicker.js +12 -12
  41. package/dist/cjs/datetimepicker.js +22 -15
  42. package/dist/cjs/dialog.js +13 -11
  43. package/dist/cjs/dropdown.js +8 -8
  44. package/dist/cjs/field.js +5 -5
  45. package/dist/cjs/helpers.js +2 -3
  46. package/dist/cjs/icon.js +3 -3
  47. package/dist/cjs/image.js +6 -311
  48. package/dist/cjs/index.js +29 -23
  49. package/dist/cjs/input.js +5 -5
  50. package/dist/cjs/loading.js +6 -6
  51. package/dist/cjs/menu.js +3 -3
  52. package/dist/cjs/message.js +6 -6
  53. package/dist/cjs/modal.js +6 -6
  54. package/dist/cjs/navbar.js +16 -4
  55. package/dist/cjs/notification.js +23 -11
  56. package/dist/cjs/numberinput.js +9 -7
  57. package/dist/cjs/pagination.js +8 -8
  58. package/dist/cjs/progress.js +10 -6
  59. package/dist/cjs/radio.js +3 -3
  60. package/dist/cjs/rate.js +3 -3
  61. package/dist/cjs/select.js +7 -7
  62. package/dist/cjs/sidebar.js +2 -2
  63. package/dist/cjs/slider.js +4 -4
  64. package/dist/cjs/snackbar.js +5 -5
  65. package/dist/cjs/steps.js +8 -8
  66. package/dist/cjs/switch.js +1 -1
  67. package/dist/cjs/table.js +13 -13
  68. package/dist/cjs/tabs.js +8 -8
  69. package/dist/cjs/tag.js +3 -3
  70. package/dist/cjs/taginput.js +34 -22
  71. package/dist/cjs/timepicker.js +13 -13
  72. package/dist/cjs/toast.js +5 -5
  73. package/dist/cjs/tooltip.js +5 -5
  74. package/dist/cjs/upload.js +5 -5
  75. package/dist/components/autocomplete/index.js +98 -13
  76. package/dist/components/autocomplete/index.min.js +2 -2
  77. package/dist/components/breadcrumb/index.js +293 -0
  78. package/dist/components/breadcrumb/index.min.js +2 -0
  79. package/dist/components/button/index.js +5 -1
  80. package/dist/components/button/index.min.js +2 -2
  81. package/dist/components/carousel/index.js +348 -15
  82. package/dist/components/carousel/index.min.js +2 -2
  83. package/dist/components/checkbox/index.js +1 -1
  84. package/dist/components/checkbox/index.min.js +1 -1
  85. package/dist/components/clockpicker/index.js +54 -47
  86. package/dist/components/clockpicker/index.min.js +2 -2
  87. package/dist/components/collapse/index.js +1 -1
  88. package/dist/components/collapse/index.min.js +1 -1
  89. package/dist/components/datepicker/index.js +41 -32
  90. package/dist/components/datepicker/index.min.js +2 -2
  91. package/dist/components/datetimepicker/index.js +75 -58
  92. package/dist/components/datetimepicker/index.min.js +2 -2
  93. package/dist/components/dialog/index.js +126 -18
  94. package/dist/components/dialog/index.min.js +2 -2
  95. package/dist/components/dropdown/index.js +5 -1
  96. package/dist/components/dropdown/index.min.js +1 -1
  97. package/dist/components/field/index.js +29 -23
  98. package/dist/components/field/index.min.js +2 -2
  99. package/dist/components/icon/index.js +5 -1
  100. package/dist/components/icon/index.min.js +2 -2
  101. package/dist/components/image/index.js +463 -444
  102. package/dist/components/image/index.min.js +2 -2
  103. package/dist/components/input/index.js +5 -1
  104. package/dist/components/input/index.min.js +2 -2
  105. package/dist/components/loading/index.js +2 -2
  106. package/dist/components/loading/index.min.js +2 -2
  107. package/dist/components/menu/index.js +5 -1
  108. package/dist/components/menu/index.min.js +2 -2
  109. package/dist/components/message/index.js +43 -3
  110. package/dist/components/message/index.min.js +2 -2
  111. package/dist/components/modal/index.js +7 -2
  112. package/dist/components/modal/index.min.js +2 -2
  113. package/dist/components/navbar/index.js +16 -4
  114. package/dist/components/navbar/index.min.js +2 -2
  115. package/dist/components/notification/index.js +59 -6
  116. package/dist/components/notification/index.min.js +2 -2
  117. package/dist/components/numberinput/index.js +9 -3
  118. package/dist/components/numberinput/index.min.js +2 -2
  119. package/dist/components/pagination/index.js +5 -1
  120. package/dist/components/pagination/index.min.js +2 -2
  121. package/dist/components/progress/index.js +10 -2
  122. package/dist/components/progress/index.min.js +2 -2
  123. package/dist/components/radio/index.js +1 -1
  124. package/dist/components/radio/index.min.js +1 -1
  125. package/dist/components/rate/index.js +5 -1
  126. package/dist/components/rate/index.min.js +2 -2
  127. package/dist/components/select/index.js +5 -1
  128. package/dist/components/select/index.min.js +2 -2
  129. package/dist/components/sidebar/index.js +5 -1
  130. package/dist/components/sidebar/index.min.js +1 -1
  131. package/dist/components/skeleton/index.js +1 -1
  132. package/dist/components/skeleton/index.min.js +1 -1
  133. package/dist/components/slider/index.js +5 -1
  134. package/dist/components/slider/index.min.js +2 -2
  135. package/dist/components/snackbar/index.js +7 -2
  136. package/dist/components/snackbar/index.min.js +2 -2
  137. package/dist/components/steps/index.js +5 -1
  138. package/dist/components/steps/index.min.js +2 -2
  139. package/dist/components/switch/index.js +5 -1
  140. package/dist/components/switch/index.min.js +1 -1
  141. package/dist/components/table/index.js +6 -2
  142. package/dist/components/table/index.min.js +2 -2
  143. package/dist/components/tabs/index.js +5 -1
  144. package/dist/components/tabs/index.min.js +2 -2
  145. package/dist/components/tag/index.js +26 -3
  146. package/dist/components/tag/index.min.js +2 -2
  147. package/dist/components/taginput/index.js +185 -29
  148. package/dist/components/taginput/index.min.js +2 -2
  149. package/dist/components/timepicker/index.js +54 -47
  150. package/dist/components/timepicker/index.min.js +2 -2
  151. package/dist/components/toast/index.js +7 -2
  152. package/dist/components/toast/index.min.js +2 -2
  153. package/dist/components/tooltip/index.js +5 -1
  154. package/dist/components/tooltip/index.min.js +1 -1
  155. package/dist/components/upload/index.js +5 -1
  156. package/dist/components/upload/index.min.js +2 -2
  157. package/dist/esm/autocomplete.js +7 -7
  158. package/dist/esm/breadcrumb.js +122 -0
  159. package/dist/esm/button.js +6 -107
  160. package/dist/esm/carousel.js +7 -5
  161. package/dist/esm/{chunk-56040896.js → chunk-18e8b067.js} +3 -3
  162. package/dist/esm/{chunk-fa404a2c.js → chunk-21fc0948.js} +7 -7
  163. package/dist/esm/{chunk-f9299099.js → chunk-22e9f916.js} +19 -15
  164. package/dist/esm/{chunk-1fafdf15.js → chunk-2452e3d3.js} +37 -1
  165. package/dist/esm/{chunk-1297c2c9.js → chunk-29ca0df8.js} +1 -1
  166. package/dist/esm/{chunk-3c2169d7.js → chunk-2f2f0a74.js} +25 -2
  167. package/dist/esm/{chunk-cf72ce36.js → chunk-3773c62d.js} +2 -2
  168. package/dist/esm/{chunk-2c957994.js → chunk-4b67a181.js} +3 -3
  169. package/dist/esm/{chunk-45740cdc.js → chunk-6019fd7a.js} +96 -15
  170. package/dist/esm/chunk-71a547bc.js +312 -0
  171. package/dist/esm/{chunk-516e4877.js → chunk-75a5af93.js} +1 -1
  172. package/dist/esm/{chunk-4e380ee2.js → chunk-799e084d.js} +2 -1
  173. package/dist/esm/{chunk-37678809.js → chunk-83eb0d37.js} +3 -3
  174. package/dist/esm/{chunk-34c74085.js → chunk-8d0f95b8.js} +4 -4
  175. package/dist/esm/{chunk-652f2dad.js → chunk-8ed29c41.js} +4 -0
  176. package/dist/esm/{chunk-742a9694.js → chunk-9f7f7441.js} +3 -2
  177. package/dist/esm/{chunk-f160efb9.js → chunk-ae8ab23a.js} +4 -4
  178. package/dist/esm/{chunk-c3b09672.js → chunk-b07e3182.js} +26 -24
  179. package/dist/esm/{chunk-e36a4f2c.js → chunk-b0c0c6b0.js} +0 -0
  180. package/dist/esm/{chunk-ee935ae6.js → chunk-c9c58d0c.js} +1 -1
  181. package/dist/esm/{chunk-1d62828e.js → chunk-d7f92d97.js} +39 -3
  182. package/dist/esm/{chunk-7fd02ffe.js → chunk-d92f0cd9.js} +2 -2
  183. package/dist/esm/chunk-e7c9b2cb.js +108 -0
  184. package/dist/esm/{chunk-0e22ae0a.js → chunk-ece062a7.js} +27 -26
  185. package/dist/esm/clockpicker.js +9 -9
  186. package/dist/esm/config.js +2 -2
  187. package/dist/esm/datepicker.js +11 -11
  188. package/dist/esm/datetimepicker.js +21 -14
  189. package/dist/esm/dialog.js +10 -8
  190. package/dist/esm/dropdown.js +5 -5
  191. package/dist/esm/field.js +4 -4
  192. package/dist/esm/helpers.js +2 -3
  193. package/dist/esm/icon.js +4 -4
  194. package/dist/esm/image.js +6 -311
  195. package/dist/esm/index.js +106 -100
  196. package/dist/esm/input.js +6 -6
  197. package/dist/esm/loading.js +4 -4
  198. package/dist/esm/menu.js +3 -3
  199. package/dist/esm/message.js +5 -5
  200. package/dist/esm/modal.js +4 -4
  201. package/dist/esm/navbar.js +16 -4
  202. package/dist/esm/notification.js +22 -10
  203. package/dist/esm/numberinput.js +9 -7
  204. package/dist/esm/pagination.js +5 -5
  205. package/dist/esm/progress.js +8 -4
  206. package/dist/esm/rate.js +3 -3
  207. package/dist/esm/select.js +6 -6
  208. package/dist/esm/sidebar.js +2 -2
  209. package/dist/esm/slider.js +3 -3
  210. package/dist/esm/snackbar.js +4 -4
  211. package/dist/esm/steps.js +6 -6
  212. package/dist/esm/switch.js +1 -1
  213. package/dist/esm/table.js +9 -9
  214. package/dist/esm/tabs.js +6 -6
  215. package/dist/esm/tag.js +2 -2
  216. package/dist/esm/taginput.js +33 -21
  217. package/dist/esm/timepicker.js +12 -12
  218. package/dist/esm/toast.js +4 -4
  219. package/dist/esm/tooltip.js +4 -4
  220. package/dist/esm/upload.js +3 -3
  221. package/dist/vetur/attributes.json +95 -19
  222. package/dist/vetur/tags.json +37 -4
  223. package/package.json +2 -2
  224. package/src/components/autocomplete/Autocomplete.spec.js +70 -0
  225. package/src/components/autocomplete/Autocomplete.vue +93 -18
  226. package/src/components/breadcrumb/Breadcrumb.spec.js +63 -0
  227. package/src/components/breadcrumb/Breadcrumb.vue +43 -0
  228. package/src/components/breadcrumb/BreadcrumbItem.spec.js +25 -0
  229. package/src/components/breadcrumb/BreadcrumbItem.vue +33 -0
  230. package/src/components/breadcrumb/__snapshots__/Breadcrumb.spec.js.snap +7 -0
  231. package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +7 -0
  232. package/src/components/breadcrumb/index.js +20 -0
  233. package/src/components/carousel/CarouselList.vue +3 -1
  234. package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +128 -8
  235. package/src/components/clockpicker/Clockpicker.vue +259 -259
  236. package/src/components/datepicker/Datepicker.vue +10 -6
  237. package/src/components/datetimepicker/Datetimepicker.vue +8 -1
  238. package/src/components/dialog/Dialog.vue +10 -10
  239. package/src/components/field/Field.vue +271 -270
  240. package/src/components/image/Image.spec.js +197 -183
  241. package/src/components/image/Image.vue +4 -2
  242. package/src/components/index.js +2 -0
  243. package/src/components/loading/Loading.vue +1 -1
  244. package/src/components/loading/__snapshots__/Loading.spec.js.snap +1 -1
  245. package/src/components/message/Message.vue +7 -1
  246. package/src/components/message/__snapshots__/Message.spec.js.snap +1 -0
  247. package/src/components/modal/Modal.vue +2 -0
  248. package/src/components/navbar/Navbar.vue +5 -1
  249. package/src/components/navbar/NavbarBurger.vue +1 -0
  250. package/src/components/navbar/NavbarDropdown.vue +8 -2
  251. package/src/components/navbar/__snapshots__/NavBar.spec.js.snap +11 -11
  252. package/src/components/navbar/__snapshots__/NavBarBurger.spec.js.snap +3 -0
  253. package/src/components/navbar/__snapshots__/NavbarDropdown.spec.js.snap +1 -1
  254. package/src/components/notification/Notification.vue +6 -0
  255. package/src/components/notification/NotificationNotice.vue +16 -3
  256. package/src/components/notification/__snapshots__/Notification.spec.js.snap +1 -0
  257. package/src/components/numberinput/Numberinput.spec.js +10 -0
  258. package/src/components/numberinput/Numberinput.vue +4 -2
  259. package/src/components/progress/Progress.vue +6 -2
  260. package/src/components/snackbar/Snackbar.vue +2 -0
  261. package/src/components/tag/Tag.vue +25 -2
  262. package/src/components/tag/__snapshots__/Tag.spec.js.snap +1 -1
  263. package/src/components/taginput/Taginput.spec.js +57 -1
  264. package/src/components/taginput/Taginput.vue +373 -364
  265. package/src/components/toast/Toast.vue +1 -1
  266. package/src/index.js +2 -0
  267. package/src/scss/buefy.scss +1 -0
  268. package/src/scss/components/_loading.scss +2 -1
  269. package/src/scss/components/_message.scss +3 -0
  270. package/src/scss/components/_notification.scss +8 -0
  271. package/src/scss/components/_progress.scss +8 -0
  272. package/src/utils/MessageMixin.js +32 -1
  273. package/src/utils/NoticeMixin.js +1 -0
  274. package/src/utils/TimepickerMixin.js +718 -716
  275. package/src/utils/config.js +4 -0
  276. package/src/utils/helpers.js +1 -2
  277. package/types/components.d.ts +5 -0
  278. package/src/components/navbar/__snapshots__/NavbarBurger.spec.js.snap +0 -3
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var __chunk_1 = require('./chunk-14c82365.js');
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
4
  var helpers = require('./helpers.js');
5
- var __chunk_3 = require('./chunk-816cba7a.js');
5
+ var __chunk_3 = require('./chunk-9e4cf4c5.js');
6
6
  var __chunk_5 = require('./chunk-13e039f5.js');
7
- var __chunk_6 = require('./chunk-916a2858.js');
7
+ var __chunk_6 = require('./chunk-f5106717.js');
8
8
 
9
9
  var script = {
10
10
  name: 'BAutocomplete',
@@ -50,12 +50,16 @@ var script = {
50
50
  default: function _default() {
51
51
  return ['Tab', 'Enter'];
52
52
  }
53
- }
53
+ },
54
+ selectableHeader: Boolean,
55
+ selectableFooter: Boolean
54
56
  },
55
57
  data: function data() {
56
58
  return {
57
59
  selected: null,
58
60
  hovered: null,
61
+ headerHovered: null,
62
+ footerHovered: null,
59
63
  isActive: false,
60
64
  newValue: this.value,
61
65
  newAutocomplete: this.autocomplete || 'off',
@@ -273,9 +277,9 @@ var script = {
273
277
  newValue: function newValue(value) {
274
278
  this.$emit('input', value); // Check if selected is invalid
275
279
 
276
- var currentValue = this.getValue(this.selected); // empty or different value
280
+ var currentValue = this.getValue(this.selected);
277
281
 
278
- if (typeof currentValue === 'undefined' || currentValue === null || currentValue && currentValue !== value) {
282
+ if (currentValue && currentValue !== value) {
279
283
  this.setSelected(null, false);
280
284
  } // Close dropdown if input is clear or else open it
281
285
 
@@ -335,7 +339,14 @@ var script = {
335
339
  this.$emit('select', this.selected, event);
336
340
 
337
341
  if (this.selected !== null) {
338
- this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);
342
+ if (this.clearOnSelect) {
343
+ var input = this.$refs.input;
344
+ input.newValue = '';
345
+ input.$refs.input.value = '';
346
+ } else {
347
+ this.newValue = this.getValue(this.selected);
348
+ }
349
+
339
350
  this.setHovered(null);
340
351
  }
341
352
 
@@ -372,20 +383,51 @@ var script = {
372
383
  if (key === 'Enter') event.preventDefault(); // Close dropdown on Tab & no hovered
373
384
 
374
385
  if (key === 'Escape' || key === 'Tab') {
375
- event.preventDefault();
376
386
  this.isActive = false;
377
387
  }
378
388
 
379
- if (this.hovered === null) return;
380
-
381
389
  if (this.confirmKeys.indexOf(key) >= 0) {
382
390
  // If adding by comma, don't add the comma to the input
383
391
  if (key === ',') event.preventDefault(); // Close dropdown on select by Tab
384
392
 
385
393
  var closeDropdown = !this.keepOpen || key === 'Tab';
394
+
395
+ if (this.hovered === null) {
396
+ // header and footer uses headerHovered && footerHovered. If header or footer
397
+ // was selected then fire event otherwise just return so a value isn't selected
398
+ this.checkIfHeaderOrFooterSelected(event, null, closeDropdown);
399
+ return;
400
+ }
401
+
386
402
  this.setSelected(this.hovered, closeDropdown, event);
387
403
  }
388
404
  },
405
+ selectHeaderOrFoterByClick: function selectHeaderOrFoterByClick(event, origin) {
406
+ this.checkIfHeaderOrFooterSelected(event, {
407
+ origin: origin
408
+ });
409
+ },
410
+
411
+ /**
412
+ * Check if header or footer was selected.
413
+ */
414
+ checkIfHeaderOrFooterSelected: function checkIfHeaderOrFooterSelected(event, triggerClick) {
415
+ var closeDropdown = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
416
+
417
+ if (this.selectableHeader && (this.headerHovered || triggerClick && triggerClick.origin === 'header')) {
418
+ this.$emit('select-header', event);
419
+ this.headerHovered = false;
420
+ if (triggerClick) this.setHovered(null);
421
+ if (closeDropdown) this.isActive = false;
422
+ }
423
+
424
+ if (this.selectableFooter && (this.footerHovered || triggerClick && triggerClick.origin === 'footer')) {
425
+ this.$emit('select-footer', event);
426
+ this.footerHovered = false;
427
+ if (triggerClick) this.setHovered(null);
428
+ if (closeDropdown) this.isActive = false;
429
+ }
430
+ },
389
431
 
390
432
  /**
391
433
  * Close dropdown if clicked outside.
@@ -463,12 +505,51 @@ var script = {
463
505
  }).reduce(function (a, b) {
464
506
  return [].concat(__chunk_1._toConsumableArray(a), __chunk_1._toConsumableArray(b));
465
507
  }, []);
466
- var index = data.indexOf(this.hovered) + sum;
508
+
509
+ if (this.hasHeaderSlot && this.selectableHeader) {
510
+ data.unshift(undefined);
511
+ }
512
+
513
+ if (this.hasFooterSlot && this.selectableFooter) {
514
+ data.push(undefined);
515
+ }
516
+
517
+ var index;
518
+
519
+ if (this.headerHovered) {
520
+ index = 0 + sum;
521
+ } else if (this.footerHovered) {
522
+ index = data.length - 1 + sum;
523
+ } else {
524
+ index = data.indexOf(this.hovered) + sum;
525
+ }
526
+
467
527
  index = index > data.length - 1 ? data.length - 1 : index;
468
528
  index = index < 0 ? 0 : index;
469
- this.setHovered(data[index]);
529
+ this.footerHovered = false;
530
+ this.headerHovered = false;
531
+ this.setHovered(data[index] !== undefined ? data[index] : null);
532
+
533
+ if (this.hasFooterSlot && this.selectableFooter && index === data.length - 1) {
534
+ this.footerHovered = true;
535
+ }
536
+
537
+ if (this.hasHeaderSlot && this.selectableHeader && index === 0) {
538
+ this.headerHovered = true;
539
+ }
540
+
470
541
  var list = this.$refs.dropdown.querySelector('.dropdown-content');
471
- var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];
542
+ var querySelectorText = 'a.dropdown-item:not(.is-disabled)';
543
+
544
+ if (this.hasHeaderSlot && this.selectableHeader) {
545
+ querySelectorText += ',div.dropdown-header';
546
+ }
547
+
548
+ if (this.hasFooterSlot && this.selectableFooter) {
549
+ querySelectorText += ',div.dropdown-footer';
550
+ }
551
+
552
+ var element = list.querySelectorAll(querySelectorText)[index];
472
553
  if (!element) return;
473
554
  var visMin = list.scrollTop;
474
555
  var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
@@ -512,7 +593,7 @@ var script = {
512
593
  this.hasFocus = false;
513
594
  this.$emit('blur', event);
514
595
  },
515
- onInput: function onInput(event) {
596
+ onInput: function onInput() {
516
597
  var currentValue = this.getValue(this.selected);
517
598
  if (currentValue && currentValue === this.newValue) return;
518
599
  this.$emit('typing', this.newValue);
@@ -625,7 +706,7 @@ var script = {
625
706
  const __vue_script__ = script;
626
707
 
627
708
  /* template */
628
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{ 'is-expanded': _vm.expanded }},[_c('b-input',_vm._b({ref:"input",attrs:{"type":_vm.type,"size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-right":_vm.newIconRight,"icon-right-clickable":_vm.newIconRightClickable,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":false,"aria-autocomplete":_vm.ariaAutocomplete},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur,"icon-right-click":_vm.rightIconClick,"icon-click":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{"keydown":[function($event){return _vm.keydown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.keyArrows('up')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.keyArrows('down')}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (!_vm.isEmpty || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("header")],2):_vm._e(),_vm._l((_vm.computedData),function(element,groupindex){return [(element.group)?_c('div',{key:groupindex + 'group',staticClass:"dropdown-item"},[(_vm.hasGroupSlot)?_vm._t("group",null,{"group":element.group,"index":groupindex}):_c('span',{staticClass:"has-text-weight-bold"},[_vm._v(" "+_vm._s(element.group)+" ")])],2):_vm._e(),_vm._l((element.items),function(option,index){return _c('a',{key:groupindex + ':' + index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.setSelected(option, undefined, $event)}}},[(_vm.hasDefaultSlot)?_vm._t("default",null,{"option":option,"index":index}):_c('span',[_vm._v(" "+_vm._s(_vm.getValue(option, true))+" ")])],2)})]}),(_vm.isEmpty && _vm.hasEmptySlot)?_c('div',{staticClass:"dropdown-item is-disabled"},[_vm._t("empty")],2):_vm._e(),(_vm.hasFooterSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("footer")],2):_vm._e()],2)])])],1)};
709
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{ 'is-expanded': _vm.expanded }},[_c('b-input',_vm._b({ref:"input",attrs:{"type":_vm.type,"size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-right":_vm.newIconRight,"icon-right-clickable":_vm.newIconRightClickable,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":false,"aria-autocomplete":_vm.ariaAutocomplete},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur,"icon-right-click":_vm.rightIconClick,"icon-click":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{"keydown":[function($event){return _vm.keydown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.keyArrows('up')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.keyArrows('down')}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (!_vm.isEmpty || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item dropdown-header",class:{ 'is-hovered': _vm.headerHovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.selectHeaderOrFoterByClick($event, 'header')}}},[_vm._t("header")],2):_vm._e(),_vm._l((_vm.computedData),function(element,groupindex){return [(element.group)?_c('div',{key:groupindex + 'group',staticClass:"dropdown-item"},[(_vm.hasGroupSlot)?_vm._t("group",null,{"group":element.group,"index":groupindex}):_c('span',{staticClass:"has-text-weight-bold"},[_vm._v(" "+_vm._s(element.group)+" ")])],2):_vm._e(),_vm._l((element.items),function(option,index){return _c('a',{key:groupindex + ':' + index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){$event.stopPropagation();return _vm.setSelected(option, !_vm.keepOpen, $event)}}},[(_vm.hasDefaultSlot)?_vm._t("default",null,{"option":option,"index":index}):_c('span',[_vm._v(" "+_vm._s(_vm.getValue(option, true))+" ")])],2)})]}),(_vm.isEmpty && _vm.hasEmptySlot)?_c('div',{staticClass:"dropdown-item is-disabled"},[_vm._t("empty")],2):_vm._e(),(_vm.hasFooterSlot)?_c('div',{staticClass:"dropdown-item dropdown-footer",class:{ 'is-hovered': _vm.footerHovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.selectHeaderOrFoterByClick($event, 'footer')}}},[_vm._t("footer")],2):_vm._e()],2)])])],1)};
629
710
  var __vue_staticRenderFns__ = [];
630
711
 
631
712
  /* style */
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var __chunk_1 = require('./chunk-14c82365.js');
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
4
  var helpers = require('./helpers.js');
5
- var __chunk_2 = require('./chunk-60255743.js');
5
+ var __chunk_2 = require('./chunk-9103eeda.js');
6
6
  var __chunk_5 = require('./chunk-13e039f5.js');
7
7
 
8
8
  var script = {
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var __chunk_5 = require('./chunk-13e039f5.js');
4
- var __chunk_9 = require('./chunk-8b8384ca.js');
4
+ var __chunk_11 = require('./chunk-8b8384ca.js');
5
5
 
6
6
  //
7
7
  var script = {
8
8
  name: 'BCheckbox',
9
- mixins: [__chunk_9.CheckRadioMixin],
9
+ mixins: [__chunk_11.CheckRadioMixin],
10
10
  props: {
11
11
  indeterminate: Boolean,
12
12
  ariaLabelledby: String,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var __chunk_1 = require('./chunk-14c82365.js');
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
4
  var helpers = require('./helpers.js');
5
5
 
6
6
  var items = 1;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var __chunk_1 = require('./chunk-14c82365.js');
4
- var __chunk_2 = require('./chunk-60255743.js');
5
- var __chunk_4 = require('./chunk-3acb500b.js');
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
+ var __chunk_2 = require('./chunk-9103eeda.js');
5
+ var __chunk_4 = require('./chunk-d120e215.js');
6
6
  var __chunk_5 = require('./chunk-13e039f5.js');
7
7
 
8
8
  //
@@ -0,0 +1,314 @@
1
+ 'use strict';
2
+
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
+ var helpers = require('./helpers.js');
5
+ var __chunk_2 = require('./chunk-9103eeda.js');
6
+ var __chunk_5 = require('./chunk-13e039f5.js');
7
+
8
+ var script = {
9
+ name: 'BImage',
10
+ props: {
11
+ src: String,
12
+ alt: String,
13
+ srcFallback: String,
14
+ webpFallback: {
15
+ type: String,
16
+ default: function _default() {
17
+ return __chunk_2.config.defaultImageWebpFallback;
18
+ }
19
+ },
20
+ lazy: {
21
+ type: Boolean,
22
+ default: function _default() {
23
+ return __chunk_2.config.defaultImageLazy;
24
+ }
25
+ },
26
+ responsive: {
27
+ type: Boolean,
28
+ default: function _default() {
29
+ return __chunk_2.config.defaultImageResponsive;
30
+ }
31
+ },
32
+ ratio: {
33
+ type: String,
34
+ default: function _default() {
35
+ return __chunk_2.config.defaultImageRatio;
36
+ }
37
+ },
38
+ placeholder: String,
39
+ srcset: String,
40
+ srcsetSizes: Array,
41
+ srcsetFormatter: {
42
+ type: Function,
43
+ default: function _default(src, size, vm) {
44
+ if (typeof __chunk_2.config.defaultImageSrcsetFormatter === 'function') {
45
+ return __chunk_2.config.defaultImageSrcsetFormatter(src, size);
46
+ } else {
47
+ return vm.formatSrcset(src, size);
48
+ }
49
+ }
50
+ },
51
+ rounded: {
52
+ type: Boolean,
53
+ default: false
54
+ },
55
+ captionFirst: {
56
+ type: Boolean,
57
+ default: false
58
+ },
59
+ customClass: String
60
+ },
61
+ data: function data() {
62
+ return {
63
+ clientWidth: 0,
64
+ webpSupportVerified: false,
65
+ webpSupported: false,
66
+ useNativeLazy: false,
67
+ observer: null,
68
+ inViewPort: false,
69
+ bulmaKnownRatio: ['square', '1by1', '5by4', '4by3', '3by2', '5by3', '16by9', 'b2y1', '3by1', '4by5', '3by4', '2by3', '3by5', '9by16', '1by2', '1by3'],
70
+ loaded: false,
71
+ failed: false
72
+ };
73
+ },
74
+ computed: {
75
+ ratioPattern: function ratioPattern() {
76
+ return new RegExp(/([0-9]+)by([0-9]+)/);
77
+ },
78
+ hasRatio: function hasRatio() {
79
+ return this.ratio && this.ratioPattern.test(this.ratio);
80
+ },
81
+ figureClasses: function figureClasses() {
82
+ var classes = {
83
+ image: this.responsive
84
+ };
85
+
86
+ if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) >= 0) {
87
+ classes["is-".concat(this.ratio)] = true;
88
+ }
89
+
90
+ return classes;
91
+ },
92
+ figureStyles: function figureStyles() {
93
+ if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) < 0) {
94
+ var ratioValues = this.ratioPattern.exec(this.ratio);
95
+ return {
96
+ paddingTop: "".concat(ratioValues[2] / ratioValues[1] * 100, "%")
97
+ };
98
+ }
99
+ },
100
+ imgClasses: function imgClasses() {
101
+ return __chunk_1._defineProperty({
102
+ 'is-rounded': this.rounded,
103
+ 'has-ratio': this.hasRatio
104
+ }, this.customClass, !!this.customClass);
105
+ },
106
+ srcExt: function srcExt() {
107
+ return this.getExt(this.src);
108
+ },
109
+ isWepb: function isWepb() {
110
+ return this.srcExt === 'webp';
111
+ },
112
+ computedSrc: function computedSrc() {
113
+ var src = this.src;
114
+
115
+ if (this.failed && this.srcFallback) {
116
+ src = this.srcFallback;
117
+ }
118
+
119
+ if (!this.webpSupported && this.isWepb && this.webpFallback) {
120
+ if (this.webpFallback.startsWith('.')) {
121
+ return src.replace(/\.webp/gi, "".concat(this.webpFallback));
122
+ }
123
+
124
+ return this.webpFallback;
125
+ }
126
+
127
+ return src;
128
+ },
129
+ computedWidth: function computedWidth() {
130
+ if (this.responsive && this.clientWidth > 0) {
131
+ return this.clientWidth;
132
+ }
133
+ },
134
+ computedNativeLazy: function computedNativeLazy() {
135
+ if (this.lazy && this.useNativeLazy) {
136
+ return 'lazy';
137
+ }
138
+ },
139
+ isDisplayed: function isDisplayed() {
140
+ return (this.webpSupportVerified || !this.isWepb) && (!this.lazy || this.useNativeLazy || this.inViewPort);
141
+ },
142
+ placeholderExt: function placeholderExt() {
143
+ if (this.placeholder) {
144
+ return this.getExt(this.placeholder);
145
+ }
146
+ },
147
+ isPlaceholderWepb: function isPlaceholderWepb() {
148
+ if (this.placeholder) {
149
+ return this.placeholderExt === 'webp';
150
+ }
151
+ },
152
+ computedPlaceholder: function computedPlaceholder() {
153
+ if (!this.webpSupported && this.isPlaceholderWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
154
+ return this.placeholder.replace(/\.webp/gi, "".concat(this.webpFallback));
155
+ }
156
+
157
+ return this.placeholder;
158
+ },
159
+ isPlaceholderDisplayed: function isPlaceholderDisplayed() {
160
+ return !this.loaded && (this.$slots.placeholder || this.placeholder && (this.webpSupportVerified || !this.isPlaceholderWepb));
161
+ },
162
+ computedSrcset: function computedSrcset() {
163
+ var _this = this;
164
+
165
+ if (this.srcset) {
166
+ if (!this.webpSupported && this.isWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
167
+ return this.srcset.replace(/\.webp/gi, "".concat(this.webpFallback));
168
+ }
169
+
170
+ return this.srcset;
171
+ }
172
+
173
+ if (this.srcsetSizes && Array.isArray(this.srcsetSizes) && this.srcsetSizes.length > 0) {
174
+ return this.srcsetSizes.map(function (size) {
175
+ return "".concat(_this.srcsetFormatter(_this.computedSrc, size, _this), " ").concat(size, "w");
176
+ }).join(',');
177
+ }
178
+ },
179
+ computedSizes: function computedSizes() {
180
+ if (this.computedSrcset && this.computedWidth) {
181
+ return "".concat(this.computedWidth, "px");
182
+ }
183
+ },
184
+ isCaptionFirst: function isCaptionFirst() {
185
+ return this.$slots.caption && this.captionFirst;
186
+ },
187
+ isCaptionLast: function isCaptionLast() {
188
+ return this.$slots.caption && !this.captionFirst;
189
+ }
190
+ },
191
+ methods: {
192
+ getExt: function getExt(filename) {
193
+ var clean = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
194
+
195
+ if (filename) {
196
+ var noParam = clean ? filename.split('?')[0] : filename;
197
+ return noParam.split('.').pop();
198
+ }
199
+
200
+ return '';
201
+ },
202
+ setWidth: function setWidth() {
203
+ this.clientWidth = this.$el.clientWidth;
204
+ },
205
+ formatSrcset: function formatSrcset(src, size) {
206
+ var ext = this.getExt(src, false);
207
+ var name = src.split('.').slice(0, -1).join('.');
208
+ return "".concat(name, "-").concat(size, ".").concat(ext);
209
+ },
210
+ onLoad: function onLoad(event) {
211
+ this.loaded = true;
212
+ this.emit('load', event);
213
+ },
214
+ onError: function onError(event) {
215
+ this.emit('error', event);
216
+
217
+ if (!this.failed) {
218
+ this.failed = true;
219
+ }
220
+ },
221
+ emit: function emit(eventName, event) {
222
+ var target = event.target;
223
+ this.$emit(eventName, event, target.currentSrc || target.src || this.computedSrc);
224
+ }
225
+ },
226
+ created: function created() {
227
+ var _this2 = this;
228
+
229
+ if (this.isWepb) {
230
+ helpers.isWebpSupported().then(function (supported) {
231
+ _this2.webpSupportVerified = true;
232
+ _this2.webpSupported = supported;
233
+ });
234
+ }
235
+
236
+ if (this.lazy) {
237
+ // We use native lazy loading if supported
238
+ // We try to use Intersection Observer if native lazy loading is not supported
239
+ // We use the lazy attribute anyway if we cannot detect support (SSR for example).
240
+ var nativeLazySupported = typeof window !== 'undefined' && 'HTMLImageElement' in window && 'loading' in HTMLImageElement.prototype;
241
+ var intersectionObserverSupported = typeof window !== 'undefined' && 'IntersectionObserver' in window;
242
+
243
+ if (!nativeLazySupported && intersectionObserverSupported) {
244
+ this.observer = new IntersectionObserver(function (events) {
245
+ var _events$ = events[0],
246
+ target = _events$.target,
247
+ isIntersecting = _events$.isIntersecting;
248
+
249
+ if (isIntersecting && !_this2.inViewPort) {
250
+ _this2.inViewPort = true;
251
+
252
+ _this2.observer.unobserve(target);
253
+ }
254
+ });
255
+ } else {
256
+ this.useNativeLazy = true;
257
+ }
258
+ }
259
+ },
260
+ mounted: function mounted() {
261
+ if (this.lazy && this.observer) {
262
+ this.observer.observe(this.$el);
263
+ }
264
+
265
+ this.setWidth();
266
+
267
+ if (typeof window !== 'undefined') {
268
+ window.addEventListener('resize', this.setWidth);
269
+ }
270
+ },
271
+ beforeDestroy: function beforeDestroy() {
272
+ if (this.observer) {
273
+ this.observer.disconnect();
274
+ }
275
+
276
+ if (typeof window !== 'undefined') {
277
+ window.removeEventListener('resize', this.setWidth);
278
+ }
279
+ }
280
+ };
281
+
282
+ /* script */
283
+ const __vue_script__ = script;
284
+
285
+ /* template */
286
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('figure',{staticClass:"b-image-wrapper",class:_vm.figureClasses,style:(_vm.figureStyles)},[(_vm.isCaptionFirst)?_c('figcaption',[_vm._t("caption")],2):_vm._e(),_c('transition',{attrs:{"name":"fade"}},[(_vm.isDisplayed)?_c('img',{class:_vm.imgClasses,attrs:{"srcset":_vm.computedSrcset,"src":_vm.computedSrc,"alt":_vm.alt,"width":_vm.computedWidth,"sizes":_vm.computedSizes,"loading":_vm.computedNativeLazy},on:{"load":_vm.onLoad,"error":_vm.onError}}):_vm._e()]),_c('transition',{attrs:{"name":"fade"}},[(_vm.isPlaceholderDisplayed)?_vm._t("placeholder",[_c('img',{staticClass:"placeholder",class:_vm.imgClasses,attrs:{"src":_vm.computedPlaceholder,"alt":_vm.alt}})]):_vm._e()],2),(_vm.isCaptionLast)?_c('figcaption',[_vm._t("caption")],2):_vm._e()],1)};
287
+ var __vue_staticRenderFns__ = [];
288
+
289
+ /* style */
290
+ const __vue_inject_styles__ = undefined;
291
+ /* scoped */
292
+ const __vue_scope_id__ = undefined;
293
+ /* module identifier */
294
+ const __vue_module_identifier__ = undefined;
295
+ /* functional template */
296
+ const __vue_is_functional_template__ = false;
297
+ /* style inject */
298
+
299
+ /* style inject SSR */
300
+
301
+
302
+
303
+ var Image = __chunk_5.__vue_normalize__(
304
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
305
+ __vue_inject_styles__,
306
+ __vue_script__,
307
+ __vue_scope_id__,
308
+ __vue_is_functional_template__,
309
+ __vue_module_identifier__,
310
+ undefined,
311
+ undefined
312
+ );
313
+
314
+ exports.Image = Image;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var __chunk_1 = require('./chunk-14c82365.js');
4
- var __chunk_2 = require('./chunk-60255743.js');
3
+ var __chunk_1 = require('./chunk-92621ff7.js');
4
+ var __chunk_2 = require('./chunk-9103eeda.js');
5
5
  var __chunk_5 = require('./chunk-13e039f5.js');
6
6
 
7
7
  var script = {
@@ -139,12 +139,12 @@ var script$1 = {
139
139
  return this.grouped || this.groupMultiline || this.hasAddons();
140
140
  },
141
141
 
142
- /**
143
- * Correct Bulma class for the side of the addon or group.
144
- *
145
- * This is not kept like the others (is-small, etc.),
146
- * because since 'has-addons' is set automatically it
147
- * doesn't make sense to teach users what addons are exactly.
142
+ /**
143
+ * Correct Bulma class for the side of the addon or group.
144
+ *
145
+ * This is not kept like the others (is-small, etc.),
146
+ * because since 'has-addons' is set automatically it
147
+ * doesn't make sense to teach users what addons are exactly.
148
148
  */
149
149
  newPosition: function newPosition() {
150
150
  if (this.position === undefined) return;
@@ -154,9 +154,9 @@ var script$1 = {
154
154
  if (this.position) return prefix + position[1];
155
155
  },
156
156
 
157
- /**
158
- * Formatted message in case it's an array
159
- * (each element is separated by <br> tag)
157
+ /**
158
+ * Formatted message in case it's an array
159
+ * (each element is separated by <br> tag)
160
160
  */
161
161
  formattedMessage: function formattedMessage() {
162
162
  if (this.parent && this.parent.hasInnerField) {
@@ -226,22 +226,22 @@ var script$1 = {
226
226
  }
227
227
  },
228
228
  watch: {
229
- /**
230
- * Set internal type when prop change.
229
+ /**
230
+ * Set internal type when prop change.
231
231
  */
232
232
  type: function type(value) {
233
233
  this.newType = value;
234
234
  },
235
235
 
236
- /**
237
- * Set internal message when prop change.
236
+ /**
237
+ * Set internal message when prop change.
238
238
  */
239
239
  message: function message(value) {
240
240
  this.newMessage = value;
241
241
  },
242
242
 
243
- /**
244
- * Set parent message if we use Field in Field.
243
+ /**
244
+ * Set parent message if we use Field in Field.
245
245
  */
246
246
  newMessage: function newMessage(value) {
247
247
  if (this.parent && this.parent.hasInnerField) {
@@ -249,16 +249,18 @@ var script$1 = {
249
249
  this.parent.newType = this.newType;
250
250
  }
251
251
 
252
- this.parent.newMessage = value;
252
+ if (!this.parent.message) {
253
+ this.parent.newMessage = value;
254
+ }
253
255
  }
254
256
  }
255
257
  },
256
258
  methods: {
257
- /**
258
- * Field has addons if there are more than one slot
259
- * (element / component) in the Field.
260
- * Or is grouped when prop is set.
261
- * Is a method to be called when component re-render.
259
+ /**
260
+ * Field has addons if there are more than one slot
261
+ * (element / component) in the Field.
262
+ * Or is grouped when prop is set.
263
+ * Is a method to be called when component re-render.
262
264
  */
263
265
  fieldType: function fieldType() {
264
266
  if (this.grouped) return 'is-grouped';
@@ -292,7 +294,7 @@ var script$1 = {
292
294
  const __vue_script__$1 = script$1;
293
295
 
294
296
  /* template */
295
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
297
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
296
298
  var __vue_staticRenderFns__ = [];
297
299
 
298
300
  /* style */
@@ -61,6 +61,10 @@ exports.config = {
61
61
  defaultImageResponsive: true,
62
62
  defaultImageRatio: null,
63
63
  defaultImageSrcsetFormatter: null,
64
+ defaultBreadcrumbTag: 'a',
65
+ defaultBreadcrumbAlign: 'is-left',
66
+ defaultBreadcrumbSeparator: '',
67
+ defaultBreadcrumbSize: 'is-medium',
64
68
  customIconPacks: null
65
69
  };
66
70
  var setOptions = function setOptions(options) {