buefy 0.9.26 → 0.9.28

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 (259) hide show
  1. package/README.md +3 -1
  2. package/dist/buefy.css +15904 -0
  3. package/dist/buefy.esm.js +17883 -0
  4. package/dist/buefy.esm.min.js +2 -0
  5. package/dist/buefy.js +17967 -0
  6. package/dist/buefy.min.css +1 -0
  7. package/dist/buefy.min.js +2 -0
  8. package/dist/cjs/Autocomplete-7a39c5ce.js +673 -0
  9. package/dist/cjs/Button-01827709.js +114 -0
  10. package/dist/cjs/CheckRadioMixin-c910f2ed.js +45 -0
  11. package/dist/cjs/Checkbox-43f54cc7.js +70 -0
  12. package/dist/cjs/Datepicker-680659bc.js +1679 -0
  13. package/dist/cjs/DropdownItem-422f8c34.js +559 -0
  14. package/dist/cjs/Field-4557b10c.js +315 -0
  15. package/dist/cjs/FormElementMixin-193a88b8.js +163 -0
  16. package/dist/cjs/Icon-78961800.js +189 -0
  17. package/dist/cjs/Image-c4bcd9b3.js +299 -0
  18. package/dist/cjs/InjectedChildMixin-d6bf7f91.js +135 -0
  19. package/dist/cjs/Input-e5a72d97.js +248 -0
  20. package/dist/cjs/Loading-6f2c7075.js +150 -0
  21. package/dist/cjs/MessageMixin-8d959514.js +146 -0
  22. package/dist/cjs/Modal-4cf07210.js +278 -0
  23. package/dist/cjs/NoticeMixin-01121bd2.js +154 -0
  24. package/dist/cjs/Pagination-d6b3fb85.js +413 -0
  25. package/dist/cjs/Select-2b3879bc.js +100 -0
  26. package/dist/cjs/SlotComponent-4fb48389.js +53 -0
  27. package/dist/cjs/TabbedChildMixin-907cad32.js +222 -0
  28. package/dist/cjs/Tag-437f65fb.js +154 -0
  29. package/dist/cjs/Timepicker-498fa02b.js +67 -0
  30. package/dist/cjs/TimepickerMixin-6c1a4ab4.js +661 -0
  31. package/dist/cjs/Tooltip-c1df7ee3.js +370 -0
  32. package/dist/cjs/_rollupPluginBabelHelpers-8b2e54ad.js +365 -0
  33. package/dist/cjs/autocomplete.js +22 -0
  34. package/dist/cjs/breadcrumb.js +139 -0
  35. package/dist/cjs/button.js +20 -0
  36. package/dist/cjs/carousel.js +662 -0
  37. package/dist/cjs/checkbox.js +86 -0
  38. package/dist/cjs/clockpicker.js +461 -0
  39. package/dist/cjs/collapse.js +128 -0
  40. package/dist/cjs/colorpicker.js +23 -0
  41. package/dist/cjs/config-8cfb5a4a.js +81 -0
  42. package/dist/cjs/config.js +18 -0
  43. package/dist/cjs/datepicker.js +27 -0
  44. package/dist/cjs/datetimepicker.js +377 -0
  45. package/dist/cjs/dialog.js +308 -0
  46. package/dist/cjs/dropdown.js +23 -0
  47. package/dist/cjs/field.js +18 -0
  48. package/dist/cjs/helpers.js +375 -0
  49. package/dist/cjs/icon.js +19 -0
  50. package/dist/cjs/image.js +19 -0
  51. package/dist/cjs/index-99d1c930.js +1633 -0
  52. package/dist/cjs/index.js +216 -0
  53. package/dist/cjs/input.js +21 -0
  54. package/dist/cjs/loading.js +38 -0
  55. package/dist/cjs/menu.js +304 -0
  56. package/dist/cjs/message.js +67 -0
  57. package/dist/cjs/modal.js +59 -0
  58. package/dist/cjs/navbar.js +679 -0
  59. package/dist/cjs/notification.js +181 -0
  60. package/dist/cjs/numberinput.js +278 -0
  61. package/dist/cjs/pagination.js +22 -0
  62. package/dist/cjs/plugins-7f41b028.js +94 -0
  63. package/dist/cjs/progress.js +239 -0
  64. package/dist/cjs/radio.js +130 -0
  65. package/dist/cjs/rate.js +156 -0
  66. package/dist/cjs/select.js +21 -0
  67. package/dist/cjs/sidebar.js +303 -0
  68. package/dist/cjs/skeleton.js +111 -0
  69. package/dist/cjs/slider.js +603 -0
  70. package/dist/cjs/snackbar.js +132 -0
  71. package/dist/cjs/ssr-20dba236.js +10 -0
  72. package/dist/cjs/steps.js +278 -0
  73. package/dist/cjs/switch.js +139 -0
  74. package/dist/cjs/table.js +1695 -0
  75. package/dist/cjs/tabs.js +214 -0
  76. package/dist/cjs/tag.js +70 -0
  77. package/dist/cjs/taginput.js +331 -0
  78. package/dist/cjs/timepicker.js +28 -0
  79. package/dist/cjs/toast.js +106 -0
  80. package/dist/cjs/tooltip.js +19 -0
  81. package/dist/cjs/trapFocus-261420b0.js +49 -0
  82. package/dist/cjs/upload.js +205 -0
  83. package/dist/components/autocomplete/index.js +1620 -0
  84. package/dist/components/autocomplete/index.min.js +2 -0
  85. package/dist/components/breadcrumb/index.js +297 -0
  86. package/dist/components/breadcrumb/index.min.js +2 -0
  87. package/dist/components/button/index.js +569 -0
  88. package/dist/components/button/index.min.js +2 -0
  89. package/dist/components/carousel/index.js +1629 -0
  90. package/dist/components/carousel/index.min.js +2 -0
  91. package/dist/components/checkbox/index.js +279 -0
  92. package/dist/components/checkbox/index.min.js +2 -0
  93. package/dist/components/clockpicker/index.js +3131 -0
  94. package/dist/components/clockpicker/index.min.js +2 -0
  95. package/dist/components/collapse/index.js +217 -0
  96. package/dist/components/collapse/index.min.js +2 -0
  97. package/dist/components/colorpicker/index.js +4249 -0
  98. package/dist/components/colorpicker/index.min.js +2 -0
  99. package/dist/components/datepicker/index.js +3845 -0
  100. package/dist/components/datepicker/index.min.js +2 -0
  101. package/dist/components/datetimepicker/index.js +4902 -0
  102. package/dist/components/datetimepicker/index.min.js +2 -0
  103. package/dist/components/dialog/index.js +1168 -0
  104. package/dist/components/dialog/index.min.js +2 -0
  105. package/dist/components/dropdown/index.js +1043 -0
  106. package/dist/components/dropdown/index.min.js +2 -0
  107. package/dist/components/field/index.js +511 -0
  108. package/dist/components/field/index.min.js +2 -0
  109. package/dist/components/icon/index.js +463 -0
  110. package/dist/components/icon/index.min.js +2 -0
  111. package/dist/components/image/index.js +513 -0
  112. package/dist/components/image/index.min.js +2 -0
  113. package/dist/components/input/index.js +862 -0
  114. package/dist/components/input/index.min.js +2 -0
  115. package/dist/components/loading/index.js +366 -0
  116. package/dist/components/loading/index.min.js +2 -0
  117. package/dist/components/menu/index.js +748 -0
  118. package/dist/components/menu/index.min.js +2 -0
  119. package/dist/components/message/index.js +650 -0
  120. package/dist/components/message/index.min.js +2 -0
  121. package/dist/components/modal/index.js +624 -0
  122. package/dist/components/modal/index.min.js +2 -0
  123. package/dist/components/navbar/index.js +805 -0
  124. package/dist/components/navbar/index.min.js +2 -0
  125. package/dist/components/notification/index.js +923 -0
  126. package/dist/components/notification/index.min.js +2 -0
  127. package/dist/components/numberinput/index.js +1119 -0
  128. package/dist/components/numberinput/index.min.js +2 -0
  129. package/dist/components/pagination/index.js +868 -0
  130. package/dist/components/pagination/index.min.js +2 -0
  131. package/dist/components/progress/index.js +621 -0
  132. package/dist/components/progress/index.min.js +2 -0
  133. package/dist/components/radio/index.js +260 -0
  134. package/dist/components/radio/index.min.js +2 -0
  135. package/dist/components/rate/index.js +600 -0
  136. package/dist/components/rate/index.min.js +2 -0
  137. package/dist/components/select/index.js +715 -0
  138. package/dist/components/select/index.min.js +2 -0
  139. package/dist/components/sidebar/index.js +467 -0
  140. package/dist/components/sidebar/index.min.js +2 -0
  141. package/dist/components/skeleton/index.js +200 -0
  142. package/dist/components/skeleton/index.min.js +2 -0
  143. package/dist/components/slider/index.js +1264 -0
  144. package/dist/components/slider/index.min.js +2 -0
  145. package/dist/components/snackbar/index.js +527 -0
  146. package/dist/components/snackbar/index.min.js +2 -0
  147. package/dist/components/steps/index.js +1180 -0
  148. package/dist/components/steps/index.min.js +2 -0
  149. package/dist/components/switch/index.js +297 -0
  150. package/dist/components/switch/index.min.js +2 -0
  151. package/dist/components/table/index.js +3480 -0
  152. package/dist/components/table/index.min.js +2 -0
  153. package/dist/components/tabs/index.js +1116 -0
  154. package/dist/components/tabs/index.min.js +2 -0
  155. package/dist/components/tag/index.js +307 -0
  156. package/dist/components/tag/index.min.js +2 -0
  157. package/dist/components/taginput/index.js +2104 -0
  158. package/dist/components/taginput/index.min.js +2 -0
  159. package/dist/components/timepicker/index.js +2843 -0
  160. package/dist/components/timepicker/index.min.js +2 -0
  161. package/dist/components/toast/index.js +501 -0
  162. package/dist/components/toast/index.min.js +2 -0
  163. package/dist/components/tooltip/index.js +630 -0
  164. package/dist/components/tooltip/index.min.js +2 -0
  165. package/dist/components/upload/index.js +525 -0
  166. package/dist/components/upload/index.min.js +2 -0
  167. package/dist/esm/Autocomplete-1a6e8770.js +671 -0
  168. package/dist/esm/Button-521f6efc.js +112 -0
  169. package/dist/esm/CheckRadioMixin-e726a83c.js +43 -0
  170. package/dist/esm/Checkbox-1d02686e.js +68 -0
  171. package/dist/esm/Datepicker-0ae1e826.js +1677 -0
  172. package/dist/esm/DropdownItem-55682322.js +556 -0
  173. package/dist/esm/Field-3ceba31e.js +313 -0
  174. package/dist/esm/FormElementMixin-b223d3c7.js +161 -0
  175. package/dist/esm/Icon-60d47b31.js +187 -0
  176. package/dist/esm/Image-75808acb.js +297 -0
  177. package/dist/esm/InjectedChildMixin-b4220787.js +130 -0
  178. package/dist/esm/Input-20612b63.js +246 -0
  179. package/dist/esm/Loading-ae028ea5.js +148 -0
  180. package/dist/esm/MessageMixin-d577a9f5.js +144 -0
  181. package/dist/esm/Modal-7da7641f.js +276 -0
  182. package/dist/esm/NoticeMixin-bd6f61d9.js +152 -0
  183. package/dist/esm/Pagination-68f12c1e.js +409 -0
  184. package/dist/esm/Select-97781d4e.js +98 -0
  185. package/dist/esm/SlotComponent-8871a20f.js +51 -0
  186. package/dist/esm/TabbedChildMixin-bcb13767.js +219 -0
  187. package/dist/esm/Tag-6365aa46.js +152 -0
  188. package/dist/esm/Timepicker-38480bbc.js +65 -0
  189. package/dist/esm/TimepickerMixin-d736b0a9.js +659 -0
  190. package/dist/esm/Tooltip-d98a769c.js +368 -0
  191. package/dist/esm/_rollupPluginBabelHelpers-df313029.js +350 -0
  192. package/dist/esm/autocomplete.js +18 -0
  193. package/dist/esm/breadcrumb.js +133 -0
  194. package/dist/esm/button.js +16 -0
  195. package/dist/esm/carousel.js +655 -0
  196. package/dist/esm/checkbox.js +81 -0
  197. package/dist/esm/clockpicker.js +456 -0
  198. package/dist/esm/collapse.js +123 -0
  199. package/dist/esm/colorpicker.js +14 -0
  200. package/dist/esm/config-e7d4b9c2.js +78 -0
  201. package/dist/esm/config.js +14 -0
  202. package/dist/esm/datepicker.js +23 -0
  203. package/dist/esm/datetimepicker.js +372 -0
  204. package/dist/esm/dialog.js +302 -0
  205. package/dist/esm/dropdown.js +18 -0
  206. package/dist/esm/field.js +14 -0
  207. package/dist/esm/helpers.js +348 -0
  208. package/dist/esm/icon.js +15 -0
  209. package/dist/esm/image.js +15 -0
  210. package/dist/esm/index-903f63ea.js +1629 -0
  211. package/dist/esm/index.js +182 -0
  212. package/dist/esm/input.js +17 -0
  213. package/dist/esm/loading.js +33 -0
  214. package/dist/esm/menu.js +297 -0
  215. package/dist/esm/message.js +62 -0
  216. package/dist/esm/modal.js +54 -0
  217. package/dist/esm/navbar.js +672 -0
  218. package/dist/esm/notification.js +175 -0
  219. package/dist/esm/numberinput.js +273 -0
  220. package/dist/esm/pagination.js +17 -0
  221. package/dist/esm/plugins-218aea86.js +89 -0
  222. package/dist/esm/progress.js +233 -0
  223. package/dist/esm/radio.js +124 -0
  224. package/dist/esm/rate.js +151 -0
  225. package/dist/esm/select.js +17 -0
  226. package/dist/esm/sidebar.js +298 -0
  227. package/dist/esm/skeleton.js +106 -0
  228. package/dist/esm/slider.js +597 -0
  229. package/dist/esm/snackbar.js +126 -0
  230. package/dist/esm/ssr-b847d137.js +7 -0
  231. package/dist/esm/steps.js +272 -0
  232. package/dist/esm/switch.js +134 -0
  233. package/dist/esm/table.js +1689 -0
  234. package/dist/esm/tabs.js +208 -0
  235. package/dist/esm/tag.js +65 -0
  236. package/dist/esm/taginput.js +326 -0
  237. package/dist/esm/timepicker.js +24 -0
  238. package/dist/esm/toast.js +100 -0
  239. package/dist/esm/tooltip.js +15 -0
  240. package/dist/esm/trapFocus-f0736873.js +47 -0
  241. package/dist/esm/upload.js +200 -0
  242. package/dist/vetur/attributes.json +3238 -0
  243. package/dist/vetur/tags.json +1183 -0
  244. package/package.json +3 -3
  245. package/src/components/autocomplete/Autocomplete.spec.js +16 -0
  246. package/src/components/autocomplete/Autocomplete.vue +9 -3
  247. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +2 -0
  248. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +2 -0
  249. package/src/components/dropdown/Dropdown.vue +51 -3
  250. package/src/components/numberinput/Numberinput.vue +4 -0
  251. package/src/components/sidebar/Sidebar.vue +1 -0
  252. package/src/components/slider/Slider.vue +7 -2
  253. package/src/components/slider/SliderThumb.vue +8 -0
  254. package/src/components/table/Table.vue +4 -1
  255. package/src/components/table/TableColumn.spec.js +51 -0
  256. package/src/components/table/TableColumn.vue +8 -1
  257. package/src/components/taginput/Taginput.vue +7 -2
  258. package/src/components/tooltip/Tooltip.vue +10 -3
  259. package/src/scss/components/_dropdown.scss +4 -2
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.9.28 | 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="undefined"!=typeof globalThis?globalThis:e||self).Dropdown={})}(this,(function(e){"use strict";function t(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=o(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw r}}}}var a,l=function(e){return e?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},d=!0,c=!0;function u(e,t){return(e&t)===t}var f=["escape","outside"],h={name:"BDropdown",directives:{trapFocus:{bind:function(e,t){var i=t.value;if(void 0===i||i){var n=l(e),o=l(e,!0);n&&n.length>0&&(a=function(t){n=l(e),o=l(e,!0);var i=n[0],s=n[n.length-1];t.target===i&&t.shiftKey&&"Tab"===t.key?(t.preventDefault(),s.focus()):(t.target===s||Array.from(o).indexOf(t.target)>=0)&&!t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i.focus())},e.addEventListener("keydown",a))}},unbind:function(e){e.removeEventListener("keydown",a)}}},mixins:[function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return i={},o=this,(n=t(n="b"+e))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i;var i,n,o}};return u(i,1)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter((function(t){return t!==e}))}},u(i,3)&&(n.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,i=0;!function n(o){var s,a=r(o);try{var l=function(){var o=s.value;if(o.tag===t){var r=e.find((function(e){return e.$vnode===o}));r&&(r.index=i++)}else if(o.tag){var a=o.componentInstance?o.componentInstance.$scopedSlots.default?o.componentInstance.$scopedSlots.default():o.componentInstance.$children:o.children;Array.isArray(a)&&a.length>0&&n(a.map((function(e){return e.$vnode})))}};for(a.s();!(s=a.n()).done;)l()}catch(e){a.e(e)}finally{a.f()}return!1}(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort((function(e,t){return e.index-t.index}))}})),n}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return d}},ariaRole:{type:String,validator:function(e){return["menu","list","dialog"].indexOf(e)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return c}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:null,timeOutID2:null}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?f:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?(e=this.maxHeight,void 0===e?null:isNaN(e)?e:e+"px"):null,overflow:this.scrollable?"auto":null};var e},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(e){this.selected=e},isActive:function(e){var t=this;this.$emit("active-change",e),e||(this.timeOutID=setTimeout((function(){t.isActive||(t.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((function(){t.updateAppendToBody()}))},isHoverable:function(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll:function(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem:function(e){this.multiple?(this.selected?-1===this.selected.indexOf(e)?this.selected=[].concat(n(this.selected),[e]):this.selected=this.selected.filter((function(t){return t!==e})):this.selected=[e],this.$emit("change",this.selected)):this.selected!==e&&(this.selected=e,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t,i=r(this.$refs.dropdownMenu.querySelectorAll("*"));try{for(i.s();!(t=i.n()).done;){if(e===t.value)return!0}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==this.$refs.trigger){var n,o=r(this.$refs.trigger.querySelectorAll("*"));try{for(o.s();!(n=o.n()).done;){if(e===n.value)return!0}}catch(e){o.e(e)}finally{o.f()}}return!1},clickedOutside:function(e){if(!(this.cancelOptions.indexOf("outside")<0||this.inline)){var t="shadowRoot"in this.$root.$options?e.composedPath()[0]:e.target;this.isInWhiteList(t)||(this.isActive=!1)}},keyPress:function(e){var t=e.key;if(this.isActive&&("Escape"===t||"Esc"===t)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart:function(){this.maybeTap=!0},onTouchMove:function(){this.maybeTap=!1},onTouchEnd:function(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var t=!e.isActive;e.isActive=t,e.timeOutID2=setTimeout((function(){return e.isActive=t}))})))},updateAppendToBody:function(){var e=this.$refs.dropdown,t=this.$refs.dropdownMenu,n=this.$refs.trigger;if(t&&n){var o=this.$data._bodyEl.children[0];if(o.classList.forEach((function(e){return o.classList.remove(e)})),o.classList.add("dropdown"),o.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&o.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(e){if(e&&"object"===i(e))for(var t in e)e[t]&&o.classList.add(t)})),this.appendToBodyCopyParent){var s=this.$refs.dropdown.parentNode,r=this.$data._bodyEl;r.classList.forEach((function(e){return r.classList.remove(e)})),s.classList.forEach((function(e){r.classList.add(e)}))}var a=n.getBoundingClientRect(),l=a.top+window.scrollY,d=a.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?l+=n.clientHeight:l-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(d-=t.clientWidth-n.clientWidth),this.style={position:"absolute",top:"".concat(l,"px"),left:"".concat(d,"px"),zIndex:"99",width:this.expanded?"".concat(e.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}};function p(e,t,i,n,o,s,r,a,l,d){"boolean"!=typeof r&&(l=a,a=r,r=!1);const c="function"==typeof i?i.options:i;let u;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):t&&(u=r?function(e){t.call(this,d(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(c.functional){const e=c.render;c.render=function(t,i){return u.call(i),e(t,i)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,u):[u]}return i}var v=p({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses,on:{mouseleave:function(t){e.isHoverable=!1}}},[e.inline?e._e():i("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{tabindex:!e.disabled&&e.triggerTabindex,"aria-haspopup":"true"},on:{click:e.onClick,contextmenu:function(t){return t.preventDefault(),e.onContextMenu(t)},mouseenter:e.onHover,"!focus":function(t){return e.onFocus(t)},touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}},[e._t("trigger",null,{active:e.isActive})],2),i("transition",{attrs:{name:e.animation}},[e.isMobileModal?i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),i("transition",{attrs:{name:e.animation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[i("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole,"aria-modal":!e.inline}},[e._t("default")],2)])])],1)},staticRenderFns:[]},undefined,h,undefined,false,undefined,!1,void 0,void 0,void 0),m={name:"BDropdownItem",mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.data=function(){return{index:null}}),i}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}};var b,y=p({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.separator?i("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?i("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):i("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},undefined,m,undefined,false,undefined,!1,void 0,void 0,void 0),g=function(e,t){e.component(t.name,t)},w={install:function(e){g(e,v),g(e,y)}};b=w,"undefined"!=typeof window&&window.Vue&&window.Vue.use(b),e.BDropdown=v,e.BDropdownItem=y,e.default=w,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,511 @@
1
+ /*! Buefy v0.9.28 | 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 = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Field = {}));
6
+ })(this, (function (exports) { 'use strict';
7
+
8
+ function _toPrimitive(t, r) {
9
+ if ("object" != typeof t || !t) return t;
10
+ var e = t[Symbol.toPrimitive];
11
+ if (void 0 !== e) {
12
+ var i = e.call(t, r || "default");
13
+ if ("object" != typeof i) return i;
14
+ throw new TypeError("@@toPrimitive must return a primitive value.");
15
+ }
16
+ return ("string" === r ? String : Number)(t);
17
+ }
18
+ function _toPropertyKey(t) {
19
+ var i = _toPrimitive(t, "string");
20
+ return "symbol" == typeof i ? i : String(i);
21
+ }
22
+ function _defineProperty(obj, key, value) {
23
+ key = _toPropertyKey(key);
24
+ if (key in obj) {
25
+ Object.defineProperty(obj, key, {
26
+ value: value,
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true
30
+ });
31
+ } else {
32
+ obj[key] = value;
33
+ }
34
+ return obj;
35
+ }
36
+
37
+ var config = {
38
+ defaultContainerElement: null,
39
+ defaultIconPack: 'mdi',
40
+ defaultIconComponent: null,
41
+ defaultIconPrev: 'chevron-left',
42
+ defaultIconNext: 'chevron-right',
43
+ defaultLocale: undefined,
44
+ defaultDialogConfirmText: null,
45
+ defaultDialogCancelText: null,
46
+ defaultSnackbarDuration: 3500,
47
+ defaultSnackbarPosition: null,
48
+ defaultToastDuration: 2000,
49
+ defaultToastPosition: null,
50
+ defaultNotificationDuration: 2000,
51
+ defaultNotificationPosition: null,
52
+ defaultTooltipType: 'is-primary',
53
+ defaultTooltipDelay: null,
54
+ defaultTooltipCloseDelay: null,
55
+ defaultSidebarDelay: null,
56
+ defaultInputAutocomplete: 'on',
57
+ defaultDateFormatter: null,
58
+ defaultDateParser: null,
59
+ defaultDateCreator: null,
60
+ defaultTimeCreator: null,
61
+ defaultDayNames: null,
62
+ defaultMonthNames: null,
63
+ defaultFirstDayOfWeek: null,
64
+ defaultUnselectableDaysOfWeek: null,
65
+ defaultTimeFormatter: null,
66
+ defaultTimeParser: null,
67
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
68
+ defaultModalScroll: null,
69
+ defaultDatepickerMobileNative: true,
70
+ defaultTimepickerMobileNative: true,
71
+ defaultTimepickerMobileModal: true,
72
+ defaultNoticeQueue: true,
73
+ defaultInputHasCounter: true,
74
+ defaultTaginputHasCounter: true,
75
+ defaultUseHtml5Validation: true,
76
+ defaultDropdownMobileModal: true,
77
+ defaultFieldLabelPosition: null,
78
+ defaultDatepickerYearsRange: [-100, 10],
79
+ defaultDatepickerNearbyMonthDays: true,
80
+ defaultDatepickerNearbySelectableMonthDays: false,
81
+ defaultDatepickerShowWeekNumber: false,
82
+ defaultDatepickerWeekNumberClickable: false,
83
+ defaultDatepickerMobileModal: true,
84
+ defaultTrapFocus: true,
85
+ defaultAutoFocus: true,
86
+ defaultButtonRounded: false,
87
+ defaultSwitchRounded: true,
88
+ defaultCarouselInterval: 3500,
89
+ defaultTabsExpanded: false,
90
+ defaultTabsAnimated: true,
91
+ defaultTabsType: null,
92
+ defaultStatusIcon: true,
93
+ defaultProgrammaticPromise: false,
94
+ defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],
95
+ defaultImageWebpFallback: null,
96
+ defaultImageLazy: true,
97
+ defaultImageResponsive: true,
98
+ defaultImageRatio: null,
99
+ defaultImageSrcsetFormatter: null,
100
+ defaultBreadcrumbTag: 'a',
101
+ defaultBreadcrumbAlign: 'is-left',
102
+ defaultBreadcrumbSeparator: '',
103
+ defaultBreadcrumbSize: 'is-medium',
104
+ customIconPacks: null
105
+ };
106
+
107
+ var script$1 = {
108
+ name: 'BFieldBody',
109
+ props: {
110
+ message: {
111
+ type: [String, Array]
112
+ },
113
+ type: {
114
+ type: [String, Object]
115
+ }
116
+ },
117
+ render: function render(createElement) {
118
+ var _this = this;
119
+ var first = true;
120
+ return createElement('div', {
121
+ attrs: {
122
+ 'class': 'field-body'
123
+ }
124
+ }, this.$slots.default.map(function (element) {
125
+ // skip returns and comments
126
+ if (!element.tag) {
127
+ return element;
128
+ }
129
+ var message;
130
+ if (first) {
131
+ message = _this.message;
132
+ first = false;
133
+ }
134
+ return createElement('b-field', {
135
+ attrs: {
136
+ type: _this.type,
137
+ message: message
138
+ }
139
+ }, [element]);
140
+ }));
141
+ }
142
+ };
143
+
144
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
145
+ if (typeof shadowMode !== 'boolean') {
146
+ createInjectorSSR = createInjector;
147
+ createInjector = shadowMode;
148
+ shadowMode = false;
149
+ }
150
+ // Vue.extend constructor export interop.
151
+ const options = typeof script === 'function' ? script.options : script;
152
+ // render functions
153
+ if (template && template.render) {
154
+ options.render = template.render;
155
+ options.staticRenderFns = template.staticRenderFns;
156
+ options._compiled = true;
157
+ // functional template
158
+ if (isFunctionalTemplate) {
159
+ options.functional = true;
160
+ }
161
+ }
162
+ // scopedId
163
+ if (scopeId) {
164
+ options._scopeId = scopeId;
165
+ }
166
+ let hook;
167
+ if (moduleIdentifier) {
168
+ // server build
169
+ hook = function (context) {
170
+ // 2.3 injection
171
+ context =
172
+ context || // cached call
173
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
174
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
175
+ // 2.2 with runInNewContext: true
176
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
177
+ context = __VUE_SSR_CONTEXT__;
178
+ }
179
+ // inject component styles
180
+ if (style) {
181
+ style.call(this, createInjectorSSR(context));
182
+ }
183
+ // register component module identifier for async chunk inference
184
+ if (context && context._registeredComponents) {
185
+ context._registeredComponents.add(moduleIdentifier);
186
+ }
187
+ };
188
+ // used by ssr in case component is cached and beforeCreate
189
+ // never gets called
190
+ options._ssrRegister = hook;
191
+ }
192
+ else if (style) {
193
+ hook = shadowMode
194
+ ? function (context) {
195
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
196
+ }
197
+ : function (context) {
198
+ style.call(this, createInjector(context));
199
+ };
200
+ }
201
+ if (hook) {
202
+ if (options.functional) {
203
+ // register for functional component in vue file
204
+ const originalRender = options.render;
205
+ options.render = function renderWithStyleInjection(h, context) {
206
+ hook.call(context);
207
+ return originalRender(h, context);
208
+ };
209
+ }
210
+ else {
211
+ // inject component registration as beforeCreate hook
212
+ const existing = options.beforeCreate;
213
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
214
+ }
215
+ }
216
+ return script;
217
+ }
218
+
219
+ /* script */
220
+ const __vue_script__$1 = script$1;
221
+
222
+ /* template */
223
+
224
+ /* style */
225
+ const __vue_inject_styles__$1 = undefined;
226
+ /* scoped */
227
+ const __vue_scope_id__$1 = undefined;
228
+ /* module identifier */
229
+ const __vue_module_identifier__$1 = undefined;
230
+ /* functional template */
231
+ const __vue_is_functional_template__$1 = undefined;
232
+ /* style inject */
233
+
234
+ /* style inject SSR */
235
+
236
+ /* style inject shadow dom */
237
+
238
+
239
+
240
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
241
+ {},
242
+ __vue_inject_styles__$1,
243
+ __vue_script__$1,
244
+ __vue_scope_id__$1,
245
+ __vue_is_functional_template__$1,
246
+ __vue_module_identifier__$1,
247
+ false,
248
+ undefined,
249
+ undefined,
250
+ undefined
251
+ );
252
+
253
+ var FieldBody = __vue_component__$1;
254
+
255
+ var script = {
256
+ name: 'BField',
257
+ components: _defineProperty({}, FieldBody.name, FieldBody),
258
+ provide: function provide() {
259
+ return {
260
+ 'BField': this
261
+ };
262
+ },
263
+ inject: {
264
+ parent: {
265
+ from: 'BField',
266
+ default: false
267
+ }
268
+ },
269
+ // Used internally only when using Field in Field
270
+ props: {
271
+ type: [String, Object],
272
+ label: String,
273
+ labelFor: String,
274
+ message: [String, Array, Object],
275
+ grouped: Boolean,
276
+ groupMultiline: Boolean,
277
+ position: String,
278
+ expanded: Boolean,
279
+ horizontal: Boolean,
280
+ addons: {
281
+ type: Boolean,
282
+ default: true
283
+ },
284
+ customClass: String,
285
+ labelPosition: {
286
+ type: String,
287
+ default: function _default() {
288
+ return config.defaultFieldLabelPosition;
289
+ }
290
+ }
291
+ },
292
+ data: function data() {
293
+ return {
294
+ newType: this.type,
295
+ newMessage: this.message,
296
+ fieldLabelSize: null,
297
+ _isField: true // Used internally by Input and Select
298
+ };
299
+ },
300
+ computed: {
301
+ rootClasses: function rootClasses() {
302
+ return [{
303
+ 'is-expanded': this.expanded,
304
+ 'is-horizontal': this.horizontal,
305
+ 'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside',
306
+ 'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border'
307
+ }, this.numberInputClasses];
308
+ },
309
+ innerFieldClasses: function innerFieldClasses() {
310
+ return [this.fieldType(), this.newPosition, {
311
+ 'is-grouped-multiline': this.groupMultiline
312
+ }];
313
+ },
314
+ hasInnerField: function hasInnerField() {
315
+ return this.grouped || this.groupMultiline || this.hasAddons();
316
+ },
317
+ /**
318
+ * Correct Bulma class for the side of the addon or group.
319
+ *
320
+ * This is not kept like the others (is-small, etc.),
321
+ * because since 'has-addons' is set automatically it
322
+ * doesn't make sense to teach users what addons are exactly.
323
+ */
324
+ newPosition: function newPosition() {
325
+ if (this.position === undefined) return;
326
+ var position = this.position.split('-');
327
+ if (position.length < 1) return;
328
+ var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';
329
+ if (this.position) return prefix + position[1];
330
+ },
331
+ /**
332
+ * Formatted message in case it's an array
333
+ * (each element is separated by <br> tag)
334
+ */
335
+ formattedMessage: function formattedMessage() {
336
+ if (this.parent && this.parent.hasInnerField) {
337
+ return ''; // Message will be displayed in parent field
338
+ }
339
+ if (typeof this.newMessage === 'string') {
340
+ return [this.newMessage];
341
+ }
342
+ var messages = [];
343
+ if (Array.isArray(this.newMessage)) {
344
+ this.newMessage.forEach(function (message) {
345
+ if (typeof message === 'string') {
346
+ messages.push(message);
347
+ } else {
348
+ for (var key in message) {
349
+ if (message[key]) {
350
+ messages.push(key);
351
+ }
352
+ }
353
+ }
354
+ });
355
+ } else {
356
+ for (var key in this.newMessage) {
357
+ if (this.newMessage[key]) {
358
+ messages.push(key);
359
+ }
360
+ }
361
+ }
362
+ return messages.filter(function (m) {
363
+ if (m) return m;
364
+ });
365
+ },
366
+ hasLabel: function hasLabel() {
367
+ return this.label || this.$slots.label;
368
+ },
369
+ hasMessage: function hasMessage() {
370
+ return (!this.parent || !this.parent.hasInnerField) && this.newMessage || this.$slots.message;
371
+ },
372
+ numberInputClasses: function numberInputClasses() {
373
+ if (this.$slots.default) {
374
+ var numberinput = this.$slots.default.filter(function (node) {
375
+ return node.tag && node.tag.toLowerCase().indexOf('numberinput') >= 0;
376
+ })[0];
377
+ if (numberinput) {
378
+ var classes = ['has-numberinput'];
379
+ var controlsPosition = numberinput.componentOptions.propsData.controlsPosition;
380
+ var size = numberinput.componentOptions.propsData.size;
381
+ if (controlsPosition) {
382
+ classes.push("has-numberinput-".concat(controlsPosition));
383
+ }
384
+ if (size) {
385
+ classes.push("has-numberinput-".concat(size));
386
+ }
387
+ return classes;
388
+ }
389
+ }
390
+ return null;
391
+ }
392
+ },
393
+ watch: {
394
+ /**
395
+ * Set internal type when prop change.
396
+ */
397
+ type: function type(value) {
398
+ this.newType = value;
399
+ },
400
+ /**
401
+ * Set internal message when prop change.
402
+ */
403
+ message: function message(value) {
404
+ this.newMessage = value;
405
+ },
406
+ /**
407
+ * Set parent message if we use Field in Field.
408
+ */
409
+ newMessage: function newMessage(value) {
410
+ if (this.parent && this.parent.hasInnerField) {
411
+ if (!this.parent.type) {
412
+ this.parent.newType = this.newType;
413
+ }
414
+ if (!this.parent.message) {
415
+ this.parent.newMessage = value;
416
+ }
417
+ }
418
+ }
419
+ },
420
+ methods: {
421
+ /**
422
+ * Field has addons if there are more than one slot
423
+ * (element / component) in the Field.
424
+ * Or is grouped when prop is set.
425
+ * Is a method to be called when component re-render.
426
+ */
427
+ fieldType: function fieldType() {
428
+ if (this.grouped) return 'is-grouped';
429
+ if (this.hasAddons()) return 'has-addons';
430
+ },
431
+ hasAddons: function hasAddons() {
432
+ var renderedNode = 0;
433
+ if (this.$slots.default) {
434
+ renderedNode = this.$slots.default.reduce(function (i, node) {
435
+ return node.tag ? i + 1 : i;
436
+ }, 0);
437
+ }
438
+ return renderedNode > 1 && this.addons && !this.horizontal;
439
+ }
440
+ },
441
+ mounted: function mounted() {
442
+ if (this.horizontal) {
443
+ // Bulma docs: .is-normal for any .input or .button
444
+ var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea, .b-slider');
445
+ if (elements.length > 0) {
446
+ this.fieldLabelSize = 'is-normal';
447
+ }
448
+ }
449
+ }
450
+ };
451
+
452
+ /* script */
453
+ const __vue_script__ = script;
454
+
455
+ /* template */
456
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.type}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message",null,{"messages":_vm.formattedMessage}):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
457
+ var __vue_staticRenderFns__ = [];
458
+
459
+ /* style */
460
+ const __vue_inject_styles__ = undefined;
461
+ /* scoped */
462
+ const __vue_scope_id__ = undefined;
463
+ /* module identifier */
464
+ const __vue_module_identifier__ = undefined;
465
+ /* functional template */
466
+ const __vue_is_functional_template__ = false;
467
+ /* style inject */
468
+
469
+ /* style inject SSR */
470
+
471
+ /* style inject shadow dom */
472
+
473
+
474
+
475
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
476
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
477
+ __vue_inject_styles__,
478
+ __vue_script__,
479
+ __vue_scope_id__,
480
+ __vue_is_functional_template__,
481
+ __vue_module_identifier__,
482
+ false,
483
+ undefined,
484
+ undefined,
485
+ undefined
486
+ );
487
+
488
+ var Field = __vue_component__;
489
+
490
+ var use = function use(plugin) {
491
+ if (typeof window !== 'undefined' && window.Vue) {
492
+ window.Vue.use(plugin);
493
+ }
494
+ };
495
+ var registerComponent = function registerComponent(Vue, component) {
496
+ Vue.component(component.name, component);
497
+ };
498
+
499
+ var Plugin = {
500
+ install: function install(Vue) {
501
+ registerComponent(Vue, Field);
502
+ }
503
+ };
504
+ use(Plugin);
505
+
506
+ exports.BField = Field;
507
+ exports["default"] = Plugin;
508
+
509
+ Object.defineProperty(exports, '__esModule', { value: true });
510
+
511
+ }));
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.9.28 | 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="undefined"!=typeof globalThis?globalThis:e||self).Field={})}(this,(function(e){"use strict";function t(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var s=null;function n(e,t,s,n,i,o,a,r,l,d){"boolean"!=typeof a&&(l=r,r=a,a=!1);const u="function"==typeof s?s.options:s;let f;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),n&&(u._scopeId=n),o?(f=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,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=f):t&&(f=a?function(e){t.call(this,d(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),f)if(u.functional){const e=u.render;u.render=function(t,s){return f.call(s),e(t,s)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,f):[f]}return s}var i,o,a,r=n({},undefined,{name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(e){var t=this,s=!0;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(n){return n.tag?(s&&(i=t.message,s=!1),e("b-field",{attrs:{type:t.type,message:i}},[n])):n;var i})))}},undefined,undefined,undefined,!1,void 0,void 0,void 0);var l,d=n({render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"field",class:e.rootClasses},[e.horizontal?s("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?s("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?s("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e.horizontal?s("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):e.hasInnerField?s("div",{staticClass:"field-body"},[s("b-field",{class:e.innerFieldClasses,attrs:{addons:!1,type:e.type}},[e._t("default")],2)],1):[e._t("default")],e.hasMessage&&!e.horizontal?s("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message",null,{messages:e.formattedMessage}):[e._l(e.formattedMessage,(function(t,n){return[e._v(" "+e._s(t)+" "),n+1<e.formattedMessage.length?s("br",{key:n}):e._e()]}))]],2):e._e()],2)},staticRenderFns:[]},undefined,{name:"BField",components:(i={},o=r.name,a=r,(o=t(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return s}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(t){if("string"==typeof t)e.push(t);else for(var s in t)t[s]&&e.push(s)}));else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter((function(e){if(e)return e}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter((function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(e){var t=["has-numberinput"],s=e.componentOptions.propsData.controlsPosition,n=e.componentOptions.propsData.size;return s&&t.push("has-numberinput-".concat(s)),n&&t.push("has-numberinput-".concat(n)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e},newMessage:function(e){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=e))}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var e=0;return this.$slots.default&&(e=this.$slots.default.reduce((function(e,t){return t.tag?e+1:e}),0)),e>1&&this.addons&&!this.horizontal}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},undefined,false,undefined,!1,void 0,void 0,void 0),u={install:function(e){!function(e,t){e.component(t.name,t)}(e,d)}};l=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l),e.BField=d,e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));