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
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Input={})}(this,function(e){"use strict";var t={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var n=function(e,t,n,i,s,a,o,r,u,l){"boolean"!=typeof o&&(u=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),i&&(d._scopeId=i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var f=d.render;d.render=function(e,t){return c.call(t),f(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return n};var i,s,a,o=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?n(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):n("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{newIcon:function(){return"mdi"===this.newPack?"".concat(this.newPack,"-").concat(this.icon):this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||t.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1))return"has-text-".concat(e[1])}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var e="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),t="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),n="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return t;case"is-large":return n;default:return e}},useIconComponent:function(){return t.defaultIconComponent}},methods:{addFAPrefix:function(e){return this.useIconComponent?e:"fa-".concat(e)},getEquivalentIconOf:function(e){if(!this.both)return e;switch(e){case"check":return"check";case"information":return"info-circle";case"check-circle":return"check-circle";case"alert":return"exclamation-triangle";case"alert-circle":return"exclamation-circle";case"arrow-up":return"arrow-up";case"chevron-right":return"angle-right";case"chevron-left":return"angle-left";case"chevron-down":return"angle-down";case"eye":return"eye";case"eye-off":return"eye-slash";case"menu-down":return"caret-down";case"menu-up":return"caret-up";default:return e}}}},void 0,!1,void 0,void 0,void 0),r={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return t.defaultUseHtml5Validation}},validationMessage:String},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||t.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){if(this.parentField&&this.parentField.newType){if("string"==typeof this.parentField.newType)return this.parentField.newType;for(var e in this.parentField.newType)if(this.parentField.newType[e])return e}},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 e=this;void 0!==this.$data._elementRef&&this.$nextTick(function(){var t=e.$el.querySelector(e.$data._elementRef);t&&t.focus()})},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},checkHtml5Validity:function(){var e=this;if(this.useHtml5Validation&&void 0!==this.$refs[this.$data._elementRef]){var t=this.$el.querySelector(this.$data._elementRef),n=null,i=null,s=!0;return t.checkValidity()||(n="is-danger",i=this.validationMessage||t.validationMessage,s=!1),this.isValid=s,this.$nextTick(function(){e.parentField&&(e.parentField.type||(e.parentField.newType=n),e.parentField.message||(e.parentField.newMessage=i))}),this.isValid}}}};var u,l=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:e.rootClasses},["textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):n("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e._v(" "),e.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e(),e._v(" "),e.loading||!e.passwordReveal&&!e.statusTypeIcon?e._e():n("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal},attrs:{icon:e.passwordReveal?e.passwordVisibleIcon:e.statusTypeIcon,pack:e.iconPack,size:e.iconSize,type:e.passwordReveal?"is-primary":e.statusType,both:""},nativeOn:{click:function(t){e.togglePasswordVisibility(t)}}}),e._v(" "),e.maxlength&&e.hasCounter&&"number"!==e.type?n("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v("\n "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:(i={},s=o.name,a=o,s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i),mixins:[r],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,hasCounter:{type:Boolean,default:function(){return t.defaultInputHasCounter}},customClass:{type:String,default:""}},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||t.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e),!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.statusTypeIcon},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(e){this.newValue=e}},methods:{togglePasswordVisibility:function(){var e=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){e.$refs.input.focus()})},onInput:function(e){var t=this;this.$nextTick(function(){e.target&&(t.computedValue=e.target.value)})}}},void 0,!1,void 0,void 0,void 0),c={install:function(e){!function(e,t){e.component(t.name,t)}(e,l)}};u=c,"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),e.Input=l,e.default=c,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -1,2 +1,282 @@
1
- /*! Buefy v0.7.9 | MIT License | github.com/buefy/buefy */
2
- !(function(n,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var e=t("object"==typeof exports?require("vue"):n.Vue);for(var r in e)("object"==typeof exports?exports:n)[r]=e[r]}})("undefined"!=typeof self?self:this,(function(n){return (function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="/",t(t.s=280)})({0:function(n,t){n.exports=function(n,t,e,r,o){var i,u=n=n||{},c=typeof n.default;"object"!==c&&"function"!==c||(i=n,u=n.default);var f="function"==typeof u?u.options:u;t&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns),r&&(f._scopeId=r);var a;if(o?(a=function(n){n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,n||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),e&&e.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(o)},f._ssrRegister=a):e&&(a=e),a){var s=f.functional,p=s?f.render:f.beforeCreate;s?f.render=function(n,t){return a.call(t),p(n,t)}:f.beforeCreate=p?[].concat(p,a):[a]}return{esModule:i,exports:u,options:f}}},1:function(n,t,e){n.exports=!e(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(n,t,e){var r=e(5);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},109:function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"a",(function(){return i}));var r="undefined"==typeof window,o=r?Object:window.HTMLElement,i=r?Object:window.File},11:function(n,t,e){var r=e(36),o=e(28);n.exports=function(n){return r(o(n))}},12:function(n,t,e){"use strict";e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return o})),e.d(t,"b",(function(){return i}));var r=function(n){"undefined"!=typeof window&&window.Vue&&window.Vue.use(n)},o=function(n,t){n.component(t.name,t)},i=function(n,t,e){n.prototype[t]=e}},14:function(n,t){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},15:function(n,t,e){var r=e(5);n.exports=function(n,t){if(!r(n))return n;var e,o;if(t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;if("function"==typeof(e=n.valueOf)&&!r(o=e.call(n)))return o;if(!t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},16:function(n,t,e){var r=e(2),o=e(3),i=e(29),u=e(9),c=e(6),f=function(n,t,e){var a,s,p,d=n&f.F,l=n&f.G,v=n&f.S,y=n&f.P,h=n&f.B,w=n&f.W,m=l?o:o[t]||(o[t]={}),b=m.prototype,g=l?r:v?r[t]:(r[t]||{}).prototype;l&&(e=t);for(a in e)(s=!d&&g&&void 0!==g[a])&&c(m,a)||(p=s?g[a]:e[a],m[a]=l&&"function"!=typeof g[a]?e[a]:h&&s?i(p,r):w&&g[a]==p?(function(n){var t=function(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)};return t.prototype=n.prototype,t})(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((m.virtual||(m.virtual={}))[a]=p,n&f.R&&b&&!b[a]&&u(b,a,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},168:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"LoadingProgrammatic",(function(){return s}));var r=e(70),o=e.n(r),i=e(71),u=e.n(i),c=e(169),f=e.n(c),a=e(12);e.d(t,"Loading",(function(){return f.a}));var s={open:function(n){var t={programmatic:!0},e=o()(t,n);return new(("undefined"!=typeof window&&window.Vue?window.Vue:u.a).extend(f.a))({el:document.createElement("div"),propsData:e})}},p={install:function(n){Object(a.a)(n,f.a),Object(a.b)(n,"$loading",s)}};Object(a.c)(p),t.default=p},169:function(n,t,e){var r=e(0)(e(170),e(171),null,null,null);n.exports=r.exports},17:function(n,t){var e=0,r=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++e+r).toString(36))}},170:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e(51),o=e(109);t.default={name:"BLoading",props:{active:Boolean,programmatic:Boolean,container:[Object,Function,o.b],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1}},watch:{active:function(n){this.isActive=n}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var n=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){n.$destroy(),Object(r.d)(n.$el)}),150))},keyPress:function(n){27===n.keyCode&&this.cancel()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.isFullPage=!1,this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}}},171:function(n,t){n.exports={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("transition",{attrs:{name:n.animation}},[n.isActive?e("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":n.isFullPage}},[e("div",{staticClass:"loading-background",on:{click:n.cancel}}),n._v(" "),n._t("default",[e("div",{staticClass:"loading-icon"})])],2):n._e()])},staticRenderFns:[]}},19:function(n,t){n.exports=!0},2:function(n,t){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},20:function(n,t,e){n.exports=!e(1)&&!e(7)((function(){return 7!=Object.defineProperty(e(21)("div"),"a",{get:function(){return 7}}).a}))},21:function(n,t,e){var r=e(5),o=e(2).document,i=r(o)&&r(o.createElement);n.exports=function(n){return i?o.createElement(n):{}}},22:function(n,t){var e=Math.ceil,r=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?r:e)(n)}},24:function(n,t,e){var r=e(34),o=e(27);n.exports=Object.keys||function(n){return r(n,o)}},25:function(n,t){t.f={}.propertyIsEnumerable},26:function(n,t,e){var r=e(3),o=e(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(n.exports=function(n,t){return i[n]||(i[n]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},27:function(n,t){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},28:function(n,t){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},280:function(n,t,e){n.exports=e(168)},29:function(n,t,e){var r=e(32);n.exports=function(n,t,e){if(r(n),void 0===t)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,o){return n.call(t,e,r,o)}}return function(){return n.apply(t,arguments)}}},3:function(n,t){var e=n.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},30:function(n,t){var e={}.toString;n.exports=function(n){return e.call(n).slice(8,-1)}},31:function(n,t,e){var r=e(26)("keys"),o=e(17);n.exports=function(n){return r[n]||(r[n]=o(n))}},32:function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},33:function(n,t){t.f=Object.getOwnPropertySymbols},34:function(n,t,e){var r=e(6),o=e(11),i=e(48)(!1),u=e(31)("IE_PROTO");n.exports=function(n,t){var e,c=o(n),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;t.length>f;)r(c,e=t[f++])&&(~i(a,e)||a.push(e));return a}},36:function(n,t,e){var r=e(30);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},4:function(n,t,e){var r=e(10),o=e(20),i=e(15),u=Object.defineProperty;t.f=e(1)?Object.defineProperty:function(n,t,e){if(r(n),t=i(t,!0),r(e),o)try{return u(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(n[t]=e.value),n}},41:function(n,t,e){var r=e(22),o=Math.min;n.exports=function(n){return n>0?o(r(n),9007199254740991):0}},48:function(n,t,e){var r=e(11),o=e(41),i=e(49);n.exports=function(n){return function(t,e,u){var c,f=r(t),a=o(f.length),s=i(u,a);if(n&&e!=e){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((n||s in f)&&f[s]===e)return n||s||0;return!n&&-1}}},49:function(n,t,e){var r=e(22),o=Math.max,i=Math.min;n.exports=function(n,t){return n=r(n),n<0?o(n+t,0):i(n,t)}},5:function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},51:function(n,t,e){"use strict";function r(n,t){return t.split(".").reduce((function(n,t){return n[t]}),n)}function o(n,t,e){if(!n)return-1;if(!e||"function"!=typeof e)return n.indexOf(t);for(var r=0;r<n.length;r++)if(e(n[r],t))return r;return-1}function i(n){void 0!==n.remove?n.remove():void 0!==n.parentNode&&n.parentNode.removeChild(n)}t.a=r,t.b=o,e.d(t,"c",(function(){return u})),t.d=i;var u={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 u.Android()||u.BlackBerry()||u.iOS()||u.Opera()||u.Windows()}}},54:function(n,t,e){var r=e(28);n.exports=function(n){return Object(r(n))}},6:function(n,t){var e={}.hasOwnProperty;n.exports=function(n,t){return e.call(n,t)}},7:function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},70:function(n,t,e){n.exports={default:e(86),__esModule:!0}},71:function(t,e){t.exports=n},86:function(n,t,e){e(87),n.exports=e(3).Object.assign},87:function(n,t,e){var r=e(16);r(r.S+r.F,"Object",{assign:e(88)})},88:function(n,t,e){"use strict";var r=e(24),o=e(33),i=e(25),u=e(54),c=e(36),f=Object.assign;n.exports=!f||e(7)((function(){var n={},t={},e=Symbol(),r="abcdefghijklmnopqrst";return n[e]=7,r.split("").forEach((function(n){t[n]=n})),7!=f({},n)[e]||Object.keys(f({},t)).join("")!=r}))?function(n,t){for(var e=u(n),f=arguments.length,a=1,s=o.f,p=i.f;f>a;)for(var d,l=c(arguments[a++]),v=s?r(l).concat(s(l)):r(l),y=v.length,h=0;y>h;)p.call(l,d=v[h++])&&(e[d]=l[d]);return e}:f},9:function(n,t,e){var r=e(4),o=e(14);n.exports=e(1)?function(n,t,e){return r.f(n,t,o(1,e))}:function(n,t,e){return n[t]=e,n}}})}));
1
+ /*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
2
+ (function (global, factory) {
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
+ typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
5
+ (global = global || self, factory(global.Loading = {}, global.Vue));
6
+ }(this, function (exports, Vue) { 'use strict';
7
+
8
+ Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
9
+
10
+ /**
11
+ * Get value of an object property/path even if it's nested
12
+ */
13
+ function removeElement(el) {
14
+ if (typeof el.remove !== 'undefined') {
15
+ el.remove();
16
+ } else if (typeof el.parentNode !== 'undefined') {
17
+ el.parentNode.removeChild(el);
18
+ }
19
+ }
20
+
21
+ // Polyfills for SSR
22
+ var isSSR = typeof window === 'undefined';
23
+ var HTMLElement = isSSR ? Object : window.HTMLElement;
24
+ var File = isSSR ? Object : window.File;
25
+
26
+ //
27
+ var script = {
28
+ name: 'BLoading',
29
+ props: {
30
+ active: Boolean,
31
+ programmatic: Boolean,
32
+ container: [Object, Function, HTMLElement],
33
+ isFullPage: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ animation: {
38
+ type: String,
39
+ default: 'fade'
40
+ },
41
+ canCancel: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ onCancel: {
46
+ type: Function,
47
+ default: function _default() {}
48
+ }
49
+ },
50
+ data: function data() {
51
+ return {
52
+ isActive: this.active || false
53
+ };
54
+ },
55
+ watch: {
56
+ active: function active(value) {
57
+ this.isActive = value;
58
+ }
59
+ },
60
+ methods: {
61
+ /**
62
+ * Close the Modal if canCancel.
63
+ */
64
+ cancel: function cancel() {
65
+ if (!this.canCancel || !this.isActive) return;
66
+ this.close();
67
+ },
68
+
69
+ /**
70
+ * Emit events, and destroy modal if it's programmatic.
71
+ */
72
+ close: function close() {
73
+ var _this = this;
74
+
75
+ this.onCancel.apply(null, arguments);
76
+ this.$emit('close');
77
+ this.$emit('update:active', false); // Timeout for the animation complete before destroying
78
+
79
+ if (this.programmatic) {
80
+ this.isActive = false;
81
+ setTimeout(function () {
82
+ _this.$destroy();
83
+
84
+ removeElement(_this.$el);
85
+ }, 150);
86
+ }
87
+ },
88
+
89
+ /**
90
+ * Keypress event that is bound to the document.
91
+ */
92
+ keyPress: function keyPress(event) {
93
+ // Esc key
94
+ if (event.keyCode === 27) this.cancel();
95
+ }
96
+ },
97
+ created: function created() {
98
+ if (typeof window !== 'undefined') {
99
+ document.addEventListener('keyup', this.keyPress);
100
+ }
101
+ },
102
+ beforeMount: function beforeMount() {
103
+ // Insert the Loading component in body tag
104
+ // only if it's programmatic
105
+ if (this.programmatic) {
106
+ if (!this.container) {
107
+ document.body.appendChild(this.$el);
108
+ } else {
109
+ this.isFullPage = false;
110
+ this.container.appendChild(this.$el);
111
+ }
112
+ }
113
+ },
114
+ mounted: function mounted() {
115
+ if (this.programmatic) this.isActive = true;
116
+ },
117
+ beforeDestroy: function beforeDestroy() {
118
+ if (typeof window !== 'undefined') {
119
+ document.removeEventListener('keyup', this.keyPress);
120
+ }
121
+ }
122
+ };
123
+
124
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
125
+ /* server only */
126
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
127
+ if (typeof shadowMode !== 'boolean') {
128
+ createInjectorSSR = createInjector;
129
+ createInjector = shadowMode;
130
+ shadowMode = false;
131
+ } // Vue.extend constructor export interop.
132
+
133
+
134
+ var options = typeof script === 'function' ? script.options : script; // render functions
135
+
136
+ if (template && template.render) {
137
+ options.render = template.render;
138
+ options.staticRenderFns = template.staticRenderFns;
139
+ options._compiled = true; // functional template
140
+
141
+ if (isFunctionalTemplate) {
142
+ options.functional = true;
143
+ }
144
+ } // scopedId
145
+
146
+
147
+ if (scopeId) {
148
+ options._scopeId = scopeId;
149
+ }
150
+
151
+ var hook;
152
+
153
+ if (moduleIdentifier) {
154
+ // server build
155
+ hook = function hook(context) {
156
+ // 2.3 injection
157
+ context = context || // cached call
158
+ this.$vnode && this.$vnode.ssrContext || // stateful
159
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
160
+ // 2.2 with runInNewContext: true
161
+
162
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
163
+ context = __VUE_SSR_CONTEXT__;
164
+ } // inject component styles
165
+
166
+
167
+ if (style) {
168
+ style.call(this, createInjectorSSR(context));
169
+ } // register component module identifier for async chunk inference
170
+
171
+
172
+ if (context && context._registeredComponents) {
173
+ context._registeredComponents.add(moduleIdentifier);
174
+ }
175
+ }; // used by ssr in case component is cached and beforeCreate
176
+ // never gets called
177
+
178
+
179
+ options._ssrRegister = hook;
180
+ } else if (style) {
181
+ hook = shadowMode ? function () {
182
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
183
+ } : function (context) {
184
+ style.call(this, createInjector(context));
185
+ };
186
+ }
187
+
188
+ if (hook) {
189
+ if (options.functional) {
190
+ // register for functional component in vue file
191
+ var originalRender = options.render;
192
+
193
+ options.render = function renderWithStyleInjection(h, context) {
194
+ hook.call(context);
195
+ return originalRender(h, context);
196
+ };
197
+ } else {
198
+ // inject component registration as beforeCreate hook
199
+ var existing = options.beforeCreate;
200
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
201
+ }
202
+ }
203
+
204
+ return script;
205
+ }
206
+
207
+ var normalizeComponent_1 = normalizeComponent;
208
+
209
+ /* script */
210
+ const __vue_script__ = script;
211
+
212
+ /* template */
213
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{staticClass:"loading-overlay is-active",class:{ 'is-full-page': _vm.isFullPage }},[_c('div',{staticClass:"loading-background",on:{"click":_vm.cancel}}),_vm._v(" "),_vm._t("default",[_c('div',{staticClass:"loading-icon"})])],2):_vm._e()])};
214
+ var __vue_staticRenderFns__ = [];
215
+
216
+ /* style */
217
+ const __vue_inject_styles__ = undefined;
218
+ /* scoped */
219
+ const __vue_scope_id__ = undefined;
220
+ /* module identifier */
221
+ const __vue_module_identifier__ = undefined;
222
+ /* functional template */
223
+ const __vue_is_functional_template__ = false;
224
+ /* style inject */
225
+
226
+ /* style inject SSR */
227
+
228
+
229
+
230
+ var Loading = normalizeComponent_1(
231
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
232
+ __vue_inject_styles__,
233
+ __vue_script__,
234
+ __vue_scope_id__,
235
+ __vue_is_functional_template__,
236
+ __vue_module_identifier__,
237
+ undefined,
238
+ undefined
239
+ );
240
+
241
+ var use = function use(plugin) {
242
+ if (typeof window !== 'undefined' && window.Vue) {
243
+ window.Vue.use(plugin);
244
+ }
245
+ };
246
+ var registerComponent = function registerComponent(Vue, component) {
247
+ Vue.component(component.name, component);
248
+ };
249
+ var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
250
+ if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};
251
+ Vue.prototype.$buefy[property] = component;
252
+ };
253
+
254
+ var LoadingProgrammatic = {
255
+ open: function open(params) {
256
+ var defaultParam = {
257
+ programmatic: true
258
+ };
259
+ var propsData = Object.assign(defaultParam, params);
260
+ var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : Vue;
261
+ var LoadingComponent = vm.extend(Loading);
262
+ return new LoadingComponent({
263
+ el: document.createElement('div'),
264
+ propsData: propsData
265
+ });
266
+ }
267
+ };
268
+ var Plugin = {
269
+ install: function install(Vue) {
270
+ registerComponent(Vue, Loading);
271
+ registerComponentProgrammatic(Vue, 'loading', LoadingProgrammatic);
272
+ }
273
+ };
274
+ use(Plugin);
275
+
276
+ exports.Loading = Loading;
277
+ exports.LoadingProgrammatic = LoadingProgrammatic;
278
+ exports.default = Plugin;
279
+
280
+ Object.defineProperty(exports, '__esModule', { value: true });
281
+
282
+ }));
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).Loading={},e.Vue)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="undefined"==typeof window,i=n?Object:window.HTMLElement;n?Object:window.File;var o,a=function(e,t,n,i,o,a,s,d,r,c){"boolean"!=typeof s&&(r=d,d=s,s=!1);var u,l="function"==typeof n?n.options:n;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),i&&(l._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):t&&(u=s?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),u)if(l.functional){var f=l.render;l.render=function(e,t){return u.call(t),f(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:this.animation}},[this.isActive?t("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":this.isFullPage}},[t("div",{staticClass:"loading-background",on:{click:this.cancel}}),this._v(" "),this._t("default",[t("div",{staticClass:"loading-icon"})])],2):this._e()])},staticRenderFns:[]},void 0,{name:"BLoading",props:{active:Boolean,programmatic:Boolean,container:[Object,Function,i],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1}},watch:{active:function(e){this.isActive=e}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var e=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(function(){var t;e.$destroy(),void 0!==(t=e.$el).remove?t.remove():void 0!==t.parentNode&&t.parentNode.removeChild(t)},150))},keyPress:function(e){27===e.keyCode&&this.cancel()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.isFullPage=!1,this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},void 0,!1,void 0,void 0,void 0),s={open:function(e){var n=Object.assign({programmatic:!0},e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:t).extend(a))({el:document.createElement("div"),propsData:n})}},d={install:function(e){!function(e,t){e.component(t.name,t)}(e,a),function(e,t,n){e.prototype.$buefy||(e.prototype.$buefy={}),e.prototype.$buefy[t]=n}(e,"loading",s)}};o=d,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),e.Loading=a,e.LoadingProgrammatic=s,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})});