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,1459 @@
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 o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.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=295)})([(function(t,e){t.exports=function(t,e,n,i,o){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),i&&(u._scopeId=i);var c;if(o?(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(o)},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:r,exports:s,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),o=n(20),r=n(15),s=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(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),o=n(14);t.exports=n(1)?function(t,e,n){return i.f(t,e,o(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),o=n(28);t.exports=function(t){return i(o(t))}}),(function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r}));var i=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},o=function(t,e){t.component(e.name,e)},r=function(t,e,n){t.prototype[e]=n}}),(function(t,e,n){var i=n(26)("wks"),o=n(17),r=n(2).Symbol,s="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=s&&r[t]||(s?r:o)("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,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}}),(function(t,e,n){var i=n(2),o=n(3),r=n(29),s=n(9),a=n(6),u=function(t,e,n){var c,l,f,d=t&u.F,p=t&u.G,h=t&u.S,v=t&u.P,m=t&u.B,y=t&u.W,g=p?o:o[e]||(o[e]={}),w=g.prototype,b=p?i:h?i[e]:(i[e]||{}).prototype;p&&(n=e);for(c in n)(l=!d&&b&&void 0!==b[c])&&a(g,c)||(f=l?b[c]:n[c],g[c]=p&&"function"!=typeof b[c]?n[c]:m&&l?r(f,i):y&&b[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):v&&"function"==typeof f?r(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[c]=f,t&u.R&&w&&!w[c]&&s(w,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),o=(function(t){return t&&t.__esModule?t:{default:t}})(i);e.default=function(t,e,n){return e in t?(0,o.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),o=n(2).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.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),o=n(27);t.exports=Object.keys||function(t){return i(t,o)}}),(function(t,e){e.f={}.propertyIsEnumerable}),(function(t,e,n){var i=n(3),o=n(2),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[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,o){return t.call(e,n,i,o)}}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"),o=n(17);t.exports=function(t){return i[t]||(i[t]=o(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),o=n(11),r=n(48)(!1),s=n(31)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~r(c,n)||c.push(n));return c}}),(function(t,e,n){var i=n(2),o=n(3),r=n(19),s=n(40),a=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.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,o=n(6),r=n(13)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}}),(function(t,e,n){e.f=n(13)}),(function(t,e,n){var i=n(22),o=Math.min;t.exports=function(t){return t>0?o(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,o=!0;return e.checkValidity()||(n="is-danger",i=this.validationMessage||e.validationMessage,o=!1),this.isValid=o,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),o=n(41),r=n(49);t.exports=function(t){return function(e,n,s){var a,u=i(e),c=o(u.length),l=r(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)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),o=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):r(t,e)}}),(function(t,e,n){var i=n(34),o=n(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}}),(function(t,e,n){"use strict";function i(t,e){return e.split(".").reduce((function(t,e){return t[e]}),t)}function o(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 r(t){void 0!==t.remove?t.remove():void 0!==t.parentNode&&t.parentNode.removeChild(t)}e.a=i,e.b=o,n.d(e,"c",(function(){return s})),e.d=r;var s={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 s.Android()||s.BlackBerry()||s.iOS()||s.Opera()||s.Windows()}}}),(function(t,e,n){t.exports=n(9)}),(function(t,e,n){var i=n(10),o=n(55),r=n(27),s=n(31)("IE_PROTO"),a=function(){},u=function(){var t,e=n(21)("iframe"),i=r.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[r[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=i(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:o(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),o=n(10),r=n(24);t.exports=n(1)?Object.defineProperties:function(t,e){o(t);for(var n,s=r(e),a=s.length,u=0;a>u;)i.f(t,n=s[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),o=n(6),r=n(1),s=n(16),a=n(52),u=n(59).KEY,c=n(7),l=n(26),f=n(39),d=n(17),p=n(13),h=n(40),v=n(35),m=n(60),y=n(61),g=n(10),w=n(5),b=n(11),x=n(15),_=n(14),S=n(53),k=n(62),T=n(63),O=n(4),P=n(24),C=T.f,V=O.f,F=k.f,A=i.Symbol,$=i.JSON,I=$&&$.stringify,j=p("_hidden"),M=p("toPrimitive"),E={}.propertyIsEnumerable,B=l("symbol-registry"),L=l("symbols"),N=l("op-symbols"),D=Object.prototype,z="function"==typeof A,R=i.QObject,H=!R||!R.prototype||!R.prototype.findChild,q=r&&c((function(){return 7!=S(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=C(D,e);i&&delete D[e],V(t,e,n),i&&t!==D&&V(D,e,i)}:V,W=function(t){var e=L[t]=S(A.prototype);return e._k=t,e},G=z&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},K=function(t,e,n){return t===D&&K(N,e,n),g(t),e=x(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,j)&&t[j][e]&&(t[j][e]=!1),n=S(n,{enumerable:_(0,!1)})):(o(t,j)||V(t,j,_(1,{})),t[j][e]=!0),q(t,e,n)):V(t,e,n)},U=function(t,e){g(t);for(var n,i=m(e=b(e)),o=0,r=i.length;r>o;)K(t,n=i[o++],e[n]);return t},J=function(t,e){return void 0===e?S(t):U(S(t),e)},Y=function(t){var e=E.call(this,t=x(t,!0));return!(this===D&&o(L,t)&&!o(N,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,j)&&this[j][t])||e)},Q=function(t,e){if(t=b(t),e=x(e,!0),t!==D||!o(L,e)||o(N,e)){var n=C(t,e);return!n||!o(L,e)||o(t,j)&&t[j][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=F(b(t)),i=[],r=0;n.length>r;)o(L,e=n[r++])||e==j||e==u||i.push(e);return i},Z=function(t){for(var e,n=t===D,i=F(n?N:b(t)),r=[],s=0;i.length>s;)!o(L,e=i[s++])||n&&!o(D,e)||r.push(L[e]);return r};z||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(N,n),o(this,j)&&o(this[j],t)&&(this[j][t]=!1),q(this,t,_(1,n))};return r&&H&&q(D,t,{configurable:!0,set:e}),W(t)},a(A.prototype,"toString",(function(){return this._k})),T.f=Q,O.f=K,n(50).f=k.f=X,n(25).f=Y,n(33).f=Z,r&&!n(19)&&a(D,"propertyIsEnumerable",Y,!0),h.f=function(t){return W(p(t))}),s(s.G+s.W+s.F*!z,{Symbol:A});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)p(tt[et++]);for(var nt=P(p.store),it=0;nt.length>it;)v(nt[it++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return o(B,t+="")?B[t]:B[t]=A(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!z,"Object",{create:J,defineProperty:K,defineProperties:U,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),$&&s(s.S+s.F*(!z||c((function(){var t=A();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(w(e)||void 0!==t)&&!G(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),i[1]=e,I.apply($,i)}}),A.prototype[M]||n(9)(A.prototype,M,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)}),(function(t,e,n){var i=n(17)("meta"),o=n(5),r=n(6),s=n(4).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(7)((function(){return u(Object.preventExtensions({}))})),l=function(t){s(t,i,{value:{i:"O"+ ++a,w:{}}})},f=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,i)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[i].i},d=function(t,e){if(!r(t,i)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[i].w},p=function(t){return c&&h.NEED&&u(t)&&!r(t,i)&&l(t),t},h=t.exports={KEY:i,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}}),(function(t,e,n){var i=n(24),o=n(33),r=n(25);t.exports=function(t){var e=i(t),n=o.f;if(n)for(var s,a=n(t),u=r.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);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),o=n(50).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==r.call(t)?a(t):o(i(t))}}),(function(t,e,n){var i=n(25),o=n(14),r=n(11),s=n(15),a=n(6),u=n(20),c=Object.getOwnPropertyDescriptor;e.f=n(1)?c:function(t,e){if(t=r(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return o(!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),o=n(16),r=n(52),s=n(9),a=n(38),u=n(75),c=n(39),l=n(76),f=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var g,w,b,x=function(t){if(!d&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",S="values"==v,k=!1,T=t.prototype,O=T[f]||T["@@iterator"]||v&&T[v],P=O||x(v),C=v?S?x("entries"):P:void 0,V="Array"==e?T.entries||O:O;if(V&&(b=l(V.call(new t)))!==Object.prototype&&b.next&&(c(b,_,!0),i||"function"==typeof b[f]||s(b,f,p)),S&&O&&"values"!==O.name&&(k=!0,P=function(){return O.call(this)}),i&&!y||!d&&!k&&T[f]||s(T,f,P),a[e]=P,a[_]=p,v)if(g={values:S?P:x("values"),keys:m?P:x("keys"),entries:C},y)for(w in g)w in T||r(T,w,g[w]);else o(o.P+o.F*(d||k),e,g);return g}}),(function(t,e,n){var i=n(0)(n(78),n(79),null,null,null);t.exports=i.exports}),(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){n(81);for(var i=n(2),o=n(9),r=n(38),s=n(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=i[c],f=l&&l.prototype;f&&!f[s]&&o(f,s,c),r[c]=r.Array}}),(function(t,e,n){var i=n(77),o=n(13)("iterator"),r=n(38);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}}),(function(t,e,n){var i=n(22),o=n(28);t.exports=function(t){return function(e,n){var r,s,a=String(o(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):r:t?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}}}),(function(t,e,n){"use strict";var i=n(53),o=n(14),r=n(39),s={};n(9)(s,n(13)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:o(1,n)}),r(t,e+" Iterator")}}),(function(t,e,n){var i=n(6),o=n(54),r=n(31)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}}),(function(t,e,n){var i=n(30),o=n(13)("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:r?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n.n(i),r=n(23),s=n.n(r),a=n(8),u=n(45);e.default={name:"BInput",components:o()({},s.a.name,s.a),mixins:[u.a],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,hasCounter:{type:Boolean,default:function(){return a.a.defaultInputHasCounter}},customClass:{type:String,default:""}},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||a.a.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusType},iconPosition:function(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":void 0},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(t){this.newValue=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){t.$refs.input.focus()}))},onInput:function(t){var e=this;this.$nextTick((function(){t.target&&(e.computedValue=t.target.value)}))}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t._v(" "),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e(),t._v(" "),t.loading||!t.passwordReveal&&!t.statusType?t._e():n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal},attrs:{icon:t.passwordReveal?t.passwordVisibleIcon:t.statusTypeIcon,pack:t.iconPack,size:t.iconSize,type:t.passwordReveal?"is-primary":t.statusType,both:""},nativeOn:{click:function(e){t.togglePasswordVisibility(e)}}}),t._v(" "),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v("\n "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+"\n ")]):t._e()],1)},staticRenderFns:[]}}),(function(t,e,n){t.exports={default:n(84),__esModule:!0}}),(function(t,e,n){"use strict";var i=n(82),o=n(83),r=n(38),s=n(11);t.exports=n(67)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")}),(function(t,e){t.exports=function(){}}),(function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}}),(function(t,e,n){n(72),n(69),t.exports=n(85)}),(function(t,e,n){var i=n(10),o=n(73);t.exports=n(3).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}}),,,,,,,,,,,,,,,,,,,(function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(115),r=i(o),s=n(37),a=i(s),u="function"==typeof a.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===u(r.default)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":u(t)}}),(function(t,e,n){var i=n(0)(n(114),n(117),null,null,null);t.exports=i.exports}),,,,,,,,(function(t,e,n){var i=n(0)(n(125),n(126),null,null,null);t.exports=i.exports}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(104),o=n.n(i),r=n(80),s=n.n(r),a=n(18),u=n.n(a),c=n(51),l=n(45),f=n(68),d=n.n(f);e.default={name:"BAutocomplete",components:u()({},d.a.name,d.a),mixins:[l.a],inheritAttrs:!1,props:{value:[Number,String],data:{type:Array,default:function(){return[]}},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:Function},data:function(){return{selected:null,hovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,_isAutocomplete:!0,_elementRef:"input"}},computed:{whiteList:function(){var t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),void 0!==this.$refs.dropdown){var e=this.$refs.dropdown.querySelectorAll("*"),n=!0,i=!1,o=void 0;try{for(var r,a=s()(e);!(n=(r=a.next()).done);n=!0){var u=r.value;t.push(u)}}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}}return t},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer}},watch:{isActive:function(t){var e=this;t?this.calcDropdownInViewportVertical():(this.$nextTick((function(){return e.setHovered(null)})),setTimeout((function(){e.calcDropdownInViewportVertical()}),100))},newValue:function(t){this.$emit("input",t);var e=this.getValue(this.selected);e&&e!==t&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&!t||(this.isActive=!!t)},value:function(t){this.newValue=t,!this.isValid&&this.$refs.input.checkHtml5Validity()},data:function(t){this.keepFirst&&this.selectFirstOption(t)}},methods:{setHovered:function(t){void 0!==t&&(this.hovered=t)},setSelected:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];void 0!==t&&(this.selected=t,this.$emit("select",this.selected),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected)),n&&this.$nextTick((function(){e.isActive=!1})))},selectFirstOption:function(t){var e=this;this.$nextTick((function(){t.length?(e.openOnFocus||""!==e.newValue&&e.hovered!==t[0])&&e.setHovered(t[0]):e.setHovered(null)}))},enterPressed:function(){null!==this.hovered&&this.setSelected(this.hovered)},tabPressed:function(){if(null===this.hovered)return void(this.isActive=!1);this.setSelected(this.hovered)},clickedOutside:function(t){this.whiteList.indexOf(t.target)<0&&(this.isActive=!1)},getValue:function(t){if(t)return void 0!==this.customFormatter?this.customFormatter(t):"object"===(void 0===t?"undefined":o()(t))?Object(c.a)(t,this.field):t},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var e=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n=this.data.indexOf(this.hovered)+e;n=n>this.data.length-1?this.data.length:n,n=n<0?0:n,this.setHovered(this.data[n]);var i=this.$refs.dropdown.querySelector(".dropdown-content"),o=i.querySelectorAll("a.dropdown-item:not(.is-disabled)")[n];if(!o)return;var r=i.scrollTop,s=i.scrollTop+i.clientHeight-o.clientHeight;o.offsetTop<r?i.scrollTop=o.offsetTop:o.offsetTop>=s&&(i.scrollTop=o.offsetTop-i.clientHeight+o.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(t){var e=this.getValue(this.selected);e&&e===this.newValue||this.$emit("typing",this.newValue)}},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),window.addEventListener("resize",this.calcDropdownInViewportVertical))},beforeDestroy:function(){"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),window.removeEventListener("resize",this.calcDropdownInViewportVertical))}}}),(function(t,e,n){t.exports={default:n(116),__esModule:!0}}),(function(t,e,n){n(69),n(72),t.exports=n(40).f("iterator")}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:"text",size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":t.useHtml5Validation},on:{input:t.onInput,focus:t.focused,blur:t.onBlur},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;e.preventDefault(),t.isActive=!1},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key))return null;t.tabPressed(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),t.enterPressed(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;e.preventDefault(),t.keyArrows("up")},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;e.preventDefault(),t.keyArrows("down")}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(t.data.length>0||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":!t.isListInViewportVertically}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content"},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._v(" "),t._l(t.data,(function(e,i){return n("a",{key:i,staticClass:"dropdown-item",class:{"is-hovered":e===t.hovered},on:{click:function(n){t.setSelected(e)}}},[t.hasDefaultSlot?t._t("default",null,{option:e,index:i}):n("span",[t._v("\n "+t._s(t.getValue(e,!0))+"\n ")])],2)})),t._v(" "),0===t.data.length&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t._v(" "),t.hasFooterSlot?n("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},staticRenderFns:[]}}),,,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"BTag",props:{attached:Boolean,closable:Boolean,type:String,size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0}},methods:{close:function(){this.disabled||this.$emit("close")}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.attached&&t.closable?n("div",{staticClass:"tags has-addons"},[n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2)]),t._v(" "),n("a",{staticClass:"tag is-delete",class:[t.size,{"is-rounded":t.rounded}],attrs:{role:"button",tabindex:!!t.tabstop&&0,disabled:t.disabled},on:{click:function(e){t.close()},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key))return null;e.preventDefault(),t.close()}}})]):n("span",{staticClass:"tag",class:[t.type,t.size,{"is-rounded":t.rounded}]},[n("span",{class:{"has-ellipsis":t.ellipsis}},[t._t("default")],2),t._v(" "),t.closable?n("a",{staticClass:"delete is-small",attrs:{role:"button",disabled:t.disabled,tabindex:!!t.tabstop&&0},on:{click:function(e){t.close()},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key))return null;e.preventDefault(),t.close()}}}):t._e()])},staticRenderFns:[]}}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(248),o=n.n(i),r=n(12);n.d(e,"Taginput",(function(){return o.a}));var s={install:function(t){Object(r.a)(t,o.a)}};Object(r.c)(s),e.default=s}),(function(t,e,n){var i=n(0)(n(249),n(250),null,null,null);t.exports=i.exports}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(104),r=n.n(o),s=n(18),a=n.n(s),u=n(51),c=n(113),l=n.n(c),f=n(105),d=n.n(f),p=n(45);e.default={name:"BTaginput",components:(i={},a()(i,d.a.name,d.a),a()(i,l.a.name,l.a),i),mixins:[p.a],inheritAttrs:!1,props:{value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},type:String,rounded:{type:Boolean,default:!1},attached:{type:Boolean,default:!1},maxtags:{type:[Number,String],required:!1},field:{type:String,default:"value"},autocomplete:Boolean,nativeAutocomplete:String,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},confirmKeyCodes:{type:Array,default:function(){return[13,188]}},removeOnKeys:{type:Array,default:function(){return[8]}},allowNew:Boolean,onPasteSeparators:{type:Array,default:function(){return[","]}},beforeAdding:{type:Function,default:function(){return!0}},allowDuplicates:{type:Boolean,default:!1}},data:function(){return{tags:this.value||[],newTag:"",_elementRef:"input",_isTaginput:!0}},computed:{rootClasses:function(){return{"is-expanded":this.expanded}},containerClasses:function(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength:function(){return this.newTag.trim().length},defaultSlotName:function(){return this.hasDefaultSlot?"default":"dontrender"},emptySlotName:function(){return this.hasEmptySlot?"empty":"dontrender"},headerSlotName:function(){return this.hasHeaderSlot?"header":"dontrender"},footerSlotName:function(){return this.hasHeaderSlot?"footer":"dontrender"},hasDefaultSlot:function(){return!!this.$scopedSlots.default},hasEmptySlot:function(){return!!this.$slots.empty},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},hasInput:function(){return null==this.maxtags||this.tagsLength<this.maxtags},tagsLength:function(){return this.tags.length},separatorsAsRegExp:function(){var t=this.onPasteSeparators;return t.length?new RegExp(t.map((function(t){return t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null})).join("|"),"g"):null}},watch:{value:function(t){this.tags=t},hasInput:function(){this.hasInput||this.onBlur()}},methods:{addTag:function(t){var e=t||this.newTag.trim();if(e){if(!this.autocomplete){var n=this.separatorsAsRegExp;if(n&&e.match(n))return void e.split(n).map((function(t){return t.trim()})).filter((function(t){return 0!==t.length})).map(this.addTag)}(!!this.allowDuplicates||-1===this.tags.indexOf(e))&&this.beforeAdding(e)&&(this.tags.push(e),this.$emit("input",this.tags),this.$emit("add",e))}this.newTag=""},getNormalizedTagText:function(t){return"object"===(void 0===t?"undefined":r()(t))?Object(u.a)(t,this.field):t},customOnBlur:function(t){this.autocomplete||this.addTag(),this.onBlur(t)},onSelect:function(t){var e=this;t&&(this.addTag(t),this.$nextTick((function(){e.newTag=""})))},removeTag:function(t){var e=this.tags.splice(t,1)[0];return this.$emit("input",this.tags),this.$emit("remove",e),e},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(t){-1===this.removeOnKeys.indexOf(t.keyCode)||this.newTag.length||this.removeLastTag(),this.autocomplete&&!this.allowNew||this.confirmKeyCodes.indexOf(t.keyCode)>=0&&(t.preventDefault(),this.addTag())},onTyping:function(t){this.$emit("typing",t.trim())}}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._l(t.tags,(function(e,i){return n("b-tag",{key:i,attrs:{type:t.type,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){t.removeTag(i)}}},[t._v("\n "+t._s(t.getNormalizedTagText(e))+"\n ")])})),t._v(" "),t.hasInput?n("b-autocomplete",t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"keep-first":!t.allowNew,"use-html5-validation":t.useHtml5Validation},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect},nativeOn:{keydown:function(e){t.keydown(e)}},scopedSlots:t._u([{key:t.defaultSlotName,fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}]),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1),[n("template",{slot:t.headerSlotName},[t._t("header")],2),t._v(" "),n("template",{slot:t.emptySlotName},[t._t("empty")],2),t._v(" "),n("template",{slot:t.footerSlotName},[t._t("footer")],2)],2):t._e()],2),t._v(" "),t.maxtags||t.maxlength?n("p",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v("\n "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+"\n ")]:t.maxtags?[t._v("\n "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+"\n ")]:t._e()],2):t._e()])},staticRenderFns:[]}}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){t.exports=n(247)})])}));
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.Taginput = {}));
6
+ }(this, function (exports) { 'use strict';
7
+
8
+ function _typeof(obj) {
9
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
10
+ _typeof = function (obj) {
11
+ return typeof obj;
12
+ };
13
+ } else {
14
+ _typeof = function (obj) {
15
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16
+ };
17
+ }
18
+
19
+ return _typeof(obj);
20
+ }
21
+
22
+ function _defineProperty(obj, key, value) {
23
+ if (key in obj) {
24
+ Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true
29
+ });
30
+ } else {
31
+ obj[key] = value;
32
+ }
33
+
34
+ return obj;
35
+ }
36
+
37
+ /**
38
+ * Get value of an object property/path even if it's nested
39
+ */
40
+ function getValueByPath(obj, path) {
41
+ var value = path.split('.').reduce(function (o, i) {
42
+ return o[i];
43
+ }, obj);
44
+ return value;
45
+ }
46
+
47
+ //
48
+ //
49
+ //
50
+ //
51
+ //
52
+ //
53
+ //
54
+ //
55
+ //
56
+ //
57
+ //
58
+ //
59
+ //
60
+ //
61
+ //
62
+ //
63
+ //
64
+ //
65
+ //
66
+ //
67
+ //
68
+ //
69
+ //
70
+ //
71
+ //
72
+ //
73
+ //
74
+ //
75
+ //
76
+ //
77
+ //
78
+ //
79
+ //
80
+ //
81
+ //
82
+ //
83
+ //
84
+ //
85
+ //
86
+ //
87
+ //
88
+ var script = {
89
+ name: 'BTag',
90
+ props: {
91
+ attached: Boolean,
92
+ closable: Boolean,
93
+ type: String,
94
+ size: String,
95
+ rounded: Boolean,
96
+ disabled: Boolean,
97
+ ellipsis: Boolean,
98
+ tabstop: {
99
+ type: Boolean,
100
+ default: true
101
+ },
102
+ ariaCloseLabel: String
103
+ },
104
+ methods: {
105
+ /**
106
+ * Emit close event when delete button is clicked
107
+ * or delete key is pressed.
108
+ */
109
+ close: function close() {
110
+ if (this.disabled) return;
111
+ this.$emit('close');
112
+ }
113
+ }
114
+ };
115
+
116
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
117
+ /* server only */
118
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
119
+ if (typeof shadowMode !== 'boolean') {
120
+ createInjectorSSR = createInjector;
121
+ createInjector = shadowMode;
122
+ shadowMode = false;
123
+ } // Vue.extend constructor export interop.
124
+
125
+
126
+ var options = typeof script === 'function' ? script.options : script; // render functions
127
+
128
+ if (template && template.render) {
129
+ options.render = template.render;
130
+ options.staticRenderFns = template.staticRenderFns;
131
+ options._compiled = true; // functional template
132
+
133
+ if (isFunctionalTemplate) {
134
+ options.functional = true;
135
+ }
136
+ } // scopedId
137
+
138
+
139
+ if (scopeId) {
140
+ options._scopeId = scopeId;
141
+ }
142
+
143
+ var hook;
144
+
145
+ if (moduleIdentifier) {
146
+ // server build
147
+ hook = function hook(context) {
148
+ // 2.3 injection
149
+ context = context || // cached call
150
+ this.$vnode && this.$vnode.ssrContext || // stateful
151
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
152
+ // 2.2 with runInNewContext: true
153
+
154
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
155
+ context = __VUE_SSR_CONTEXT__;
156
+ } // inject component styles
157
+
158
+
159
+ if (style) {
160
+ style.call(this, createInjectorSSR(context));
161
+ } // register component module identifier for async chunk inference
162
+
163
+
164
+ if (context && context._registeredComponents) {
165
+ context._registeredComponents.add(moduleIdentifier);
166
+ }
167
+ }; // used by ssr in case component is cached and beforeCreate
168
+ // never gets called
169
+
170
+
171
+ options._ssrRegister = hook;
172
+ } else if (style) {
173
+ hook = shadowMode ? function () {
174
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
175
+ } : function (context) {
176
+ style.call(this, createInjector(context));
177
+ };
178
+ }
179
+
180
+ if (hook) {
181
+ if (options.functional) {
182
+ // register for functional component in vue file
183
+ var originalRender = options.render;
184
+
185
+ options.render = function renderWithStyleInjection(h, context) {
186
+ hook.call(context);
187
+ return originalRender(h, context);
188
+ };
189
+ } else {
190
+ // inject component registration as beforeCreate hook
191
+ var existing = options.beforeCreate;
192
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
193
+ }
194
+ }
195
+
196
+ return script;
197
+ }
198
+
199
+ var normalizeComponent_1 = normalizeComponent;
200
+
201
+ /* script */
202
+ const __vue_script__ = script;
203
+
204
+ /* template */
205
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.attached && _vm.closable)?_c('div',{staticClass:"tags has-addons"},[_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t("default")],2)]),_vm._v(" "),_c('a',{staticClass:"tag is-delete",class:[_vm.size, { 'is-rounded': _vm.rounded }],attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"tabindex":_vm.tabstop ? 0 : false,"disabled":_vm.disabled},on:{"click":function($event){_vm.close();},"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key)){ return null; }$event.preventDefault();_vm.close();}}})]):_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t("default")],2),_vm._v(" "),(_vm.closable)?_c('a',{staticClass:"delete is-small",attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"disabled":_vm.disabled,"tabindex":_vm.tabstop ? 0 : false},on:{"click":function($event){_vm.close();},"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"delete",[8,46],$event.key)){ return null; }$event.preventDefault();_vm.close();}}}):_vm._e()])};
206
+ var __vue_staticRenderFns__ = [];
207
+
208
+ /* style */
209
+ const __vue_inject_styles__ = undefined;
210
+ /* scoped */
211
+ const __vue_scope_id__ = undefined;
212
+ /* module identifier */
213
+ const __vue_module_identifier__ = undefined;
214
+ /* functional template */
215
+ const __vue_is_functional_template__ = false;
216
+ /* style inject */
217
+
218
+ /* style inject SSR */
219
+
220
+
221
+
222
+ var Tag = normalizeComponent_1(
223
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
224
+ __vue_inject_styles__,
225
+ __vue_script__,
226
+ __vue_scope_id__,
227
+ __vue_is_functional_template__,
228
+ __vue_module_identifier__,
229
+ undefined,
230
+ undefined
231
+ );
232
+
233
+ var config = {
234
+ defaultContainerElement: null,
235
+ defaultIconPack: 'mdi',
236
+ defaultIconComponent: null,
237
+ defaultDialogConfirmText: null,
238
+ defaultDialogCancelText: null,
239
+ defaultSnackbarDuration: 3500,
240
+ defaultSnackbarPosition: null,
241
+ defaultToastDuration: 2000,
242
+ defaultToastPosition: null,
243
+ defaultNotificationDuration: 2000,
244
+ defaultNotificationPosition: null,
245
+ defaultTooltipType: 'is-primary',
246
+ defaultTooltipAnimated: false,
247
+ defaultTooltipDelay: 0,
248
+ defaultInputAutocomplete: 'on',
249
+ defaultDateFormatter: null,
250
+ defaultDateParser: null,
251
+ defaultDateCreator: null,
252
+ defaultDayNames: null,
253
+ defaultMonthNames: null,
254
+ defaultFirstDayOfWeek: null,
255
+ defaultUnselectableDaysOfWeek: null,
256
+ defaultTimeFormatter: null,
257
+ defaultTimeParser: null,
258
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
259
+ defaultModalScroll: null,
260
+ defaultDatepickerMobileNative: true,
261
+ defaultTimepickerMobileNative: true,
262
+ defaultNoticeQueue: true,
263
+ defaultInputHasCounter: true,
264
+ defaultTaginputHasCounter: true,
265
+ defaultUseHtml5Validation: true,
266
+ defaultDropdownMobileModal: true,
267
+ defaultFieldLabelPosition: null,
268
+ defaultDatepickerYearsRange: [-100, 3],
269
+ defaultDatepickerNearbyMonthDays: true,
270
+ defaultDatepickerNearbySelectableMonthDays: false,
271
+ defaultDatepickerShowWeekNumber: false
272
+ };
273
+ var config$1 = config;
274
+
275
+ var FormElementMixin = {
276
+ props: {
277
+ size: String,
278
+ expanded: Boolean,
279
+ loading: Boolean,
280
+ rounded: Boolean,
281
+ icon: String,
282
+ iconPack: String,
283
+ // Native options to use in HTML5 validation
284
+ autocomplete: String,
285
+ maxlength: [Number, String],
286
+ useHtml5Validation: {
287
+ type: Boolean,
288
+ default: function _default() {
289
+ return config$1.defaultUseHtml5Validation;
290
+ }
291
+ },
292
+ validationMessage: String
293
+ },
294
+ data: function data() {
295
+ return {
296
+ isValid: true,
297
+ isFocused: false,
298
+ newIconPack: this.iconPack || config$1.defaultIconPack
299
+ };
300
+ },
301
+ computed: {
302
+ /**
303
+ * Find parent Field, max 3 levels deep.
304
+ */
305
+ parentField: function parentField() {
306
+ var parent = this.$parent;
307
+
308
+ for (var i = 0; i < 3; i++) {
309
+ if (parent && !parent.$data._isField) {
310
+ parent = parent.$parent;
311
+ }
312
+ }
313
+
314
+ return parent;
315
+ },
316
+
317
+ /**
318
+ * Get the type prop from parent if it's a Field.
319
+ */
320
+ statusType: function statusType() {
321
+ if (!this.parentField) return;
322
+ if (!this.parentField.newType) return;
323
+
324
+ if (typeof this.parentField.newType === 'string') {
325
+ return this.parentField.newType;
326
+ } else {
327
+ for (var key in this.parentField.newType) {
328
+ if (this.parentField.newType[key]) {
329
+ return key;
330
+ }
331
+ }
332
+ }
333
+ },
334
+
335
+ /**
336
+ * Get the message prop from parent if it's a Field.
337
+ */
338
+ statusMessage: function statusMessage() {
339
+ if (!this.parentField) return;
340
+ return this.parentField.newMessage;
341
+ },
342
+
343
+ /**
344
+ * Fix icon size for inputs, large was too big
345
+ */
346
+ iconSize: function iconSize() {
347
+ switch (this.size) {
348
+ case 'is-small':
349
+ return this.size;
350
+
351
+ case 'is-medium':
352
+ return;
353
+
354
+ case 'is-large':
355
+ return this.newIconPack === 'mdi' ? 'is-medium' : '';
356
+ }
357
+ }
358
+ },
359
+ methods: {
360
+ /**
361
+ * Focus method that work dynamically depending on the component.
362
+ */
363
+ focus: function focus() {
364
+ var _this = this;
365
+
366
+ if (this.$data._elementRef === undefined) return;
367
+ this.$nextTick(function () {
368
+ var el = _this.$el.querySelector(_this.$data._elementRef);
369
+
370
+ if (el) el.focus();
371
+ });
372
+ },
373
+ onBlur: function onBlur($event) {
374
+ this.isFocused = false;
375
+ this.$emit('blur', $event);
376
+ this.checkHtml5Validity();
377
+ },
378
+ onFocus: function onFocus($event) {
379
+ this.isFocused = true;
380
+ this.$emit('focus', $event);
381
+ },
382
+
383
+ /**
384
+ * Check HTML5 validation, set isValid property.
385
+ * If validation fail, send 'is-danger' type,
386
+ * and error message to parent if it's a Field.
387
+ */
388
+ checkHtml5Validity: function checkHtml5Validity() {
389
+ var _this2 = this;
390
+
391
+ if (!this.useHtml5Validation) return;
392
+ if (this.$refs[this.$data._elementRef] === undefined) return;
393
+ var el = this.$el.querySelector(this.$data._elementRef);
394
+ var type = null;
395
+ var message = null;
396
+ var isValid = true;
397
+
398
+ if (!el.checkValidity()) {
399
+ type = 'is-danger';
400
+ message = this.validationMessage || el.validationMessage;
401
+ isValid = false;
402
+ }
403
+
404
+ this.isValid = isValid;
405
+ this.$nextTick(function () {
406
+ if (_this2.parentField) {
407
+ // Set type only if not defined
408
+ if (!_this2.parentField.type) {
409
+ _this2.parentField.newType = type;
410
+ } // Set message only if not defined
411
+
412
+
413
+ if (!_this2.parentField.message) {
414
+ _this2.parentField.newMessage = message;
415
+ }
416
+ }
417
+ });
418
+ return this.isValid;
419
+ }
420
+ }
421
+ };
422
+
423
+ //
424
+ var script$1 = {
425
+ name: 'BIcon',
426
+ props: {
427
+ type: [String, Object],
428
+ pack: String,
429
+ icon: String,
430
+ size: String,
431
+ customSize: String,
432
+ customClass: String,
433
+ both: Boolean // This is used internally to show both MDI and FA icon
434
+
435
+ },
436
+ computed: {
437
+ /**
438
+ * Internal icon name based on the pack.
439
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
440
+ * internal icons are always MDI.
441
+ */
442
+ newIcon: function newIcon() {
443
+ return this.newPack === 'mdi' ? "".concat(this.newPack, "-").concat(this.icon) : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
444
+ },
445
+ newPack: function newPack() {
446
+ return this.pack || config$1.defaultIconPack;
447
+ },
448
+ newType: function newType() {
449
+ if (!this.type) return;
450
+ var splitType = [];
451
+
452
+ if (typeof this.type === 'string') {
453
+ splitType = this.type.split('-');
454
+ } else {
455
+ for (var key in this.type) {
456
+ if (this.type[key]) {
457
+ splitType = key.split('-');
458
+ break;
459
+ }
460
+ }
461
+ }
462
+
463
+ if (splitType.length <= 1) return;
464
+ return "has-text-".concat(splitType[1]);
465
+ },
466
+ newCustomSize: function newCustomSize() {
467
+ return this.customSize || this.customSizeByPack;
468
+ },
469
+ customSizeByPack: function customSizeByPack() {
470
+ var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
471
+ var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
472
+ var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
473
+
474
+ switch (this.size) {
475
+ case 'is-small':
476
+ return;
477
+
478
+ case 'is-medium':
479
+ return mediumSize;
480
+
481
+ case 'is-large':
482
+ return largeSize;
483
+
484
+ default:
485
+ return defaultSize;
486
+ }
487
+ },
488
+ useIconComponent: function useIconComponent() {
489
+ return config$1.defaultIconComponent;
490
+ }
491
+ },
492
+ methods: {
493
+ addFAPrefix: function addFAPrefix(value) {
494
+ if (this.useIconComponent) {
495
+ return value;
496
+ }
497
+
498
+ return "fa-".concat(value);
499
+ },
500
+
501
+ /**
502
+ * Equivalent FA icon name of the MDI.
503
+ */
504
+ getEquivalentIconOf: function getEquivalentIconOf(value) {
505
+ // Only transform the class if the both prop is set to true
506
+ if (!this.both) {
507
+ return value;
508
+ }
509
+
510
+ switch (value) {
511
+ case 'check':
512
+ return 'check';
513
+
514
+ case 'information':
515
+ return 'info-circle';
516
+
517
+ case 'check-circle':
518
+ return 'check-circle';
519
+
520
+ case 'alert':
521
+ return 'exclamation-triangle';
522
+
523
+ case 'alert-circle':
524
+ return 'exclamation-circle';
525
+
526
+ case 'arrow-up':
527
+ return 'arrow-up';
528
+
529
+ case 'chevron-right':
530
+ return 'angle-right';
531
+
532
+ case 'chevron-left':
533
+ return 'angle-left';
534
+
535
+ case 'chevron-down':
536
+ return 'angle-down';
537
+
538
+ case 'eye':
539
+ return 'eye';
540
+
541
+ case 'eye-off':
542
+ return 'eye-slash';
543
+
544
+ case 'menu-down':
545
+ return 'caret-down';
546
+
547
+ case 'menu-up':
548
+ return 'caret-up';
549
+
550
+ default:
551
+ return value;
552
+ }
553
+ }
554
+ }
555
+ };
556
+
557
+ /* script */
558
+ const __vue_script__$1 = script$1;
559
+
560
+ /* template */
561
+ 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)};
562
+ var __vue_staticRenderFns__$1 = [];
563
+
564
+ /* style */
565
+ const __vue_inject_styles__$1 = undefined;
566
+ /* scoped */
567
+ const __vue_scope_id__$1 = undefined;
568
+ /* module identifier */
569
+ const __vue_module_identifier__$1 = undefined;
570
+ /* functional template */
571
+ const __vue_is_functional_template__$1 = false;
572
+ /* style inject */
573
+
574
+ /* style inject SSR */
575
+
576
+
577
+
578
+ var Icon = normalizeComponent_1(
579
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
580
+ __vue_inject_styles__$1,
581
+ __vue_script__$1,
582
+ __vue_scope_id__$1,
583
+ __vue_is_functional_template__$1,
584
+ __vue_module_identifier__$1,
585
+ undefined,
586
+ undefined
587
+ );
588
+
589
+ var script$2 = {
590
+ name: 'BInput',
591
+ components: _defineProperty({}, Icon.name, Icon),
592
+ mixins: [FormElementMixin],
593
+ inheritAttrs: false,
594
+ props: {
595
+ value: [Number, String],
596
+ type: {
597
+ type: String,
598
+ default: 'text'
599
+ },
600
+ passwordReveal: Boolean,
601
+ hasCounter: {
602
+ type: Boolean,
603
+ default: function _default() {
604
+ return config$1.defaultInputHasCounter;
605
+ }
606
+ },
607
+ customClass: {
608
+ type: String,
609
+ default: ''
610
+ }
611
+ },
612
+ data: function data() {
613
+ return {
614
+ newValue: this.value,
615
+ newType: this.type,
616
+ newAutocomplete: this.autocomplete || config$1.defaultInputAutocomplete,
617
+ isPasswordVisible: false,
618
+ _elementRef: this.type === 'textarea' ? 'textarea' : 'input'
619
+ };
620
+ },
621
+ computed: {
622
+ computedValue: {
623
+ get: function get() {
624
+ return this.newValue;
625
+ },
626
+ set: function set(value) {
627
+ this.newValue = value;
628
+ this.$emit('input', value);
629
+ !this.isValid && this.checkHtml5Validity();
630
+ }
631
+ },
632
+ rootClasses: function rootClasses() {
633
+ return [this.iconPosition, this.size, {
634
+ 'is-expanded': this.expanded,
635
+ 'is-loading': this.loading,
636
+ 'is-clearfix': !this.hasMessage
637
+ }];
638
+ },
639
+ inputClasses: function inputClasses() {
640
+ return [this.statusType, this.size, {
641
+ 'is-rounded': this.rounded
642
+ }];
643
+ },
644
+ hasIconRight: function hasIconRight() {
645
+ return this.passwordReveal || this.loading || this.statusTypeIcon;
646
+ },
647
+
648
+ /**
649
+ * Position of the icon or if it's both sides.
650
+ */
651
+ iconPosition: function iconPosition() {
652
+ if (this.icon && this.hasIconRight) {
653
+ return 'has-icons-left has-icons-right';
654
+ } else if (!this.icon && this.hasIconRight) {
655
+ return 'has-icons-right';
656
+ } else if (this.icon) {
657
+ return 'has-icons-left';
658
+ }
659
+ },
660
+
661
+ /**
662
+ * Icon name (MDI) based on the type.
663
+ */
664
+ statusTypeIcon: function statusTypeIcon() {
665
+ switch (this.statusType) {
666
+ case 'is-success':
667
+ return 'check';
668
+
669
+ case 'is-danger':
670
+ return 'alert-circle';
671
+
672
+ case 'is-info':
673
+ return 'information';
674
+
675
+ case 'is-warning':
676
+ return 'alert';
677
+ }
678
+ },
679
+
680
+ /**
681
+ * Check if have any message prop from parent if it's a Field.
682
+ */
683
+ hasMessage: function hasMessage() {
684
+ return !!this.statusMessage;
685
+ },
686
+
687
+ /**
688
+ * Current password-reveal icon name.
689
+ */
690
+ passwordVisibleIcon: function passwordVisibleIcon() {
691
+ return !this.isPasswordVisible ? 'eye' : 'eye-off';
692
+ },
693
+
694
+ /**
695
+ * Get value length
696
+ */
697
+ valueLength: function valueLength() {
698
+ if (typeof this.computedValue === 'string') {
699
+ return this.computedValue.length;
700
+ } else if (typeof this.computedValue === 'number') {
701
+ return this.computedValue.toString().length;
702
+ }
703
+
704
+ return 0;
705
+ }
706
+ },
707
+ watch: {
708
+ /**
709
+ * When v-model is changed:
710
+ * 1. Set internal value.
711
+ */
712
+ value: function value(_value) {
713
+ this.newValue = _value;
714
+ }
715
+ },
716
+ methods: {
717
+ /**
718
+ * Toggle the visibility of a password-reveal input
719
+ * by changing the type and focus the input right away.
720
+ */
721
+ togglePasswordVisibility: function togglePasswordVisibility() {
722
+ var _this = this;
723
+
724
+ this.isPasswordVisible = !this.isPasswordVisible;
725
+ this.newType = this.isPasswordVisible ? 'text' : 'password';
726
+ this.$nextTick(function () {
727
+ _this.$refs.input.focus();
728
+ });
729
+ },
730
+
731
+ /**
732
+ * Input's 'input' event listener, 'nextTick' is used to prevent event firing
733
+ * before ui update, helps when using masks (Cleavejs and potentially others).
734
+ */
735
+ onInput: function onInput(event) {
736
+ var _this2 = this;
737
+
738
+ this.$nextTick(function () {
739
+ if (event.target) {
740
+ _this2.computedValue = event.target.value;
741
+ }
742
+ });
743
+ }
744
+ }
745
+ };
746
+
747
+ /* script */
748
+ const __vue_script__$2 = script$2;
749
+
750
+ /* template */
751
+ var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:_vm.rootClasses},[(_vm.type !== 'textarea')?_c('input',_vm._b({ref:"input",staticClass:"input",class:[_vm.inputClasses, _vm.customClass],attrs:{"type":_vm.newType,"autocomplete":_vm.newAutocomplete,"maxlength":_vm.maxlength},domProps:{"value":_vm.computedValue},on:{"input":_vm.onInput,"blur":_vm.onBlur,"focus":_vm.onFocus}},'input',_vm.$attrs,false)):_c('textarea',_vm._b({ref:"textarea",staticClass:"textarea",class:[_vm.inputClasses, _vm.customClass],attrs:{"maxlength":_vm.maxlength},domProps:{"value":_vm.computedValue},on:{"input":_vm.onInput,"blur":_vm.onBlur,"focus":_vm.onFocus}},'textarea',_vm.$attrs,false)),_vm._v(" "),(_vm.icon)?_c('b-icon',{staticClass:"is-left",attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize}}):_vm._e(),_vm._v(" "),(!_vm.loading && (_vm.passwordReveal || _vm.statusTypeIcon))?_c('b-icon',{staticClass:"is-right",class:{ 'is-clickable': _vm.passwordReveal },attrs:{"icon":_vm.passwordReveal ? _vm.passwordVisibleIcon : _vm.statusTypeIcon,"pack":_vm.iconPack,"size":_vm.iconSize,"type":!_vm.passwordReveal ? _vm.statusType : 'is-primary',"both":""},nativeOn:{"click":function($event){_vm.togglePasswordVisibility($event);}}}):_vm._e(),_vm._v(" "),(_vm.maxlength && _vm.hasCounter && _vm.type !== 'number')?_c('small',{staticClass:"help counter",class:{ 'is-invisible': !_vm.isFocused }},[_vm._v("\n "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+"\n ")]):_vm._e()],1)};
752
+ var __vue_staticRenderFns__$2 = [];
753
+
754
+ /* style */
755
+ const __vue_inject_styles__$2 = undefined;
756
+ /* scoped */
757
+ const __vue_scope_id__$2 = undefined;
758
+ /* module identifier */
759
+ const __vue_module_identifier__$2 = undefined;
760
+ /* functional template */
761
+ const __vue_is_functional_template__$2 = false;
762
+ /* style inject */
763
+
764
+ /* style inject SSR */
765
+
766
+
767
+
768
+ var Input = normalizeComponent_1(
769
+ { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
770
+ __vue_inject_styles__$2,
771
+ __vue_script__$2,
772
+ __vue_scope_id__$2,
773
+ __vue_is_functional_template__$2,
774
+ __vue_module_identifier__$2,
775
+ undefined,
776
+ undefined
777
+ );
778
+
779
+ var script$3 = {
780
+ name: 'BAutocomplete',
781
+ components: _defineProperty({}, Input.name, Input),
782
+ mixins: [FormElementMixin],
783
+ inheritAttrs: false,
784
+ props: {
785
+ value: [Number, String],
786
+ data: {
787
+ type: Array,
788
+ default: function _default() {
789
+ return [];
790
+ }
791
+ },
792
+ field: {
793
+ type: String,
794
+ default: 'value'
795
+ },
796
+ keepFirst: Boolean,
797
+ clearOnSelect: Boolean,
798
+ openOnFocus: Boolean,
799
+ customFormatter: Function
800
+ },
801
+ data: function data() {
802
+ return {
803
+ selected: null,
804
+ hovered: null,
805
+ isActive: false,
806
+ newValue: this.value,
807
+ newAutocomplete: this.autocomplete || 'off',
808
+ isListInViewportVertically: true,
809
+ hasFocus: false,
810
+ _isAutocomplete: true,
811
+ _elementRef: 'input'
812
+ };
813
+ },
814
+ computed: {
815
+ /**
816
+ * White-listed items to not close when clicked.
817
+ * Add input, dropdown and all children.
818
+ */
819
+ whiteList: function whiteList() {
820
+ var whiteList = [];
821
+ whiteList.push(this.$refs.input.$el.querySelector('input'));
822
+ whiteList.push(this.$refs.dropdown); // Add all chidren from dropdown
823
+
824
+ if (this.$refs.dropdown !== undefined) {
825
+ var children = this.$refs.dropdown.querySelectorAll('*');
826
+ var _iteratorNormalCompletion = true;
827
+ var _didIteratorError = false;
828
+ var _iteratorError = undefined;
829
+
830
+ try {
831
+ for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
832
+ var child = _step.value;
833
+ whiteList.push(child);
834
+ }
835
+ } catch (err) {
836
+ _didIteratorError = true;
837
+ _iteratorError = err;
838
+ } finally {
839
+ try {
840
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
841
+ _iterator.return();
842
+ }
843
+ } finally {
844
+ if (_didIteratorError) {
845
+ throw _iteratorError;
846
+ }
847
+ }
848
+ }
849
+ }
850
+
851
+ return whiteList;
852
+ },
853
+
854
+ /**
855
+ * Check if exists default slot
856
+ */
857
+ hasDefaultSlot: function hasDefaultSlot() {
858
+ return !!this.$scopedSlots.default;
859
+ },
860
+
861
+ /**
862
+ * Check if exists "empty" slot
863
+ */
864
+ hasEmptySlot: function hasEmptySlot() {
865
+ return !!this.$slots.empty;
866
+ },
867
+
868
+ /**
869
+ * Check if exists "header" slot
870
+ */
871
+ hasHeaderSlot: function hasHeaderSlot() {
872
+ return !!this.$slots.header;
873
+ },
874
+
875
+ /**
876
+ * Check if exists "footer" slot
877
+ */
878
+ hasFooterSlot: function hasFooterSlot() {
879
+ return !!this.$slots.footer;
880
+ }
881
+ },
882
+ watch: {
883
+ /**
884
+ * When dropdown is toggled, check the visibility to know when
885
+ * to open upwards.
886
+ */
887
+ isActive: function isActive(active) {
888
+ var _this = this;
889
+
890
+ if (active) {
891
+ this.calcDropdownInViewportVertical();
892
+ } else {
893
+ this.$nextTick(function () {
894
+ return _this.setHovered(null);
895
+ }); // Timeout to wait for the animation to finish before recalculating
896
+
897
+ setTimeout(function () {
898
+ _this.calcDropdownInViewportVertical();
899
+ }, 100);
900
+ }
901
+ },
902
+
903
+ /**
904
+ * When updating input's value
905
+ * 1. Emit changes
906
+ * 2. If value isn't the same as selected, set null
907
+ * 3. Close dropdown if value is clear or else open it
908
+ */
909
+ newValue: function newValue(value) {
910
+ this.$emit('input', value); // Check if selected is invalid
911
+
912
+ var currentValue = this.getValue(this.selected);
913
+
914
+ if (currentValue && currentValue !== value) {
915
+ this.setSelected(null, false);
916
+ } // Close dropdown if input is clear or else open it
917
+
918
+
919
+ if (this.hasFocus && (!this.openOnFocus || value)) {
920
+ this.isActive = !!value;
921
+ }
922
+ },
923
+
924
+ /**
925
+ * When v-model is changed:
926
+ * 1. Update internal value.
927
+ * 2. If it's invalid, validate again.
928
+ */
929
+ value: function value(_value) {
930
+ this.newValue = _value;
931
+ !this.isValid && this.$refs.input.checkHtml5Validity();
932
+ },
933
+
934
+ /**
935
+ * Select first option if "keep-first
936
+ */
937
+ data: function data(value) {
938
+ // Keep first option always pre-selected
939
+ if (this.keepFirst) {
940
+ this.selectFirstOption(value);
941
+ }
942
+ }
943
+ },
944
+ methods: {
945
+ /**
946
+ * Set which option is currently hovered.
947
+ */
948
+ setHovered: function setHovered(option) {
949
+ if (option === undefined) return;
950
+ this.hovered = option;
951
+ },
952
+
953
+ /**
954
+ * Set which option is currently selected, update v-model,
955
+ * update input value and close dropdown.
956
+ */
957
+ setSelected: function setSelected(option) {
958
+ var _this2 = this;
959
+
960
+ var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
961
+ if (option === undefined) return;
962
+ this.selected = option;
963
+ this.$emit('select', this.selected);
964
+
965
+ if (this.selected !== null) {
966
+ this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);
967
+ }
968
+
969
+ closeDropdown && this.$nextTick(function () {
970
+ _this2.isActive = false;
971
+ });
972
+ },
973
+
974
+ /**
975
+ * Select first option
976
+ */
977
+ selectFirstOption: function selectFirstOption(options) {
978
+ var _this3 = this;
979
+
980
+ this.$nextTick(function () {
981
+ if (options.length) {
982
+ // If has visible data or open on focus, keep updating the hovered
983
+ if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) {
984
+ _this3.setHovered(options[0]);
985
+ }
986
+ } else {
987
+ _this3.setHovered(null);
988
+ }
989
+ });
990
+ },
991
+
992
+ /**
993
+ * Enter key listener.
994
+ * Select the hovered option.
995
+ */
996
+ enterPressed: function enterPressed() {
997
+ if (this.hovered === null) return;
998
+ this.setSelected(this.hovered);
999
+ },
1000
+
1001
+ /**
1002
+ * Tab key listener.
1003
+ * Select hovered option if it exists, close dropdown, then allow
1004
+ * native handling to move to next tabbable element.
1005
+ */
1006
+ tabPressed: function tabPressed() {
1007
+ if (this.hovered === null) {
1008
+ this.isActive = false;
1009
+ return;
1010
+ }
1011
+
1012
+ this.setSelected(this.hovered);
1013
+ },
1014
+
1015
+ /**
1016
+ * Close dropdown if clicked outside.
1017
+ */
1018
+ clickedOutside: function clickedOutside(event) {
1019
+ if (this.whiteList.indexOf(event.target) < 0) this.isActive = false;
1020
+ },
1021
+
1022
+ /**
1023
+ * Return display text for the input.
1024
+ * If object, get value from path, or else just the value.
1025
+ */
1026
+ getValue: function getValue(option) {
1027
+ if (!option) return;
1028
+
1029
+ if (typeof this.customFormatter !== 'undefined') {
1030
+ return this.customFormatter(option);
1031
+ }
1032
+
1033
+ return _typeof(option) === 'object' ? getValueByPath(option, this.field) : option;
1034
+ },
1035
+
1036
+ /**
1037
+ * Calculate if the dropdown is vertically visible when activated,
1038
+ * otherwise it is openened upwards.
1039
+ */
1040
+ calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {
1041
+ var _this4 = this;
1042
+
1043
+ this.$nextTick(function () {
1044
+ /**
1045
+ * this.$refs.dropdown may be undefined
1046
+ * when Autocomplete is conditional rendered
1047
+ */
1048
+ if (_this4.$refs.dropdown === undefined) return;
1049
+
1050
+ var rect = _this4.$refs.dropdown.getBoundingClientRect();
1051
+
1052
+ _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
1053
+ });
1054
+ },
1055
+
1056
+ /**
1057
+ * Arrows keys listener.
1058
+ * If dropdown is active, set hovered option, or else just open.
1059
+ */
1060
+ keyArrows: function keyArrows(direction) {
1061
+ var sum = direction === 'down' ? 1 : -1;
1062
+
1063
+ if (this.isActive) {
1064
+ var index = this.data.indexOf(this.hovered) + sum;
1065
+ index = index > this.data.length - 1 ? this.data.length : index;
1066
+ index = index < 0 ? 0 : index;
1067
+ this.setHovered(this.data[index]);
1068
+ var list = this.$refs.dropdown.querySelector('.dropdown-content');
1069
+ var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];
1070
+ if (!element) return;
1071
+ var visMin = list.scrollTop;
1072
+ var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
1073
+
1074
+ if (element.offsetTop < visMin) {
1075
+ list.scrollTop = element.offsetTop;
1076
+ } else if (element.offsetTop >= visMax) {
1077
+ list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight;
1078
+ }
1079
+ } else {
1080
+ this.isActive = true;
1081
+ }
1082
+ },
1083
+
1084
+ /**
1085
+ * Focus listener.
1086
+ * If value is the same as selected, select all text.
1087
+ */
1088
+ focused: function focused(event) {
1089
+ if (this.getValue(this.selected) === this.newValue) {
1090
+ this.$el.querySelector('input').select();
1091
+ }
1092
+
1093
+ if (this.openOnFocus) {
1094
+ this.isActive = true;
1095
+
1096
+ if (this.keepFirst) {
1097
+ this.selectFirstOption(this.data);
1098
+ }
1099
+ }
1100
+
1101
+ this.hasFocus = true;
1102
+ this.$emit('focus', event);
1103
+ },
1104
+
1105
+ /**
1106
+ * Blur listener.
1107
+ */
1108
+ onBlur: function onBlur(event) {
1109
+ this.hasFocus = false;
1110
+ this.$emit('blur', event);
1111
+ },
1112
+ onInput: function onInput(event) {
1113
+ var currentValue = this.getValue(this.selected);
1114
+ if (currentValue && currentValue === this.newValue) return;
1115
+ this.$emit('typing', this.newValue);
1116
+ }
1117
+ },
1118
+ created: function created() {
1119
+ if (typeof window !== 'undefined') {
1120
+ document.addEventListener('click', this.clickedOutside);
1121
+ window.addEventListener('resize', this.calcDropdownInViewportVertical);
1122
+ }
1123
+ },
1124
+ beforeDestroy: function beforeDestroy() {
1125
+ if (typeof window !== 'undefined') {
1126
+ document.removeEventListener('click', this.clickedOutside);
1127
+ window.removeEventListener('resize', this.calcDropdownInViewportVertical);
1128
+ }
1129
+ }
1130
+ };
1131
+
1132
+ /* script */
1133
+ const __vue_script__$3 = script$3;
1134
+
1135
+ /* template */
1136
+ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{'is-expanded': _vm.expanded}},[_c('b-input',_vm._b({ref:"input",attrs:{"type":"text","size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":_vm.useHtml5Validation},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur},nativeOn:{"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"esc",27,$event.key)){ return null; }$event.preventDefault();_vm.isActive = false;},"keydown":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"tab",9,$event.key)){ return null; }_vm.tabPressed($event);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }$event.preventDefault();_vm.enterPressed($event);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"up",38,$event.key)){ return null; }$event.preventDefault();_vm.keyArrows('up');},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"down",40,$event.key)){ return null; }$event.preventDefault();_vm.keyArrows('down');}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_vm._v(" "),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': !_vm.isListInViewportVertically }},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content"},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("header")],2):_vm._e(),_vm._v(" "),_vm._l((_vm.data),function(option,index){return _c('a',{key:index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },on:{"click":function($event){_vm.setSelected(option);}}},[(_vm.hasDefaultSlot)?_vm._t("default",null,{option:option,index:index}):_c('span',[_vm._v("\n "+_vm._s(_vm.getValue(option, true))+"\n ")])],2)}),_vm._v(" "),(_vm.data.length === 0 && _vm.hasEmptySlot)?_c('div',{staticClass:"dropdown-item is-disabled"},[_vm._t("empty")],2):_vm._e(),_vm._v(" "),(_vm.hasFooterSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("footer")],2):_vm._e()],2)])])],1)};
1137
+ var __vue_staticRenderFns__$3 = [];
1138
+
1139
+ /* style */
1140
+ const __vue_inject_styles__$3 = undefined;
1141
+ /* scoped */
1142
+ const __vue_scope_id__$3 = undefined;
1143
+ /* module identifier */
1144
+ const __vue_module_identifier__$3 = undefined;
1145
+ /* functional template */
1146
+ const __vue_is_functional_template__$3 = false;
1147
+ /* style inject */
1148
+
1149
+ /* style inject SSR */
1150
+
1151
+
1152
+
1153
+ var Autocomplete = normalizeComponent_1(
1154
+ { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },
1155
+ __vue_inject_styles__$3,
1156
+ __vue_script__$3,
1157
+ __vue_scope_id__$3,
1158
+ __vue_is_functional_template__$3,
1159
+ __vue_module_identifier__$3,
1160
+ undefined,
1161
+ undefined
1162
+ );
1163
+
1164
+ var _components;
1165
+ var script$4 = {
1166
+ name: 'BTaginput',
1167
+ components: (_components = {}, _defineProperty(_components, Autocomplete.name, Autocomplete), _defineProperty(_components, Tag.name, Tag), _components),
1168
+ mixins: [FormElementMixin],
1169
+ inheritAttrs: false,
1170
+ props: {
1171
+ value: {
1172
+ type: Array,
1173
+ default: function _default() {
1174
+ return [];
1175
+ }
1176
+ },
1177
+ data: {
1178
+ type: Array,
1179
+ default: function _default() {
1180
+ return [];
1181
+ }
1182
+ },
1183
+ type: String,
1184
+ rounded: {
1185
+ type: Boolean,
1186
+ default: false
1187
+ },
1188
+ attached: {
1189
+ type: Boolean,
1190
+ default: false
1191
+ },
1192
+ maxtags: {
1193
+ type: [Number, String],
1194
+ required: false
1195
+ },
1196
+ hasCounter: {
1197
+ type: Boolean,
1198
+ default: function _default() {
1199
+ return config$1.defaultTaginputHasCounter;
1200
+ }
1201
+ },
1202
+ field: {
1203
+ type: String,
1204
+ default: 'value'
1205
+ },
1206
+ autocomplete: Boolean,
1207
+ nativeAutocomplete: String,
1208
+ disabled: Boolean,
1209
+ ellipsis: Boolean,
1210
+ closable: {
1211
+ type: Boolean,
1212
+ default: true
1213
+ },
1214
+ confirmKeyCodes: {
1215
+ type: Array,
1216
+ default: function _default() {
1217
+ return [13, 188];
1218
+ }
1219
+ },
1220
+ removeOnKeys: {
1221
+ type: Array,
1222
+ default: function _default() {
1223
+ return [8];
1224
+ }
1225
+ },
1226
+ allowNew: Boolean,
1227
+ onPasteSeparators: {
1228
+ type: Array,
1229
+ default: function _default() {
1230
+ return [','];
1231
+ }
1232
+ },
1233
+ beforeAdding: {
1234
+ type: Function,
1235
+ default: function _default() {
1236
+ return true;
1237
+ }
1238
+ },
1239
+ allowDuplicates: {
1240
+ type: Boolean,
1241
+ default: false
1242
+ }
1243
+ },
1244
+ data: function data() {
1245
+ return {
1246
+ tags: Array.isArray(this.value) ? this.value.slice(0) : this.value || [],
1247
+ newTag: '',
1248
+ _elementRef: 'input',
1249
+ _isTaginput: true
1250
+ };
1251
+ },
1252
+ computed: {
1253
+ rootClasses: function rootClasses() {
1254
+ return {
1255
+ 'is-expanded': this.expanded
1256
+ };
1257
+ },
1258
+ containerClasses: function containerClasses() {
1259
+ return {
1260
+ 'is-focused': this.isFocused,
1261
+ 'is-focusable': this.hasInput
1262
+ };
1263
+ },
1264
+ valueLength: function valueLength() {
1265
+ return this.newTag.trim().length;
1266
+ },
1267
+ defaultSlotName: function defaultSlotName() {
1268
+ return this.hasDefaultSlot ? 'default' : 'dontrender';
1269
+ },
1270
+ emptySlotName: function emptySlotName() {
1271
+ return this.hasEmptySlot ? 'empty' : 'dontrender';
1272
+ },
1273
+ headerSlotName: function headerSlotName() {
1274
+ return this.hasHeaderSlot ? 'header' : 'dontrender';
1275
+ },
1276
+ footerSlotName: function footerSlotName() {
1277
+ return this.hasHeaderSlot ? 'footer' : 'dontrender';
1278
+ },
1279
+ hasDefaultSlot: function hasDefaultSlot() {
1280
+ return !!this.$scopedSlots.default;
1281
+ },
1282
+ hasEmptySlot: function hasEmptySlot() {
1283
+ return !!this.$slots.empty;
1284
+ },
1285
+ hasHeaderSlot: function hasHeaderSlot() {
1286
+ return !!this.$slots.header;
1287
+ },
1288
+ hasFooterSlot: function hasFooterSlot() {
1289
+ return !!this.$slots.footer;
1290
+ },
1291
+
1292
+ /**
1293
+ * Show the input field if a maxtags hasn't been set or reached.
1294
+ */
1295
+ hasInput: function hasInput() {
1296
+ return this.maxtags == null || this.tagsLength < this.maxtags;
1297
+ },
1298
+ tagsLength: function tagsLength() {
1299
+ return this.tags.length;
1300
+ },
1301
+
1302
+ /**
1303
+ * If Taginput has onPasteSeparators prop,
1304
+ * returning new RegExp used to split pasted string.
1305
+ */
1306
+ separatorsAsRegExp: function separatorsAsRegExp() {
1307
+ var sep = this.onPasteSeparators;
1308
+ return sep.length ? new RegExp(sep.map(function (s) {
1309
+ return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null;
1310
+ }).join('|'), 'g') : null;
1311
+ }
1312
+ },
1313
+ watch: {
1314
+ /**
1315
+ * When v-model is changed set internal value.
1316
+ */
1317
+ value: function value(_value) {
1318
+ this.tags = _value;
1319
+ },
1320
+ hasInput: function hasInput() {
1321
+ if (!this.hasInput) this.onBlur();
1322
+ }
1323
+ },
1324
+ methods: {
1325
+ addTag: function addTag(tag) {
1326
+ var tagToAdd = tag || this.newTag.trim();
1327
+
1328
+ if (tagToAdd) {
1329
+ if (!this.autocomplete) {
1330
+ var reg = this.separatorsAsRegExp;
1331
+
1332
+ if (reg && tagToAdd.match(reg)) {
1333
+ tagToAdd.split(reg).map(function (t) {
1334
+ return t.trim();
1335
+ }).filter(function (t) {
1336
+ return t.length !== 0;
1337
+ }).map(this.addTag);
1338
+ return;
1339
+ }
1340
+ } // Add the tag input if it is not blank
1341
+ // or previously added (if not allowDuplicates).
1342
+
1343
+
1344
+ var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;
1345
+
1346
+ if (add && this.beforeAdding(tagToAdd)) {
1347
+ this.tags.push(tagToAdd);
1348
+ this.$emit('input', this.tags);
1349
+ this.$emit('add', tagToAdd);
1350
+ }
1351
+ }
1352
+
1353
+ this.newTag = '';
1354
+ },
1355
+ getNormalizedTagText: function getNormalizedTagText(tag) {
1356
+ if (_typeof(tag) === 'object') {
1357
+ return getValueByPath(tag, this.field);
1358
+ }
1359
+
1360
+ return tag;
1361
+ },
1362
+ customOnBlur: function customOnBlur($event) {
1363
+ // Add tag on-blur if not select only
1364
+ if (!this.autocomplete) this.addTag();
1365
+ this.onBlur($event);
1366
+ },
1367
+ onSelect: function onSelect(option) {
1368
+ var _this = this;
1369
+
1370
+ if (!option) return;
1371
+ this.addTag(option);
1372
+ this.$nextTick(function () {
1373
+ _this.newTag = '';
1374
+ });
1375
+ },
1376
+ removeTag: function removeTag(index) {
1377
+ var tag = this.tags.splice(index, 1)[0];
1378
+ this.$emit('input', this.tags);
1379
+ this.$emit('remove', tag);
1380
+ return tag;
1381
+ },
1382
+ removeLastTag: function removeLastTag() {
1383
+ if (this.tagsLength > 0) {
1384
+ this.removeTag(this.tagsLength - 1);
1385
+ }
1386
+ },
1387
+ keydown: function keydown(event) {
1388
+ if (this.removeOnKeys.indexOf(event.keyCode) !== -1 && !this.newTag.length) {
1389
+ this.removeLastTag();
1390
+ } // Stop if is to accept select only
1391
+
1392
+
1393
+ if (this.autocomplete && !this.allowNew) return;
1394
+
1395
+ if (this.confirmKeyCodes.indexOf(event.keyCode) >= 0) {
1396
+ event.preventDefault();
1397
+ this.addTag();
1398
+ }
1399
+ },
1400
+ onTyping: function onTyping($event) {
1401
+ this.$emit('typing', $event.trim());
1402
+ }
1403
+ }
1404
+ };
1405
+
1406
+ /* script */
1407
+ const __vue_script__$4 = script$4;
1408
+
1409
+ /* template */
1410
+ var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"taginput control",class:_vm.rootClasses},[_c('div',{staticClass:"taginput-container",class:[_vm.statusType, _vm.size, _vm.containerClasses],attrs:{"disabled":_vm.disabled},on:{"click":function($event){_vm.hasInput && _vm.focus($event);}}},[_vm._l((_vm.tags),function(tag,index){return _c('b-tag',{key:index,attrs:{"type":_vm.type,"size":_vm.size,"rounded":_vm.rounded,"attached":_vm.attached,"tabstop":false,"disabled":_vm.disabled,"ellipsis":_vm.ellipsis,"closable":_vm.closable,"title":_vm.ellipsis && _vm.getNormalizedTagText(tag)},on:{"close":function($event){_vm.removeTag(index);}}},[_vm._v("\n "+_vm._s(_vm.getNormalizedTagText(tag))+"\n ")])}),_vm._v(" "),(_vm.hasInput)?_c('b-autocomplete',_vm._b({ref:"autocomplete",attrs:{"data":_vm.data,"field":_vm.field,"icon":_vm.icon,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"has-counter":false,"size":_vm.size,"disabled":_vm.disabled,"loading":_vm.loading,"autocomplete":_vm.nativeAutocomplete,"keep-first":!_vm.allowNew,"use-html5-validation":_vm.useHtml5Validation},on:{"typing":_vm.onTyping,"focus":_vm.onFocus,"blur":_vm.customOnBlur,"select":_vm.onSelect},nativeOn:{"keydown":function($event){_vm.keydown($event);}},scopedSlots:_vm._u([{key:_vm.defaultSlotName,fn:function(props){return [_vm._t("default",null,{option:props.option,index:props.index})]}}]),model:{value:(_vm.newTag),callback:function ($$v) {_vm.newTag=$$v;},expression:"newTag"}},'b-autocomplete',_vm.$attrs,false),[_c('template',{slot:_vm.headerSlotName},[_vm._t("header")],2),_vm._v(" "),_c('template',{slot:_vm.emptySlotName},[_vm._t("empty")],2),_vm._v(" "),_c('template',{slot:_vm.footerSlotName},[_vm._t("footer")],2)],2):_vm._e()],2),_vm._v(" "),(_vm.hasCounter && (_vm.maxtags || _vm.maxlength))?_c('small',{staticClass:"help counter"},[(_vm.maxlength && _vm.valueLength > 0)?[_vm._v("\n "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+"\n ")]:(_vm.maxtags)?[_vm._v("\n "+_vm._s(_vm.tagsLength)+" / "+_vm._s(_vm.maxtags)+"\n ")]:_vm._e()],2):_vm._e()])};
1411
+ var __vue_staticRenderFns__$4 = [];
1412
+
1413
+ /* style */
1414
+ const __vue_inject_styles__$4 = undefined;
1415
+ /* scoped */
1416
+ const __vue_scope_id__$4 = undefined;
1417
+ /* module identifier */
1418
+ const __vue_module_identifier__$4 = undefined;
1419
+ /* functional template */
1420
+ const __vue_is_functional_template__$4 = false;
1421
+ /* style inject */
1422
+
1423
+ /* style inject SSR */
1424
+
1425
+
1426
+
1427
+ var Taginput = normalizeComponent_1(
1428
+ { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 },
1429
+ __vue_inject_styles__$4,
1430
+ __vue_script__$4,
1431
+ __vue_scope_id__$4,
1432
+ __vue_is_functional_template__$4,
1433
+ __vue_module_identifier__$4,
1434
+ undefined,
1435
+ undefined
1436
+ );
1437
+
1438
+ var use = function use(plugin) {
1439
+ if (typeof window !== 'undefined' && window.Vue) {
1440
+ window.Vue.use(plugin);
1441
+ }
1442
+ };
1443
+ var registerComponent = function registerComponent(Vue, component) {
1444
+ Vue.component(component.name, component);
1445
+ };
1446
+
1447
+ var Plugin = {
1448
+ install: function install(Vue) {
1449
+ registerComponent(Vue, Taginput);
1450
+ }
1451
+ };
1452
+ use(Plugin);
1453
+
1454
+ exports.Taginput = Taginput;
1455
+ exports.default = Plugin;
1456
+
1457
+ Object.defineProperty(exports, '__esModule', { value: true });
1458
+
1459
+ }));