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,1870 @@
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=292)})([(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}}}),(function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(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)}),(function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)}),(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}}),(function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}}),(function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}}),(function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),(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}),(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}}),(function(t,e,n){var i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}}),(function(t,e,n){var i=n(36),r=n(28);t.exports=function(t){return i(r(t))}}),(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}}),(function(t,e,n){var i=n(26)("wks"),r=n(17),o=n(2).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i}),(function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),(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")}}),(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,h=t&u.G,p=t&u.S,m=t&u.P,v=t&u.B,b=t&u.W,g=h?r:r[e]||(r[e]={}),y=g.prototype,w=h?i:p?i[e]:(i[e]||{}).prototype;h&&(n=e);for(c in n)(l=!d&&w&&void 0!==w[c])&&s(g,c)||(f=l?w[c]:n[c],g[c]=h&&"function"!=typeof w[c]?n[c]:v&&l?o(f,i):b&&w[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&&((g.virtual||(g.virtual={}))[c]=f,t&u.R&&y&&!y[c]&&a(y,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}),(function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}}),(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}}),(function(t,e){t.exports=!0}),(function(t,e,n){t.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))}),(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):{}}}),(function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}}),(function(t,e,n){var i=n(0)(n(46),n(47),null,null,null);t.exports=i.exports}),(function(t,e,n){var i=n(34),r=n(27);t.exports=Object.keys||function(t){return i(t,r)}}),(function(t,e){e.f={}.propertyIsEnumerable}),(function(t,e,n){var i=n(3),r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),(function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}}),(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)}}}),(function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}}),(function(t,e,n){var i=n(26)("keys"),r=n(17);t.exports=function(t){return i[t]||(i[t]=r(t))}}),(function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}}),(function(t,e){e.f=Object.getOwnPropertySymbols}),(function(t,e,n){var i=n(6),r=n(11),o=n(48)(!1),a=n(31)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),u=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>u;)i(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}}),(function(t,e,n){var i=n(2),r=n(3),o=n(19),a=n(40),s=n(4).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}}),(function(t,e,n){var i=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}}),(function(t,e,n){t.exports={default:n(57),__esModule:!0}}),(function(t,e){t.exports={}}),(function(t,e,n){var i=n(4).f,r=n(6),o=n(13)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}}),(function(t,e,n){e.f=n(13)}),(function(t,e,n){var i=n(22),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}}),(function(t,e,n){t.exports={default:n(43),__esModule:!0}}),(function(t,e,n){n(44);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}}),(function(t,e,n){var i=n(16);i(i.S+i.F*!n(1),"Object",{defineProperty:n(4).f})}),(function(t,e,n){"use strict";var i=n(8);e.a={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return i.a.defaultUseHtml5Validation}},validationMessage:String},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||i.a.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,e=0;e<3;e++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){if(this.parentField&&this.parentField.newType){if("string"==typeof this.parentField.newType)return this.parentField.newType;for(var t in this.parentField.newType)if(this.parentField.newType[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var t=this;void 0!==this.$data._elementRef&&this.$nextTick((function(){var e=t.$el.querySelector(t.$data._elementRef);e&&e.focus()}))},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},checkHtml5Validity:function(){var t=this;if(this.useHtml5Validation&&void 0!==this.$refs[this.$data._elementRef]){var e=this.$el.querySelector(this.$data._elementRef),n=null,i=null,r=!0;return e.checkValidity()||(n="is-danger",i=this.validationMessage||e.validationMessage,r=!1),this.isValid=r,this.$nextTick((function(){t.parentField&&(t.parentField.type||(t.parentField.newType=n),t.parentField.message||(t.parentField.newMessage=i))})),this.isValid}}}}}),(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}}}}}),(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:[]}}),(function(t,e,n){var i=n(11),r=n(41),o=n(49);t.exports=function(t){return function(e,n,a){var s,u=i(e),c=r(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}}),(function(t,e,n){var i=n(22),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}}),(function(t,e,n){var i=n(34),r=n(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}}),(function(t,e,n){"use strict";function i(t,e){return e.split(".").reduce((function(t,e){return t[e]}),t)}function r(t,e,n){if(!t)return-1;if(!n||"function"!=typeof n)return t.indexOf(e);for(var i=0;i<t.length;i++)if(n(t[i],e))return i;return-1}function o(t){void 0!==t.remove?t.remove():void 0!==t.parentNode&&t.parentNode.removeChild(t)}e.a=i,e.b=r,n.d(e,"c",(function(){return a})),e.d=o;var a={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return a.Android()||a.BlackBerry()||a.iOS()||a.Opera()||a.Windows()}}}),(function(t,e,n){t.exports=n(9)}),(function(t,e,n){var i=n(10),r=n(55),o=n(27),a=n(31)("IE_PROTO"),s=function(){},u=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}}),(function(t,e,n){var i=n(28);t.exports=function(t){return Object(i(t))}}),(function(t,e,n){var i=n(4),r=n(10),o=n(24);t.exports=n(1)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,u=0;s>u;)i.f(t,n=a[u++],e[n]);return t}}),(function(t,e,n){var i=n(2).document;t.exports=i&&i.documentElement}),(function(t,e,n){n(58),n(64),n(65),n(66),t.exports=n(3).Symbol}),(function(t,e,n){"use strict";var i=n(2),r=n(6),o=n(1),a=n(16),s=n(52),u=n(59).KEY,c=n(7),l=n(26),f=n(39),d=n(17),h=n(13),p=n(40),m=n(35),v=n(60),b=n(61),g=n(10),y=n(5),w=n(11),C=n(15),k=n(14),_=n(53),S=n(62),x=n(63),P=n(4),D=n(24),O=x.f,R=P.f,A=S.f,$=i.Symbol,j=i.JSON,F=j&&j.stringify,T=h("_hidden"),B=h("toPrimitive"),V={}.propertyIsEnumerable,N=l("symbol-registry"),M=l("symbols"),I=l("op-symbols"),E=Object.prototype,L="function"==typeof $,z=i.QObject,K=!z||!z.prototype||!z.prototype.findChild,U=o&&c((function(){return 7!=_(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=O(E,e);i&&delete E[e],R(t,e,n),i&&t!==E&&R(E,e,i)}:R,H=function(t){var e=M[t]=_($.prototype);return e._k=t,e},q=L&&"symbol"==typeof $.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof $},W=function(t,e,n){return t===E&&W(I,e,n),g(t),e=C(e,!0),g(n),r(M,e)?(n.enumerable?(r(t,T)&&t[T][e]&&(t[T][e]=!1),n=_(n,{enumerable:k(0,!1)})):(r(t,T)||R(t,T,k(1,{})),t[T][e]=!0),U(t,e,n)):R(t,e,n)},J=function(t,e){g(t);for(var n,i=v(e=w(e)),r=0,o=i.length;o>r;)W(t,n=i[r++],e[n]);return t},Y=function(t,e){return void 0===e?_(t):J(_(t),e)},G=function(t){var e=V.call(this,t=C(t,!0));return!(this===E&&r(M,t)&&!r(I,t))&&(!(e||!r(this,t)||!r(M,t)||r(this,T)&&this[T][t])||e)},Q=function(t,e){if(t=w(t),e=C(e,!0),t!==E||!r(M,e)||r(I,e)){var n=O(t,e);return!n||!r(M,e)||r(t,T)&&t[T][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=A(w(t)),i=[],o=0;n.length>o;)r(M,e=n[o++])||e==T||e==u||i.push(e);return i},Z=function(t){for(var e,n=t===E,i=A(n?I:w(t)),o=[],a=0;i.length>a;)!r(M,e=i[a++])||n&&!r(E,e)||o.push(M[e]);return o};L||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===E&&e.call(I,n),r(this,T)&&r(this[T],t)&&(this[T][t]=!1),U(this,t,k(1,n))};return o&&K&&U(E,t,{configurable:!0,set:e}),H(t)},s($.prototype,"toString",(function(){return this._k})),x.f=Q,P.f=W,n(50).f=S.f=X,n(25).f=G,n(33).f=Z,o&&!n(19)&&s(E,"propertyIsEnumerable",G,!0),p.f=function(t){return H(h(t))}),a(a.G+a.W+a.F*!L,{Symbol:$});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var nt=D(h.store),it=0;nt.length>it;)m(nt[it++]);a(a.S+a.F*!L,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=$(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),a(a.S+a.F*!L,"Object",{create:Y,defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),j&&a(a.S+a.F*(!L||c((function(){var t=$();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(y(e)||void 0!==t)&&!q(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,F.apply(j,i)}}),$.prototype[B]||n(9)($.prototype,B,$.prototype.valueOf),f($,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)}),(function(t,e,n){var i=n(17)("meta"),r=n(5),o=n(6),a=n(4).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(7)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[i].i},d=function(t,e){if(!o(t,i)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[i].w},h=function(t){return c&&p.NEED&&u(t)&&!o(t,i)&&l(t),t},p=t.exports={KEY:i,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}}),(function(t,e,n){var i=n(24),r=n(33),o=n(25);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}}),(function(t,e,n){var i=n(30);t.exports=Array.isArray||function(t){return"Array"==i(t)}}),(function(t,e,n){var i=n(11),r=n(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}}),(function(t,e,n){var i=n(25),r=n(14),o=n(11),a=n(15),s=n(6),u=n(20),c=Object.getOwnPropertyDescriptor;e.f=n(1)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}}),(function(t,e){}),(function(t,e,n){n(35)("asyncIterator")}),(function(t,e,n){n(35)("observable")}),(function(t,e,n){"use strict";var i=n(19),r=n(16),o=n(52),a=n(9),s=n(38),u=n(75),c=n(39),l=n(76),f=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,m,v,b){u(n,e,p);var g,y,w,C=function(t){if(!d&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",_="values"==m,S=!1,x=t.prototype,P=x[f]||x["@@iterator"]||m&&x[m],D=P||C(m),O=m?_?C("entries"):D:void 0,R="Array"==e?x.entries||P:P;if(R&&(w=l(R.call(new t)))!==Object.prototype&&w.next&&(c(w,k,!0),i||"function"==typeof w[f]||a(w,f,h)),_&&P&&"values"!==P.name&&(S=!0,D=function(){return P.call(this)}),i&&!b||!d&&!S&&x[f]||a(x,f,D),s[e]=D,s[k]=h,m)if(g={values:_?D:C("values"),keys:v?D:C("keys"),entries:O},b)for(y in g)y in x||o(x,y,g[y]);else r(r.P+r.F*(d||S),e,g);return g}}),,(function(t,e,n){"use strict";var i=n(74)(!0);n(67)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))}),,,,(function(t,e,n){var i=n(77),r=n(13)("iterator"),o=n(38);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}}),(function(t,e,n){var i=n(22),r=n(28);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),u=i(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}}),(function(t,e,n){"use strict";var i=n(53),r=n(14),o=n(39),a={};n(9)(a,n(13)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}}),(function(t,e,n){var i=n(6),r=n(54),o=n(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}}),(function(t,e,n){var i=n(30),r=n(13)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}}),,,,,,,,,,,,,,,(function(t,e,n){var i=n(0)(n(101),n(102),null,null,null);t.exports=i.exports}),,,,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(37),r=n.n(i),o=n(18),a=n.n(o),s=n(23),u=n.n(s),c=n(45);e.default={name:"BSelect",components:a()({},u.a.name,u.a),mixins:[c.a],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,r.a,Function],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v("\n "+t._s(t.placeholder)+"\n ")]):t._e()]:t._e(),t._v(" "),t._t("default")],2)]),t._v(" "),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},staticRenderFns:[]}}),,,,(function(t,e,n){var i=n(0)(n(118),n(119),null,null,null);t.exports=i.exports}),,,,,(function(t,e,n){var i=n(0)(n(122),n(123),null,null,null);t.exports=i.exports}),,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(37),r=n.n(i);e.default={name:"BCheckbox",props:{value:[String,Number,Boolean,Function,Object,Array,r.a],nativeValue:[String,Number,Boolean,Function,Object,Array,r.a],indeterminate:Boolean,type:String,disabled:Boolean,required:Boolean,name:String,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,r.a],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,r.a],default:!1}},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),t.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,i=e.target,r=i.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);i.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=r}}}),t._v(" "),n("span",{staticClass:"check",class:t.type}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]}}),,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),r=n.n(i),o=n(23),a=n.n(o);e.default={name:"BPagination",components:r()({},a.a.name,a.a),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=3},hasFirstEllipsis:function(){return this.current>=4},hasLast:function(){return this.current<=this.pageCount-2},hasLastEllipsis:function(){return this.current<this.pageCount-2&&this.current<=this.pageCount-3},hasNext:function(){return this.current<this.pageCount},pagesInRange:function(){var t=this;if(!this.simple){for(var e=Math.max(1,this.current-1),n=Math.min(this.current+1,this.pageCount),i=[],r=e;r<=n;r++)!(function(e){i.push({number:e,isCurrent:t.current===e,click:function(n){t.current!==e&&(t.$emit("change",e),t.$emit("update:current",e),t.$nextTick((function(){return n.target.focus()})))}})})(r);return i}}},watch:{pageCount:function(t){this.current>t&&this.last()}},methods:{prev:function(){this.hasPrev&&(this.$emit("change",this.current-1),this.$emit("update:current",this.current-1))},first:function(){this.$emit("change",1),this.$emit("update:current",1)},last:function(){this.$emit("change",this.pageCount),this.$emit("update:current",this.pageCount)},next:function(){this.hasNext&&(this.$emit("change",this.current+1),this.$emit("update:current",this.current+1))},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:!t.hasPrev,"aria-label":t.ariaPreviousLabel},on:{click:function(e){e.preventDefault(),t.prev(e)}}},[n("b-icon",{attrs:{icon:"chevron-left",pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:!t.hasNext,"aria-label":t.ariaNextLabel},on:{click:function(e){e.preventDefault(),t.next(e)}}},[n("b-icon",{attrs:{icon:"chevron-right",pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.simple?t._e():n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(1,!1)},on:{click:function(e){e.preventDefault(),t.first(e)}}},[t._v("\n 1\n ")])]):t._e(),t._v(" "),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[n("a",{staticClass:"pagination-link",class:{"is-current":e.isCurrent},attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(e.number,e.isCurrent),"aria-current":e.isCurrent},on:{click:function(t){t.preventDefault(),e.click(t)}}},[t._v("\n "+t._s(e.number)+"\n ")])])})),t._v(" "),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t.hasLast?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(t.pageCount,!1)},on:{click:function(e){e.preventDefault(),t.last(e)}}},[t._v("\n "+t._s(t.pageCount)+"\n ")])]):t._e()],2),t._v(" "),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v("\n "+t._s(t.firstItem)+" / "+t._s(t.total)+"\n ")]:[t._v("\n "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+"\n ")]],2):t._e()])},staticRenderFns:[]}}),(function(t,e,n){var i=n(0)(n(234),n(235),null,null,null);t.exports=i.exports}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(221),r=n.n(i),o=n(124),a=n.n(o),s=n(12);n.d(e,"Table",(function(){return r.a})),n.d(e,"TableColumn",(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}),(function(t,e,n){var i=n(0)(n(222),n(236),null,null,null);t.exports=i.exports}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(223),o=n.n(r),a=n(18),s=n.n(a),u=n(51),c=n(106),l=n.n(c),f=n(23),d=n.n(f),h=n(111),p=n.n(h),m=n(231),v=n.n(m),b=n(124),g=n.n(b);e.default={name:"BTable",components:(i={},s()(i,l.a.name,l.a),s()(i,d.a.name,d.a),s()(i,p.a.name,p.a),s()(i,v.a.name,v.a),s()(i,g.a.name,g.a),i),props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},selected:Object,focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},paginationSimple:Boolean,paginationSize:String,paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},backendSorting:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,defualt:!1},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},data:function(){return{getValueByPath:u.a,newColumns:[].concat(o()(this.columns)),visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:[].concat(o()(this.checkedRows)),newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,firstTimeSort:!0,_isTable:!0}},computed:{showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"has-mobile-cards":this.mobileCards,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,i=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,i)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));return 0!==e.length&&!e.some((function(e){return Object(u.b)(t.newCheckedRows,e,t.customIsChecked)<0}))},isAllUncheckable:function(){var t=this;return 0===this.visibleData.filter((function(e){return t.isRowCheckable(e)})).length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},columnCount:function(){var t=this.newColumns.length;return t+=this.checkable?1:0,t+=this.detailed?1:0}},watch:{data:function(t){var e=this,n=this.newColumns;this.newColumns=[],this.newData=t,this.$nextTick((function(){e.newColumns.length||(e.newColumns=n)})),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=t.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},checkedRows:function(t){this.newCheckedRows=[].concat(o()(t))},columns:function(t){this.newColumns=[].concat(o()(t))},newColumns:function(t){this.checkSort()},openedDetailed:function(t){this.visibleDetailRows=t},currentPage:function(t){this.newCurrentPage=t}},methods:{sortBy:function(t,e,n,i){return n&&"function"==typeof n?[].concat(o()(t)).sort((function(t,e){return n(t,e,i)})):[].concat(o()(t)).sort((function(t,n){var r=Object(u.a)(t,e),o=Object(u.a)(n,e);return"boolean"==typeof r&&"boolean"==typeof o?i?r-o:o-r:r||0===r?o||0===o?r===o?0:(r="string"==typeof r?r.toUpperCase():r,o="string"==typeof o?o.toUpperCase():o,i?r>o?1:-1:r>o?-1:1):-1:1}))},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&t.sortable&&(e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc"),this.backendSorting||(this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)),this.currentSortColumn=t)},isRowChecked:function(t){return Object(u.b)(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=Object(u.b)(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t){this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("page-change",this.newCurrentPage),this.$emit("update:currentPage",this.newCurrentPage)},toggleDetails:function(t){this.isVisibleDetailRow(t)?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e);this.visibleDetailRows.splice(n,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t);return this.visibleDetailRows.indexOf(e)>=0},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},handleDetailKey:function(t){var e=this.detailKey;return e.length?t[e]:t},checkPredefinedDetailedRows:function(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&this.currentSortColumn.field)for(var t=0;t<this.newColumns.length;t++)if(this.newColumns[t].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[t];break}},hasCustomFooterSlot:function(){if(this.$slots.footer.length>1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return void 0!==this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e,this.selectRow(this.visibleData[e])}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(this.defaultSort){var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort,this.newColumns.forEach((function(i){i.field===e&&(t.isAsc="desc"!==n.toLowerCase(),t.sort(i,!0))}))}},handleDragStart:function(t,e,n){this.$emit("dragstart",{event:t,row:e,index:n})},handleDrop:function(t,e,n){this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.$emit("dragleave",{event:t,row:e,index:n})}},mounted:function(){this.checkPredefinedDetailedRows(),this.checkSort()}}}),(function(t,e,n){"use strict";e.__esModule=!0;var i=n(224),r=(function(t){return t&&t.__esModule?t:{default:t}})(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r.default)(t)}}),(function(t,e,n){t.exports={default:n(225),__esModule:!0}}),(function(t,e,n){n(69),n(226),t.exports=n(3).Array.from}),(function(t,e,n){"use strict";var i=n(29),r=n(16),o=n(54),a=n(227),s=n(228),u=n(41),c=n(229),l=n(73);r(r.S+r.F*!n(230)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,f,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,b=0,g=l(d);if(v&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&s(g))for(e=u(d.length),n=new h(e);e>b;b++)c(n,b,v?m(d[b],b):d[b]);else for(f=g.call(d),n=new h;!(r=f.next()).done;b++)c(n,b,v?a(f,m,[r.value,b],!0):r.value);return n.length=b,n}})}),(function(t,e,n){var i=n(10);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}}),(function(t,e,n){var i=n(38),r=n(13)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}}),(function(t,e,n){"use strict";var i=n(4),r=n(14);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}}),(function(t,e,n){var i=n(13)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}}),(function(t,e,n){var i=n(0)(n(232),n(233),null,null,null);t.exports=i.exports}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(18),o=n.n(r),a=n(92),s=n.n(a),u=n(23),c=n.n(u);e.default={name:"BTableMobileSort",components:(i={},o()(i,s.a.name,s.a),o()(i,c.a.name,c.a),i),props:{currentSortColumn:Object,isAsc:Boolean,columns:Array,placeholder:String},data:function(){return{mobileSort:this.currentSortColumn}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t)},currentSortColumn:function(t){this.mobileSort=t}},methods:{sort:function(){this.$emit("sort",this.mobileSort)}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v("\n "+t._s(t.placeholder)+"\n ")])]:t._e(),t._v(" "),t._l(t.columns,(function(e,i){return e.sortable?n("option",{key:i,domProps:{value:e}},[t._v("\n "+t._s(e.label)+"\n ")]):t._e()}))],2),t._v(" "),n("div",{staticClass:"control"},[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!t.isAsc},attrs:{icon:"arrow-up",size:"is-small",both:""}})],1)])],1)])},staticRenderFns:[]}}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(37),r=n.n(i);e.default={name:"BTableColumn",props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array,r.a],width:[Number,String],numeric:Boolean,centered:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},customSort:Function,internal:Boolean},data:function(){return{newKey:this.customKey||this.label}},computed:{rootClasses:function(){return{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered}}},methods:{addRefToTable:function(){var t=this;if(!this.$parent.$data._isTable)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");if(!this.internal){!this.$parent.newColumns.some((function(e){return e.newKey===t.newKey}))&&this.$parent.newColumns.push(this)}}},beforeMount:function(){this.addRefToTable()},beforeUpdate:function(){this.addRefToTable()},beforeDestroy:function(){var t=this.$parent.newColumns.map((function(t){return t.newKey})).indexOf(this.newKey);t>=0&&this.$parent.newColumns.splice(t,1)}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("td",{class:t.rootClasses,attrs:{"data-label":t.label}},[n("span",[t._t("default")],2)]):t._e()},staticRenderFns:[]}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table",class:{"is-loading":t.loading}},[t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder},on:{sort:function(e){return t.sort(e)}}}):t._e(),t._v(" "),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("top-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]),t._v(" "),n("div",{staticClass:"table-wrapper"},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key)?e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(-1)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key)?e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(1)):null}]}},[t.newColumns.length?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){t.checkAll(e)}}})]:t._e()],2):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,i){return n("th",{key:i,class:{"is-current-sort":t.currentSortColumn===e,"is-sortable":e.sortable},style:{width:void 0===e.width?null:e.width+"px"},on:{click:function(n){n.stopPropagation(),t.sort(e)}}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[t.$scopedSlots.header?t._t("header",null,{column:e,index:i}):[t._v(t._s(e.label))],t._v(" "),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===e,expression:"currentSortColumn === column"}],class:{"is-desc":!t.isAsc},attrs:{icon:"arrow-up",pack:t.iconPack,both:"",size:"is-small"}})],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){t.checkAll(e)}}})]:t._e()],2):t._e()],2)]):t._e(),t._v(" "),t.visibleData.length?n("tbody",[t._l(t.visibleData,(function(e,i){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:i,class:[t.rowClass(e,i),{"is-selected":e===t.selected,"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.draggable},on:{click:function(n){t.selectRow(e)},dblclick:function(n){t.$emit("dblclick",e)},contextmenu:function(n){t.$emit("contextmenu",e,n)},dragstart:function(n){t.handleDragStart(n,e,i)},drop:function(n){t.handleDrop(n,e,i)},dragover:function(n){t.handleDragOver(n,e,i)},dragleave:function(n){t.handleDragLeave(n,e,i)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:"chevron-right",pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{change:function(n){t.checkRow(e)},click:function(t){t.stopPropagation()}}})],1):t._e(),t._v(" "),t.$scopedSlots.default?t._t("default",null,{row:e,index:i}):t._l(t.newColumns,(function(i){return n("BTableColumn",t._b({key:i.field,attrs:{internal:""}},"BTableColumn",i,!1),[i.renderHtml?n("span",{domProps:{innerHTML:t._s(t.getValueByPath(e,i.field))}}):[t._v("\n "+t._s(t.getValueByPath(e,i.field))+"\n ")]],2)})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{change:function(n){t.checkRow(e)},click:function(t){t.stopPropagation()}}})],1):t._e()],2),t._v(" "),t.isActiveDetailRow(e)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:i})],2)])]):t._e(),t._v(" "),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:i}):t._e()]}))],2):n("tbody",[n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])]),t._v(" "),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()])]),t._v(" "),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?n("div",{staticClass:"level"},[n("div",{staticClass:"level-left"},[t._t("bottom-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]):t._e()],1)},staticRenderFns:[]}}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){t.exports=n(220)})])}));
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.Table = {}));
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
+ function _toConsumableArray(arr) {
24
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
25
+ }
26
+
27
+ function _arrayWithoutHoles(arr) {
28
+ if (Array.isArray(arr)) {
29
+ for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
30
+
31
+ return arr2;
32
+ }
33
+ }
34
+
35
+ function _iterableToArray(iter) {
36
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
37
+ }
38
+
39
+ function _nonIterableSpread() {
40
+ throw new TypeError("Invalid attempt to spread non-iterable instance");
41
+ }
42
+
43
+ /**
44
+ * Get value of an object property/path even if it's nested
45
+ */
46
+ function getValueByPath(obj, path) {
47
+ var value = path.split('.').reduce(function (o, i) {
48
+ return o[i];
49
+ }, obj);
50
+ return value;
51
+ }
52
+ /**
53
+ * Extension of indexOf method by equality function if specified
54
+ */
55
+
56
+ function indexOf(array, obj, fn) {
57
+ if (!array) return -1;
58
+ if (!fn || typeof fn !== 'function') return array.indexOf(obj);
59
+
60
+ for (var i = 0; i < array.length; i++) {
61
+ if (fn(array[i], obj)) {
62
+ return i;
63
+ }
64
+ }
65
+
66
+ return -1;
67
+ }
68
+
69
+ //
70
+ //
71
+ //
72
+ //
73
+ //
74
+ //
75
+ //
76
+ //
77
+ //
78
+ //
79
+ //
80
+ //
81
+ //
82
+ //
83
+ //
84
+ //
85
+ //
86
+ //
87
+ //
88
+ //
89
+ //
90
+ //
91
+ //
92
+ //
93
+ //
94
+ var script = {
95
+ name: 'BCheckbox',
96
+ props: {
97
+ value: [String, Number, Boolean, Function, Object, Array],
98
+ nativeValue: [String, Number, Boolean, Function, Object, Array],
99
+ indeterminate: Boolean,
100
+ type: String,
101
+ disabled: Boolean,
102
+ required: Boolean,
103
+ name: String,
104
+ size: String,
105
+ trueValue: {
106
+ type: [String, Number, Boolean, Function, Object, Array],
107
+ default: true
108
+ },
109
+ falseValue: {
110
+ type: [String, Number, Boolean, Function, Object, Array],
111
+ default: false
112
+ }
113
+ },
114
+ data: function data() {
115
+ return {
116
+ newValue: this.value
117
+ };
118
+ },
119
+ computed: {
120
+ computedValue: {
121
+ get: function get() {
122
+ return this.newValue;
123
+ },
124
+ set: function set(value) {
125
+ this.newValue = value;
126
+ this.$emit('input', value);
127
+ }
128
+ }
129
+ },
130
+ watch: {
131
+ /**
132
+ * When v-model change, set internal value.
133
+ */
134
+ value: function value(_value) {
135
+ this.newValue = _value;
136
+ }
137
+ },
138
+ methods: {
139
+ focus: function focus() {
140
+ // MacOS FireFox and Safari do not focus when clicked
141
+ this.$refs.input.focus();
142
+ }
143
+ }
144
+ };
145
+
146
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
147
+ /* server only */
148
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
149
+ if (typeof shadowMode !== 'boolean') {
150
+ createInjectorSSR = createInjector;
151
+ createInjector = shadowMode;
152
+ shadowMode = false;
153
+ } // Vue.extend constructor export interop.
154
+
155
+
156
+ var options = typeof script === 'function' ? script.options : script; // render functions
157
+
158
+ if (template && template.render) {
159
+ options.render = template.render;
160
+ options.staticRenderFns = template.staticRenderFns;
161
+ options._compiled = true; // functional template
162
+
163
+ if (isFunctionalTemplate) {
164
+ options.functional = true;
165
+ }
166
+ } // scopedId
167
+
168
+
169
+ if (scopeId) {
170
+ options._scopeId = scopeId;
171
+ }
172
+
173
+ var hook;
174
+
175
+ if (moduleIdentifier) {
176
+ // server build
177
+ hook = function hook(context) {
178
+ // 2.3 injection
179
+ context = context || // cached call
180
+ this.$vnode && this.$vnode.ssrContext || // stateful
181
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
182
+ // 2.2 with runInNewContext: true
183
+
184
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
185
+ context = __VUE_SSR_CONTEXT__;
186
+ } // inject component styles
187
+
188
+
189
+ if (style) {
190
+ style.call(this, createInjectorSSR(context));
191
+ } // register component module identifier for async chunk inference
192
+
193
+
194
+ if (context && context._registeredComponents) {
195
+ context._registeredComponents.add(moduleIdentifier);
196
+ }
197
+ }; // used by ssr in case component is cached and beforeCreate
198
+ // never gets called
199
+
200
+
201
+ options._ssrRegister = hook;
202
+ } else if (style) {
203
+ hook = shadowMode ? function () {
204
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
205
+ } : function (context) {
206
+ style.call(this, createInjector(context));
207
+ };
208
+ }
209
+
210
+ if (hook) {
211
+ if (options.functional) {
212
+ // register for functional component in vue file
213
+ var originalRender = options.render;
214
+
215
+ options.render = function renderWithStyleInjection(h, context) {
216
+ hook.call(context);
217
+ return originalRender(h, context);
218
+ };
219
+ } else {
220
+ // inject component registration as beforeCreate hook
221
+ var existing = options.beforeCreate;
222
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
223
+ }
224
+ }
225
+
226
+ return script;
227
+ }
228
+
229
+ var normalizeComponent_1 = normalizeComponent;
230
+
231
+ /* script */
232
+ const __vue_script__ = script;
233
+
234
+ /* template */
235
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-checkbox checkbox",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name,"true-value":_vm.trueValue,"false-value":_vm.falseValue},domProps:{"indeterminate":_vm.indeterminate,"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_vm._v(" "),_c('span',{staticClass:"check",class:_vm.type}),_vm._v(" "),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])};
236
+ var __vue_staticRenderFns__ = [];
237
+
238
+ /* style */
239
+ const __vue_inject_styles__ = undefined;
240
+ /* scoped */
241
+ const __vue_scope_id__ = undefined;
242
+ /* module identifier */
243
+ const __vue_module_identifier__ = undefined;
244
+ /* functional template */
245
+ const __vue_is_functional_template__ = false;
246
+ /* style inject */
247
+
248
+ /* style inject SSR */
249
+
250
+
251
+
252
+ var Checkbox = normalizeComponent_1(
253
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
254
+ __vue_inject_styles__,
255
+ __vue_script__,
256
+ __vue_scope_id__,
257
+ __vue_is_functional_template__,
258
+ __vue_module_identifier__,
259
+ undefined,
260
+ undefined
261
+ );
262
+
263
+ var config = {
264
+ defaultContainerElement: null,
265
+ defaultIconPack: 'mdi',
266
+ defaultIconComponent: null,
267
+ defaultDialogConfirmText: null,
268
+ defaultDialogCancelText: null,
269
+ defaultSnackbarDuration: 3500,
270
+ defaultSnackbarPosition: null,
271
+ defaultToastDuration: 2000,
272
+ defaultToastPosition: null,
273
+ defaultNotificationDuration: 2000,
274
+ defaultNotificationPosition: null,
275
+ defaultTooltipType: 'is-primary',
276
+ defaultTooltipAnimated: false,
277
+ defaultTooltipDelay: 0,
278
+ defaultInputAutocomplete: 'on',
279
+ defaultDateFormatter: null,
280
+ defaultDateParser: null,
281
+ defaultDateCreator: null,
282
+ defaultDayNames: null,
283
+ defaultMonthNames: null,
284
+ defaultFirstDayOfWeek: null,
285
+ defaultUnselectableDaysOfWeek: null,
286
+ defaultTimeFormatter: null,
287
+ defaultTimeParser: null,
288
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
289
+ defaultModalScroll: null,
290
+ defaultDatepickerMobileNative: true,
291
+ defaultTimepickerMobileNative: true,
292
+ defaultNoticeQueue: true,
293
+ defaultInputHasCounter: true,
294
+ defaultTaginputHasCounter: true,
295
+ defaultUseHtml5Validation: true,
296
+ defaultDropdownMobileModal: true,
297
+ defaultFieldLabelPosition: null,
298
+ defaultDatepickerYearsRange: [-100, 3],
299
+ defaultDatepickerNearbyMonthDays: true,
300
+ defaultDatepickerNearbySelectableMonthDays: false,
301
+ defaultDatepickerShowWeekNumber: false
302
+ };
303
+ var config$1 = config;
304
+
305
+ //
306
+ var script$1 = {
307
+ name: 'BIcon',
308
+ props: {
309
+ type: [String, Object],
310
+ pack: String,
311
+ icon: String,
312
+ size: String,
313
+ customSize: String,
314
+ customClass: String,
315
+ both: Boolean // This is used internally to show both MDI and FA icon
316
+
317
+ },
318
+ computed: {
319
+ /**
320
+ * Internal icon name based on the pack.
321
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
322
+ * internal icons are always MDI.
323
+ */
324
+ newIcon: function newIcon() {
325
+ return this.newPack === 'mdi' ? "".concat(this.newPack, "-").concat(this.icon) : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
326
+ },
327
+ newPack: function newPack() {
328
+ return this.pack || config$1.defaultIconPack;
329
+ },
330
+ newType: function newType() {
331
+ if (!this.type) return;
332
+ var splitType = [];
333
+
334
+ if (typeof this.type === 'string') {
335
+ splitType = this.type.split('-');
336
+ } else {
337
+ for (var key in this.type) {
338
+ if (this.type[key]) {
339
+ splitType = key.split('-');
340
+ break;
341
+ }
342
+ }
343
+ }
344
+
345
+ if (splitType.length <= 1) return;
346
+ return "has-text-".concat(splitType[1]);
347
+ },
348
+ newCustomSize: function newCustomSize() {
349
+ return this.customSize || this.customSizeByPack;
350
+ },
351
+ customSizeByPack: function customSizeByPack() {
352
+ var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
353
+ var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
354
+ var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
355
+
356
+ switch (this.size) {
357
+ case 'is-small':
358
+ return;
359
+
360
+ case 'is-medium':
361
+ return mediumSize;
362
+
363
+ case 'is-large':
364
+ return largeSize;
365
+
366
+ default:
367
+ return defaultSize;
368
+ }
369
+ },
370
+ useIconComponent: function useIconComponent() {
371
+ return config$1.defaultIconComponent;
372
+ }
373
+ },
374
+ methods: {
375
+ addFAPrefix: function addFAPrefix(value) {
376
+ if (this.useIconComponent) {
377
+ return value;
378
+ }
379
+
380
+ return "fa-".concat(value);
381
+ },
382
+
383
+ /**
384
+ * Equivalent FA icon name of the MDI.
385
+ */
386
+ getEquivalentIconOf: function getEquivalentIconOf(value) {
387
+ // Only transform the class if the both prop is set to true
388
+ if (!this.both) {
389
+ return value;
390
+ }
391
+
392
+ switch (value) {
393
+ case 'check':
394
+ return 'check';
395
+
396
+ case 'information':
397
+ return 'info-circle';
398
+
399
+ case 'check-circle':
400
+ return 'check-circle';
401
+
402
+ case 'alert':
403
+ return 'exclamation-triangle';
404
+
405
+ case 'alert-circle':
406
+ return 'exclamation-circle';
407
+
408
+ case 'arrow-up':
409
+ return 'arrow-up';
410
+
411
+ case 'chevron-right':
412
+ return 'angle-right';
413
+
414
+ case 'chevron-left':
415
+ return 'angle-left';
416
+
417
+ case 'chevron-down':
418
+ return 'angle-down';
419
+
420
+ case 'eye':
421
+ return 'eye';
422
+
423
+ case 'eye-off':
424
+ return 'eye-slash';
425
+
426
+ case 'menu-down':
427
+ return 'caret-down';
428
+
429
+ case 'menu-up':
430
+ return 'caret-up';
431
+
432
+ default:
433
+ return value;
434
+ }
435
+ }
436
+ }
437
+ };
438
+
439
+ /* script */
440
+ const __vue_script__$1 = script$1;
441
+
442
+ /* template */
443
+ var __vue_render__$1 = 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)};
444
+ var __vue_staticRenderFns__$1 = [];
445
+
446
+ /* style */
447
+ const __vue_inject_styles__$1 = undefined;
448
+ /* scoped */
449
+ const __vue_scope_id__$1 = undefined;
450
+ /* module identifier */
451
+ const __vue_module_identifier__$1 = undefined;
452
+ /* functional template */
453
+ const __vue_is_functional_template__$1 = false;
454
+ /* style inject */
455
+
456
+ /* style inject SSR */
457
+
458
+
459
+
460
+ var Icon = normalizeComponent_1(
461
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
462
+ __vue_inject_styles__$1,
463
+ __vue_script__$1,
464
+ __vue_scope_id__$1,
465
+ __vue_is_functional_template__$1,
466
+ __vue_module_identifier__$1,
467
+ undefined,
468
+ undefined
469
+ );
470
+
471
+ var script$2 = {
472
+ name: 'BPagination',
473
+ components: _defineProperty({}, Icon.name, Icon),
474
+ props: {
475
+ total: [Number, String],
476
+ perPage: {
477
+ type: [Number, String],
478
+ default: 20
479
+ },
480
+ current: {
481
+ type: [Number, String],
482
+ default: 1
483
+ },
484
+ rangeBefore: {
485
+ type: [Number, String],
486
+ default: 1
487
+ },
488
+ rangeAfter: {
489
+ type: [Number, String],
490
+ default: 1
491
+ },
492
+ size: String,
493
+ simple: Boolean,
494
+ rounded: Boolean,
495
+ order: String,
496
+ iconPack: String,
497
+ ariaNextLabel: String,
498
+ ariaPreviousLabel: String,
499
+ ariaPageLabel: String,
500
+ ariaCurrentLabel: String
501
+ },
502
+ computed: {
503
+ rootClasses: function rootClasses() {
504
+ return [this.order, this.size, {
505
+ 'is-simple': this.simple,
506
+ 'is-rounded': this.rounded
507
+ }];
508
+ },
509
+ beforeCurrent: function beforeCurrent() {
510
+ return parseInt(this.rangeBefore);
511
+ },
512
+ afterCurrent: function afterCurrent() {
513
+ return parseInt(this.rangeAfter);
514
+ },
515
+
516
+ /**
517
+ * Total page size (count).
518
+ */
519
+ pageCount: function pageCount() {
520
+ return Math.ceil(this.total / this.perPage);
521
+ },
522
+
523
+ /**
524
+ * First item of the page (count).
525
+ */
526
+ firstItem: function firstItem() {
527
+ var firstItem = this.current * this.perPage - this.perPage + 1;
528
+ return firstItem >= 0 ? firstItem : 0;
529
+ },
530
+
531
+ /**
532
+ * Check if previous button is available.
533
+ */
534
+ hasPrev: function hasPrev() {
535
+ return this.current > 1;
536
+ },
537
+
538
+ /**
539
+ * Check if first page button should be visible.
540
+ */
541
+ hasFirst: function hasFirst() {
542
+ return this.current >= 2 + this.beforeCurrent;
543
+ },
544
+
545
+ /**
546
+ * Check if first ellipsis should be visible.
547
+ */
548
+ hasFirstEllipsis: function hasFirstEllipsis() {
549
+ return this.current >= this.beforeCurrent + 4;
550
+ },
551
+
552
+ /**
553
+ * Check if last page button should be visible.
554
+ */
555
+ hasLast: function hasLast() {
556
+ return this.current <= this.pageCount - (1 + this.afterCurrent);
557
+ },
558
+
559
+ /**
560
+ * Check if last ellipsis should be visible.
561
+ */
562
+ hasLastEllipsis: function hasLastEllipsis() {
563
+ return this.current < this.pageCount - (2 + this.afterCurrent);
564
+ },
565
+
566
+ /**
567
+ * Check if next button is available.
568
+ */
569
+ hasNext: function hasNext() {
570
+ return this.current < this.pageCount;
571
+ },
572
+
573
+ /**
574
+ * Get near pages, 1 before and 1 after the current.
575
+ * Also add the click event to the array.
576
+ */
577
+ pagesInRange: function pagesInRange() {
578
+ var _this = this;
579
+
580
+ if (this.simple) return;
581
+ var left = Math.max(1, this.current - this.beforeCurrent);
582
+
583
+ if (left - 1 === 2) {
584
+ left--; // Do not show the ellipsis if there is only one to hide
585
+ }
586
+
587
+ var right = Math.min(this.current + this.afterCurrent, this.pageCount);
588
+
589
+ if (this.pageCount - right === 2) {
590
+ right++; // Do not show the ellipsis if there is only one to hide
591
+ }
592
+
593
+ var pages = [];
594
+
595
+ var _loop = function _loop(i) {
596
+ pages.push({
597
+ number: i,
598
+ isCurrent: _this.current === i,
599
+ click: function click(event) {
600
+ if (_this.current === i) return;
601
+
602
+ _this.$emit('change', i);
603
+
604
+ _this.$emit('update:current', i); // Set focus on element to keep tab order
605
+
606
+
607
+ _this.$nextTick(function () {
608
+ return event.target.focus();
609
+ });
610
+ }
611
+ });
612
+ };
613
+
614
+ for (var i = left; i <= right; i++) {
615
+ _loop(i);
616
+ }
617
+
618
+ return pages;
619
+ }
620
+ },
621
+ watch: {
622
+ /**
623
+ * If current page is trying to be greater than page count, set to last.
624
+ */
625
+ pageCount: function pageCount(value) {
626
+ if (this.current > value) this.last();
627
+ }
628
+ },
629
+ methods: {
630
+ /**
631
+ * Previous button click listener.
632
+ */
633
+ prev: function prev() {
634
+ if (!this.hasPrev) return;
635
+ this.$emit('change', this.current - 1);
636
+ this.$emit('update:current', this.current - 1);
637
+ },
638
+
639
+ /**
640
+ * First button click listener.
641
+ */
642
+ first: function first() {
643
+ this.$emit('change', 1);
644
+ this.$emit('update:current', 1);
645
+ },
646
+
647
+ /**
648
+ * Last button click listener.
649
+ */
650
+ last: function last() {
651
+ this.$emit('change', this.pageCount);
652
+ this.$emit('update:current', this.pageCount);
653
+ },
654
+
655
+ /**
656
+ * Next button click listener.
657
+ */
658
+ next: function next() {
659
+ if (!this.hasNext) return;
660
+ this.$emit('change', this.current + 1);
661
+ this.$emit('update:current', this.current + 1);
662
+ },
663
+
664
+ /**
665
+ * Get text for aria-label according to page number.
666
+ */
667
+ getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
668
+ if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
669
+ return this.ariaPageLabel + ' ' + pageNumber + '.';
670
+ } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
671
+ return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
672
+ }
673
+
674
+ return null;
675
+ }
676
+ }
677
+ };
678
+
679
+ /* script */
680
+ const __vue_script__$2 = script$2;
681
+
682
+ /* template */
683
+ var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"pagination",class:_vm.rootClasses},[_c('a',{staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":!_vm.hasPrev,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();_vm.prev($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-left","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_vm._v(" "),_c('a',{staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":!_vm.hasNext,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();_vm.next($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-right","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_vm._v(" "),(!_vm.simple)?_c('ul',{staticClass:"pagination-list"},[(_vm.hasFirst)?_c('li',[_c('a',{staticClass:"pagination-link",attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(1, false)},on:{"click":function($event){$event.preventDefault();_vm.first($event);}}},[_vm._v("\n 1\n ")])]):_vm._e(),_vm._v(" "),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._v(" "),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[_c('a',{staticClass:"pagination-link",class:{ 'is-current': page.isCurrent },attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(page.number, page.isCurrent),"aria-current":page.isCurrent},on:{"click":function($event){$event.preventDefault();page.click($event);}}},[_vm._v("\n "+_vm._s(page.number)+"\n ")])])}),_vm._v(" "),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._v(" "),(_vm.hasLast)?_c('li',[_c('a',{staticClass:"pagination-link",attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(_vm.pageCount, false)},on:{"click":function($event){$event.preventDefault();_vm.last($event);}}},[_vm._v("\n "+_vm._s(_vm.pageCount)+"\n ")])]):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.simple)?_c('small',{staticClass:"info"},[(_vm.perPage == 1)?[_vm._v("\n "+_vm._s(_vm.firstItem)+" / "+_vm._s(_vm.total)+"\n ")]:[_vm._v("\n "+_vm._s(_vm.firstItem)+"-"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+" / "+_vm._s(_vm.total)+"\n ")]],2):_vm._e()])};
684
+ var __vue_staticRenderFns__$2 = [];
685
+
686
+ /* style */
687
+ const __vue_inject_styles__$2 = undefined;
688
+ /* scoped */
689
+ const __vue_scope_id__$2 = undefined;
690
+ /* module identifier */
691
+ const __vue_module_identifier__$2 = undefined;
692
+ /* functional template */
693
+ const __vue_is_functional_template__$2 = false;
694
+ /* style inject */
695
+
696
+ /* style inject SSR */
697
+
698
+
699
+
700
+ var Pagination = normalizeComponent_1(
701
+ { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
702
+ __vue_inject_styles__$2,
703
+ __vue_script__$2,
704
+ __vue_scope_id__$2,
705
+ __vue_is_functional_template__$2,
706
+ __vue_module_identifier__$2,
707
+ undefined,
708
+ undefined
709
+ );
710
+
711
+ var SlotComponent = {
712
+ name: 'BSlotComponent',
713
+ props: {
714
+ component: {
715
+ type: Object,
716
+ required: true
717
+ },
718
+ name: {
719
+ type: String,
720
+ default: 'default'
721
+ },
722
+ scoped: {
723
+ type: Boolean
724
+ },
725
+ props: {
726
+ type: Object
727
+ },
728
+ tag: {
729
+ type: String,
730
+ default: 'div'
731
+ },
732
+ event: {
733
+ type: String,
734
+ default: 'hook:updated'
735
+ }
736
+ },
737
+ methods: {
738
+ refresh: function refresh() {
739
+ this.$forceUpdate();
740
+ },
741
+ isVueComponent: function isVueComponent() {
742
+ return this.component && this.component._isVue;
743
+ }
744
+ },
745
+ created: function created() {
746
+ if (this.isVueComponent()) {
747
+ this.component.$on(this.event, this.refresh);
748
+ }
749
+ },
750
+ beforeDestroy: function beforeDestroy() {
751
+ if (this.isVueComponent()) {
752
+ this.component.$off(this.event, this.refresh);
753
+ }
754
+ },
755
+ render: function render(createElement) {
756
+ if (this.isVueComponent()) {
757
+ return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);
758
+ }
759
+ }
760
+ };
761
+
762
+ var FormElementMixin = {
763
+ props: {
764
+ size: String,
765
+ expanded: Boolean,
766
+ loading: Boolean,
767
+ rounded: Boolean,
768
+ icon: String,
769
+ iconPack: String,
770
+ // Native options to use in HTML5 validation
771
+ autocomplete: String,
772
+ maxlength: [Number, String],
773
+ useHtml5Validation: {
774
+ type: Boolean,
775
+ default: function _default() {
776
+ return config$1.defaultUseHtml5Validation;
777
+ }
778
+ },
779
+ validationMessage: String
780
+ },
781
+ data: function data() {
782
+ return {
783
+ isValid: true,
784
+ isFocused: false,
785
+ newIconPack: this.iconPack || config$1.defaultIconPack
786
+ };
787
+ },
788
+ computed: {
789
+ /**
790
+ * Find parent Field, max 3 levels deep.
791
+ */
792
+ parentField: function parentField() {
793
+ var parent = this.$parent;
794
+
795
+ for (var i = 0; i < 3; i++) {
796
+ if (parent && !parent.$data._isField) {
797
+ parent = parent.$parent;
798
+ }
799
+ }
800
+
801
+ return parent;
802
+ },
803
+
804
+ /**
805
+ * Get the type prop from parent if it's a Field.
806
+ */
807
+ statusType: function statusType() {
808
+ if (!this.parentField) return;
809
+ if (!this.parentField.newType) return;
810
+
811
+ if (typeof this.parentField.newType === 'string') {
812
+ return this.parentField.newType;
813
+ } else {
814
+ for (var key in this.parentField.newType) {
815
+ if (this.parentField.newType[key]) {
816
+ return key;
817
+ }
818
+ }
819
+ }
820
+ },
821
+
822
+ /**
823
+ * Get the message prop from parent if it's a Field.
824
+ */
825
+ statusMessage: function statusMessage() {
826
+ if (!this.parentField) return;
827
+ return this.parentField.newMessage;
828
+ },
829
+
830
+ /**
831
+ * Fix icon size for inputs, large was too big
832
+ */
833
+ iconSize: function iconSize() {
834
+ switch (this.size) {
835
+ case 'is-small':
836
+ return this.size;
837
+
838
+ case 'is-medium':
839
+ return;
840
+
841
+ case 'is-large':
842
+ return this.newIconPack === 'mdi' ? 'is-medium' : '';
843
+ }
844
+ }
845
+ },
846
+ methods: {
847
+ /**
848
+ * Focus method that work dynamically depending on the component.
849
+ */
850
+ focus: function focus() {
851
+ var _this = this;
852
+
853
+ if (this.$data._elementRef === undefined) return;
854
+ this.$nextTick(function () {
855
+ var el = _this.$el.querySelector(_this.$data._elementRef);
856
+
857
+ if (el) el.focus();
858
+ });
859
+ },
860
+ onBlur: function onBlur($event) {
861
+ this.isFocused = false;
862
+ this.$emit('blur', $event);
863
+ this.checkHtml5Validity();
864
+ },
865
+ onFocus: function onFocus($event) {
866
+ this.isFocused = true;
867
+ this.$emit('focus', $event);
868
+ },
869
+
870
+ /**
871
+ * Check HTML5 validation, set isValid property.
872
+ * If validation fail, send 'is-danger' type,
873
+ * and error message to parent if it's a Field.
874
+ */
875
+ checkHtml5Validity: function checkHtml5Validity() {
876
+ var _this2 = this;
877
+
878
+ if (!this.useHtml5Validation) return;
879
+ if (this.$refs[this.$data._elementRef] === undefined) return;
880
+ var el = this.$el.querySelector(this.$data._elementRef);
881
+ var type = null;
882
+ var message = null;
883
+ var isValid = true;
884
+
885
+ if (!el.checkValidity()) {
886
+ type = 'is-danger';
887
+ message = this.validationMessage || el.validationMessage;
888
+ isValid = false;
889
+ }
890
+
891
+ this.isValid = isValid;
892
+ this.$nextTick(function () {
893
+ if (_this2.parentField) {
894
+ // Set type only if not defined
895
+ if (!_this2.parentField.type) {
896
+ _this2.parentField.newType = type;
897
+ } // Set message only if not defined
898
+
899
+
900
+ if (!_this2.parentField.message) {
901
+ _this2.parentField.newMessage = message;
902
+ }
903
+ }
904
+ });
905
+ return this.isValid;
906
+ }
907
+ }
908
+ };
909
+
910
+ var script$3 = {
911
+ name: 'BSelect',
912
+ components: _defineProperty({}, Icon.name, Icon),
913
+ mixins: [FormElementMixin],
914
+ inheritAttrs: false,
915
+ props: {
916
+ value: {
917
+ type: [String, Number, Boolean, Object, Array, Function],
918
+ default: null
919
+ },
920
+ placeholder: String,
921
+ multiple: Boolean,
922
+ nativeSize: [String, Number]
923
+ },
924
+ data: function data() {
925
+ return {
926
+ selected: this.value,
927
+ _elementRef: 'select'
928
+ };
929
+ },
930
+ computed: {
931
+ computedValue: {
932
+ get: function get() {
933
+ return this.selected;
934
+ },
935
+ set: function set(value) {
936
+ this.selected = value;
937
+ this.$emit('input', value);
938
+ !this.isValid && this.checkHtml5Validity();
939
+ }
940
+ },
941
+ spanClasses: function spanClasses() {
942
+ return [this.size, this.statusType, {
943
+ 'is-fullwidth': this.expanded,
944
+ 'is-loading': this.loading,
945
+ 'is-multiple': this.multiple,
946
+ 'is-rounded': this.rounded,
947
+ 'is-empty': this.selected === null
948
+ }];
949
+ }
950
+ },
951
+ watch: {
952
+ /**
953
+ * When v-model is changed:
954
+ * 1. Set the selected option.
955
+ * 2. If it's invalid, validate again.
956
+ */
957
+ value: function value(_value) {
958
+ this.selected = _value;
959
+ !this.isValid && this.checkHtml5Validity();
960
+ }
961
+ }
962
+ };
963
+
964
+ /* script */
965
+ const __vue_script__$3 = script$3;
966
+
967
+ /* template */
968
+ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon }},[_c('span',{staticClass:"select",class:_vm.spanClasses},[_c('select',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"select",attrs:{"multiple":_vm.multiple,"size":_vm.nativeSize},on:{"blur":function($event){_vm.$emit('blur', $event) && _vm.checkHtml5Validity();},"focus":function($event){_vm.$emit('focus', $event);},"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.computedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0];}}},'select',_vm.$attrs,false),[(_vm.placeholder)?[(_vm.computedValue == null)?_c('option',{attrs:{"disabled":"","hidden":""},domProps:{"value":null}},[_vm._v("\n "+_vm._s(_vm.placeholder)+"\n ")]):_vm._e()]:_vm._e(),_vm._v(" "),_vm._t("default")],2)]),_vm._v(" "),(_vm.icon)?_c('b-icon',{staticClass:"is-left",attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize}}):_vm._e()],1)};
969
+ var __vue_staticRenderFns__$3 = [];
970
+
971
+ /* style */
972
+ const __vue_inject_styles__$3 = undefined;
973
+ /* scoped */
974
+ const __vue_scope_id__$3 = undefined;
975
+ /* module identifier */
976
+ const __vue_module_identifier__$3 = undefined;
977
+ /* functional template */
978
+ const __vue_is_functional_template__$3 = false;
979
+ /* style inject */
980
+
981
+ /* style inject SSR */
982
+
983
+
984
+
985
+ var Select = normalizeComponent_1(
986
+ { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
987
+ __vue_inject_styles__$3,
988
+ __vue_script__$3,
989
+ __vue_scope_id__$3,
990
+ __vue_is_functional_template__$3,
991
+ __vue_module_identifier__$3,
992
+ undefined,
993
+ undefined
994
+ );
995
+
996
+ var _components;
997
+ var script$4 = {
998
+ name: 'BTableMobileSort',
999
+ components: (_components = {}, _defineProperty(_components, Select.name, Select), _defineProperty(_components, Icon.name, Icon), _components),
1000
+ props: {
1001
+ currentSortColumn: Object,
1002
+ isAsc: Boolean,
1003
+ columns: Array,
1004
+ placeholder: String
1005
+ },
1006
+ data: function data() {
1007
+ return {
1008
+ mobileSort: this.currentSortColumn
1009
+ };
1010
+ },
1011
+ computed: {
1012
+ showPlaceholder: function showPlaceholder() {
1013
+ var _this = this;
1014
+
1015
+ return !this.columns || !this.columns.some(function (column) {
1016
+ return column === _this.mobileSort;
1017
+ });
1018
+ }
1019
+ },
1020
+ watch: {
1021
+ mobileSort: function mobileSort(column) {
1022
+ if (this.currentSortColumn === column) return;
1023
+ this.$emit('sort', column);
1024
+ },
1025
+ currentSortColumn: function currentSortColumn(column) {
1026
+ this.mobileSort = column;
1027
+ }
1028
+ },
1029
+ methods: {
1030
+ sort: function sort() {
1031
+ this.$emit('sort', this.mobileSort);
1032
+ }
1033
+ }
1034
+ };
1035
+
1036
+ /* script */
1037
+ const __vue_script__$4 = script$4;
1038
+
1039
+ /* template */
1040
+ var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field table-mobile-sort"},[_c('div',{staticClass:"field has-addons"},[_c('b-select',{attrs:{"expanded":""},model:{value:(_vm.mobileSort),callback:function ($$v) {_vm.mobileSort=$$v;},expression:"mobileSort"}},[(_vm.placeholder)?[_c('option',{directives:[{name:"show",rawName:"v-show",value:(_vm.showPlaceholder),expression:"showPlaceholder"}],attrs:{"selected":"","disabled":"","hidden":""},domProps:{"value":{}}},[_vm._v("\n "+_vm._s(_vm.placeholder)+"\n ")])]:_vm._e(),_vm._v(" "),_vm._l((_vm.columns),function(column,index){return (column.sortable)?_c('option',{key:index,domProps:{"value":column}},[_vm._v("\n "+_vm._s(column.label)+"\n ")]):_vm._e()})],2),_vm._v(" "),_c('div',{staticClass:"control"},[_c('button',{staticClass:"button is-primary",on:{"click":_vm.sort}},[_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentSortColumn === _vm.mobileSort),expression:"currentSortColumn === mobileSort"}],class:{ 'is-desc': !_vm.isAsc },attrs:{"icon":"arrow-up","size":"is-small","both":""}})],1)])],1)])};
1041
+ var __vue_staticRenderFns__$4 = [];
1042
+
1043
+ /* style */
1044
+ const __vue_inject_styles__$4 = undefined;
1045
+ /* scoped */
1046
+ const __vue_scope_id__$4 = undefined;
1047
+ /* module identifier */
1048
+ const __vue_module_identifier__$4 = undefined;
1049
+ /* functional template */
1050
+ const __vue_is_functional_template__$4 = false;
1051
+ /* style inject */
1052
+
1053
+ /* style inject SSR */
1054
+
1055
+
1056
+
1057
+ var TableMobileSort = normalizeComponent_1(
1058
+ { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
1059
+ __vue_inject_styles__$4,
1060
+ __vue_script__$4,
1061
+ __vue_scope_id__$4,
1062
+ __vue_is_functional_template__$4,
1063
+ __vue_module_identifier__$4,
1064
+ undefined,
1065
+ undefined
1066
+ );
1067
+
1068
+ //
1069
+ //
1070
+ //
1071
+ //
1072
+ //
1073
+ //
1074
+ //
1075
+ //
1076
+ //
1077
+ var script$5 = {
1078
+ name: 'BTableColumn',
1079
+ props: {
1080
+ label: String,
1081
+ customKey: [String, Number],
1082
+ field: String,
1083
+ meta: [String, Number, Boolean, Function, Object, Array],
1084
+ width: [Number, String],
1085
+ numeric: Boolean,
1086
+ centered: Boolean,
1087
+ sortable: Boolean,
1088
+ visible: {
1089
+ type: Boolean,
1090
+ default: true
1091
+ },
1092
+ customSort: Function,
1093
+ internal: Boolean // Used internally by Table
1094
+
1095
+ },
1096
+ data: function data() {
1097
+ return {
1098
+ newKey: this.customKey || this.label
1099
+ };
1100
+ },
1101
+ computed: {
1102
+ rootClasses: function rootClasses() {
1103
+ return {
1104
+ 'has-text-right': this.numeric && !this.centered,
1105
+ 'has-text-centered': this.centered
1106
+ };
1107
+ }
1108
+ },
1109
+ methods: {
1110
+ addRefToTable: function addRefToTable() {
1111
+ var _this = this;
1112
+
1113
+ if (!this.$parent.$data._isTable) {
1114
+ this.$destroy();
1115
+ throw new Error('You should wrap bTableColumn on a bTable');
1116
+ }
1117
+
1118
+ if (this.internal) return; // Since we're using scoped prop the columns gonna be multiplied,
1119
+ // this finds when to stop based on the newKey property.
1120
+
1121
+ var repeated = this.$parent.newColumns.some(function (column) {
1122
+ return column.newKey === _this.newKey;
1123
+ });
1124
+ !repeated && this.$parent.newColumns.push(this);
1125
+ }
1126
+ },
1127
+ beforeMount: function beforeMount() {
1128
+ this.addRefToTable();
1129
+ },
1130
+ beforeUpdate: function beforeUpdate() {
1131
+ this.addRefToTable();
1132
+ },
1133
+ beforeDestroy: function beforeDestroy() {
1134
+ var index = this.$parent.newColumns.map(function (column) {
1135
+ return column.newKey;
1136
+ }).indexOf(this.newKey);
1137
+
1138
+ if (index >= 0) {
1139
+ this.$parent.newColumns.splice(index, 1);
1140
+ }
1141
+ }
1142
+ };
1143
+
1144
+ /* script */
1145
+ const __vue_script__$5 = script$5;
1146
+
1147
+ /* template */
1148
+ var __vue_render__$5 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('td',{class:_vm.rootClasses,attrs:{"data-label":_vm.label}},[_vm._t("default")],2):_vm._e()};
1149
+ var __vue_staticRenderFns__$5 = [];
1150
+
1151
+ /* style */
1152
+ const __vue_inject_styles__$5 = undefined;
1153
+ /* scoped */
1154
+ const __vue_scope_id__$5 = undefined;
1155
+ /* module identifier */
1156
+ const __vue_module_identifier__$5 = undefined;
1157
+ /* functional template */
1158
+ const __vue_is_functional_template__$5 = false;
1159
+ /* style inject */
1160
+
1161
+ /* style inject SSR */
1162
+
1163
+
1164
+
1165
+ var TableColumn = normalizeComponent_1(
1166
+ { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 },
1167
+ __vue_inject_styles__$5,
1168
+ __vue_script__$5,
1169
+ __vue_scope_id__$5,
1170
+ __vue_is_functional_template__$5,
1171
+ __vue_module_identifier__$5,
1172
+ undefined,
1173
+ undefined
1174
+ );
1175
+
1176
+ var _components$1;
1177
+ var script$6 = {
1178
+ name: 'BTable',
1179
+ components: (_components$1 = {}, _defineProperty(_components$1, Checkbox.name, Checkbox), _defineProperty(_components$1, Icon.name, Icon), _defineProperty(_components$1, Pagination.name, Pagination), _defineProperty(_components$1, SlotComponent.name, SlotComponent), _defineProperty(_components$1, TableMobileSort.name, TableMobileSort), _defineProperty(_components$1, TableColumn.name, TableColumn), _components$1),
1180
+ props: {
1181
+ data: {
1182
+ type: Array,
1183
+ default: function _default() {
1184
+ return [];
1185
+ }
1186
+ },
1187
+ columns: {
1188
+ type: Array,
1189
+ default: function _default() {
1190
+ return [];
1191
+ }
1192
+ },
1193
+ bordered: Boolean,
1194
+ striped: Boolean,
1195
+ narrowed: Boolean,
1196
+ hoverable: Boolean,
1197
+ loading: Boolean,
1198
+ detailed: Boolean,
1199
+ checkable: Boolean,
1200
+ headerCheckable: {
1201
+ type: Boolean,
1202
+ default: true
1203
+ },
1204
+ checkboxPosition: {
1205
+ type: String,
1206
+ default: 'left',
1207
+ validator: function validator(value) {
1208
+ return ['left', 'right'].indexOf(value) >= 0;
1209
+ }
1210
+ },
1211
+ selected: Object,
1212
+ focusable: Boolean,
1213
+ customIsChecked: Function,
1214
+ isRowCheckable: {
1215
+ type: Function,
1216
+ default: function _default() {
1217
+ return true;
1218
+ }
1219
+ },
1220
+ checkedRows: {
1221
+ type: Array,
1222
+ default: function _default() {
1223
+ return [];
1224
+ }
1225
+ },
1226
+ mobileCards: {
1227
+ type: Boolean,
1228
+ default: true
1229
+ },
1230
+ defaultSort: [String, Array],
1231
+ defaultSortDirection: {
1232
+ type: String,
1233
+ default: 'asc'
1234
+ },
1235
+ sortIcon: {
1236
+ type: String,
1237
+ default: 'arrow-up'
1238
+ },
1239
+ sortIconSize: {
1240
+ type: String,
1241
+ default: 'is-small'
1242
+ },
1243
+ paginated: Boolean,
1244
+ currentPage: {
1245
+ type: Number,
1246
+ default: 1
1247
+ },
1248
+ perPage: {
1249
+ type: [Number, String],
1250
+ default: 20
1251
+ },
1252
+ showDetailIcon: {
1253
+ type: Boolean,
1254
+ default: true
1255
+ },
1256
+ paginationSimple: Boolean,
1257
+ paginationSize: String,
1258
+ paginationPosition: {
1259
+ type: String,
1260
+ default: 'bottom',
1261
+ validator: function validator(value) {
1262
+ return ['bottom', 'top', 'both'].indexOf(value) >= 0;
1263
+ }
1264
+ },
1265
+ backendSorting: Boolean,
1266
+ rowClass: {
1267
+ type: Function,
1268
+ default: function _default() {
1269
+ return '';
1270
+ }
1271
+ },
1272
+ openedDetailed: {
1273
+ type: Array,
1274
+ default: function _default() {
1275
+ return [];
1276
+ }
1277
+ },
1278
+ hasDetailedVisible: {
1279
+ type: Function,
1280
+ default: function _default() {
1281
+ return true;
1282
+ }
1283
+ },
1284
+ detailKey: {
1285
+ type: String,
1286
+ default: ''
1287
+ },
1288
+ customDetailRow: {
1289
+ type: Boolean,
1290
+ default: false
1291
+ },
1292
+ backendPagination: Boolean,
1293
+ total: {
1294
+ type: [Number, String],
1295
+ default: 0
1296
+ },
1297
+ iconPack: String,
1298
+ mobileSortPlaceholder: String,
1299
+ customRowKey: String,
1300
+ draggable: {
1301
+ type: Boolean,
1302
+ defualt: false
1303
+ },
1304
+ ariaNextLabel: String,
1305
+ ariaPreviousLabel: String,
1306
+ ariaPageLabel: String,
1307
+ ariaCurrentLabel: String
1308
+ },
1309
+ data: function data() {
1310
+ return {
1311
+ getValueByPath: getValueByPath,
1312
+ newColumns: _toConsumableArray(this.columns),
1313
+ visibleDetailRows: this.openedDetailed,
1314
+ newData: this.data,
1315
+ newDataTotal: this.backendPagination ? this.total : this.data.length,
1316
+ newCheckedRows: _toConsumableArray(this.checkedRows),
1317
+ newCurrentPage: this.currentPage,
1318
+ currentSortColumn: {},
1319
+ isAsc: true,
1320
+ firstTimeSort: true,
1321
+ // Used by first time initSort
1322
+ _isTable: true // Used by TableColumn
1323
+
1324
+ };
1325
+ },
1326
+ computed: {
1327
+ /**
1328
+ * return if detailed row tabled
1329
+ * will be with chevron column & icon or not
1330
+ */
1331
+ showDetailRowIcon: function showDetailRowIcon() {
1332
+ return this.detailed && this.showDetailIcon;
1333
+ },
1334
+ tableClasses: function tableClasses() {
1335
+ return {
1336
+ 'is-bordered': this.bordered,
1337
+ 'is-striped': this.striped,
1338
+ 'is-narrow': this.narrowed,
1339
+ 'has-mobile-cards': this.mobileCards,
1340
+ 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length
1341
+ };
1342
+ },
1343
+
1344
+ /**
1345
+ * Splitted data based on the pagination.
1346
+ */
1347
+ visibleData: function visibleData() {
1348
+ if (!this.paginated) return this.newData;
1349
+ var currentPage = this.newCurrentPage;
1350
+ var perPage = this.perPage;
1351
+
1352
+ if (this.newData.length <= perPage) {
1353
+ return this.newData;
1354
+ } else {
1355
+ var start = (currentPage - 1) * perPage;
1356
+ var end = parseInt(start, 10) + parseInt(perPage, 10);
1357
+ return this.newData.slice(start, end);
1358
+ }
1359
+ },
1360
+ visibleColumns: function visibleColumns() {
1361
+ if (!this.newColumns) return this.newColumns;
1362
+ return this.newColumns.filter(function (column) {
1363
+ return column.visible || column.visible === undefined;
1364
+ });
1365
+ },
1366
+
1367
+ /**
1368
+ * Check if all rows in the page are checked.
1369
+ */
1370
+ isAllChecked: function isAllChecked() {
1371
+ var _this = this;
1372
+
1373
+ var validVisibleData = this.visibleData.filter(function (row) {
1374
+ return _this.isRowCheckable(row);
1375
+ });
1376
+ if (validVisibleData.length === 0) return false;
1377
+ var isAllChecked = validVisibleData.some(function (currentVisibleRow) {
1378
+ return indexOf(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0;
1379
+ });
1380
+ return !isAllChecked;
1381
+ },
1382
+
1383
+ /**
1384
+ * Check if all rows in the page are checkable.
1385
+ */
1386
+ isAllUncheckable: function isAllUncheckable() {
1387
+ var _this2 = this;
1388
+
1389
+ var validVisibleData = this.visibleData.filter(function (row) {
1390
+ return _this2.isRowCheckable(row);
1391
+ });
1392
+ return validVisibleData.length === 0;
1393
+ },
1394
+
1395
+ /**
1396
+ * Check if has any sortable column.
1397
+ */
1398
+ hasSortablenewColumns: function hasSortablenewColumns() {
1399
+ return this.newColumns.some(function (column) {
1400
+ return column.sortable;
1401
+ });
1402
+ },
1403
+
1404
+ /**
1405
+ * Return total column count based if it's checkable or expanded
1406
+ */
1407
+ columnCount: function columnCount() {
1408
+ var count = this.newColumns.length;
1409
+ count += this.checkable ? 1 : 0;
1410
+ count += this.detailed ? 1 : 0;
1411
+ return count;
1412
+ }
1413
+ },
1414
+ watch: {
1415
+ /**
1416
+ * When data prop change:
1417
+ * 1. Update internal value.
1418
+ * 2. Reset newColumns (thead), in case it's on a v-for loop.
1419
+ * 3. Sort again if it's not backend-sort.
1420
+ * 4. Set new total if it's not backend-paginated.
1421
+ */
1422
+ data: function data(value) {
1423
+ var _this3 = this;
1424
+
1425
+ // Save newColumns before resetting
1426
+ var newColumns = this.newColumns;
1427
+ this.newColumns = [];
1428
+ this.newData = value; // Prevent table from being headless, data could change and created hook
1429
+ // on column might not trigger
1430
+
1431
+ this.$nextTick(function () {
1432
+ if (!_this3.newColumns.length) _this3.newColumns = newColumns;
1433
+ });
1434
+
1435
+ if (!this.backendSorting) {
1436
+ this.sort(this.currentSortColumn, true);
1437
+ }
1438
+
1439
+ if (!this.backendPagination) {
1440
+ this.newDataTotal = value.length;
1441
+ }
1442
+ },
1443
+
1444
+ /**
1445
+ * When Pagination total change, update internal total
1446
+ * only if it's backend-paginated.
1447
+ */
1448
+ total: function total(newTotal) {
1449
+ if (!this.backendPagination) return;
1450
+ this.newDataTotal = newTotal;
1451
+ },
1452
+
1453
+ /**
1454
+ * When checkedRows prop change, update internal value without
1455
+ * mutating original data.
1456
+ */
1457
+ checkedRows: function checkedRows(rows) {
1458
+ this.newCheckedRows = _toConsumableArray(rows);
1459
+ },
1460
+ columns: function columns(value) {
1461
+ this.newColumns = _toConsumableArray(value);
1462
+ },
1463
+ newColumns: function newColumns(value) {
1464
+ this.checkSort();
1465
+ },
1466
+
1467
+ /**
1468
+ * When the user wants to control the detailed rows via props.
1469
+ * Or wants to open the details of certain row with the router for example.
1470
+ */
1471
+ openedDetailed: function openedDetailed(expandedRows) {
1472
+ this.visibleDetailRows = expandedRows;
1473
+ },
1474
+ currentPage: function currentPage(newVal) {
1475
+ this.newCurrentPage = newVal;
1476
+ }
1477
+ },
1478
+ methods: {
1479
+ /**
1480
+ * Sort an array by key without mutating original data.
1481
+ * Call the user sort function if it was passed.
1482
+ */
1483
+ sortBy: function sortBy(array, key, fn, isAsc) {
1484
+ var sorted = []; // Sorting without mutating original data
1485
+
1486
+ if (fn && typeof fn === 'function') {
1487
+ sorted = _toConsumableArray(array).sort(function (a, b) {
1488
+ return fn(a, b, isAsc);
1489
+ });
1490
+ } else {
1491
+ sorted = _toConsumableArray(array).sort(function (a, b) {
1492
+ // Get nested values from objects
1493
+ var newA = getValueByPath(a, key);
1494
+ var newB = getValueByPath(b, key); // sort boolean type
1495
+
1496
+ if (typeof newA === 'boolean' && typeof newB === 'boolean') {
1497
+ return isAsc ? newA - newB : newB - newA;
1498
+ }
1499
+
1500
+ if (!newA && newA !== 0) return 1;
1501
+ if (!newB && newB !== 0) return -1;
1502
+ if (newA === newB) return 0;
1503
+ newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
1504
+ newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
1505
+ return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1;
1506
+ });
1507
+ }
1508
+
1509
+ return sorted;
1510
+ },
1511
+
1512
+ /**
1513
+ * Sort the column.
1514
+ * Toggle current direction on column if it's sortable
1515
+ * and not just updating the prop.
1516
+ */
1517
+ sort: function sort(column) {
1518
+ var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1519
+ if (!column || !column.sortable) return;
1520
+
1521
+ if (!updatingData) {
1522
+ this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc';
1523
+ }
1524
+
1525
+ if (!this.firstTimeSort) {
1526
+ this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc');
1527
+ }
1528
+
1529
+ if (!this.backendSorting) {
1530
+ this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc);
1531
+ }
1532
+
1533
+ this.currentSortColumn = column;
1534
+ },
1535
+
1536
+ /**
1537
+ * Check if the row is checked (is added to the array).
1538
+ */
1539
+ isRowChecked: function isRowChecked(row) {
1540
+ return indexOf(this.newCheckedRows, row, this.customIsChecked) >= 0;
1541
+ },
1542
+
1543
+ /**
1544
+ * Remove a checked row from the array.
1545
+ */
1546
+ removeCheckedRow: function removeCheckedRow(row) {
1547
+ var index = indexOf(this.newCheckedRows, row, this.customIsChecked);
1548
+
1549
+ if (index >= 0) {
1550
+ this.newCheckedRows.splice(index, 1);
1551
+ }
1552
+ },
1553
+
1554
+ /**
1555
+ * Header checkbox click listener.
1556
+ * Add or remove all rows in current page.
1557
+ */
1558
+ checkAll: function checkAll() {
1559
+ var _this4 = this;
1560
+
1561
+ var isAllChecked = this.isAllChecked;
1562
+ this.visibleData.forEach(function (currentRow) {
1563
+ _this4.removeCheckedRow(currentRow);
1564
+
1565
+ if (!isAllChecked) {
1566
+ if (_this4.isRowCheckable(currentRow)) {
1567
+ _this4.newCheckedRows.push(currentRow);
1568
+ }
1569
+ }
1570
+ });
1571
+ this.$emit('check', this.newCheckedRows);
1572
+ this.$emit('check-all', this.newCheckedRows); // Emit checked rows to update user variable
1573
+
1574
+ this.$emit('update:checkedRows', this.newCheckedRows);
1575
+ },
1576
+
1577
+ /**
1578
+ * Row checkbox click listener.
1579
+ * Add or remove a single row.
1580
+ */
1581
+ checkRow: function checkRow(row) {
1582
+ if (!this.isRowChecked(row)) {
1583
+ this.newCheckedRows.push(row);
1584
+ } else {
1585
+ this.removeCheckedRow(row);
1586
+ }
1587
+
1588
+ this.$emit('check', this.newCheckedRows, row); // Emit checked rows to update user variable
1589
+
1590
+ this.$emit('update:checkedRows', this.newCheckedRows);
1591
+ },
1592
+
1593
+ /**
1594
+ * Row click listener.
1595
+ * Emit all necessary events.
1596
+ */
1597
+ selectRow: function selectRow(row, index) {
1598
+ this.$emit('click', row);
1599
+ if (this.selected === row) return; // Emit new and old row
1600
+
1601
+ this.$emit('select', row, this.selected); // Emit new row to update user variable
1602
+
1603
+ this.$emit('update:selected', row);
1604
+ },
1605
+
1606
+ /**
1607
+ * Paginator change listener.
1608
+ */
1609
+ pageChanged: function pageChanged(page) {
1610
+ this.newCurrentPage = page > 0 ? page : 1;
1611
+ this.$emit('page-change', this.newCurrentPage);
1612
+ this.$emit('update:currentPage', this.newCurrentPage);
1613
+ },
1614
+
1615
+ /**
1616
+ * Toggle to show/hide details slot
1617
+ */
1618
+ toggleDetails: function toggleDetails(obj) {
1619
+ var found = this.isVisibleDetailRow(obj);
1620
+
1621
+ if (found) {
1622
+ this.closeDetailRow(obj);
1623
+ this.$emit('details-close', obj);
1624
+ } else {
1625
+ this.openDetailRow(obj);
1626
+ this.$emit('details-open', obj);
1627
+ } // Syncs the detailed rows with the parent component
1628
+
1629
+
1630
+ this.$emit('update:openedDetailed', this.visibleDetailRows);
1631
+ },
1632
+ openDetailRow: function openDetailRow(obj) {
1633
+ var index = this.handleDetailKey(obj);
1634
+ this.visibleDetailRows.push(index);
1635
+ },
1636
+ closeDetailRow: function closeDetailRow(obj) {
1637
+ var index = this.handleDetailKey(obj);
1638
+ var i = this.visibleDetailRows.indexOf(index);
1639
+ this.visibleDetailRows.splice(i, 1);
1640
+ },
1641
+ isVisibleDetailRow: function isVisibleDetailRow(obj) {
1642
+ var index = this.handleDetailKey(obj);
1643
+ var result = this.visibleDetailRows.indexOf(index) >= 0;
1644
+ return result;
1645
+ },
1646
+ isActiveDetailRow: function isActiveDetailRow(row) {
1647
+ return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row);
1648
+ },
1649
+ isActiveCustomDetailRow: function isActiveCustomDetailRow(row) {
1650
+ return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row);
1651
+ },
1652
+
1653
+ /**
1654
+ * When the detailKey is defined we use the object[detailKey] as index.
1655
+ * If not, use the object reference by default.
1656
+ */
1657
+ handleDetailKey: function handleDetailKey(index) {
1658
+ var key = this.detailKey;
1659
+ return !key.length ? index : index[key];
1660
+ },
1661
+ checkPredefinedDetailedRows: function checkPredefinedDetailedRows() {
1662
+ var defaultExpandedRowsDefined = this.openedDetailed.length > 0;
1663
+
1664
+ if (defaultExpandedRowsDefined && !this.detailKey.length) {
1665
+ throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"');
1666
+ }
1667
+ },
1668
+
1669
+ /**
1670
+ * Call initSort only first time (For example async data).
1671
+ */
1672
+ checkSort: function checkSort() {
1673
+ if (this.newColumns.length && this.firstTimeSort) {
1674
+ this.initSort();
1675
+ this.firstTimeSort = false;
1676
+ } else if (this.newColumns.length) {
1677
+ if (this.currentSortColumn.field) {
1678
+ for (var i = 0; i < this.newColumns.length; i++) {
1679
+ if (this.newColumns[i].field === this.currentSortColumn.field) {
1680
+ this.currentSortColumn = this.newColumns[i];
1681
+ break;
1682
+ }
1683
+ }
1684
+ }
1685
+ }
1686
+ },
1687
+
1688
+ /**
1689
+ * Check if footer slot has custom content.
1690
+ */
1691
+ hasCustomFooterSlot: function hasCustomFooterSlot() {
1692
+ if (this.$slots.footer.length > 1) return true;
1693
+ var tag = this.$slots.footer[0].tag;
1694
+ if (tag !== 'th' && tag !== 'td') return false;
1695
+ return true;
1696
+ },
1697
+
1698
+ /**
1699
+ * Check if bottom-left slot exists.
1700
+ */
1701
+ hasBottomLeftSlot: function hasBottomLeftSlot() {
1702
+ return typeof this.$slots['bottom-left'] !== 'undefined';
1703
+ },
1704
+
1705
+ /**
1706
+ * Table arrow keys listener, change selection.
1707
+ */
1708
+ pressedArrow: function pressedArrow(pos) {
1709
+ if (!this.visibleData.length) return;
1710
+ var index = this.visibleData.indexOf(this.selected) + pos; // Prevent from going up from first and down from last
1711
+
1712
+ index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index;
1713
+ this.selectRow(this.visibleData[index]);
1714
+ },
1715
+
1716
+ /**
1717
+ * Focus table element if has selected prop.
1718
+ */
1719
+ focus: function focus() {
1720
+ if (!this.focusable) return;
1721
+ this.$el.querySelector('table').focus();
1722
+ },
1723
+
1724
+ /**
1725
+ * Initial sorted column based on the default-sort prop.
1726
+ */
1727
+ initSort: function initSort() {
1728
+ var _this5 = this;
1729
+
1730
+ if (!this.defaultSort) return;
1731
+ var sortField = '';
1732
+ var sortDirection = this.defaultSortDirection;
1733
+
1734
+ if (Array.isArray(this.defaultSort)) {
1735
+ sortField = this.defaultSort[0];
1736
+
1737
+ if (this.defaultSort[1]) {
1738
+ sortDirection = this.defaultSort[1];
1739
+ }
1740
+ } else {
1741
+ sortField = this.defaultSort;
1742
+ }
1743
+
1744
+ this.newColumns.forEach(function (column) {
1745
+ if (column.field === sortField) {
1746
+ _this5.isAsc = sortDirection.toLowerCase() !== 'desc';
1747
+
1748
+ _this5.sort(column, true);
1749
+ }
1750
+ });
1751
+ },
1752
+
1753
+ /**
1754
+ * Emits drag start event
1755
+ */
1756
+ handleDragStart: function handleDragStart(event, row, index) {
1757
+ this.$emit('dragstart', {
1758
+ event: event,
1759
+ row: row,
1760
+ index: index
1761
+ });
1762
+ },
1763
+
1764
+ /**
1765
+ * Emits drop event
1766
+ */
1767
+ handleDrop: function handleDrop(event, row, index) {
1768
+ this.$emit('drop', {
1769
+ event: event,
1770
+ row: row,
1771
+ index: index
1772
+ });
1773
+ },
1774
+
1775
+ /**
1776
+ * Emits drag over event
1777
+ */
1778
+ handleDragOver: function handleDragOver(event, row, index) {
1779
+ this.$emit('dragover', {
1780
+ event: event,
1781
+ row: row,
1782
+ index: index
1783
+ });
1784
+ },
1785
+
1786
+ /**
1787
+ * Emits drag leave event
1788
+ */
1789
+ handleDragLeave: function handleDragLeave(event, row, index) {
1790
+ this.$emit('dragleave', {
1791
+ event: event,
1792
+ row: row,
1793
+ index: index
1794
+ });
1795
+ }
1796
+ },
1797
+ mounted: function mounted() {
1798
+ this.checkPredefinedDetailedRows();
1799
+ this.checkSort();
1800
+ }
1801
+ };
1802
+
1803
+ /* script */
1804
+ const __vue_script__$6 = script$6;
1805
+
1806
+ /* template */
1807
+ var __vue_render__$6 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-table",class:{ 'is-loading': _vm.loading }},[(_vm.mobileCards && _vm.hasSortablenewColumns)?_c('b-table-mobile-sort',{attrs:{"current-sort-column":_vm.currentSortColumn,"is-asc":_vm.isAsc,"columns":_vm.newColumns,"placeholder":_vm.mobileSortPlaceholder},on:{"sort":function (column) { return _vm.sort(column); }}}):_vm._e(),_vm._v(" "),(_vm.paginated && (_vm.paginationPosition === 'top' || _vm.paginationPosition === 'both'))?_c('div',{staticClass:"top level"},[_c('div',{staticClass:"level-left"},[_vm._t("top-left")],2),_vm._v(" "),_c('div',{staticClass:"level-right"},[(_vm.paginated)?_c('div',{staticClass:"level-item"},[_c('b-pagination',{attrs:{"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"per-page":_vm.perPage,"simple":_vm.paginationSimple,"size":_vm.paginationSize,"current":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"change":_vm.pageChanged}})],1):_vm._e()])]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"table-wrapper"},[_c('table',{staticClass:"table",class:_vm.tableClasses,attrs:{"tabindex":!_vm.focusable ? false : 0},on:{"keydown":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"up",38,$event.key)){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();_vm.pressedArrow(-1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"down",40,$event.key)){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();_vm.pressedArrow(1);}]}},[(_vm.newColumns.length)?_c('thead',[_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),_vm._v(" "),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th',{staticClass:"checkbox-cell"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){_vm.checkAll($event);}}})]:_vm._e()],2):_vm._e(),_vm._v(" "),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:index,class:{
1808
+ 'is-current-sort': _vm.currentSortColumn === column,
1809
+ 'is-sortable': column.sortable
1810
+ },style:({
1811
+ width: column.width === undefined ? null : column.width + 'px'
1812
+ }),on:{"click":function($event){$event.stopPropagation();_vm.sort(column);}}},[_c('div',{staticClass:"th-wrap",class:{
1813
+ 'is-numeric': column.numeric,
1814
+ 'is-centered': column.centered
1815
+ }},[(column.$scopedSlots && column.$scopedSlots.header)?[_c('b-slot-component',{attrs:{"component":column,"scoped":true,"name":"header","tag":"span","props":{ column: column, index: index }}})]:(_vm.$scopedSlots.header)?[_vm._t("header",null,{column:column,index:index})]:[_vm._v(_vm._s(column.label))],_vm._v(" "),_c('b-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.currentSortColumn === column),expression:"currentSortColumn === column"}],class:{ 'is-desc': !_vm.isAsc },attrs:{"icon":_vm.sortIcon,"pack":_vm.iconPack,"both":"","size":_vm.sortIconSize}})],2)])}),_vm._v(" "),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th',{staticClass:"checkbox-cell"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){_vm.checkAll($event);}}})]:_vm._e()],2):_vm._e()],2)]):_vm._e(),_vm._v(" "),(_vm.visibleData.length)?_c('tbody',[_vm._l((_vm.visibleData),function(row,index){return [_c('tr',{key:_vm.customRowKey ? row[_vm.customRowKey] : index,class:[_vm.rowClass(row, index), {
1816
+ 'is-selected': row === _vm.selected,
1817
+ 'is-checked': _vm.isRowChecked(row),
1818
+ }],attrs:{"draggable":_vm.draggable},on:{"click":function($event){_vm.selectRow(row);},"dblclick":function($event){_vm.$emit('dblclick', row);},"mouseenter":function($event){_vm.$emit('mouseenter', row);},"mouseleave":function($event){_vm.$emit('mouseleave', row);},"contextmenu":function($event){_vm.$emit('contextmenu', row, $event);},"dragstart":function($event){_vm.handleDragStart($event, row, index);},"drop":function($event){_vm.handleDrop($event, row, index);},"dragover":function($event){_vm.handleDragOver($event, row, index);},"dragleave":function($event){_vm.handleDragLeave($event, row, index);}}},[(_vm.showDetailRowIcon)?_c('td',{staticClass:"chevron-cell"},[(_vm.hasDetailedVisible(row))?_c('a',{attrs:{"role":"button"},on:{"click":function($event){$event.stopPropagation();_vm.toggleDetails(row);}}},[_c('b-icon',{class:{'is-expanded': _vm.isVisibleDetailRow(row)},attrs:{"icon":"chevron-right","pack":_vm.iconPack,"both":""}})],1):_vm._e()]):_vm._e(),_vm._v(" "),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('td',{staticClass:"checkbox-cell"},[_c('b-checkbox',{attrs:{"disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"change":function($event){_vm.checkRow(row);},"click":function($event){$event.stopPropagation();}}})],1):_vm._e(),_vm._v(" "),(_vm.$scopedSlots.default)?_vm._t("default",null,{row:row,index:index}):_vm._l((_vm.newColumns),function(column){return _c('BTableColumn',_vm._b({key:column.field,attrs:{"internal":""}},'BTableColumn',column,false),[(column.renderHtml)?_c('span',{domProps:{"innerHTML":_vm._s(_vm.getValueByPath(row, column.field))}}):[_vm._v("\n "+_vm._s(_vm.getValueByPath(row, column.field))+"\n ")]],2)}),_vm._v(" "),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('td',{staticClass:"checkbox-cell"},[_c('b-checkbox',{attrs:{"disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"change":function($event){_vm.checkRow(row);},"click":function($event){$event.stopPropagation();}}})],1):_vm._e()],2),_vm._v(" "),(_vm.isActiveDetailRow(row))?_c('tr',{staticClass:"detail"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_c('div',{staticClass:"detail-container"},[_vm._t("detail",null,{row:row,index:index})],2)])]):_vm._e(),_vm._v(" "),(_vm.isActiveCustomDetailRow(row))?_vm._t("detail",null,{row:row,index:index}):_vm._e()]})],2):_c('tbody',[_c('tr',{staticClass:"is-empty"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_vm._t("empty")],2)])]),_vm._v(" "),(_vm.$slots.footer !== undefined)?_c('tfoot',[_c('tr',{staticClass:"table-footer"},[(_vm.hasCustomFooterSlot())?_vm._t("footer"):_c('th',{attrs:{"colspan":_vm.columnCount}},[_vm._t("footer")],2)],2)]):_vm._e()])]),_vm._v(" "),((_vm.checkable && _vm.hasBottomLeftSlot()) ||
1819
+ (_vm.paginated && (_vm.paginationPosition === 'bottom' || _vm.paginationPosition === 'both')))?_c('div',{staticClass:"level"},[_c('div',{staticClass:"level-left"},[_vm._t("bottom-left")],2),_vm._v(" "),_c('div',{staticClass:"level-right"},[(_vm.paginated)?_c('div',{staticClass:"level-item"},[_c('b-pagination',{attrs:{"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"per-page":_vm.perPage,"simple":_vm.paginationSimple,"size":_vm.paginationSize,"current":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"change":_vm.pageChanged}})],1):_vm._e()])]):_vm._e()],1)};
1820
+ var __vue_staticRenderFns__$6 = [];
1821
+
1822
+ /* style */
1823
+ const __vue_inject_styles__$6 = undefined;
1824
+ /* scoped */
1825
+ const __vue_scope_id__$6 = undefined;
1826
+ /* module identifier */
1827
+ const __vue_module_identifier__$6 = undefined;
1828
+ /* functional template */
1829
+ const __vue_is_functional_template__$6 = false;
1830
+ /* style inject */
1831
+
1832
+ /* style inject SSR */
1833
+
1834
+
1835
+
1836
+ var Table = normalizeComponent_1(
1837
+ { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 },
1838
+ __vue_inject_styles__$6,
1839
+ __vue_script__$6,
1840
+ __vue_scope_id__$6,
1841
+ __vue_is_functional_template__$6,
1842
+ __vue_module_identifier__$6,
1843
+ undefined,
1844
+ undefined
1845
+ );
1846
+
1847
+ var use = function use(plugin) {
1848
+ if (typeof window !== 'undefined' && window.Vue) {
1849
+ window.Vue.use(plugin);
1850
+ }
1851
+ };
1852
+ var registerComponent = function registerComponent(Vue, component) {
1853
+ Vue.component(component.name, component);
1854
+ };
1855
+
1856
+ var Plugin = {
1857
+ install: function install(Vue) {
1858
+ registerComponent(Vue, Table);
1859
+ registerComponent(Vue, TableColumn);
1860
+ }
1861
+ };
1862
+ use(Plugin);
1863
+
1864
+ exports.Table = Table;
1865
+ exports.TableColumn = TableColumn;
1866
+ exports.default = Plugin;
1867
+
1868
+ Object.defineProperty(exports, '__esModule', { value: true });
1869
+
1870
+ }));