buefy 0.7.9 → 0.8.2

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 (347) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/dist/buefy.css +13759 -8263
  3. package/dist/buefy.js +9073 -14866
  4. package/dist/buefy.min.css +1 -5
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/autocomplete.js +22 -0
  7. package/dist/cjs/button.js +106 -0
  8. package/dist/cjs/checkbox.js +135 -0
  9. package/dist/cjs/chunk-07fe6fc0.js +247 -0
  10. package/dist/cjs/chunk-0af453a7.js +105 -0
  11. package/dist/cjs/chunk-0e89e51b.js +394 -0
  12. package/dist/cjs/chunk-13e039f5.js +104 -0
  13. package/dist/cjs/chunk-143d9e6d.js +404 -0
  14. package/dist/cjs/chunk-19ebd649.js +114 -0
  15. package/dist/cjs/chunk-1b1231ce.js +94 -0
  16. package/dist/cjs/chunk-1e6abfcf.js +94 -0
  17. package/dist/cjs/chunk-28d164b1.js +172 -0
  18. package/dist/cjs/chunk-3396605d.js +394 -0
  19. package/dist/cjs/chunk-364a37a0.js +404 -0
  20. package/dist/cjs/chunk-3b066933.js +103 -0
  21. package/dist/cjs/chunk-3dffe6e7.js +54 -0
  22. package/dist/cjs/chunk-4a03b064.js +199 -0
  23. package/dist/cjs/chunk-50b06939.js +153 -0
  24. package/dist/cjs/chunk-52623128.js +105 -0
  25. package/dist/cjs/chunk-53d4f332.js +94 -0
  26. package/dist/cjs/chunk-544a95da.js +404 -0
  27. package/dist/cjs/chunk-545f01b1.js +49 -0
  28. package/dist/cjs/chunk-59b91990.js +64 -0
  29. package/dist/cjs/chunk-5b2a3329.js +394 -0
  30. package/dist/cjs/chunk-60061aa8.js +172 -0
  31. package/dist/cjs/chunk-67658e54.js +404 -0
  32. package/dist/cjs/chunk-6963026a.js +86 -0
  33. package/dist/cjs/chunk-6cece6b7.js +140 -0
  34. package/dist/cjs/chunk-6d6465c1.js +140 -0
  35. package/dist/cjs/chunk-6e9c0aca.js +94 -0
  36. package/dist/cjs/chunk-77f69fca.js +106 -0
  37. package/dist/cjs/chunk-7a25d736.js +114 -0
  38. package/dist/cjs/chunk-876befa8.js +247 -0
  39. package/dist/cjs/chunk-8985ffff.js +105 -0
  40. package/dist/cjs/chunk-8a05c8c9.js +207 -0
  41. package/dist/cjs/chunk-90407463.js +258 -0
  42. package/dist/cjs/chunk-956525c9.js +106 -0
  43. package/dist/cjs/chunk-96ce35a2.js +114 -0
  44. package/dist/cjs/chunk-9da1d120.js +86 -0
  45. package/dist/cjs/chunk-9f6a8079.js +54 -0
  46. package/dist/cjs/chunk-a60dc21d.js +281 -0
  47. package/dist/cjs/chunk-b628277d.js +199 -0
  48. package/dist/cjs/chunk-c146745e.js +153 -0
  49. package/dist/cjs/chunk-c2aec7a9.js +547 -0
  50. package/dist/cjs/chunk-c9641331.js +86 -0
  51. package/dist/cjs/chunk-d492406b.js +172 -0
  52. package/dist/cjs/chunk-e0aa62a0.js +404 -0
  53. package/dist/cjs/chunk-e45e0329.js +48 -0
  54. package/dist/cjs/chunk-e5de6583.js +207 -0
  55. package/dist/cjs/chunk-e85cceb6.js +258 -0
  56. package/dist/cjs/chunk-ed5addd6.js +547 -0
  57. package/dist/cjs/chunk-ef4753d5.js +283 -0
  58. package/dist/cjs/chunk-f0c597f9.js +199 -0
  59. package/dist/cjs/chunk-f1df1c63.js +9 -0
  60. package/dist/cjs/chunk-f1ee2f5c.js +207 -0
  61. package/dist/cjs/chunk-fbd4d545.js +247 -0
  62. package/dist/cjs/clockpicker.js +447 -0
  63. package/dist/cjs/collapse.js +102 -0
  64. package/dist/cjs/datepicker.js +1281 -0
  65. package/dist/cjs/dialog.js +237 -0
  66. package/dist/cjs/dropdown.js +19 -0
  67. package/dist/cjs/field.js +18 -0
  68. package/dist/cjs/icon.js +17 -0
  69. package/dist/cjs/index.js +164 -0
  70. package/dist/cjs/input.js +20 -0
  71. package/dist/cjs/loading.js +166 -0
  72. package/dist/cjs/menu.js +231 -0
  73. package/dist/cjs/message.js +65 -0
  74. package/dist/cjs/modal.js +48 -0
  75. package/dist/cjs/navbar.js +258 -0
  76. package/dist/cjs/notification.js +142 -0
  77. package/dist/cjs/numberinput.js +191 -0
  78. package/dist/cjs/pagination.js +19 -0
  79. package/dist/cjs/progress.js +151 -0
  80. package/dist/cjs/radio.js +224 -0
  81. package/dist/cjs/select.js +20 -0
  82. package/dist/cjs/slider.js +511 -0
  83. package/dist/cjs/snackbar.js +114 -0
  84. package/dist/cjs/steps.js +352 -0
  85. package/dist/cjs/switch.js +144 -0
  86. package/dist/cjs/table.js +877 -0
  87. package/dist/cjs/tabs.js +258 -0
  88. package/dist/cjs/tag.js +63 -0
  89. package/dist/cjs/taginput.js +297 -0
  90. package/dist/cjs/timepicker.js +75 -0
  91. package/dist/cjs/toast.js +89 -0
  92. package/dist/cjs/tooltip.js +17 -0
  93. package/dist/cjs/upload.js +210 -0
  94. package/dist/components/autocomplete/index.js +1084 -2
  95. package/dist/components/autocomplete/index.min.js +2 -0
  96. package/dist/components/button/index.js +425 -2
  97. package/dist/components/button/index.min.js +2 -0
  98. package/dist/components/checkbox/index.js +342 -2
  99. package/dist/components/checkbox/index.min.js +2 -0
  100. package/dist/components/clockpicker/index.js +2340 -2
  101. package/dist/components/clockpicker/index.min.js +2 -0
  102. package/dist/components/collapse/index.js +201 -2
  103. package/dist/components/collapse/index.min.js +2 -0
  104. package/dist/components/datepicker/index.js +2720 -2
  105. package/dist/components/datepicker/index.min.js +2 -0
  106. package/dist/components/dialog/index.js +768 -2
  107. package/dist/components/dialog/index.min.js +2 -0
  108. package/dist/components/dropdown/index.js +555 -2
  109. package/dist/components/dropdown/index.min.js +2 -0
  110. package/dist/components/field/index.js +447 -2
  111. package/dist/components/field/index.min.js +2 -0
  112. package/dist/components/icon/index.js +322 -2
  113. package/dist/components/icon/index.min.js +2 -0
  114. package/dist/components/input/index.js +675 -2
  115. package/dist/components/input/index.min.js +2 -0
  116. package/dist/components/loading/index.js +282 -2
  117. package/dist/components/loading/index.min.js +2 -0
  118. package/dist/components/menu/index.js +550 -2
  119. package/dist/components/menu/index.min.js +2 -0
  120. package/dist/components/message/index.js +482 -2
  121. package/dist/components/message/index.min.js +2 -0
  122. package/dist/components/modal/index.js +400 -2
  123. package/dist/components/modal/index.min.js +2 -0
  124. package/dist/components/navbar/index.js +371 -0
  125. package/dist/components/navbar/index.min.js +2 -0
  126. package/dist/components/notification/index.js +705 -2
  127. package/dist/components/notification/index.min.js +2 -0
  128. package/dist/components/numberinput/index.js +846 -2
  129. package/dist/components/numberinput/index.min.js +2 -0
  130. package/dist/components/pagination/index.js +577 -2
  131. package/dist/components/pagination/index.min.js +2 -0
  132. package/dist/components/progress/index.js +250 -0
  133. package/dist/components/progress/index.min.js +2 -0
  134. package/dist/components/radio/index.js +323 -2
  135. package/dist/components/radio/index.min.js +2 -0
  136. package/dist/components/select/index.js +571 -2
  137. package/dist/components/select/index.min.js +2 -0
  138. package/dist/components/slider/index.js +764 -0
  139. package/dist/components/slider/index.min.js +2 -0
  140. package/dist/components/snackbar/index.js +397 -2
  141. package/dist/components/snackbar/index.min.js +2 -0
  142. package/dist/components/steps/index.js +721 -2
  143. package/dist/components/steps/index.min.js +2 -0
  144. package/dist/components/switch/index.js +243 -2
  145. package/dist/components/switch/index.min.js +2 -0
  146. package/dist/components/table/index.js +1870 -2
  147. package/dist/components/table/index.min.js +2 -0
  148. package/dist/components/tabs/index.js +627 -2
  149. package/dist/components/tabs/index.min.js +2 -0
  150. package/dist/components/tag/index.js +262 -2
  151. package/dist/components/tag/index.min.js +2 -0
  152. package/dist/components/taginput/index.js +1459 -2
  153. package/dist/components/taginput/index.min.js +2 -0
  154. package/dist/components/timepicker/index.js +2053 -2
  155. package/dist/components/timepicker/index.min.js +2 -0
  156. package/dist/components/toast/index.js +372 -2
  157. package/dist/components/toast/index.min.js +2 -0
  158. package/dist/components/tooltip/index.js +236 -2
  159. package/dist/components/tooltip/index.min.js +2 -0
  160. package/dist/components/upload/index.js +501 -2
  161. package/dist/components/upload/index.min.js +2 -0
  162. package/dist/esm/autocomplete.js +18 -0
  163. package/dist/esm/button.js +102 -0
  164. package/dist/esm/checkbox.js +131 -0
  165. package/dist/esm/chunk-00e3e67f.js +401 -0
  166. package/dist/esm/chunk-051f8b06.js +105 -0
  167. package/dist/esm/chunk-0566c90d.js +152 -0
  168. package/dist/esm/chunk-07e19446.js +545 -0
  169. package/dist/esm/chunk-085a700d.js +7 -0
  170. package/dist/esm/chunk-0ad6938a.js +53 -0
  171. package/dist/esm/chunk-0e3f4fb5.js +52 -0
  172. package/dist/esm/chunk-10c85529.js +151 -0
  173. package/dist/esm/chunk-121b1efa.js +197 -0
  174. package/dist/esm/chunk-19dad95e.js +256 -0
  175. package/dist/esm/chunk-231b6066.js +113 -0
  176. package/dist/esm/chunk-24d1a01f.js +279 -0
  177. package/dist/esm/chunk-297bff6b.js +393 -0
  178. package/dist/esm/chunk-2b2ae5c6.js +245 -0
  179. package/dist/esm/chunk-2cb6f867.js +46 -0
  180. package/dist/esm/chunk-33717194.js +392 -0
  181. package/dist/esm/chunk-3b811b77.js +139 -0
  182. package/dist/esm/chunk-3e47308f.js +104 -0
  183. package/dist/esm/chunk-411d6eea.js +84 -0
  184. package/dist/esm/chunk-4535dec5.js +92 -0
  185. package/dist/esm/chunk-47a5f3a1.js +103 -0
  186. package/dist/esm/chunk-4a5384da.js +205 -0
  187. package/dist/esm/chunk-4b663574.js +112 -0
  188. package/dist/esm/chunk-4d393f09.js +170 -0
  189. package/dist/esm/chunk-4d695899.js +257 -0
  190. package/dist/esm/chunk-4f508891.js +171 -0
  191. package/dist/esm/chunk-531b8274.js +281 -0
  192. package/dist/esm/chunk-591ee4a2.js +151 -0
  193. package/dist/esm/chunk-5d3bf82e.js +170 -0
  194. package/dist/esm/chunk-5e0b0665.js +104 -0
  195. package/dist/esm/chunk-648b9aa4.js +45 -0
  196. package/dist/esm/chunk-666940cf.js +546 -0
  197. package/dist/esm/chunk-67c97e13.js +246 -0
  198. package/dist/esm/chunk-6844653e.js +401 -0
  199. package/dist/esm/chunk-699b7cb4.js +245 -0
  200. package/dist/esm/chunk-6f881e7d.js +51 -0
  201. package/dist/esm/chunk-7123d158.js +256 -0
  202. package/dist/esm/chunk-7cf87590.js +60 -0
  203. package/dist/esm/chunk-823177ac.js +545 -0
  204. package/dist/esm/chunk-8838757a.js +401 -0
  205. package/dist/esm/chunk-8ca878c0.js +198 -0
  206. package/dist/esm/chunk-8fc2e874.js +85 -0
  207. package/dist/esm/chunk-912ed715.js +92 -0
  208. package/dist/esm/chunk-92acc21f.js +392 -0
  209. package/dist/esm/chunk-98e86f40.js +197 -0
  210. package/dist/esm/chunk-99a1f9df.js +92 -0
  211. package/dist/esm/chunk-9a776697.js +112 -0
  212. package/dist/esm/chunk-9e3207cc.js +46 -0
  213. package/dist/esm/chunk-9ec14e09.js +112 -0
  214. package/dist/esm/chunk-a5ea70d0.js +205 -0
  215. package/dist/esm/chunk-ac3f4847.js +138 -0
  216. package/dist/esm/chunk-b5376f3e.js +92 -0
  217. package/dist/esm/chunk-b56eb2c8.js +197 -0
  218. package/dist/esm/chunk-b796d1b2.js +392 -0
  219. package/dist/esm/chunk-b822a5db.js +205 -0
  220. package/dist/esm/chunk-b9bdb0e4.js +6 -0
  221. package/dist/esm/chunk-bfe15983.js +401 -0
  222. package/dist/esm/chunk-c9039f68.js +104 -0
  223. package/dist/esm/chunk-cc718c15.js +245 -0
  224. package/dist/esm/chunk-cca88db8.js +99 -0
  225. package/dist/esm/chunk-d6200087.js +50 -0
  226. package/dist/esm/chunk-daeac852.js +138 -0
  227. package/dist/esm/chunk-db31c548.js +103 -0
  228. package/dist/esm/chunk-e5568f45.js +84 -0
  229. package/dist/esm/chunk-e5fce48f.js +59 -0
  230. package/dist/esm/chunk-e84b4047.js +170 -0
  231. package/dist/esm/chunk-e8d90b72.js +98 -0
  232. package/dist/esm/chunk-e932bb68.js +206 -0
  233. package/dist/esm/chunk-edd8ff91.js +103 -0
  234. package/dist/esm/chunk-f0465d8d.js +84 -0
  235. package/dist/esm/chunk-f743d154.js +93 -0
  236. package/dist/esm/chunk-f8036b32.js +402 -0
  237. package/dist/esm/chunk-f984748f.js +401 -0
  238. package/dist/esm/chunk-fd5b0e1e.js +99 -0
  239. package/dist/esm/clockpicker.js +443 -0
  240. package/dist/esm/collapse.js +98 -0
  241. package/dist/esm/datepicker.js +1277 -0
  242. package/dist/esm/dialog.js +231 -0
  243. package/dist/esm/dropdown.js +14 -0
  244. package/dist/esm/field.js +14 -0
  245. package/dist/esm/icon.js +13 -0
  246. package/dist/esm/index.js +154 -0
  247. package/dist/esm/input.js +16 -0
  248. package/dist/esm/loading.js +159 -0
  249. package/dist/esm/menu.js +225 -0
  250. package/dist/esm/message.js +61 -0
  251. package/dist/esm/modal.js +42 -0
  252. package/dist/esm/navbar.js +253 -0
  253. package/dist/esm/notification.js +135 -0
  254. package/dist/esm/numberinput.js +187 -0
  255. package/dist/esm/pagination.js +15 -0
  256. package/dist/esm/progress.js +147 -0
  257. package/dist/esm/radio.js +219 -0
  258. package/dist/esm/select.js +16 -0
  259. package/dist/esm/slider.js +506 -0
  260. package/dist/esm/snackbar.js +108 -0
  261. package/dist/esm/steps.js +347 -0
  262. package/dist/esm/switch.js +140 -0
  263. package/dist/esm/table.js +872 -0
  264. package/dist/esm/tabs.js +253 -0
  265. package/dist/esm/tag.js +59 -0
  266. package/dist/esm/taginput.js +293 -0
  267. package/dist/esm/timepicker.js +71 -0
  268. package/dist/esm/toast.js +83 -0
  269. package/dist/esm/tooltip.js +13 -0
  270. package/dist/esm/upload.js +206 -0
  271. package/package.json +26 -4
  272. package/src/components/checkbox/Checkbox.vue +12 -4
  273. package/src/components/checkbox/CheckboxButton.vue +10 -2
  274. package/src/components/clockpicker/Clockpicker.vue +0 -5
  275. package/src/components/datepicker/Datepicker.spec.js +60 -0
  276. package/src/components/datepicker/Datepicker.vue +46 -19
  277. package/src/components/datepicker/DatepickerTable.spec.js +107 -2
  278. package/src/components/datepicker/DatepickerTable.vue +73 -4
  279. package/src/components/datepicker/DatepickerTableRow.spec.js +127 -17
  280. package/src/components/datepicker/DatepickerTableRow.vue +103 -4
  281. package/src/components/dialog/Dialog.vue +5 -3
  282. package/src/components/dialog/index.js +2 -2
  283. package/src/components/dropdown/Dropdown.vue +1 -4
  284. package/src/components/dropdown/DropdownItem.vue +7 -3
  285. package/src/components/field/Field.spec.js +18 -0
  286. package/src/components/field/Field.vue +21 -2
  287. package/src/components/index.js +6 -0
  288. package/src/components/input/Input.vue +2 -2
  289. package/src/components/loading/index.js +1 -1
  290. package/src/components/modal/index.js +1 -1
  291. package/src/components/navbar/NavBar.spec.js +76 -0
  292. package/src/components/navbar/Navbar.vue +127 -0
  293. package/src/components/navbar/NavbarBurger.vue +25 -0
  294. package/src/components/navbar/NavbarItem.vue +21 -0
  295. package/src/components/navbar/index.js +20 -0
  296. package/src/components/notification/index.js +1 -1
  297. package/src/components/pagination/Pagination.vue +28 -6
  298. package/src/components/progress/Progress.spec.js +77 -0
  299. package/src/components/progress/Progress.vue +108 -0
  300. package/src/components/progress/__snapshots__/Progress.spec.js.snap +7 -0
  301. package/src/components/progress/index.js +17 -0
  302. package/src/components/radio/Radio.spec.js +18 -1
  303. package/src/components/radio/Radio.vue +11 -5
  304. package/src/components/radio/RadioButton.spec.js +18 -1
  305. package/src/components/radio/RadioButton.vue +20 -8
  306. package/src/components/select/Select.spec.js +22 -1
  307. package/src/components/select/Select.vue +2 -1
  308. package/src/components/select/__snapshots__/Select.spec.js.snap +7 -0
  309. package/src/components/slider/Slider.spec.js +10 -0
  310. package/src/components/slider/Slider.vue +240 -0
  311. package/src/components/slider/SliderThumb.vue +188 -0
  312. package/src/components/slider/SliderTick.vue +43 -0
  313. package/src/components/slider/index.js +20 -0
  314. package/src/components/snackbar/index.js +2 -2
  315. package/src/components/steps/StepItem.vue +2 -3
  316. package/src/components/steps/Steps.vue +7 -5
  317. package/src/components/switch/Switch.spec.js +29 -0
  318. package/src/components/switch/Switch.vue +29 -5
  319. package/src/components/switch/__snapshots__/Switch.spec.js.snap +3 -0
  320. package/src/components/table/Table.vue +30 -8
  321. package/src/components/table/TableColumn.vue +2 -2
  322. package/src/components/tag/Tag.vue +4 -1
  323. package/src/components/taginput/Taginput.spec.js +10 -0
  324. package/src/components/taginput/Taginput.vue +8 -3
  325. package/src/components/toast/index.js +2 -2
  326. package/src/components/tooltip/Tooltip.vue +5 -5
  327. package/src/components/upload/Upload.vue +15 -8
  328. package/src/index.js +11 -4
  329. package/src/scss/buefy-build.scss +3 -3
  330. package/src/scss/buefy.scss +4 -0
  331. package/src/scss/components/_datepicker.scss +40 -1
  332. package/src/scss/components/_form.scss +52 -1
  333. package/src/scss/components/_progress.scss +45 -0
  334. package/src/scss/components/_radio.scss +14 -14
  335. package/src/scss/components/_slider.scss +138 -0
  336. package/src/scss/components/_steps.scss +4 -4
  337. package/src/scss/components/_switch.scss +54 -2
  338. package/src/scss/components/_taginput.scss +3 -0
  339. package/src/scss/components/_upload.scss +1 -3
  340. package/src/utils/SlotComponent.js +9 -2
  341. package/src/utils/TimepickerMixin.js +17 -6
  342. package/src/utils/config.js +4 -1
  343. package/src/utils/helpers.spec.js +67 -0
  344. package/src/utils/plugins.js +2 -1
  345. package/types/components.d.ts +3 -3
  346. package/types/index.d.ts +24 -11
  347. package/dist/components/index.js +0 -2
