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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Carousel={})}(this,(function(t){"use strict";function e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function i(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function r(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return c(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var u={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultTimepickerMobileModal:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};var l=Math.sign||function(t){return t<0?-1:t>0?1:0};function d(t,e){return(t&e)===e}function h(t,e){return(t%e+e)%e}function f(t,e,i){return Math.max(e,Math.min(i,t))}var p=function(t){return"object"===s(t)&&!Array.isArray(t)},m=function t(e,n){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(s||!Object.assign){var a=Object.getOwnPropertyNames(n).map((function(i){return r({},i,function(t){return p(n[t])&&null!==e&&e.hasOwnProperty(t)&&p(e[t])}(i)?t(e[i],n[i],s):n[i])})).reduce((function(t,e){return i(i({},t),e)}),{});return i(i({},e),a)}return Object.assign(e,n)};var v={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},g=function(){var t=u&&u.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},y=function(){var t={mdi:v,fa:g(),fas:g(),far:g(),fad:g(),fab:g(),fal:g(),"fa-solid":g(),"fa-regular":g(),"fa-light":g(),"fa-thin":g(),"fa-duotone":g(),"fa-brands":g()};return u&&u.customIconPacks&&(t=m(t,u.customIconPacks,!0)),t};function b(t,e,i,n,s,r,a,o,c,u){"boolean"!=typeof a&&(c=o,o=a,a=!1);const l="function"==typeof i?i.options:i;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),n&&(l._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=d):e&&(d=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,o(t))}),d)if(l.functional){const t=l.render;l.render=function(e,i){return d.call(i),t(e,i)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return i}var w=b({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?i(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):i("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},staticRenderFns:[]},undefined,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){return y()[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||u.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"==typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1)){var i=a(t).slice(1);return"has-text-".concat(i.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||u.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}},undefined,false,undefined,!1,void 0,void 0,void 0),S={name:"BCarousel",components:r({},w.name,w),mixins:[function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={provide:function(){return r({},"b"+t,this)}};return d(e,1)&&(i.data=function(){return{childItems:[]}},i.methods={_registerItem:function(t){this.childItems.push(t)},_unregisterItem:function(t){this.childItems=this.childItems.filter((function(e){return e!==t}))}},d(e,3)&&(i.watch={childItems:function(t){if(t.length>0&&this.$scopedSlots.default){var e=t[0].$vnode.tag,i=0;!function n(s){var r,a=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=o(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){c=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(c)throw r}}}}(s);try{var c=function(){var s=r.value;if(s.tag===e){var a=t.find((function(t){return t.$vnode===s}));a&&(a.index=i++)}else if(s.tag){var o=s.componentInstance?s.componentInstance.$scopedSlots.default?s.componentInstance.$scopedSlots.default():s.componentInstance.$children:s.children;Array.isArray(o)&&o.length>0&&n(o.map((function(t){return t.$vnode})))}};for(a.s();!(r=a.n()).done;)c()}catch(t){a.e(t)}finally{a.f()}return!1}(this.$scopedSlots.default())}}},i.computed={sortedItems:function(){return this.childItems.slice().sort((function(t,e){return t.index-e.index}))}})),i}("carousel",3)],props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return u.defaultIconPrev}},iconNext:{type:String,default:function(){return u.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{transition:"next",activeChild:this.value||0,isPause:!1,dragX:!1,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev:function(){return this.repeat||0!==this.activeChild},hasNext:function(){return this.repeat||this.activeChild<this.childItems.length-1}},watch:{value:function(t){this.changeActive(t)},sortedItems:function(t){this.activeChild>=t.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},repeat:function(t){t&&this.startTimer()}},methods:{startTimer:function(){var t=this;this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((function(){!t.repeat&&t.activeChild>=t.childItems.length-1?t.pauseTimer():t.next()}),this.interval||u.defaultCarouselInterval))},pauseTimer:function(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=null)},restartTimer:function(){this.pauseTimer(),this.startTimer()},checkPause:function(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.activeChild===t||isNaN(t)||(e=e||t-this.activeChild,t=this.repeat?h(t,this.childItems.length):f(t,0,this.childItems.length-1),this.transition=e>0?"prev":"next",this.activeChild=t,t!==this.value&&this.$emit("input",t),this.restartTimer(),this.$emit("change",t))},modeChange:function(t,e){if(this.indicatorMode===t)return this.changeActive(e)},prev:function(){this.changeActive(this.activeChild-1,-1)},next:function(){this.changeActive(this.activeChild+1,1)},dragStart:function(t){this.hasDrag&&t.target.draggable&&(this.dragX=t.touches?t.changedTouches[0].pageX:t.pageX,t.touches?this.pauseTimer():t.preventDefault())},dragEnd:function(t){if(!1!==this.dragX){var e=(t.touches?t.changedTouches[0].pageX:t.pageX)-this.dragX;Math.abs(e)>30?e<0?this.next():this.prev():(t.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t.touches&&this.startTimer(),this.dragX=!1}}},mounted:function(){this.startTimer()},beforeDestroy:function(){this.pauseTimer()}};var C=b({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"carousel",class:{"is-overlay":t.overlay},on:{mouseenter:t.checkPause,mouseleave:t.startTimer}},[t.progress?i("progress",{staticClass:"progress",class:t.progressType,attrs:{max:t.childItems.length-1},domProps:{value:t.activeChild}},[t._v(" "+t._s(t.childItems.length-1)+" ")]):t._e(),i("div",{staticClass:"carousel-items",on:{mousedown:t.dragStart,mouseup:t.dragEnd,touchstart:function(e){return e.stopPropagation(),t.dragStart(e)},touchend:function(e){return e.stopPropagation(),t.dragEnd(e)}}},[t._t("default"),t.arrow?i("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[i("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.prev(e)}}}),i("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return t.next(e)}}})],1):t._e()],2),t.autoplay&&t.pauseHover&&t.pauseInfo&&t.isPause?i("div",{staticClass:"carousel-pause"},[i("span",{staticClass:"tag",class:t.pauseInfoType},[t._v(" "+t._s(t.pauseText)+" ")])]):t._e(),t.withCarouselList&&!t.indicator?[t._t("list",null,{active:t.activeChild,switch:t.changeActive})]:t._e(),t.indicator?i("div",{staticClass:"carousel-indicator",class:t.indicatorClasses},t._l(t.sortedItems,(function(e,n){return i("a",{key:e._uid,staticClass:"indicator-item",class:{"is-active":e.isActive},on:{mouseover:function(e){return t.modeChange("hover",n)},click:function(e){return t.modeChange("click",n)}}},[t._t("indicators",[i("span",{staticClass:"indicator-style",class:t.indicatorStyle})],{i:n})],2)})),0):t._e(),t.overlay?[t._t("overlay")]:t._e()],2)},staticRenderFns:[]},undefined,S,undefined,false,undefined,!1,void 0,void 0,void 0),I={name:"BCarouselItem",mixins:[function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={inject:{parent:{from:"b"+t,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!d(e,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+t)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return d(e,1)&&(i.data=function(){return{index:null}}),i}("carousel",1)],data:function(){return{transitionName:null}},computed:{transition:function(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive:function(){return this.parent.activeChild===this.index}}};var k=b({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:t.transition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"carousel-item"},[t._t("default")],2)])},staticRenderFns:[]},undefined,I,undefined,false,undefined,!1,void 0,void 0,void 0),x={name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:function(){return u.defaultImageWebpFallback}},lazy:{type:Boolean,default:function(){return u.defaultImageLazy}},responsive:{type:Boolean,default:function(){return u.defaultImageResponsive}},ratio:{type:String,default:function(){return u.defaultImageRatio}},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:function(t,e,i){return i.formatSrcset(t,e)}},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},data:function(){return{clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,bulmaKnownRatio:["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"],loaded:!1,failed:!1}},computed:{ratioPattern:function(){return new RegExp(/([0-9]+)by([0-9]+)/)},hasRatio:function(){return this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses:function(){var t={image:this.responsive};return this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)>=0&&(t["is-".concat(this.ratio)]=!0),t},figureStyles:function(){if(this.hasRatio&&this.bulmaKnownRatio.indexOf(this.ratio)<0){var t=this.ratioPattern.exec(this.ratio);return{paddingTop:"".concat(t[2]/t[1]*100,"%")}}},imgClasses:function(){return r({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass,!!this.customClass)},srcExt:function(){return this.getExt(this.src)},isWepb:function(){return"webp"===this.srcExt},computedSrc:function(){var t=this.src;return this.failed&&this.srcFallback&&(t=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?t.replace(/\.webp/gi,"".concat(this.webpFallback)):this.webpFallback:t},computedWidth:function(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy:function(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed:function(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt:function(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb:function(){if(this.placeholder)return"webp"===this.placeholderExt},computedPlaceholder:function(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,"".concat(this.webpFallback)):this.placeholder},isPlaceholderDisplayed:function(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset:function(){var t=this;return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,"".concat(this.webpFallback)):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((function(e){return"".concat(t.srcsetFormatter(t.computedSrc,e,t)," ").concat(e,"w")})).join(","):void 0},computedSizes:function(){if(this.computedSrcset&&this.computedWidth)return"".concat(this.computedWidth,"px")},isCaptionFirst:function(){return this.$slots.caption&&this.captionFirst},isCaptionLast:function(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt:function(t){return t?(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?t.split("?")[0]:t).split(".").pop():""},setWidth:function(){this.clientWidth=this.$el.clientWidth},formatSrcset:function(t,e){var i=this.getExt(t,!1),n=t.split(".").slice(0,-1).join(".");return"".concat(n,"-").concat(e,".").concat(i)},onLoad:function(t){this.loaded=!0,this.emit("load",t)},onError:function(t){this.emit("error",t),this.failed||(this.failed=!0)},emit:function(t,e){var i=e.target;this.$emit(t,e,i.currentSrc||i.src||this.computedSrc)}},created:function(){var t=this;if(this.isWepb&&new Promise((function(t){var e=new Image;e.onerror=function(){return t(!1)},e.onload=function(){return t(1===e.width)},e.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((function(){return!1})).then((function(e){t.webpSupportVerified=!0,t.webpSupported=e})),this.lazy){var e="undefined"!=typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,i="undefined"!=typeof window&&"IntersectionObserver"in window;!e&&i?this.observer=new IntersectionObserver((function(e){var i=e[0],n=i.target;i.isIntersecting&&!t.inViewPort&&(t.inViewPort=!0,t.observer.unobserve(n))})):this.useNativeLazy=!0}},mounted:function(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!=typeof window&&window.addEventListener("resize",this.setWidth)},beforeDestroy:function(){this.observer&&this.observer.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",this.setWidth)}};var P=b({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("figure",{staticClass:"b-image-wrapper",class:t.figureClasses,style:t.figureStyles},[t.isCaptionFirst?i("figcaption",[t._t("caption")],2):t._e(),i("transition",{attrs:{name:"fade"}},[t.isDisplayed?i("img",{class:t.imgClasses,attrs:{srcset:t.computedSrcset,src:t.computedSrc,alt:t.alt,width:t.computedWidth,sizes:t.computedSizes,loading:t.computedNativeLazy},on:{load:t.onLoad,error:t.onError}}):t._e()]),i("transition",{attrs:{name:"fade"}},[t.isPlaceholderDisplayed?t._t("placeholder",[i("img",{staticClass:"placeholder",class:t.imgClasses,attrs:{src:t.computedPlaceholder,alt:t.alt}})]):t._e()],2),t.isCaptionLast?i("figcaption",[t._t("caption")],2):t._e()],1)},staticRenderFns:[]},undefined,x,undefined,false,undefined,!1,void 0,void 0,void 0);var T,z=b({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"carousel-list",class:{"has-shadow":t.scrollIndex>0},on:{mousedown:function(e){return e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[i("div",{staticClass:"carousel-slides",class:t.listClass,style:"transform:translateX("+t.translation+"px)"},t._l(t.data,(function(e,n){return i("div",{key:n,staticClass:"carousel-slide",class:{"is-active":t.asIndicator?t.activeItem===n:t.scrollIndex===n},style:t.itemStyle,on:{mouseup:function(e){return t.checkAsIndicator(n,e)},touchend:function(e){return t.checkAsIndicator(n,e)}}},[t._t("item",[i("b-image",t._b({attrs:{src:e.image}},"b-image",e,!1))],{index:n,active:t.activeItem,scroll:t.scrollIndex,list:e},e)],2)})),0),t.arrow?i("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.settings.arrowHover}},[i("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasPrev,expression:"hasPrev"}],staticClass:"has-icons-left",attrs:{pack:t.settings.iconPack,icon:t.settings.iconPrev,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),i("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.hasNext,expression:"hasNext"}],staticClass:"has-icons-right",attrs:{pack:t.settings.iconPack,icon:t.settings.iconNext,size:t.settings.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},staticRenderFns:[]},undefined,{name:"BCarouselList",components:r(r({},w.name,w),P.name,P),props:{data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return u.defaultIconPrev}},iconNext:{type:String,default:function(){return u.defaultIconNext}},breakpoints:{type:Object,default:function(){return{}}}},data:function(){return{activeItem:this.value,scrollIndex:this.asIndicator?this.scrollValue:this.value,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging:function(){return!1!==this.dragX},listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},translation:function(){return-f(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total:function(){return this.data.length-this.settings.itemsToShow},hasPrev:function(){return this.settings.repeat||this.scrollIndex>0},hasNext:function(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys:function(){return Object.keys(this.breakpoints).sort((function(t,e){return e-t}))},settings:function(){var t=this,e=this.breakpointKeys.filter((function(e){if(t.windowWidth>=e)return!0}))[0];return e?i(i({},this.$props),this.breakpoints[e]):this.$props},itemWidth:function(){return this.windowWidth?(this.refresh_,this.$el.getBoundingClientRect().width/this.settings.itemsToShow):0}},watch:{value:function(t){this.switchTo(this.asIndicator?t-(this.itemsToShow-3)/2:t),this.activeItem!==t&&(this.activeItem=f(t,0,this.data.length-1))},scrollValue:function(t){this.switchTo(t)}},methods:{resized:function(){this.windowWidth=window.innerWidth},switchTo:function(t){t===this.scrollIndex||isNaN(t)||(this.settings.repeat&&(t=h(t,this.total+1)),t=f(t,0,this.total),this.scrollIndex=t,this.asIndicator||this.value===t?this.scrollIndex!==t&&this.$emit("updated:scroll",t):this.$emit("input",t))},next:function(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev:function(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator:function(t,e){if(this.asIndicator){var i=e.changedTouches?e.changedTouches[0].clientX:e.clientX;this.hold-Date.now()>2e3||Math.abs(this.dragX-i)>10||(this.dragX=!1,this.hold=0,e.preventDefault(),this.activeItem=t,this.$emit("switch",t))}},dragStart:function(t){this.dragging||!this.settings.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=Date.now(),this.touch=!!t.touches,this.dragX=this.touch?t.touches[0].clientX:t.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){if(this.dragging){var e=t.touches?(t.changedTouches[0]||t.touches[0]).clientX:t.clientX;this.delta=this.dragX-e,t.touches||t.preventDefault()}},dragEnd:function(){if(this.dragging||this.hold){if(this.hold){var t=l(this.delta),e=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+t*e)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh:function(){var t=this;this.$nextTick((function(){t.refresh_++}))}},mounted:function(){if("undefined"!=typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeDestroy:function(){"undefined"!=typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}},undefined,false,undefined,!1,void 0,void 0,void 0),_=function(t,e){t.component(e.name,e)},A={install:function(t){_(t,C),_(t,k),_(t,z)}};T=A,"undefined"!=typeof window&&window.Vue&&window.Vue.use(T),t.BCarousel=C,t.BCarouselItem=k,t.BCarouselList=z,t.default=A,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -0,0 +1,279 @@
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.Checkbox = {}));
6
+ })(this, (function (exports) { 'use strict';
7
+
8
+ var CheckRadioMixin = {
9
+ props: {
10
+ value: [String, Number, Boolean, Function, Object, Array],
11
+ nativeValue: [String, Number, Boolean, Function, Object, Array],
12
+ type: String,
13
+ disabled: Boolean,
14
+ required: Boolean,
15
+ name: String,
16
+ size: String
17
+ },
18
+ data: function data() {
19
+ return {
20
+ newValue: this.value
21
+ };
22
+ },
23
+ computed: {
24
+ computedValue: {
25
+ get: function get() {
26
+ return this.newValue;
27
+ },
28
+ set: function set(value) {
29
+ this.newValue = value;
30
+ this.$emit('input', value);
31
+ }
32
+ }
33
+ },
34
+ watch: {
35
+ /**
36
+ * When v-model change, set internal value.
37
+ */
38
+ value: function value(_value) {
39
+ this.newValue = _value;
40
+ }
41
+ },
42
+ methods: {
43
+ focus: function focus() {
44
+ // MacOS FireFox and Safari do not focus when clicked
45
+ this.$refs.input.focus();
46
+ }
47
+ }
48
+ };
49
+
50
+ //
51
+ var script$1 = {
52
+ name: 'BCheckbox',
53
+ mixins: [CheckRadioMixin],
54
+ props: {
55
+ indeterminate: Boolean,
56
+ ariaLabelledby: String,
57
+ trueValue: {
58
+ type: [String, Number, Boolean, Function, Object, Array],
59
+ default: true
60
+ },
61
+ falseValue: {
62
+ type: [String, Number, Boolean, Function, Object, Array],
63
+ default: false
64
+ },
65
+ autocomplete: {
66
+ type: String,
67
+ default: 'on'
68
+ },
69
+ inputId: {
70
+ type: String,
71
+ default: ''
72
+ }
73
+ }
74
+ };
75
+
76
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
77
+ if (typeof shadowMode !== 'boolean') {
78
+ createInjectorSSR = createInjector;
79
+ createInjector = shadowMode;
80
+ shadowMode = false;
81
+ }
82
+ // Vue.extend constructor export interop.
83
+ const options = typeof script === 'function' ? script.options : script;
84
+ // render functions
85
+ if (template && template.render) {
86
+ options.render = template.render;
87
+ options.staticRenderFns = template.staticRenderFns;
88
+ options._compiled = true;
89
+ // functional template
90
+ if (isFunctionalTemplate) {
91
+ options.functional = true;
92
+ }
93
+ }
94
+ // scopedId
95
+ if (scopeId) {
96
+ options._scopeId = scopeId;
97
+ }
98
+ let hook;
99
+ if (moduleIdentifier) {
100
+ // server build
101
+ hook = function (context) {
102
+ // 2.3 injection
103
+ context =
104
+ context || // cached call
105
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
106
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
107
+ // 2.2 with runInNewContext: true
108
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
109
+ context = __VUE_SSR_CONTEXT__;
110
+ }
111
+ // inject component styles
112
+ if (style) {
113
+ style.call(this, createInjectorSSR(context));
114
+ }
115
+ // register component module identifier for async chunk inference
116
+ if (context && context._registeredComponents) {
117
+ context._registeredComponents.add(moduleIdentifier);
118
+ }
119
+ };
120
+ // used by ssr in case component is cached and beforeCreate
121
+ // never gets called
122
+ options._ssrRegister = hook;
123
+ }
124
+ else if (style) {
125
+ hook = shadowMode
126
+ ? function (context) {
127
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
128
+ }
129
+ : function (context) {
130
+ style.call(this, createInjector(context));
131
+ };
132
+ }
133
+ if (hook) {
134
+ if (options.functional) {
135
+ // register for functional component in vue file
136
+ const originalRender = options.render;
137
+ options.render = function renderWithStyleInjection(h, context) {
138
+ hook.call(context);
139
+ return originalRender(h, context);
140
+ };
141
+ }
142
+ else {
143
+ // inject component registration as beforeCreate hook
144
+ const existing = options.beforeCreate;
145
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
146
+ }
147
+ }
148
+ return script;
149
+ }
150
+
151
+ /* script */
152
+ const __vue_script__$1 = script$1;
153
+
154
+ /* template */
155
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-checkbox checkbox",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.$refs.label.click()}]}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"id":_vm.inputId,"type":"checkbox","autocomplete":_vm.autocomplete,"disabled":_vm.disabled,"required":_vm.required,"name":_vm.name,"true-value":_vm.trueValue,"false-value":_vm.falseValue,"aria-labelledby":_vm.ariaLabelledby},domProps:{"indeterminate":_vm.indeterminate,"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else {$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else {_vm.computedValue=$$c;}}}}),_c('span',{staticClass:"check",class:_vm.type}),_c('span',{staticClass:"control-label",attrs:{"id":_vm.ariaLabelledby}},[_vm._t("default")],2)])};
156
+ var __vue_staticRenderFns__$1 = [];
157
+
158
+ /* style */
159
+ const __vue_inject_styles__$1 = undefined;
160
+ /* scoped */
161
+ const __vue_scope_id__$1 = undefined;
162
+ /* module identifier */
163
+ const __vue_module_identifier__$1 = undefined;
164
+ /* functional template */
165
+ const __vue_is_functional_template__$1 = false;
166
+ /* style inject */
167
+
168
+ /* style inject SSR */
169
+
170
+ /* style inject shadow dom */
171
+
172
+
173
+
174
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
175
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
176
+ __vue_inject_styles__$1,
177
+ __vue_script__$1,
178
+ __vue_scope_id__$1,
179
+ __vue_is_functional_template__$1,
180
+ __vue_module_identifier__$1,
181
+ false,
182
+ undefined,
183
+ undefined,
184
+ undefined
185
+ );
186
+
187
+ var Checkbox = __vue_component__$1;
188
+
189
+ //
190
+ var script = {
191
+ name: 'BCheckboxButton',
192
+ mixins: [CheckRadioMixin],
193
+ props: {
194
+ type: {
195
+ type: String,
196
+ default: 'is-primary'
197
+ },
198
+ expanded: Boolean
199
+ },
200
+ data: function data() {
201
+ return {
202
+ isFocused: false
203
+ };
204
+ },
205
+ computed: {
206
+ checked: function checked() {
207
+ if (Array.isArray(this.newValue)) {
208
+ return this.newValue.indexOf(this.nativeValue) >= 0;
209
+ }
210
+ return this.newValue === this.nativeValue;
211
+ }
212
+ }
213
+ };
214
+
215
+ /* script */
216
+ const __vue_script__ = script;
217
+
218
+ /* template */
219
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:"label",staticClass:"b-checkbox checkbox button",class:[_vm.checked ? _vm.type : null, _vm.size, {
220
+ 'is-disabled': _vm.disabled,
221
+ 'is-focused': _vm.isFocused
222
+ }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_vm._t("default"),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:(_vm.computedValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else {$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else {_vm.computedValue=$$c;}}}})],2)])};
223
+ var __vue_staticRenderFns__ = [];
224
+
225
+ /* style */
226
+ const __vue_inject_styles__ = undefined;
227
+ /* scoped */
228
+ const __vue_scope_id__ = undefined;
229
+ /* module identifier */
230
+ const __vue_module_identifier__ = undefined;
231
+ /* functional template */
232
+ const __vue_is_functional_template__ = false;
233
+ /* style inject */
234
+
235
+ /* style inject SSR */
236
+
237
+ /* style inject shadow dom */
238
+
239
+
240
+
241
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
242
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
243
+ __vue_inject_styles__,
244
+ __vue_script__,
245
+ __vue_scope_id__,
246
+ __vue_is_functional_template__,
247
+ __vue_module_identifier__,
248
+ false,
249
+ undefined,
250
+ undefined,
251
+ undefined
252
+ );
253
+
254
+ var CheckboxButton = __vue_component__;
255
+
256
+ var use = function use(plugin) {
257
+ if (typeof window !== 'undefined' && window.Vue) {
258
+ window.Vue.use(plugin);
259
+ }
260
+ };
261
+ var registerComponent = function registerComponent(Vue, component) {
262
+ Vue.component(component.name, component);
263
+ };
264
+
265
+ var Plugin = {
266
+ install: function install(Vue) {
267
+ registerComponent(Vue, Checkbox);
268
+ registerComponent(Vue, CheckboxButton);
269
+ }
270
+ };
271
+ use(Plugin);
272
+
273
+ exports.BCheckbox = Checkbox;
274
+ exports.BCheckboxButton = CheckboxButton;
275
+ exports["default"] = Plugin;
276
+
277
+ Object.defineProperty(exports, '__esModule', { value: true });
278
+
279
+ }));
@@ -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).Checkbox={})}(this,(function(e){"use strict";var t={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}};function n(e,t,n,a,i,o,u,l,r,c){"boolean"!=typeof u&&(r=l,l=u,u=!1);const d="function"==typeof n?n.options:n;let s;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),a&&(d._scopeId=a),o?(s=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(o)},d._ssrRegister=s):t&&(s=u?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,l(e))}),s)if(d.functional){const e=d.render;d.render=function(t,n){return s.call(n),e(t,n)}}else{const e=d.beforeCreate;d.beforeCreate=e?[].concat(e,s):[s]}return n}var a=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.$refs.label.click())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.$refs.label.click())}]}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{id:e.inputId,type:"checkbox",autocomplete:e.autocomplete,disabled:e.disabled,required:e.required,name:e.name,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},domProps:{indeterminate:e.indeterminate,value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,a=t.target,i=a.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var o=e.nativeValue,u=e._i(n,o);a.checked?u<0&&(e.computedValue=n.concat([o])):u>-1&&(e.computedValue=n.slice(0,u).concat(n.slice(u+1)))}else e.computedValue=i}}}),n("span",{staticClass:"check",class:e.type}),n("span",{staticClass:"control-label",attrs:{id:e.ariaLabelledby}},[e._t("default")],2)])},staticRenderFns:[]},undefined,{name:"BCheckbox",mixins:[t],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"},inputId:{type:String,default:""}}},undefined,false,undefined,!1,void 0,void 0,void 0);var i,o=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.$refs.label.click())}}},[e._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){var n=e.computedValue,a=t.target,i=!!a.checked;if(Array.isArray(n)){var o=e.nativeValue,u=e._i(n,o);a.checked?u<0&&(e.computedValue=n.concat([o])):u>-1&&(e.computedValue=n.slice(0,u).concat(n.slice(u+1)))}else e.computedValue=i}}})],2)])},staticRenderFns:[]},undefined,{name:"BCheckboxButton",mixins:[t],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}},undefined,false,undefined,!1,void 0,void 0,void 0),u=function(e,t){e.component(t.name,t)},l={install:function(e){u(e,a),u(e,o)}};i=l,"undefined"!=typeof window&&window.Vue&&window.Vue.use(i),e.BCheckbox=a,e.BCheckboxButton=o,e.default=l,Object.defineProperty(e,"__esModule",{value:!0})}));