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,11 +1,11 @@
1
- import './chunk-1fafdf15.js';
1
+ import './chunk-2452e3d3.js';
2
2
  import './helpers.js';
3
- import './chunk-652f2dad.js';
3
+ import './chunk-8ed29c41.js';
4
4
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
5
- import './chunk-1297c2c9.js';
5
+ import './chunk-29ca0df8.js';
6
6
  import './chunk-42f463e6.js';
7
- import { D as Dropdown, a as DropdownItem } from './chunk-2c957994.js';
8
- export { D as BDropdown, a as BDropdownItem } from './chunk-2c957994.js';
7
+ import { D as Dropdown, a as DropdownItem } from './chunk-4b67a181.js';
8
+ export { D as BDropdown, a as BDropdownItem } from './chunk-4b67a181.js';
9
9
 
10
10
  var Plugin = {
11
11
  install: function install(Vue) {
package/dist/esm/field.js CHANGED
@@ -1,8 +1,8 @@
1
- import './chunk-1fafdf15.js';
2
- import './chunk-652f2dad.js';
1
+ import './chunk-2452e3d3.js';
2
+ import './chunk-8ed29c41.js';
3
3
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
4
- import { F as Field } from './chunk-c3b09672.js';
5
- export { F as BField } from './chunk-c3b09672.js';
4
+ import { F as Field } from './chunk-b07e3182.js';
5
+ export { F as BField } from './chunk-b07e3182.js';
6
6
 
7
7
  var Plugin = {
8
8
  install: function install(Vue) {
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _objectSpread2, b as _typeof } from './chunk-1fafdf15.js';
1
+ import { _ as _defineProperty, a as _objectSpread2, b as _typeof } from './chunk-2452e3d3.js';
2
2
 
3
3
  /**
4
4
  * +/- function to native math sign
@@ -209,8 +209,7 @@ function getMonthNames() {
209
209
  }
210
210
 
211
211
  var dtf = new Intl.DateTimeFormat(locale, {
212
- month: format,
213
- timeZone: 'UTC'
212
+ month: format
214
213
  });
215
214
  return dates.map(function (d) {
216
215
  return dtf.format(d);
package/dist/esm/icon.js CHANGED
@@ -1,8 +1,8 @@
1
- import './chunk-1fafdf15.js';
1
+ import './chunk-2452e3d3.js';
2
2
  import './helpers.js';
3
- import './chunk-652f2dad.js';
4
- import { I as Icon } from './chunk-7fd02ffe.js';
5
- export { I as BIcon } from './chunk-7fd02ffe.js';
3
+ import './chunk-8ed29c41.js';
4
+ import { I as Icon } from './chunk-d92f0cd9.js';
5
+ export { I as BIcon } from './chunk-d92f0cd9.js';
6
6
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
7
7
 
8
8
  var Plugin = {
package/dist/esm/image.js CHANGED
@@ -1,313 +1,9 @@
1
- import './chunk-1fafdf15.js';
2
- import { isWebpSupported } from './helpers.js';
3
- import { c as config } from './chunk-652f2dad.js';
4
- import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
5
-
6
- //
7
- var script = {
8
- name: 'BImage',
9
- props: {
10
- src: String,
11
- alt: String,
12
- srcFallback: String,
13
- webpFallback: {
14
- type: String,
15
- default: function _default() {
16
- return config.defaultImageWebpFallback;
17
- }
18
- },
19
- lazy: {
20
- type: Boolean,
21
- default: function _default() {
22
- return config.defaultImageLazy;
23
- }
24
- },
25
- responsive: {
26
- type: Boolean,
27
- default: function _default() {
28
- return config.defaultImageResponsive;
29
- }
30
- },
31
- ratio: {
32
- type: String,
33
- default: function _default() {
34
- return config.defaultImageRatio;
35
- }
36
- },
37
- placeholder: String,
38
- srcset: String,
39
- srcsetSizes: Array,
40
- srcsetFormatter: {
41
- type: Function,
42
- default: function _default(src, size, vm) {
43
- if (typeof config.defaultImageSrcsetFormatter === 'function') {
44
- return config.defaultImageSrcsetFormatter(src, size);
45
- } else {
46
- return vm.formatSrcset(src, size);
47
- }
48
- }
49
- },
50
- rounded: {
51
- type: Boolean,
52
- default: false
53
- },
54
- captionFirst: {
55
- type: Boolean,
56
- default: false
57
- }
58
- },
59
- data: function data() {
60
- return {
61
- clientWidth: 0,
62
- webpSupportVerified: false,
63
- webpSupported: false,
64
- useNativeLazy: false,
65
- observer: null,
66
- inViewPort: false,
67
- bulmaKnownRatio: ['square', '1by1', '5by4', '4by3', '3by2', '5by3', '16by9', 'b2y1', '3by1', '4by5', '3by4', '2by3', '3by5', '9by16', '1by2', '1by3'],
68
- loaded: false,
69
- failed: false
70
- };
71
- },
72
- computed: {
73
- ratioPattern: function ratioPattern() {
74
- return new RegExp(/([0-9]+)by([0-9]+)/);
75
- },
76
- hasRatio: function hasRatio() {
77
- return this.ratio && this.ratioPattern.test(this.ratio);
78
- },
79
- figureClasses: function figureClasses() {
80
- var classes = {
81
- image: this.responsive
82
- };
83
-
84
- if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) >= 0) {
85
- classes["is-".concat(this.ratio)] = true;
86
- }
87
-
88
- return classes;
89
- },
90
- figureStyles: function figureStyles() {
91
- if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) < 0) {
92
- var ratioValues = this.ratioPattern.exec(this.ratio);
93
- return {
94
- paddingTop: "".concat(ratioValues[2] / ratioValues[1] * 100, "%")
95
- };
96
- }
97
- },
98
- imgClasses: function imgClasses() {
99
- return {
100
- 'is-rounded': this.rounded,
101
- 'has-ratio': this.hasRatio
102
- };
103
- },
104
- srcExt: function srcExt() {
105
- return this.getExt(this.src);
106
- },
107
- isWepb: function isWepb() {
108
- return this.srcExt === 'webp';
109
- },
110
- computedSrc: function computedSrc() {
111
- var src = this.src;
112
-
113
- if (this.failed && this.srcFallback) {
114
- src = this.srcFallback;
115
- }
116
-
117
- if (!this.webpSupported && this.isWepb && this.webpFallback) {
118
- if (this.webpFallback.startsWith('.')) {
119
- return src.replace(/\.webp/gi, "".concat(this.webpFallback));
120
- }
121
-
122
- return this.webpFallback;
123
- }
124
-
125
- return src;
126
- },
127
- computedWidth: function computedWidth() {
128
- if (this.responsive && this.clientWidth > 0) {
129
- return this.clientWidth;
130
- }
131
- },
132
- computedNativeLazy: function computedNativeLazy() {
133
- if (this.lazy && this.useNativeLazy) {
134
- return 'lazy';
135
- }
136
- },
137
- isDisplayed: function isDisplayed() {
138
- return (this.webpSupportVerified || !this.isWepb) && (!this.lazy || this.useNativeLazy || this.inViewPort);
139
- },
140
- placeholderExt: function placeholderExt() {
141
- if (this.placeholder) {
142
- return this.getExt(this.placeholder);
143
- }
144
- },
145
- isPlaceholderWepb: function isPlaceholderWepb() {
146
- if (this.placeholder) {
147
- return this.placeholderExt === 'webp';
148
- }
149
- },
150
- computedPlaceholder: function computedPlaceholder() {
151
- if (!this.webpSupported && this.isPlaceholderWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
152
- return this.placeholder.replace(/\.webp/gi, "".concat(this.webpFallback));
153
- }
154
-
155
- return this.placeholder;
156
- },
157
- isPlaceholderDisplayed: function isPlaceholderDisplayed() {
158
- return !this.loaded && (this.$slots.placeholder || this.placeholder && (this.webpSupportVerified || !this.isPlaceholderWepb));
159
- },
160
- computedSrcset: function computedSrcset() {
161
- var _this = this;
162
-
163
- if (this.srcset) {
164
- if (!this.webpSupported && this.isWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
165
- return this.srcset.replace(/\.webp/gi, "".concat(this.webpFallback));
166
- }
167
-
168
- return this.srcset;
169
- }
170
-
171
- if (this.srcsetSizes && Array.isArray(this.srcsetSizes) && this.srcsetSizes.length > 0) {
172
- return this.srcsetSizes.map(function (size) {
173
- return "".concat(_this.srcsetFormatter(_this.computedSrc, size, _this), " ").concat(size, "w");
174
- }).join(',');
175
- }
176
- },
177
- computedSizes: function computedSizes() {
178
- if (this.computedSrcset && this.computedWidth) {
179
- return "".concat(this.computedWidth, "px");
180
- }
181
- },
182
- isCaptionFirst: function isCaptionFirst() {
183
- return this.$slots.caption && this.captionFirst;
184
- },
185
- isCaptionLast: function isCaptionLast() {
186
- return this.$slots.caption && !this.captionFirst;
187
- }
188
- },
189
- methods: {
190
- getExt: function getExt(filename) {
191
- var clean = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
192
-
193
- if (filename) {
194
- var noParam = clean ? filename.split('?')[0] : filename;
195
- return noParam.split('.').pop();
196
- }
197
-
198
- return '';
199
- },
200
- setWidth: function setWidth() {
201
- this.clientWidth = this.$el.clientWidth;
202
- },
203
- formatSrcset: function formatSrcset(src, size) {
204
- var ext = this.getExt(src, false);
205
- var name = src.split('.').slice(0, -1).join('.');
206
- return "".concat(name, "-").concat(size, ".").concat(ext);
207
- },
208
- onLoad: function onLoad(event) {
209
- this.loaded = true;
210
- this.emit('load', event);
211
- },
212
- onError: function onError(event) {
213
- this.emit('error', event);
214
-
215
- if (!this.failed) {
216
- this.failed = true;
217
- }
218
- },
219
- emit: function emit(eventName, event) {
220
- var target = event.target;
221
- this.$emit(eventName, event, target.currentSrc || target.src || this.computedSrc);
222
- }
223
- },
224
- created: function created() {
225
- var _this2 = this;
226
-
227
- if (this.isWepb) {
228
- isWebpSupported().then(function (supported) {
229
- _this2.webpSupportVerified = true;
230
- _this2.webpSupported = supported;
231
- });
232
- }
233
-
234
- if (this.lazy) {
235
- // We use native lazy loading if supported
236
- // We try to use Intersection Observer if native lazy loading is not supported
237
- // We use the lazy attribute anyway if we cannot detect support (SSR for example).
238
- var nativeLazySupported = typeof window !== 'undefined' && 'HTMLImageElement' in window && 'loading' in HTMLImageElement.prototype;
239
- var intersectionObserverSupported = typeof window !== 'undefined' && 'IntersectionObserver' in window;
240
-
241
- if (!nativeLazySupported && intersectionObserverSupported) {
242
- this.observer = new IntersectionObserver(function (events) {
243
- var _events$ = events[0],
244
- target = _events$.target,
245
- isIntersecting = _events$.isIntersecting;
246
-
247
- if (isIntersecting && !_this2.inViewPort) {
248
- _this2.inViewPort = true;
249
-
250
- _this2.observer.unobserve(target);
251
- }
252
- });
253
- } else {
254
- this.useNativeLazy = true;
255
- }
256
- }
257
- },
258
- mounted: function mounted() {
259
- if (this.lazy && this.observer) {
260
- this.observer.observe(this.$el);
261
- }
262
-
263
- this.setWidth();
264
-
265
- if (typeof window !== 'undefined') {
266
- window.addEventListener('resize', this.setWidth);
267
- }
268
- },
269
- beforeDestroy: function beforeDestroy() {
270
- if (this.observer) {
271
- this.observer.disconnect();
272
- }
273
-
274
- if (typeof window !== 'undefined') {
275
- window.removeEventListener('resize', this.setWidth);
276
- }
277
- }
278
- };
279
-
280
- /* script */
281
- const __vue_script__ = script;
282
-
283
- /* template */
284
- 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)};
285
- var __vue_staticRenderFns__ = [];
286
-
287
- /* style */
288
- const __vue_inject_styles__ = undefined;
289
- /* scoped */
290
- const __vue_scope_id__ = undefined;
291
- /* module identifier */
292
- const __vue_module_identifier__ = undefined;
293
- /* functional template */
294
- const __vue_is_functional_template__ = false;
295
- /* style inject */
296
-
297
- /* style inject SSR */
298
-
299
-
300
-
301
- var Image = __vue_normalize__(
302
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
303
- __vue_inject_styles__,
304
- __vue_script__,
305
- __vue_scope_id__,
306
- __vue_is_functional_template__,
307
- __vue_module_identifier__,
308
- undefined,
309
- undefined
310
- );
1
+ import './chunk-2452e3d3.js';
2
+ import './helpers.js';
3
+ import './chunk-8ed29c41.js';
4
+ import { r as registerComponent, u as use } from './chunk-cca88db8.js';
5
+ import { I as Image } from './chunk-71a547bc.js';
6
+ export { I as BImage } from './chunk-71a547bc.js';
311
7
 
312
8
  var Plugin = {
313
9
  install: function install(Vue) {
@@ -317,4 +13,3 @@ var Plugin = {
317
13
  use(Plugin);
318
14
 
319
15
  export default Plugin;
320
- export { Image as BImage };
package/dist/esm/index.js CHANGED
@@ -1,111 +1,115 @@
1
- import './chunk-1fafdf15.js';
1
+ import './chunk-2452e3d3.js';
2
2
  import { merge } from './helpers.js';
3
3
  export { bound, createAbsoluteElement, createNewEvent, escapeRegExpChars, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isMobile, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeElement, sign, toCssWidth } from './helpers.js';
4
- import { s as setVueInstance, a as setOptions, c as config } from './chunk-652f2dad.js';
5
- import './chunk-516e4877.js';
6
- import './chunk-7fd02ffe.js';
4
+ import { s as setVueInstance, a as setOptions, c as config } from './chunk-8ed29c41.js';
5
+ import './chunk-75a5af93.js';
6
+ import './chunk-d92f0cd9.js';
7
7
  import { a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';
8
- import './chunk-f160efb9.js';
9
- import './chunk-45740cdc.js';
8
+ import './chunk-ae8ab23a.js';
9
+ import './chunk-6019fd7a.js';
10
10
  import Plugin from './autocomplete.js';
11
11
  export { default as Autocomplete } from './autocomplete.js';
12
- import Plugin$1 from './button.js';
12
+ import Plugin$1 from './breadcrumb.js';
13
+ export { default as Breadcrumb } from './breadcrumb.js';
14
+ import './chunk-e7c9b2cb.js';
15
+ import Plugin$2 from './button.js';
13
16
  export { default as Button } from './button.js';
14
- import './chunk-1297c2c9.js';
15
- import Plugin$2 from './carousel.js';
17
+ import './chunk-29ca0df8.js';
18
+ import Plugin$3 from './carousel.js';
16
19
  export { default as Carousel } from './carousel.js';
20
+ import './chunk-71a547bc.js';
17
21
  import './chunk-2793447b.js';
18
22
  import './chunk-252f2b57.js';
19
- import Plugin$3 from './checkbox.js';
23
+ import Plugin$4 from './checkbox.js';
20
24
  export { default as Checkbox } from './checkbox.js';
21
- import Plugin$5 from './collapse.js';
25
+ import Plugin$6 from './collapse.js';
22
26
  export { default as Collapse } from './collapse.js';
23
- import './chunk-0e22ae0a.js';
27
+ import './chunk-ece062a7.js';
24
28
  import './chunk-42f463e6.js';
25
- import './chunk-2c957994.js';
26
- import './chunk-c3b09672.js';
27
- import Plugin$4 from './clockpicker.js';
29
+ import './chunk-4b67a181.js';
30
+ import './chunk-b07e3182.js';
31
+ import Plugin$5 from './clockpicker.js';
28
32
  export { default as Clockpicker } from './clockpicker.js';
29
- import './chunk-37678809.js';
30
- import './chunk-f9299099.js';
31
- import Plugin$6 from './datepicker.js';
33
+ import './chunk-83eb0d37.js';
34
+ import './chunk-22e9f916.js';
35
+ import Plugin$7 from './datepicker.js';
32
36
  export { default as Datepicker } from './datepicker.js';
33
- import './chunk-fa404a2c.js';
34
- import Plugin$7 from './datetimepicker.js';
37
+ import './chunk-21fc0948.js';
38
+ import Plugin$8 from './datetimepicker.js';
35
39
  export { default as Datetimepicker } from './datetimepicker.js';
36
- import './chunk-742a9694.js';
37
- import Plugin$8 from './dialog.js';
40
+ import './chunk-9f7f7441.js';
41
+ import Plugin$9 from './dialog.js';
38
42
  export { default as Dialog, DialogProgrammatic } from './dialog.js';
39
- import Plugin$9 from './dropdown.js';
43
+ import Plugin$a from './dropdown.js';
40
44
  export { default as Dropdown } from './dropdown.js';
41
- import Plugin$a from './field.js';
45
+ import Plugin$b from './field.js';
42
46
  export { default as Field } from './field.js';
43
- import Plugin$b from './icon.js';
47
+ import Plugin$c from './icon.js';
44
48
  export { default as Icon } from './icon.js';
45
- import Plugin$c from './image.js';
49
+ import Plugin$d from './image.js';
46
50
  export { default as Image } from './image.js';
47
- import Plugin$d from './input.js';
51
+ import Plugin$e from './input.js';
48
52
  export { default as Input } from './input.js';
49
53
  import './chunk-b9bdb0e4.js';
50
- import './chunk-ee935ae6.js';
51
- import Plugin$e from './loading.js';
54
+ import './chunk-c9c58d0c.js';
55
+ import Plugin$f from './loading.js';
52
56
  export { default as Loading, LoadingProgrammatic } from './loading.js';
53
- import Plugin$f from './menu.js';
57
+ import Plugin$g from './menu.js';
54
58
  export { default as Menu } from './menu.js';
55
- import './chunk-1d62828e.js';
56
- import Plugin$g from './message.js';
59
+ import './chunk-d7f92d97.js';
60
+ import Plugin$h from './message.js';
57
61
  export { default as Message } from './message.js';
58
- import Plugin$h from './modal.js';
62
+ import Plugin$i from './modal.js';
59
63
  export { default as Modal, ModalProgrammatic } from './modal.js';
60
- import Plugin$j from './notification.js';
64
+ import Plugin$k from './notification.js';
61
65
  export { default as Notification, NotificationProgrammatic } from './notification.js';
62
- import './chunk-4e380ee2.js';
63
- import Plugin$i from './navbar.js';
66
+ import './chunk-799e084d.js';
67
+ import Plugin$j from './navbar.js';
64
68
  export { default as Navbar } from './navbar.js';
65
- import Plugin$k from './numberinput.js';
69
+ import Plugin$l from './numberinput.js';
66
70
  export { default as Numberinput } from './numberinput.js';
67
- import './chunk-56040896.js';
68
- import Plugin$l from './pagination.js';
71
+ import './chunk-18e8b067.js';
72
+ import Plugin$m from './pagination.js';
69
73
  export { default as Pagination } from './pagination.js';
70
- import Plugin$m from './progress.js';
74
+ import Plugin$n from './progress.js';
71
75
  export { default as Progress } from './progress.js';
72
- import Plugin$n from './radio.js';
76
+ import Plugin$o from './radio.js';
73
77
  export { default as Radio } from './radio.js';
74
- import Plugin$o from './rate.js';
78
+ import Plugin$p from './rate.js';
75
79
  export { default as Rate } from './rate.js';
76
- import Plugin$p from './select.js';
80
+ import Plugin$q from './select.js';
77
81
  export { default as Select } from './select.js';
78
- import Plugin$q from './skeleton.js';
82
+ import Plugin$r from './skeleton.js';
79
83
  export { default as Skeleton } from './skeleton.js';
80
- import Plugin$r from './sidebar.js';
84
+ import Plugin$s from './sidebar.js';
81
85
  export { default as Sidebar } from './sidebar.js';
82
- import './chunk-cf72ce36.js';
83
- import Plugin$s from './slider.js';
86
+ import './chunk-3773c62d.js';
87
+ import Plugin$t from './slider.js';
84
88
  export { default as Slider } from './slider.js';
85
- import Plugin$t from './snackbar.js';
89
+ import Plugin$u from './snackbar.js';
86
90
  export { default as Snackbar, SnackbarProgrammatic } from './snackbar.js';
87
- import './chunk-e36a4f2c.js';
88
- import './chunk-34c74085.js';
89
- import Plugin$u from './steps.js';
91
+ import './chunk-b0c0c6b0.js';
92
+ import './chunk-8d0f95b8.js';
93
+ import Plugin$v from './steps.js';
90
94
  export { default as Steps } from './steps.js';
91
- import Plugin$v from './switch.js';
95
+ import Plugin$w from './switch.js';
92
96
  export { default as Switch } from './switch.js';
93
- import Plugin$w from './table.js';
97
+ import Plugin$x from './table.js';
94
98
  export { default as Table } from './table.js';
95
- import Plugin$x from './tabs.js';
99
+ import Plugin$y from './tabs.js';
96
100
  export { default as Tabs } from './tabs.js';
97
- import './chunk-3c2169d7.js';
98
- import Plugin$y from './tag.js';
101
+ import './chunk-2f2f0a74.js';
102
+ import Plugin$z from './tag.js';
99
103
  export { default as Tag } from './tag.js';
100
- import Plugin$z from './taginput.js';
104
+ import Plugin$A from './taginput.js';
101
105
  export { default as Taginput } from './taginput.js';
102
- import Plugin$A from './timepicker.js';
106
+ import Plugin$B from './timepicker.js';
103
107
  export { default as Timepicker } from './timepicker.js';
104
- import Plugin$B from './toast.js';
108
+ import Plugin$C from './toast.js';
105
109
  export { default as Toast, ToastProgrammatic } from './toast.js';
106
- import Plugin$C from './tooltip.js';
110
+ import Plugin$D from './tooltip.js';
107
111
  export { default as Tooltip } from './tooltip.js';
108
- import Plugin$D from './upload.js';
112
+ import Plugin$E from './upload.js';
109
113
  export { default as Upload } from './upload.js';
110
114
  import ConfigComponent from './config.js';
111
115
  export { default as ConfigProgrammatic } from './config.js';
@@ -114,45 +118,46 @@ export { default as ConfigProgrammatic } from './config.js';
114
118
 
115
119
  var components = /*#__PURE__*/Object.freeze({
116
120
  Autocomplete: Plugin,
117
- Button: Plugin$1,
118
- Carousel: Plugin$2,
119
- Checkbox: Plugin$3,
120
- Clockpicker: Plugin$4,
121
- Collapse: Plugin$5,
122
- Datepicker: Plugin$6,
123
- Datetimepicker: Plugin$7,
124
- Dialog: Plugin$8,
125
- Dropdown: Plugin$9,
126
- Field: Plugin$a,
127
- Icon: Plugin$b,
128
- Image: Plugin$c,
129
- Input: Plugin$d,
130
- Loading: Plugin$e,
131
- Menu: Plugin$f,
132
- Message: Plugin$g,
133
- Modal: Plugin$h,
134
- Navbar: Plugin$i,
135
- Notification: Plugin$j,
136
- Numberinput: Plugin$k,
137
- Pagination: Plugin$l,
138
- Progress: Plugin$m,
139
- Radio: Plugin$n,
140
- Rate: Plugin$o,
141
- Select: Plugin$p,
142
- Skeleton: Plugin$q,
143
- Sidebar: Plugin$r,
144
- Slider: Plugin$s,
145
- Snackbar: Plugin$t,
146
- Steps: Plugin$u,
147
- Switch: Plugin$v,
148
- Table: Plugin$w,
149
- Tabs: Plugin$x,
150
- Tag: Plugin$y,
151
- Taginput: Plugin$z,
152
- Timepicker: Plugin$A,
153
- Toast: Plugin$B,
154
- Tooltip: Plugin$C,
155
- Upload: Plugin$D
121
+ Breadcrumb: Plugin$1,
122
+ Button: Plugin$2,
123
+ Carousel: Plugin$3,
124
+ Checkbox: Plugin$4,
125
+ Clockpicker: Plugin$5,
126
+ Collapse: Plugin$6,
127
+ Datepicker: Plugin$7,
128
+ Datetimepicker: Plugin$8,
129
+ Dialog: Plugin$9,
130
+ Dropdown: Plugin$a,
131
+ Field: Plugin$b,
132
+ Icon: Plugin$c,
133
+ Image: Plugin$d,
134
+ Input: Plugin$e,
135
+ Loading: Plugin$f,
136
+ Menu: Plugin$g,
137
+ Message: Plugin$h,
138
+ Modal: Plugin$i,
139
+ Navbar: Plugin$j,
140
+ Notification: Plugin$k,
141
+ Numberinput: Plugin$l,
142
+ Pagination: Plugin$m,
143
+ Progress: Plugin$n,
144
+ Radio: Plugin$o,
145
+ Rate: Plugin$p,
146
+ Select: Plugin$q,
147
+ Skeleton: Plugin$r,
148
+ Sidebar: Plugin$s,
149
+ Slider: Plugin$t,
150
+ Snackbar: Plugin$u,
151
+ Steps: Plugin$v,
152
+ Switch: Plugin$w,
153
+ Table: Plugin$x,
154
+ Tabs: Plugin$y,
155
+ Tag: Plugin$z,
156
+ Taginput: Plugin$A,
157
+ Timepicker: Plugin$B,
158
+ Toast: Plugin$C,
159
+ Tooltip: Plugin$D,
160
+ Upload: Plugin$E
156
161
  });
157
162
 
158
163
  var Buefy = {
@@ -168,6 +173,7 @@ var Buefy = {
168
173
 
169
174
 
170
175
  registerComponentProgrammatic(Vue, 'config', ConfigComponent);
176
+ Vue.prototype.$buefy.globalNoticeInterval = null;
171
177
  }
172
178
  };
173
179
  use(Buefy);
package/dist/esm/input.js CHANGED
@@ -1,11 +1,11 @@
1
- import './chunk-1fafdf15.js';
1
+ import './chunk-2452e3d3.js';
2
2
  import './helpers.js';
3
- import './chunk-652f2dad.js';
4
- import './chunk-516e4877.js';
5
- import './chunk-7fd02ffe.js';
3
+ import './chunk-8ed29c41.js';
4
+ import './chunk-75a5af93.js';
5
+ import './chunk-d92f0cd9.js';
6
6
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-f160efb9.js';
8
- export { I as BInput } from './chunk-f160efb9.js';
7
+ import { I as Input } from './chunk-ae8ab23a.js';
8
+ export { I as BInput } from './chunk-ae8ab23a.js';
9
9
 
10
10
  var Plugin = {
11
11
  install: function install(Vue) {