@@ -1,2 +1,627 @@
1
- /*! Buefy v0.7.9 | MIT License | github.com/buefy/buefy */
2
- !(function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}})("undefined"!=typeof self?self:this,(function(){return (function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=293)})({0:function(t,e){t.exports=function(t,e,n,i,r){var o,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,a=t.default);var u="function"==typeof a?a.options:a;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),i&&(u._scopeId=i);var c;if(r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):n&&(c=n),c){var l=u.functional,f=l?u.render:u.beforeCreate;l?u.render=function(t,e){return c.call(e),f(t,e)}:u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:a,options:u}}},1:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(t,e,n){var i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},112:function(t,e,n){"use strict";e.a={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()},isVueComponent:function(){return this.component&&this.component._isVue}},created:function(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render:function(t){if(this.isVueComponent()){var e=this.component.$slots[this.name];return t(this.tag,{},e)}}}},12:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},r=function(t,e){t.component(e.name,e)},o=function(t,e,n){t.prototype[e]=n}},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e,n){var i=n(5);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},16:function(t,e,n){var i=n(2),r=n(3),o=n(29),a=n(9),s=n(6),u=function(t,e,n){var c,l,f,d=t&u.F,p=t&u.G,h=t&u.S,m=t&u.P,v=t&u.B,b=t&u.W,y=p?r:r[e]||(r[e]={}),g=y.prototype,x=p?i:h?i[e]:(i[e]||{}).prototype;p&&(n=e);for(c in n)(l=!d&&x&&void 0!==x[c])&&s(y,c)||(f=l?x[c]:n[c],y[c]=p&&"function"!=typeof x[c]?n[c]:v&&l?o(f,i):b&&x[c]==f?(function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e})(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[c]=f,t&u.R&&g&&!g[c]&&a(g,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},18:function(t,e,n){"use strict";e.__esModule=!0;var i=n(42),r=(function(t){return t&&t.__esModule?t:{default:t}})(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},2:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},20:function(t,e,n){t.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))},21:function(t,e,n){var i=n(5),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},23:function(t,e,n){var i=n(0)(n(46),n(47),null,null,null);t.exports=i.exports},237:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(238),r=n.n(i),o=n(241),a=n.n(o),s=n(12);n.d(e,"Tabs",(function(){return r.a})),n.d(e,"TabItem",(function(){return a.a}));var u={install:function(t){Object(s.a)(t,r.a),Object(s.a)(t,a.a)}};Object(s.c)(u),e.default=u},238:function(t,e,n){var i=n(0)(n(239),n(240),null,null,null);t.exports=i.exports},239:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(18),o=n.n(r),a=n(23),s=n.n(a),u=n(112);e.default={name:"BTabs",components:(i={},o()(i,s.a.name,s.a),o()(i,u.a.name,u.a),i),props:{value:Number,expanded:Boolean,type:String,size:String,position:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},data:function(){return{activeTab:this.value||0,tabItems:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{navClasses:function(){return[this.type,this.size,this.position,{"is-fullwidth":this.expanded,"is-toggle-rounded is-toggle":"is-toggle-rounded"===this.type}]}},watch:{value:function(t){this.changeTab(t)},tabItems:function(){this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0)}},methods:{changeTab:function(t){this.activeTab!==t&&(this.activeTab<this.tabItems.length&&this.tabItems[this.activeTab].deactivate(this.activeTab,t),this.tabItems[t].activate(this.activeTab,t),this.activeTab=t,this.$emit("change",t))},tabClick:function(t){this.$emit("input",t),this.changeTab(t)}},mounted:function(){this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0)}}},240:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-tabs",class:{"is-fullwidth":t.expanded}},[n("nav",{staticClass:"tabs",class:t.navClasses},[n("ul",t._l(t.tabItems,(function(e,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"tabItem.visible"}],key:i,class:{"is-active":t.activeTab===i,"is-disabled":e.disabled}},[n("a",{on:{click:function(e){t.tabClick(i)}}},[e.$slots.header?[n("b-slot-component",{attrs:{component:e,name:"header",tag:"span"}})]:[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e(),t._v(" "),n("span",[t._v(t._s(e.label))])]],2)])})))]),t._v(" "),n("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},staticRenderFns:[]}},241:function(t,e,n){var i=n(0)(n(242),null,null,null,null);t.exports=i.exports},242:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"BTabItem",props:{label:String,icon:String,iconPack:String,disabled:Boolean,visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null}},methods:{activate:function(t,e){this.transitionName=e<t?"slide-next":"slide-prev",this.isActive=!0},deactivate:function(t,e){this.transitionName=e<t?"slide-next":"slide-prev",this.isActive=!1}},created:function(){if(!this.$parent.$data._isTabs)throw this.$destroy(),new Error("You should wrap bTabItem on a bTabs");this.$parent.tabItems.push(this)},beforeDestroy:function(){var t=this.$parent.tabItems.indexOf(this);t>=0&&this.$parent.tabItems.splice(t,1)},render:function(t){var e=this;if(!this.$parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:"tab-item"}},this.$slots.default);return this.$parent.animated?t("transition",{props:{name:this.transitionName},on:{"before-enter":function(){e.$parent.isTransitioning=!0},"after-enter":function(){e.$parent.isTransitioning=!1}}},[n]):n}}}},29:function(t,e,n){var i=n(32);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},293:function(t,e,n){t.exports=n(237)},3:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},32:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,n){var i=n(10),r=n(20),o=n(15),a=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},42:function(t,e,n){t.exports={default:n(43),__esModule:!0}},43:function(t,e,n){n(44);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},44:function(t,e,n){var i=n(16);i(i.S+i.F*!n(1),"Object",{defineProperty:n(4).f})},46:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8);e.default={name:"BIcon",props:{type:[String,Object],pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{newIcon:function(){return"mdi"===this.newPack?this.newPack+"-"+this.icon:this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||i.a.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"==typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1))return"has-text-"+t[1]}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var t="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),e="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),n="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return e;case"is-large":return n;default:return t}},useIconComponent:function(){return i.a.defaultIconComponent}},methods:{addFAPrefix:function(t){return this.useIconComponent?t:"fa-"+t},getEquivalentIconOf:function(t){if(!this.both)return t;switch(t){case"check":return"check";case"information":return"info-circle";case"check-circle":return"check-circle";case"alert":return"exclamation-triangle";case"alert-circle":return"exclamation-circle";case"arrow-up":return"arrow-up";case"chevron-right":return"angle-right";case"chevron-left":return"angle-left";case"chevron-down":return"angle-down";case"eye":return"eye";case"eye-off":return"eye-slash";case"menu-down":return"caret-down";case"menu-up":return"caret-up";default:return t}}}}},47:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},staticRenderFns:[]}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8:function(t,e,n){"use strict";var i={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1};e.a=i},9:function(t,e,n){var i=n(4),r=n(14);t.exports=n(1)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}}})}));
1
+ /*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
2
+ (function (global, factory) {
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
+ (global = global || self, factory(global.Tabs = {}));
6
+ }(this, function (exports) { 'use strict';
7
+
8
+ function _defineProperty(obj, key, value) {
9
+ if (key in obj) {
10
+ Object.defineProperty(obj, key, {
11
+ value: value,
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true
15
+ });
16
+ } else {
17
+ obj[key] = value;
18
+ }
19
+
20
+ return obj;
21
+ }
22
+
23
+ var config = {
24
+ defaultContainerElement: null,
25
+ defaultIconPack: 'mdi',
26
+ defaultIconComponent: null,
27
+ defaultDialogConfirmText: null,
28
+ defaultDialogCancelText: null,
29
+ defaultSnackbarDuration: 3500,
30
+ defaultSnackbarPosition: null,
31
+ defaultToastDuration: 2000,
32
+ defaultToastPosition: null,
33
+ defaultNotificationDuration: 2000,
34
+ defaultNotificationPosition: null,
35
+ defaultTooltipType: 'is-primary',
36
+ defaultTooltipAnimated: false,
37
+ defaultTooltipDelay: 0,
38
+ defaultInputAutocomplete: 'on',
39
+ defaultDateFormatter: null,
40
+ defaultDateParser: null,
41
+ defaultDateCreator: null,
42
+ defaultDayNames: null,
43
+ defaultMonthNames: null,
44
+ defaultFirstDayOfWeek: null,
45
+ defaultUnselectableDaysOfWeek: null,
46
+ defaultTimeFormatter: null,
47
+ defaultTimeParser: null,
48
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
49
+ defaultModalScroll: null,
50
+ defaultDatepickerMobileNative: true,
51
+ defaultTimepickerMobileNative: true,
52
+ defaultNoticeQueue: true,
53
+ defaultInputHasCounter: true,
54
+ defaultTaginputHasCounter: true,
55
+ defaultUseHtml5Validation: true,
56
+ defaultDropdownMobileModal: true,
57
+ defaultFieldLabelPosition: null,
58
+ defaultDatepickerYearsRange: [-100, 3],
59
+ defaultDatepickerNearbyMonthDays: true,
60
+ defaultDatepickerNearbySelectableMonthDays: false,
61
+ defaultDatepickerShowWeekNumber: false
62
+ };
63
+ var config$1 = config;
64
+
65
+ //
66
+ var script = {
67
+ name: 'BIcon',
68
+ props: {
69
+ type: [String, Object],
70
+ pack: String,
71
+ icon: String,
72
+ size: String,
73
+ customSize: String,
74
+ customClass: String,
75
+ both: Boolean // This is used internally to show both MDI and FA icon
76
+
77
+ },
78
+ computed: {
79
+ /**
80
+ * Internal icon name based on the pack.
81
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
82
+ * internal icons are always MDI.
83
+ */
84
+ newIcon: function newIcon() {
85
+ return this.newPack === 'mdi' ? "".concat(this.newPack, "-").concat(this.icon) : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
86
+ },
87
+ newPack: function newPack() {
88
+ return this.pack || config$1.defaultIconPack;
89
+ },
90
+ newType: function newType() {
91
+ if (!this.type) return;
92
+ var splitType = [];
93
+
94
+ if (typeof this.type === 'string') {
95
+ splitType = this.type.split('-');
96
+ } else {
97
+ for (var key in this.type) {
98
+ if (this.type[key]) {
99
+ splitType = key.split('-');
100
+ break;
101
+ }
102
+ }
103
+ }
104
+
105
+ if (splitType.length <= 1) return;
106
+ return "has-text-".concat(splitType[1]);
107
+ },
108
+ newCustomSize: function newCustomSize() {
109
+ return this.customSize || this.customSizeByPack;
110
+ },
111
+ customSizeByPack: function customSizeByPack() {
112
+ var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
113
+ var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
114
+ var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
115
+
116
+ switch (this.size) {
117
+ case 'is-small':
118
+ return;
119
+
120
+ case 'is-medium':
121
+ return mediumSize;
122
+
123
+ case 'is-large':
124
+ return largeSize;
125
+
126
+ default:
127
+ return defaultSize;
128
+ }
129
+ },
130
+ useIconComponent: function useIconComponent() {
131
+ return config$1.defaultIconComponent;
132
+ }
133
+ },
134
+ methods: {
135
+ addFAPrefix: function addFAPrefix(value) {
136
+ if (this.useIconComponent) {
137
+ return value;
138
+ }
139
+
140
+ return "fa-".concat(value);
141
+ },
142
+
143
+ /**
144
+ * Equivalent FA icon name of the MDI.
145
+ */
146
+ getEquivalentIconOf: function getEquivalentIconOf(value) {
147
+ // Only transform the class if the both prop is set to true
148
+ if (!this.both) {
149
+ return value;
150
+ }
151
+
152
+ switch (value) {
153
+ case 'check':
154
+ return 'check';
155
+
156
+ case 'information':
157
+ return 'info-circle';
158
+
159
+ case 'check-circle':
160
+ return 'check-circle';
161
+
162
+ case 'alert':
163
+ return 'exclamation-triangle';
164
+
165
+ case 'alert-circle':
166
+ return 'exclamation-circle';
167
+
168
+ case 'arrow-up':
169
+ return 'arrow-up';
170
+
171
+ case 'chevron-right':
172
+ return 'angle-right';
173
+
174
+ case 'chevron-left':
175
+ return 'angle-left';
176
+
177
+ case 'chevron-down':
178
+ return 'angle-down';
179
+
180
+ case 'eye':
181
+ return 'eye';
182
+
183
+ case 'eye-off':
184
+ return 'eye-slash';
185
+
186
+ case 'menu-down':
187
+ return 'caret-down';
188
+
189
+ case 'menu-up':
190
+ return 'caret-up';
191
+
192
+ default:
193
+ return value;
194
+ }
195
+ }
196
+ }
197
+ };
198
+
199
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
200
+ /* server only */
201
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
202
+ if (typeof shadowMode !== 'boolean') {
203
+ createInjectorSSR = createInjector;
204
+ createInjector = shadowMode;
205
+ shadowMode = false;
206
+ } // Vue.extend constructor export interop.
207
+
208
+
209
+ var options = typeof script === 'function' ? script.options : script; // render functions
210
+
211
+ if (template && template.render) {
212
+ options.render = template.render;
213
+ options.staticRenderFns = template.staticRenderFns;
214
+ options._compiled = true; // functional template
215
+
216
+ if (isFunctionalTemplate) {
217
+ options.functional = true;
218
+ }
219
+ } // scopedId
220
+
221
+
222
+ if (scopeId) {
223
+ options._scopeId = scopeId;
224
+ }
225
+
226
+ var hook;
227
+
228
+ if (moduleIdentifier) {
229
+ // server build
230
+ hook = function hook(context) {
231
+ // 2.3 injection
232
+ context = context || // cached call
233
+ this.$vnode && this.$vnode.ssrContext || // stateful
234
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
235
+ // 2.2 with runInNewContext: true
236
+
237
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
238
+ context = __VUE_SSR_CONTEXT__;
239
+ } // inject component styles
240
+
241
+
242
+ if (style) {
243
+ style.call(this, createInjectorSSR(context));
244
+ } // register component module identifier for async chunk inference
245
+
246
+
247
+ if (context && context._registeredComponents) {
248
+ context._registeredComponents.add(moduleIdentifier);
249
+ }
250
+ }; // used by ssr in case component is cached and beforeCreate
251
+ // never gets called
252
+
253
+
254
+ options._ssrRegister = hook;
255
+ } else if (style) {
256
+ hook = shadowMode ? function () {
257
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
258
+ } : function (context) {
259
+ style.call(this, createInjector(context));
260
+ };
261
+ }
262
+
263
+ if (hook) {
264
+ if (options.functional) {
265
+ // register for functional component in vue file
266
+ var originalRender = options.render;
267
+
268
+ options.render = function renderWithStyleInjection(h, context) {
269
+ hook.call(context);
270
+ return originalRender(h, context);
271
+ };
272
+ } else {
273
+ // inject component registration as beforeCreate hook
274
+ var existing = options.beforeCreate;
275
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
276
+ }
277
+ }
278
+
279
+ return script;
280
+ }
281
+
282
+ var normalizeComponent_1 = normalizeComponent;
283
+
284
+ /* script */
285
+ const __vue_script__ = script;
286
+
287
+ /* template */
288
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"icon",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:"component",class:[_vm.customClass],attrs:{"icon":[_vm.newPack, _vm.newIcon],"size":_vm.newCustomSize}})],1)};
289
+ var __vue_staticRenderFns__ = [];
290
+
291
+ /* style */
292
+ const __vue_inject_styles__ = undefined;
293
+ /* scoped */
294
+ const __vue_scope_id__ = undefined;
295
+ /* module identifier */
296
+ const __vue_module_identifier__ = undefined;
297
+ /* functional template */
298
+ const __vue_is_functional_template__ = false;
299
+ /* style inject */
300
+
301
+ /* style inject SSR */
302
+
303
+
304
+
305
+ var Icon = normalizeComponent_1(
306
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
307
+ __vue_inject_styles__,
308
+ __vue_script__,
309
+ __vue_scope_id__,
310
+ __vue_is_functional_template__,
311
+ __vue_module_identifier__,
312
+ undefined,
313
+ undefined
314
+ );
315
+
316
+ var SlotComponent = {
317
+ name: 'BSlotComponent',
318
+ props: {
319
+ component: {
320
+ type: Object,
321
+ required: true
322
+ },
323
+ name: {
324
+ type: String,
325
+ default: 'default'
326
+ },
327
+ scoped: {
328
+ type: Boolean
329
+ },
330
+ props: {
331
+ type: Object
332
+ },
333
+ tag: {
334
+ type: String,
335
+ default: 'div'
336
+ },
337
+ event: {
338
+ type: String,
339
+ default: 'hook:updated'
340
+ }
341
+ },
342
+ methods: {
343
+ refresh: function refresh() {
344
+ this.$forceUpdate();
345
+ },
346
+ isVueComponent: function isVueComponent() {
347
+ return this.component && this.component._isVue;
348
+ }
349
+ },
350
+ created: function created() {
351
+ if (this.isVueComponent()) {
352
+ this.component.$on(this.event, this.refresh);
353
+ }
354
+ },
355
+ beforeDestroy: function beforeDestroy() {
356
+ if (this.isVueComponent()) {
357
+ this.component.$off(this.event, this.refresh);
358
+ }
359
+ },
360
+ render: function render(createElement) {
361
+ if (this.isVueComponent()) {
362
+ return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);
363
+ }
364
+ }
365
+ };
366
+
367
+ var _components;
368
+ var script$1 = {
369
+ name: 'BTabs',
370
+ components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, SlotComponent.name, SlotComponent), _components),
371
+ props: {
372
+ value: Number,
373
+ expanded: Boolean,
374
+ type: String,
375
+ size: String,
376
+ position: String,
377
+ animated: {
378
+ type: Boolean,
379
+ default: true
380
+ },
381
+ destroyOnHide: {
382
+ type: Boolean,
383
+ default: false
384
+ }
385
+ },
386
+ data: function data() {
387
+ return {
388
+ activeTab: this.value || 0,
389
+ tabItems: [],
390
+ contentHeight: 0,
391
+ isTransitioning: false,
392
+ _isTabs: true // Used internally by TabItem
393
+
394
+ };
395
+ },
396
+ computed: {
397
+ navClasses: function navClasses() {
398
+ return [this.type, this.size, this.position, {
399
+ 'is-fullwidth': this.expanded,
400
+ 'is-toggle-rounded is-toggle': this.type === 'is-toggle-rounded'
401
+ }];
402
+ }
403
+ },
404
+ watch: {
405
+ /**
406
+ * When v-model is changed set the new active tab.
407
+ */
408
+ value: function value(_value) {
409
+ this.changeTab(_value);
410
+ },
411
+
412
+ /**
413
+ * When tab-items are updated, set active one.
414
+ */
415
+ tabItems: function tabItems() {
416
+ if (this.activeTab < this.tabItems.length) {
417
+ this.tabItems[this.activeTab].isActive = true;
418
+ }
419
+ }
420
+ },
421
+ methods: {
422
+ /**
423
+ * Change the active tab and emit change event.
424
+ */
425
+ changeTab: function changeTab(newIndex) {
426
+ if (this.activeTab === newIndex) return;
427
+
428
+ if (this.activeTab < this.tabItems.length) {
429
+ this.tabItems[this.activeTab].deactivate(this.activeTab, newIndex);
430
+ }
431
+
432
+ this.tabItems[newIndex].activate(this.activeTab, newIndex);
433
+ this.activeTab = newIndex;
434
+ this.$emit('change', newIndex);
435
+ },
436
+
437
+ /**
438
+ * Tab click listener, emit input event and change active tab.
439
+ */
440
+ tabClick: function tabClick(value) {
441
+ this.$emit('input', value);
442
+ this.changeTab(value);
443
+ }
444
+ },
445
+ mounted: function mounted() {
446
+ if (this.activeTab < this.tabItems.length) {
447
+ this.tabItems[this.activeTab].isActive = true;
448
+ }
449
+ }
450
+ };
451
+
452
+ /* script */
453
+ const __vue_script__$1 = script$1;
454
+
455
+ /* template */
456
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-tabs",class:{ 'is-fullwidth': _vm.expanded }},[_c('nav',{staticClass:"tabs",class:_vm.navClasses},[_c('ul',_vm._l((_vm.tabItems),function(tabItem,index){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(tabItem.visible),expression:"tabItem.visible"}],key:index,class:{ 'is-active': _vm.activeTab === index, 'is-disabled': tabItem.disabled }},[_c('a',{on:{"click":function($event){_vm.tabClick(index);}}},[(tabItem.$slots.header)?[_c('b-slot-component',{attrs:{"component":tabItem,"name":"header","tag":"span"}})]:[(tabItem.icon)?_c('b-icon',{attrs:{"icon":tabItem.icon,"pack":tabItem.iconPack,"size":_vm.size}}):_vm._e(),_vm._v(" "),_c('span',[_vm._v(_vm._s(tabItem.label))])]],2)])}))]),_vm._v(" "),_c('section',{staticClass:"tab-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2)])};
457
+ var __vue_staticRenderFns__$1 = [];
458
+
459
+ /* style */
460
+ const __vue_inject_styles__$1 = undefined;
461
+ /* scoped */
462
+ const __vue_scope_id__$1 = undefined;
463
+ /* module identifier */
464
+ const __vue_module_identifier__$1 = undefined;
465
+ /* functional template */
466
+ const __vue_is_functional_template__$1 = false;
467
+ /* style inject */
468
+
469
+ /* style inject SSR */
470
+
471
+
472
+
473
+ var Tabs = normalizeComponent_1(
474
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
475
+ __vue_inject_styles__$1,
476
+ __vue_script__$1,
477
+ __vue_scope_id__$1,
478
+ __vue_is_functional_template__$1,
479
+ __vue_module_identifier__$1,
480
+ undefined,
481
+ undefined
482
+ );
483
+
484
+ var script$2 = {
485
+ name: 'BTabItem',
486
+ props: {
487
+ label: String,
488
+ icon: String,
489
+ iconPack: String,
490
+ disabled: Boolean,
491
+ visible: {
492
+ type: Boolean,
493
+ default: true
494
+ }
495
+ },
496
+ data: function data() {
497
+ return {
498
+ isActive: false,
499
+ transitionName: null
500
+ };
501
+ },
502
+ methods: {
503
+ /**
504
+ * Activate tab, alter animation name based on the index.
505
+ */
506
+ activate: function activate(oldIndex, index) {
507
+ this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
508
+ this.isActive = true;
509
+ },
510
+
511
+ /**
512
+ * Deactivate tab, alter animation name based on the index.
513
+ */
514
+ deactivate: function deactivate(oldIndex, index) {
515
+ this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
516
+ this.isActive = false;
517
+ }
518
+ },
519
+ created: function created() {
520
+ if (!this.$parent.$data._isTabs) {
521
+ this.$destroy();
522
+ throw new Error('You should wrap bTabItem on a bTabs');
523
+ }
524
+
525
+ this.$parent.tabItems.push(this);
526
+ },
527
+ beforeDestroy: function beforeDestroy() {
528
+ var index = this.$parent.tabItems.indexOf(this);
529
+
530
+ if (index >= 0) {
531
+ this.$parent.tabItems.splice(index, 1);
532
+ }
533
+ },
534
+ render: function render(createElement) {
535
+ var _this = this;
536
+
537
+ // if destroy apply v-if
538
+ if (this.$parent.destroyOnHide) {
539
+ if (!this.isActive || !this.visible) {
540
+ return;
541
+ }
542
+ }
543
+
544
+ var vnode = createElement('div', {
545
+ directives: [{
546
+ name: 'show',
547
+ value: this.isActive && this.visible
548
+ }],
549
+ attrs: {
550
+ 'class': 'tab-item'
551
+ }
552
+ }, this.$slots.default); // check animated prop
553
+
554
+ if (this.$parent.animated) {
555
+ return createElement('transition', {
556
+ props: {
557
+ 'name': this.transitionName
558
+ },
559
+ on: {
560
+ 'before-enter': function beforeEnter() {
561
+ _this.$parent.isTransitioning = true;
562
+ },
563
+ 'after-enter': function afterEnter() {
564
+ _this.$parent.isTransitioning = false;
565
+ }
566
+ }
567
+ }, [vnode]);
568
+ }
569
+
570
+ return vnode;
571
+ }
572
+ };
573
+
574
+ /* script */
575
+ const __vue_script__$2 = script$2;
576
+
577
+ /* template */
578
+
579
+ /* style */
580
+ const __vue_inject_styles__$2 = undefined;
581
+ /* scoped */
582
+ const __vue_scope_id__$2 = undefined;
583
+ /* module identifier */
584
+ const __vue_module_identifier__$2 = undefined;
585
+ /* functional template */
586
+ const __vue_is_functional_template__$2 = undefined;
587
+ /* style inject */
588
+
589
+ /* style inject SSR */
590
+
591
+
592
+
593
+ var TabItem = normalizeComponent_1(
594
+ {},
595
+ __vue_inject_styles__$2,
596
+ __vue_script__$2,
597
+ __vue_scope_id__$2,
598
+ __vue_is_functional_template__$2,
599
+ __vue_module_identifier__$2,
600
+ undefined,
601
+ undefined
602
+ );
603
+
604
+ var use = function use(plugin) {
605
+ if (typeof window !== 'undefined' && window.Vue) {
606
+ window.Vue.use(plugin);
607
+ }
608
+ };
609
+ var registerComponent = function registerComponent(Vue, component) {
610
+ Vue.component(component.name, component);
611
+ };
612
+
613
+ var Plugin = {
614
+ install: function install(Vue) {
615
+ registerComponent(Vue, Tabs);
616
+ registerComponent(Vue, TabItem);
617
+ }
618
+ };
619
+ use(Plugin);
620
+
621
+ exports.TabItem = TabItem;
622
+ exports.Tabs = Tabs;
623
+ exports.default = Plugin;
624
+
625
+ Object.defineProperty(exports, '__esModule', { value: true });
626
+
627
+ }));
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Tabs={})}(this,function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var i=function(e,t,n,i,a,s,o,r,c,l){"boolean"!=typeof o&&(c=r,r=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,a&&(d.functional=!0)),i&&(d._scopeId=i),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(d.functional){var f=d.render;d.render=function(e,t){return u.call(t),f(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,u):[u]}return n};var a,s=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?n(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):n("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{newIcon:function(){return"mdi"===this.newPack?"".concat(this.newPack,"-").concat(this.icon):this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||n.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1))return"has-text-".concat(e[1])}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var e="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),t="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),n="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return t;case"is-large":return n;default:return e}},useIconComponent:function(){return n.defaultIconComponent}},methods:{addFAPrefix:function(e){return this.useIconComponent?e:"fa-".concat(e)},getEquivalentIconOf:function(e){if(!this.both)return e;switch(e){case"check":return"check";case"information":return"info-circle";case"check-circle":return"check-circle";case"alert":return"exclamation-triangle";case"alert-circle":return"exclamation-circle";case"arrow-up":return"arrow-up";case"chevron-right":return"angle-right";case"chevron-left":return"angle-left";case"chevron-down":return"angle-down";case"eye":return"eye";case"eye-off":return"eye-slash";case"menu-down":return"caret-down";case"menu-up":return"caret-up";default:return e}}}},void 0,!1,void 0,void 0,void 0),o={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()},isVueComponent:function(){return this.component&&this.component._isVue}},created:function(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render:function(e){if(this.isVueComponent())return e(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}};var r=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-tabs",class:{"is-fullwidth":e.expanded}},[n("nav",{staticClass:"tabs",class:e.navClasses},[n("ul",e._l(e.tabItems,function(t,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"tabItem.visible"}],key:i,class:{"is-active":e.activeTab===i,"is-disabled":t.disabled}},[n("a",{on:{click:function(t){e.tabClick(i)}}},[t.$slots.header?[n("b-slot-component",{attrs:{component:t,name:"header",tag:"span"}})]:[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:e.size}}):e._e(),e._v(" "),n("span",[e._v(e._s(t.label))])]],2)])}))]),e._v(" "),n("section",{staticClass:"tab-content",class:{"is-transitioning":e.isTransitioning}},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BTabs",components:(a={},t(a,s.name,s),t(a,o.name,o),a),props:{value:Number,expanded:Boolean,type:String,size:String,position:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},data:function(){return{activeTab:this.value||0,tabItems:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{navClasses:function(){return[this.type,this.size,this.position,{"is-fullwidth":this.expanded,"is-toggle-rounded is-toggle":"is-toggle-rounded"===this.type}]}},watch:{value:function(e){this.changeTab(e)},tabItems:function(){this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0)}},methods:{changeTab:function(e){this.activeTab!==e&&(this.activeTab<this.tabItems.length&&this.tabItems[this.activeTab].deactivate(this.activeTab,e),this.tabItems[e].activate(this.activeTab,e),this.activeTab=e,this.$emit("change",e))},tabClick:function(e){this.$emit("input",e),this.changeTab(e)}},mounted:function(){this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0)}},void 0,!1,void 0,void 0,void 0);var c,l=i({},void 0,{name:"BTabItem",props:{label:String,icon:String,iconPack:String,disabled:Boolean,visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null}},methods:{activate:function(e,t){this.transitionName=t<e?"slide-next":"slide-prev",this.isActive=!0},deactivate:function(e,t){this.transitionName=t<e?"slide-next":"slide-prev",this.isActive=!1}},created:function(){if(!this.$parent.$data._isTabs)throw this.$destroy(),new Error("You should wrap bTabItem on a bTabs");this.$parent.tabItems.push(this)},beforeDestroy:function(){var e=this.$parent.tabItems.indexOf(this);e>=0&&this.$parent.tabItems.splice(e,1)},render:function(e){var t=this;if(!this.$parent.destroyOnHide||this.isActive&&this.visible){var n=e("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:"tab-item"}},this.$slots.default);return this.$parent.animated?e("transition",{props:{name:this.transitionName},on:{"before-enter":function(){t.$parent.isTransitioning=!0},"after-enter":function(){t.$parent.isTransitioning=!1}}},[n]):n}}},void 0,void 0,void 0,void 0,void 0),u=function(e,t){e.component(t.name,t)},d={install:function(e){u(e,r),u(e,l)}};c=d,"undefined"!=typeof window&&window.Vue&&window.Vue.use(c),e.TabItem=l,e.Tabs=r,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})});