buefy 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +242 -0
  3. package/dist/buefy.css +15895 -0
  4. package/dist/buefy.d.ts +11706 -0
  5. package/dist/buefy.esm.js +21082 -0
  6. package/dist/buefy.esm.min.js +2 -0
  7. package/dist/buefy.js +21227 -0
  8. package/dist/buefy.min.css +1 -0
  9. package/dist/buefy.min.js +2 -0
  10. package/dist/cjs/Autocomplete-BMmOsPiK.js +864 -0
  11. package/dist/cjs/Button-Cq7yqI8p.js +118 -0
  12. package/dist/cjs/CheckRadioMixin-CDu0SN3g.js +58 -0
  13. package/dist/cjs/Checkbox-GPzAMQqM.js +85 -0
  14. package/dist/cjs/CompatFallthroughMixin-hhK0Gkhr.js +48 -0
  15. package/dist/cjs/Datepicker-B-9ReBe6.js +2120 -0
  16. package/dist/cjs/Dropdown-DtpKU9qf.js +470 -0
  17. package/dist/cjs/DropdownItem-IMOKyRGV.js +110 -0
  18. package/dist/cjs/Field-19ZCJFF8.js +405 -0
  19. package/dist/cjs/FormElementMixin-DavX4iOv.js +170 -0
  20. package/dist/cjs/Icon-lsDKE2wQ.js +184 -0
  21. package/dist/cjs/Image-CocPwU3n.js +356 -0
  22. package/dist/cjs/InjectedChildMixin-CUKn09dB.js +150 -0
  23. package/dist/cjs/Input-BcloGeZ3.js +350 -0
  24. package/dist/cjs/Loading-GqqqjipO.js +145 -0
  25. package/dist/cjs/MessageMixin-bGuuzfev.js +136 -0
  26. package/dist/cjs/Modal-CYpSQe2Q.js +315 -0
  27. package/dist/cjs/NoticeMixin--3RjH43z.js +163 -0
  28. package/dist/cjs/Pagination-D1MVdiLp.js +547 -0
  29. package/dist/cjs/Progress-DT9Qc8Id.js +177 -0
  30. package/dist/cjs/Select-DayPKwCY.js +147 -0
  31. package/dist/cjs/SlotComponent-BruGdRW3.js +41 -0
  32. package/dist/cjs/TabbedChildMixin-B3JUUwcf.js +211 -0
  33. package/dist/cjs/Tag-BprnwJJ1.js +167 -0
  34. package/dist/cjs/Timepicker-CDZ3V-2J.js +283 -0
  35. package/dist/cjs/TimepickerMixin-C9WVvcUL.js +666 -0
  36. package/dist/cjs/Tooltip-Cgighv0j.js +393 -0
  37. package/dist/cjs/_plugin-vue_export-helper-Die8u8yB.js +11 -0
  38. package/dist/cjs/autocomplete.js +23 -0
  39. package/dist/cjs/breadcrumb.js +107 -0
  40. package/dist/cjs/button.js +20 -0
  41. package/dist/cjs/carousel.js +825 -0
  42. package/dist/cjs/checkbox.js +88 -0
  43. package/dist/cjs/clockpicker.js +668 -0
  44. package/dist/cjs/collapse.js +99 -0
  45. package/dist/cjs/colorpicker.js +25 -0
  46. package/dist/cjs/config-DR826Ki2.js +103 -0
  47. package/dist/cjs/config.js +18 -0
  48. package/dist/cjs/datepicker.js +28 -0
  49. package/dist/cjs/datetimepicker.js +483 -0
  50. package/dist/cjs/dialog.js +506 -0
  51. package/dist/cjs/dropdown.js +23 -0
  52. package/dist/cjs/field.js +19 -0
  53. package/dist/cjs/helpers.js +276 -0
  54. package/dist/cjs/icon.js +19 -0
  55. package/dist/cjs/image.js +19 -0
  56. package/dist/cjs/index-DiQy3SCb.js +1942 -0
  57. package/dist/cjs/index.js +274 -0
  58. package/dist/cjs/input.js +22 -0
  59. package/dist/cjs/loading.js +87 -0
  60. package/dist/cjs/menu.js +340 -0
  61. package/dist/cjs/message.js +119 -0
  62. package/dist/cjs/modal.js +103 -0
  63. package/dist/cjs/navbar.js +572 -0
  64. package/dist/cjs/notification.js +281 -0
  65. package/dist/cjs/numberinput.js +386 -0
  66. package/dist/cjs/pagination.js +22 -0
  67. package/dist/cjs/plugins-DbyYGVpp.js +16 -0
  68. package/dist/cjs/progress.js +91 -0
  69. package/dist/cjs/radio.js +137 -0
  70. package/dist/cjs/rate.js +197 -0
  71. package/dist/cjs/select.js +22 -0
  72. package/dist/cjs/sidebar.js +309 -0
  73. package/dist/cjs/skeleton.js +78 -0
  74. package/dist/cjs/slider.js +699 -0
  75. package/dist/cjs/snackbar.js +224 -0
  76. package/dist/cjs/ssr-DVRFTu_P.js +8 -0
  77. package/dist/cjs/steps.js +347 -0
  78. package/dist/cjs/switch.js +161 -0
  79. package/dist/cjs/table.js +2391 -0
  80. package/dist/cjs/tabs.js +258 -0
  81. package/dist/cjs/tag.js +44 -0
  82. package/dist/cjs/taginput.js +425 -0
  83. package/dist/cjs/timepicker.js +29 -0
  84. package/dist/cjs/toast.js +162 -0
  85. package/dist/cjs/tooltip.js +19 -0
  86. package/dist/cjs/trapFocus-BlX6xykt.js +53 -0
  87. package/dist/cjs/upload.js +195 -0
  88. package/dist/components/autocomplete/index.js +1647 -0
  89. package/dist/components/autocomplete/index.min.js +2 -0
  90. package/dist/components/breadcrumb/index.js +173 -0
  91. package/dist/components/breadcrumb/index.min.js +2 -0
  92. package/dist/components/button/index.js +334 -0
  93. package/dist/components/button/index.min.js +2 -0
  94. package/dist/components/carousel/index.js +1534 -0
  95. package/dist/components/carousel/index.min.js +2 -0
  96. package/dist/components/checkbox/index.js +236 -0
  97. package/dist/components/checkbox/index.min.js +2 -0
  98. package/dist/components/clockpicker/index.js +2636 -0
  99. package/dist/components/clockpicker/index.min.js +2 -0
  100. package/dist/components/collapse/index.js +111 -0
  101. package/dist/components/collapse/index.min.js +2 -0
  102. package/dist/components/colorpicker/index.js +4251 -0
  103. package/dist/components/colorpicker/index.min.js +2 -0
  104. package/dist/components/datepicker/index.js +4110 -0
  105. package/dist/components/datepicker/index.min.js +2 -0
  106. package/dist/components/datetimepicker/index.js +5479 -0
  107. package/dist/components/datetimepicker/index.min.js +2 -0
  108. package/dist/components/dialog/index.js +1202 -0
  109. package/dist/components/dialog/index.min.js +2 -0
  110. package/dist/components/dropdown/index.js +680 -0
  111. package/dist/components/dropdown/index.min.js +2 -0
  112. package/dist/components/field/index.js +439 -0
  113. package/dist/components/field/index.min.js +2 -0
  114. package/dist/components/icon/index.js +212 -0
  115. package/dist/components/icon/index.min.js +2 -0
  116. package/dist/components/image/index.js +396 -0
  117. package/dist/components/image/index.min.js +2 -0
  118. package/dist/components/input/index.js +764 -0
  119. package/dist/components/input/index.min.js +2 -0
  120. package/dist/components/loading/index.js +280 -0
  121. package/dist/components/loading/index.min.js +2 -0
  122. package/dist/components/menu/index.js +586 -0
  123. package/dist/components/menu/index.min.js +2 -0
  124. package/dist/components/message/index.js +611 -0
  125. package/dist/components/message/index.min.js +2 -0
  126. package/dist/components/modal/index.js +516 -0
  127. package/dist/components/modal/index.min.js +2 -0
  128. package/dist/components/navbar/index.js +634 -0
  129. package/dist/components/navbar/index.min.js +2 -0
  130. package/dist/components/notification/index.js +976 -0
  131. package/dist/components/notification/index.min.js +2 -0
  132. package/dist/components/numberinput/index.js +1128 -0
  133. package/dist/components/numberinput/index.min.js +2 -0
  134. package/dist/components/pagination/index.js +764 -0
  135. package/dist/components/pagination/index.min.js +2 -0
  136. package/dist/components/progress/index.js +280 -0
  137. package/dist/components/progress/index.min.js +2 -0
  138. package/dist/components/radio/index.js +208 -0
  139. package/dist/components/radio/index.min.js +2 -0
  140. package/dist/components/rate/index.js +391 -0
  141. package/dist/components/rate/index.min.js +2 -0
  142. package/dist/components/select/index.js +560 -0
  143. package/dist/components/select/index.min.js +2 -0
  144. package/dist/components/sidebar/index.js +337 -0
  145. package/dist/components/sidebar/index.min.js +2 -0
  146. package/dist/components/skeleton/index.js +87 -0
  147. package/dist/components/skeleton/index.min.js +2 -0
  148. package/dist/components/slider/index.js +1171 -0
  149. package/dist/components/slider/index.min.js +2 -0
  150. package/dist/components/snackbar/index.js +439 -0
  151. package/dist/components/snackbar/index.min.js +2 -0
  152. package/dist/components/steps/index.js +925 -0
  153. package/dist/components/steps/index.min.js +2 -0
  154. package/dist/components/switch/index.js +182 -0
  155. package/dist/components/switch/index.min.js +2 -0
  156. package/dist/components/table/index.js +4208 -0
  157. package/dist/components/table/index.min.js +2 -0
  158. package/dist/components/tabs/index.js +837 -0
  159. package/dist/components/tabs/index.min.js +2 -0
  160. package/dist/components/tag/index.js +396 -0
  161. package/dist/components/tag/index.min.js +2 -0
  162. package/dist/components/taginput/index.js +2209 -0
  163. package/dist/components/taginput/index.min.js +2 -0
  164. package/dist/components/timepicker/index.js +2906 -0
  165. package/dist/components/timepicker/index.min.js +2 -0
  166. package/dist/components/toast/index.js +377 -0
  167. package/dist/components/toast/index.min.js +2 -0
  168. package/dist/components/tooltip/index.js +445 -0
  169. package/dist/components/tooltip/index.min.js +2 -0
  170. package/dist/components/upload/index.js +426 -0
  171. package/dist/components/upload/index.min.js +2 -0
  172. package/dist/esm/Autocomplete-CjbTh9D8.js +862 -0
  173. package/dist/esm/Button-DyUYShTZ.js +116 -0
  174. package/dist/esm/CheckRadioMixin-DSD_rjC8.js +56 -0
  175. package/dist/esm/Checkbox-KUMz0sfA.js +83 -0
  176. package/dist/esm/CompatFallthroughMixin-C8LPuwDr.js +46 -0
  177. package/dist/esm/Datepicker-Bl8Wfdkn.js +2118 -0
  178. package/dist/esm/Dropdown-CGTYVyoL.js +467 -0
  179. package/dist/esm/DropdownItem-Cn3nM0A3.js +108 -0
  180. package/dist/esm/Field-B7bX_uUg.js +403 -0
  181. package/dist/esm/FormElementMixin-Dd_wkBN5.js +168 -0
  182. package/dist/esm/Icon-DPyGDeRK.js +182 -0
  183. package/dist/esm/Image-DhX-4hlV.js +354 -0
  184. package/dist/esm/InjectedChildMixin-D2K-FwuO.js +145 -0
  185. package/dist/esm/Input-C4L520az.js +348 -0
  186. package/dist/esm/Loading-tuQoo6TU.js +143 -0
  187. package/dist/esm/MessageMixin-CQ7LIdvq.js +134 -0
  188. package/dist/esm/Modal-tfvyhxw_.js +313 -0
  189. package/dist/esm/NoticeMixin-ByNlva3T.js +161 -0
  190. package/dist/esm/Pagination-B-LAJQay.js +543 -0
  191. package/dist/esm/Progress-BPGTVZgr.js +174 -0
  192. package/dist/esm/Select-bl4qUzij.js +145 -0
  193. package/dist/esm/SlotComponent-BwNpVnfH.js +39 -0
  194. package/dist/esm/TabbedChildMixin-C4i6WP9j.js +208 -0
  195. package/dist/esm/Tag-jS5Bcj6N.js +165 -0
  196. package/dist/esm/Timepicker-DnkqnOBT.js +281 -0
  197. package/dist/esm/TimepickerMixin-Bikh6_Fg.js +664 -0
  198. package/dist/esm/Tooltip-CtDSXAqa.js +391 -0
  199. package/dist/esm/_plugin-vue_export-helper-OJRSZE6i.js +9 -0
  200. package/dist/esm/autocomplete.js +18 -0
  201. package/dist/esm/breadcrumb.js +101 -0
  202. package/dist/esm/button.js +15 -0
  203. package/dist/esm/carousel.js +818 -0
  204. package/dist/esm/checkbox.js +82 -0
  205. package/dist/esm/clockpicker.js +663 -0
  206. package/dist/esm/collapse.js +94 -0
  207. package/dist/esm/colorpicker.js +16 -0
  208. package/dist/esm/config-CKuo-p6e.js +100 -0
  209. package/dist/esm/config.js +14 -0
  210. package/dist/esm/datepicker.js +23 -0
  211. package/dist/esm/datetimepicker.js +478 -0
  212. package/dist/esm/dialog.js +500 -0
  213. package/dist/esm/dropdown.js +17 -0
  214. package/dist/esm/field.js +14 -0
  215. package/dist/esm/helpers.js +247 -0
  216. package/dist/esm/icon.js +14 -0
  217. package/dist/esm/image.js +14 -0
  218. package/dist/esm/index-CQegEsxK.js +1938 -0
  219. package/dist/esm/index.js +164 -0
  220. package/dist/esm/input.js +17 -0
  221. package/dist/esm/loading.js +81 -0
  222. package/dist/esm/menu.js +333 -0
  223. package/dist/esm/message.js +114 -0
  224. package/dist/esm/modal.js +97 -0
  225. package/dist/esm/navbar.js +565 -0
  226. package/dist/esm/notification.js +275 -0
  227. package/dist/esm/numberinput.js +381 -0
  228. package/dist/esm/pagination.js +16 -0
  229. package/dist/esm/plugins-B172kuKE.js +13 -0
  230. package/dist/esm/progress.js +85 -0
  231. package/dist/esm/radio.js +131 -0
  232. package/dist/esm/rate.js +192 -0
  233. package/dist/esm/select.js +17 -0
  234. package/dist/esm/sidebar.js +304 -0
  235. package/dist/esm/skeleton.js +73 -0
  236. package/dist/esm/slider.js +693 -0
  237. package/dist/esm/snackbar.js +218 -0
  238. package/dist/esm/ssr-C7yEpGLm.js +5 -0
  239. package/dist/esm/steps.js +341 -0
  240. package/dist/esm/switch.js +156 -0
  241. package/dist/esm/table.js +2385 -0
  242. package/dist/esm/tabs.js +252 -0
  243. package/dist/esm/tag.js +38 -0
  244. package/dist/esm/taginput.js +420 -0
  245. package/dist/esm/timepicker.js +24 -0
  246. package/dist/esm/toast.js +156 -0
  247. package/dist/esm/tooltip.js +14 -0
  248. package/dist/esm/trapFocus-KHP_kCNE.js +51 -0
  249. package/dist/esm/upload.js +190 -0
  250. package/dist/tsdoc-metadata.json +11 -0
  251. package/package.json +73 -6
  252. package/src/components/autocomplete/Autocomplete.spec.ts +783 -0
  253. package/src/components/autocomplete/Autocomplete.vue +966 -0
  254. package/src/components/autocomplete/__snapshots__/Autocomplete.spec.ts.snap +21 -0
  255. package/src/components/autocomplete/index.ts +16 -0
  256. package/src/components/breadcrumb/Breadcrumb.spec.ts +65 -0
  257. package/src/components/breadcrumb/Breadcrumb.vue +42 -0
  258. package/src/components/breadcrumb/BreadcrumbItem.spec.ts +74 -0
  259. package/src/components/breadcrumb/BreadcrumbItem.vue +34 -0
  260. package/src/components/breadcrumb/__snapshots__/Breadcrumb.spec.ts.snap +7 -0
  261. package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.ts.snap +3 -0
  262. package/src/components/breadcrumb/index.ts +19 -0
  263. package/src/components/button/Button.spec.ts +117 -0
  264. package/src/components/button/Button.vue +112 -0
  265. package/src/components/button/__snapshots__/Button.spec.ts.snap +9 -0
  266. package/src/components/button/index.ts +16 -0
  267. package/src/components/carousel/Carousel.spec.ts +304 -0
  268. package/src/components/carousel/Carousel.vue +389 -0
  269. package/src/components/carousel/CarouselItem.spec.ts +105 -0
  270. package/src/components/carousel/CarouselItem.vue +38 -0
  271. package/src/components/carousel/CarouselList.spec.ts +172 -0
  272. package/src/components/carousel/CarouselList.vue +364 -0
  273. package/src/components/carousel/__snapshots__/Carousel.spec.ts.snap +19 -0
  274. package/src/components/carousel/__snapshots__/CarouselItem.spec.ts.snap +7 -0
  275. package/src/components/carousel/__snapshots__/CarouselList.spec.ts.snap +36 -0
  276. package/src/components/carousel/index.ts +23 -0
  277. package/src/components/carousel/types.ts +17 -0
  278. package/src/components/checkbox/Checkbox.spec.ts +40 -0
  279. package/src/components/checkbox/Checkbox.vue +63 -0
  280. package/src/components/checkbox/CheckboxButton.spec.ts +46 -0
  281. package/src/components/checkbox/CheckboxButton.vue +59 -0
  282. package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +9 -0
  283. package/src/components/checkbox/__snapshots__/CheckboxButton.spec.ts.snap +3 -0
  284. package/src/components/checkbox/index.ts +20 -0
  285. package/src/components/clockpicker/Clockpicker.spec.ts +161 -0
  286. package/src/components/clockpicker/Clockpicker.vue +311 -0
  287. package/src/components/clockpicker/ClockpickerFace.spec.ts +99 -0
  288. package/src/components/clockpicker/ClockpickerFace.vue +272 -0
  289. package/src/components/clockpicker/__snapshots__/Clockpicker.spec.ts.snap +36 -0
  290. package/src/components/clockpicker/__snapshots__/ClockpickerFace.spec.ts.snap +9 -0
  291. package/src/components/clockpicker/index.ts +16 -0
  292. package/src/components/collapse/Collapse.spec.ts +106 -0
  293. package/src/components/collapse/Collapse.vue +98 -0
  294. package/src/components/collapse/__snapshots__/Collapse.spec.ts.snap +10 -0
  295. package/src/components/collapse/index.ts +16 -0
  296. package/src/components/colorpicker/Colorpicker.spec.ts +22 -0
  297. package/src/components/colorpicker/Colorpicker.vue +416 -0
  298. package/src/components/colorpicker/ColorpickerAlphaSlider.spec.ts +17 -0
  299. package/src/components/colorpicker/ColorpickerAlphaSlider.vue +205 -0
  300. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.spec.ts +23 -0
  301. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +380 -0
  302. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.spec.ts +23 -0
  303. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +456 -0
  304. package/src/components/colorpicker/__snapshots__/Colorpicker.spec.ts.snap +77 -0
  305. package/src/components/colorpicker/__snapshots__/ColorpickerAlphaSlider.spec.ts.snap +9 -0
  306. package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationSquare.spec.ts.snap +12 -0
  307. package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationTriangle.spec.ts.snap +36 -0
  308. package/src/components/colorpicker/index.ts +16 -0
  309. package/src/components/datepicker/Datepicker.spec.ts +482 -0
  310. package/src/components/datepicker/Datepicker.vue +908 -0
  311. package/src/components/datepicker/DatepickerMonth.spec.ts +346 -0
  312. package/src/components/datepicker/DatepickerMonth.vue +444 -0
  313. package/src/components/datepicker/DatepickerTable.spec.ts +290 -0
  314. package/src/components/datepicker/DatepickerTable.vue +398 -0
  315. package/src/components/datepicker/DatepickerTableRow.spec.ts +300 -0
  316. package/src/components/datepicker/DatepickerTableRow.vue +416 -0
  317. package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +54 -0
  318. package/src/components/datepicker/__snapshots__/DatepickerMonth.spec.ts.snap +33 -0
  319. package/src/components/datepicker/__snapshots__/DatepickerTable.spec.ts.snap +16 -0
  320. package/src/components/datepicker/__snapshots__/DatepickerTableRow.spec.ts.snap +23 -0
  321. package/src/components/datepicker/index.ts +17 -0
  322. package/src/components/datepicker/types.ts +41 -0
  323. package/src/components/datetimepicker/Datetimepicker.spec.ts +132 -0
  324. package/src/components/datetimepicker/Datetimepicker.vue +491 -0
  325. package/src/components/datetimepicker/index.ts +16 -0
  326. package/src/components/dialog/Dialog.spec.ts +108 -0
  327. package/src/components/dialog/Dialog.vue +300 -0
  328. package/src/components/dialog/index.ts +169 -0
  329. package/src/components/dropdown/Dropdown.spec.ts +229 -0
  330. package/src/components/dropdown/Dropdown.vue +491 -0
  331. package/src/components/dropdown/DropdownItem.spec.ts +78 -0
  332. package/src/components/dropdown/DropdownItem.vue +112 -0
  333. package/src/components/dropdown/__snapshots__/Dropdown.spec.ts.snap +15 -0
  334. package/src/components/dropdown/__snapshots__/DropdownItem.spec.ts.snap +3 -0
  335. package/src/components/dropdown/index.ts +20 -0
  336. package/src/components/field/Field.spec.ts +324 -0
  337. package/src/components/field/Field.vue +316 -0
  338. package/src/components/field/FieldBody.spec.ts +96 -0
  339. package/src/components/field/FieldBody.vue +74 -0
  340. package/src/components/field/__snapshots__/Field.spec.ts.snap +8 -0
  341. package/src/components/field/__snapshots__/FieldBody.spec.ts.snap +3 -0
  342. package/src/components/field/index.ts +16 -0
  343. package/src/components/icon/Icon.spec.ts +142 -0
  344. package/src/components/icon/Icon.vue +120 -0
  345. package/src/components/icon/__snapshots__/Icon.spec.ts.snap +3 -0
  346. package/src/components/icon/index.ts +17 -0
  347. package/src/components/image/Image.spec.ts +218 -0
  348. package/src/components/image/Image.vue +358 -0
  349. package/src/components/image/__snapshots__/Image.spec.ts.snap +37 -0
  350. package/src/components/image/index.ts +16 -0
  351. package/src/components/index.ts +179 -0
  352. package/src/components/input/Input.spec.ts +396 -0
  353. package/src/components/input/Input.vue +335 -0
  354. package/src/components/input/__snapshots__/Input.spec.ts.snap +9 -0
  355. package/src/components/input/index.ts +17 -0
  356. package/src/components/loading/Loading.spec.ts +151 -0
  357. package/src/components/loading/Loading.vue +135 -0
  358. package/src/components/loading/__snapshots__/Loading.spec.ts.snap +10 -0
  359. package/src/components/loading/index.ts +91 -0
  360. package/src/components/menu/Menu.spec.ts +21 -0
  361. package/src/components/menu/Menu.vue +31 -0
  362. package/src/components/menu/MenuItem.spec.ts +92 -0
  363. package/src/components/menu/MenuItem.vue +168 -0
  364. package/src/components/menu/MenuItemContainerMixin.ts +72 -0
  365. package/src/components/menu/MenuList.spec.ts +35 -0
  366. package/src/components/menu/MenuList.vue +47 -0
  367. package/src/components/menu/__snapshots__/Menu.spec.ts.snap +3 -0
  368. package/src/components/menu/__snapshots__/MenuItem.spec.ts.snap +9 -0
  369. package/src/components/menu/__snapshots__/MenuList.spec.ts.snap +8 -0
  370. package/src/components/menu/index.ts +25 -0
  371. package/src/components/message/Message.spec.ts +30 -0
  372. package/src/components/message/Message.vue +73 -0
  373. package/src/components/message/__snapshots__/Message.spec.ts.snap +11 -0
  374. package/src/components/message/index.ts +15 -0
  375. package/src/components/modal/Modal.spec.ts +167 -0
  376. package/src/components/modal/Modal.vue +335 -0
  377. package/src/components/modal/__snapshots__/Modal.spec.ts.snap +10 -0
  378. package/src/components/modal/index.ts +107 -0
  379. package/src/components/navbar/NavBar.spec.ts +78 -0
  380. package/src/components/navbar/NavBarBurger.spec.ts +30 -0
  381. package/src/components/navbar/NavBarItem.spec.ts +92 -0
  382. package/src/components/navbar/Navbar.vue +274 -0
  383. package/src/components/navbar/NavbarBurger.vue +29 -0
  384. package/src/components/navbar/NavbarDropdown.spec.ts +84 -0
  385. package/src/components/navbar/NavbarDropdown.vue +115 -0
  386. package/src/components/navbar/NavbarItem.vue +97 -0
  387. package/src/components/navbar/__snapshots__/NavBar.spec.ts.snap +11 -0
  388. package/src/components/navbar/__snapshots__/NavBarBurger.spec.ts.snap +3 -0
  389. package/src/components/navbar/__snapshots__/NavBarItem.spec.ts.snap +3 -0
  390. package/src/components/navbar/__snapshots__/NavbarDropdown.spec.ts.snap +7 -0
  391. package/src/components/navbar/index.ts +22 -0
  392. package/src/components/notification/Notification.spec.ts +21 -0
  393. package/src/components/notification/Notification.vue +77 -0
  394. package/src/components/notification/NotificationNotice.vue +76 -0
  395. package/src/components/notification/__snapshots__/Notification.spec.ts.snap +10 -0
  396. package/src/components/notification/index.ts +121 -0
  397. package/src/components/numberinput/Numberinput.spec.ts +445 -0
  398. package/src/components/numberinput/Numberinput.vue +372 -0
  399. package/src/components/numberinput/index.ts +16 -0
  400. package/src/components/pagination/Pagination.spec.ts +94 -0
  401. package/src/components/pagination/Pagination.vue +434 -0
  402. package/src/components/pagination/PaginationButton.spec.ts +42 -0
  403. package/src/components/pagination/PaginationButton.vue +59 -0
  404. package/src/components/pagination/__snapshots__/Pagination.spec.ts.snap +22 -0
  405. package/src/components/pagination/__snapshots__/PaginationButton.spec.ts.snap +3 -0
  406. package/src/components/pagination/index.ts +19 -0
  407. package/src/components/pagination/types.ts +11 -0
  408. package/src/components/progress/Progress.spec.ts +81 -0
  409. package/src/components/progress/Progress.vue +168 -0
  410. package/src/components/progress/ProgressBar.spec.ts +45 -0
  411. package/src/components/progress/ProgressBar.vue +74 -0
  412. package/src/components/progress/__snapshots__/Progress.spec.ts.snap +7 -0
  413. package/src/components/progress/__snapshots__/ProgressBar.spec.ts.snap +7 -0
  414. package/src/components/progress/index.ts +18 -0
  415. package/src/components/radio/Radio.spec.ts +40 -0
  416. package/src/components/radio/Radio.vue +35 -0
  417. package/src/components/radio/RadioButton.spec.ts +40 -0
  418. package/src/components/radio/RadioButton.vue +69 -0
  419. package/src/components/radio/__snapshots__/Radio.spec.ts.snap +3 -0
  420. package/src/components/radio/__snapshots__/RadioButton.spec.ts.snap +3 -0
  421. package/src/components/radio/index.ts +18 -0
  422. package/src/components/rate/Rate.spec.ts +90 -0
  423. package/src/components/rate/Rate.vue +158 -0
  424. package/src/components/rate/index.ts +15 -0
  425. package/src/components/select/Select.spec.ts +74 -0
  426. package/src/components/select/Select.vue +118 -0
  427. package/src/components/select/__snapshots__/Select.spec.ts.snap +7 -0
  428. package/src/components/select/index.ts +16 -0
  429. package/src/components/sidebar/Sidebar.spec.ts +107 -0
  430. package/src/components/sidebar/Sidebar.vue +316 -0
  431. package/src/components/sidebar/__snapshots__/Sidebar.spec.ts.snap +25 -0
  432. package/src/components/sidebar/index.ts +16 -0
  433. package/src/components/skeleton/Skeleton.spec.ts +16 -0
  434. package/src/components/skeleton/Skeleton.vue +98 -0
  435. package/src/components/skeleton/__snapshots__/Skeleton.spec.ts.snap +7 -0
  436. package/src/components/skeleton/index.ts +18 -0
  437. package/src/components/slider/Slider.spec.ts +115 -0
  438. package/src/components/slider/Slider.vue +374 -0
  439. package/src/components/slider/SliderThumb.spec.ts +176 -0
  440. package/src/components/slider/SliderThumb.vue +251 -0
  441. package/src/components/slider/SliderTick.spec.ts +33 -0
  442. package/src/components/slider/SliderTick.vue +50 -0
  443. package/src/components/slider/__snapshots__/Slider.spec.ts.snap +12 -0
  444. package/src/components/slider/__snapshots__/SliderThumb.spec.ts.snap +16 -0
  445. package/src/components/slider/__snapshots__/SliderTick.spec.ts.snap +7 -0
  446. package/src/components/slider/index.ts +19 -0
  447. package/src/components/slider/types.ts +34 -0
  448. package/src/components/snackbar/Snackbar.spec.ts +35 -0
  449. package/src/components/snackbar/Snackbar.vue +88 -0
  450. package/src/components/snackbar/__snapshots__/Snackbar.spec.ts.snap +12 -0
  451. package/src/components/snackbar/index.ts +118 -0
  452. package/src/components/steps/StepItem.spec.ts +114 -0
  453. package/src/components/steps/StepItem.vue +26 -0
  454. package/src/components/steps/Steps.spec.ts +125 -0
  455. package/src/components/steps/Steps.vue +273 -0
  456. package/src/components/steps/__snapshots__/StepItem.spec.ts.snap +7 -0
  457. package/src/components/steps/__snapshots__/Steps.spec.ts.snap +40 -0
  458. package/src/components/steps/index.ts +19 -0
  459. package/src/components/switch/Switch.spec.ts +74 -0
  460. package/src/components/switch/Switch.vue +146 -0
  461. package/src/components/switch/__snapshots__/Switch.spec.ts.snap +3 -0
  462. package/src/components/switch/index.ts +16 -0
  463. package/src/components/table/Table.spec.ts +622 -0
  464. package/src/components/table/Table.vue +1770 -0
  465. package/src/components/table/TableColumn.spec.ts +85 -0
  466. package/src/components/table/TableColumn.vue +140 -0
  467. package/src/components/table/TableMobileSort.spec.ts +47 -0
  468. package/src/components/table/TableMobileSort.vue +236 -0
  469. package/src/components/table/TablePagination.vue +86 -0
  470. package/src/components/table/__snapshots__/Table.spec.ts.snap +24 -0
  471. package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +12 -0
  472. package/src/components/table/index.ts +32 -0
  473. package/src/components/table/mockTableColumn.ts +110 -0
  474. package/src/components/table/types.ts +110 -0
  475. package/src/components/tabs/TabItem.spec.ts +203 -0
  476. package/src/components/tabs/TabItem.vue +19 -0
  477. package/src/components/tabs/Tabs.spec.ts +122 -0
  478. package/src/components/tabs/Tabs.vue +204 -0
  479. package/src/components/tabs/__snapshots__/TabItem.spec.ts.snap +7 -0
  480. package/src/components/tabs/__snapshots__/Tabs.spec.ts.snap +33 -0
  481. package/src/components/tabs/index.ts +19 -0
  482. package/src/components/tag/Tag.spec.ts +32 -0
  483. package/src/components/tag/Tag.vue +132 -0
  484. package/src/components/tag/Taglist.spec.ts +21 -0
  485. package/src/components/tag/Taglist.vue +16 -0
  486. package/src/components/tag/__snapshots__/Tag.spec.ts.snap +6 -0
  487. package/src/components/tag/__snapshots__/Taglist.spec.ts.snap +3 -0
  488. package/src/components/tag/index.ts +19 -0
  489. package/src/components/taginput/Taginput.spec.ts +132 -0
  490. package/src/components/taginput/Taginput.vue +415 -0
  491. package/src/components/taginput/__snapshots__/Taginput.spec.ts.snap +10 -0
  492. package/src/components/taginput/index.ts +16 -0
  493. package/src/components/timepicker/Timepicker.spec.ts +108 -0
  494. package/src/components/timepicker/Timepicker.vue +183 -0
  495. package/src/components/timepicker/__snapshots__/Timepicker.spec.ts.snap +41 -0
  496. package/src/components/timepicker/index.ts +17 -0
  497. package/src/components/toast/Toast.spec.ts +74 -0
  498. package/src/components/toast/Toast.vue +46 -0
  499. package/src/components/toast/__snapshots__/Toast.spec.ts.snap +10 -0
  500. package/src/components/toast/index.ts +120 -0
  501. package/src/components/tooltip/Tooltip.spec.ts +64 -0
  502. package/src/components/tooltip/Tooltip.vue +393 -0
  503. package/src/components/tooltip/__snapshots__/Tooltip.spec.ts.snap +12 -0
  504. package/src/components/tooltip/index.ts +16 -0
  505. package/src/components/upload/Upload.spec.ts +62 -0
  506. package/src/components/upload/Upload.vue +188 -0
  507. package/src/components/upload/__snapshots__/Upload.spec.ts.snap +3 -0
  508. package/src/components/upload/index.ts +15 -0
  509. package/src/directives/clickOutside.ts +113 -0
  510. package/src/directives/trapFocus.ts +61 -0
  511. package/src/index.ts +43 -0
  512. package/src/scss/buefy-build.scss +6 -0
  513. package/src/scss/buefy.scss +39 -0
  514. package/src/scss/components/_autocomplete.scss +39 -0
  515. package/src/scss/components/_carousel.scss +204 -0
  516. package/src/scss/components/_checkbox.scss +106 -0
  517. package/src/scss/components/_clockpicker.scss +283 -0
  518. package/src/scss/components/_collapse.scss +9 -0
  519. package/src/scss/components/_colorpicker.scss +283 -0
  520. package/src/scss/components/_datepicker.scss +220 -0
  521. package/src/scss/components/_dialog.scss +54 -0
  522. package/src/scss/components/_dropdown.scss +143 -0
  523. package/src/scss/components/_form.scss +309 -0
  524. package/src/scss/components/_icon.scss +16 -0
  525. package/src/scss/components/_image.scss +20 -0
  526. package/src/scss/components/_loading.scss +45 -0
  527. package/src/scss/components/_menu.scss +11 -0
  528. package/src/scss/components/_message.scss +16 -0
  529. package/src/scss/components/_modal.scss +37 -0
  530. package/src/scss/components/_navbar.scss +22 -0
  531. package/src/scss/components/_notices.scss +144 -0
  532. package/src/scss/components/_notification.scss +8 -0
  533. package/src/scss/components/_numberinput.scss +33 -0
  534. package/src/scss/components/_pagination.scss +63 -0
  535. package/src/scss/components/_progress.scss +105 -0
  536. package/src/scss/components/_radio.scss +123 -0
  537. package/src/scss/components/_rate.scss +72 -0
  538. package/src/scss/components/_select.scss +38 -0
  539. package/src/scss/components/_sidebar.scss +107 -0
  540. package/src/scss/components/_skeleton.scss +66 -0
  541. package/src/scss/components/_slider.scss +162 -0
  542. package/src/scss/components/_steps.scss +491 -0
  543. package/src/scss/components/_switch.scss +214 -0
  544. package/src/scss/components/_table.scss +322 -0
  545. package/src/scss/components/_tabs.scss +197 -0
  546. package/src/scss/components/_tag.scss +36 -0
  547. package/src/scss/components/_taginput.scss +73 -0
  548. package/src/scss/components/_timepicker.scss +73 -0
  549. package/src/scss/components/_tooltip.scss +192 -0
  550. package/src/scss/components/_upload.scss +62 -0
  551. package/src/scss/utils/_all.scss +4 -0
  552. package/src/scss/utils/_animations.scss +183 -0
  553. package/src/scss/utils/_functions.scss +49 -0
  554. package/src/scss/utils/_helpers.scss +6 -0
  555. package/src/scss/utils/_variables-ext.scss +2 -0
  556. package/src/scss/utils/_variables.scss +16 -0
  557. package/src/utils/CheckRadioMixin.spec.ts +28 -0
  558. package/src/utils/CheckRadioMixin.ts +61 -0
  559. package/src/utils/CompatFallthroughMixin.ts +34 -0
  560. package/src/utils/ConfigComponent.ts +12 -0
  561. package/src/utils/FormElementMixin.spec.ts +41 -0
  562. package/src/utils/FormElementMixin.ts +206 -0
  563. package/src/utils/InjectedChildMixin.ts +139 -0
  564. package/src/utils/MessageMixin.spec.ts +51 -0
  565. package/src/utils/MessageMixin.ts +138 -0
  566. package/src/utils/NoticeMixin.spec.ts +55 -0
  567. package/src/utils/NoticeMixin.ts +181 -0
  568. package/src/utils/ProvideInjectTypes.ts +20 -0
  569. package/src/utils/ProviderParentMixin.ts +105 -0
  570. package/src/utils/SlotComponent.spec.ts +55 -0
  571. package/src/utils/SlotComponent.ts +38 -0
  572. package/src/utils/TabbedChildMixin.ts +96 -0
  573. package/src/utils/TabbedMixin.ts +166 -0
  574. package/src/utils/TabbedTypes.ts +33 -0
  575. package/src/utils/TimepickerMixin.spec.ts +75 -0
  576. package/src/utils/TimepickerMixin.ts +767 -0
  577. package/src/utils/color.spec.ts +55 -0
  578. package/src/utils/color.ts +507 -0
  579. package/src/utils/config.spec.ts +11 -0
  580. package/src/utils/config.ts +619 -0
  581. package/src/utils/debounce.spec.ts +52 -0
  582. package/src/utils/debounce.ts +20 -0
  583. package/src/utils/helpers.spec.ts +257 -0
  584. package/src/utils/helpers.ts +527 -0
  585. package/src/utils/icons.ts +73 -0
  586. package/src/utils/plugins.ts +20 -0
  587. package/src/utils/ssr.ts +6 -0
  588. package/src/utils/vue-augmentation.ts +35 -0
@@ -0,0 +1,1202 @@
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
+ (function (global, factory) {
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
+ typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Dialog = {}, global.Vue));
6
+ })(this, (function (exports, vue) { 'use strict';
7
+
8
+ const findFocusable = (element, programmatic = false) => {
9
+ if (!element) {
10
+ return null;
11
+ }
12
+ if (programmatic) {
13
+ return element.querySelectorAll('*[tabindex="-1"]');
14
+ }
15
+ return element.querySelectorAll(`a[href]:not([tabindex="-1"]),
16
+ area[href],
17
+ input:not([disabled]),
18
+ select:not([disabled]),
19
+ textarea:not([disabled]),
20
+ button:not([disabled]),
21
+ iframe,
22
+ object,
23
+ embed,
24
+ *[tabindex]:not([tabindex="-1"]),
25
+ *[contenteditable]`);
26
+ };
27
+ let onKeyDown;
28
+ const beforeMount = (el, { value = true }) => {
29
+ if (value) {
30
+ let focusable = findFocusable(el);
31
+ let focusableProg = findFocusable(el, true);
32
+ if (focusable && focusable.length > 0) {
33
+ onKeyDown = (event) => {
34
+ focusable = findFocusable(el);
35
+ focusableProg = findFocusable(el, true);
36
+ const firstFocusable = focusable[0];
37
+ const lastFocusable = focusable[focusable.length - 1];
38
+ if (event.target === firstFocusable && event.shiftKey && event.key === "Tab") {
39
+ event.preventDefault();
40
+ lastFocusable.focus();
41
+ } else if ((event.target === lastFocusable || Array.from(focusableProg).indexOf(event.target) >= 0) && !event.shiftKey && event.key === "Tab") {
42
+ event.preventDefault();
43
+ firstFocusable.focus();
44
+ }
45
+ };
46
+ el.addEventListener("keydown", onKeyDown);
47
+ }
48
+ }
49
+ };
50
+ const unmounted = (el) => {
51
+ el.removeEventListener("keydown", onKeyDown);
52
+ };
53
+ const directive = {
54
+ beforeMount,
55
+ unmounted
56
+ };
57
+
58
+ let config = {
59
+ defaultContainerElement: null,
60
+ defaultIconPack: "mdi",
61
+ defaultIconComponent: null,
62
+ defaultModalCanCancel: ["escape", "x", "outside", "button"],
63
+ defaultTrapFocus: true,
64
+ defaultAutoFocus: true,
65
+ defaultButtonRounded: false,
66
+ defaultLinkTags: [
67
+ "a",
68
+ "button",
69
+ "input",
70
+ "router-link",
71
+ "nuxt-link",
72
+ "n-link",
73
+ "RouterLink",
74
+ "NuxtLink",
75
+ "NLink"
76
+ ]};
77
+
78
+ function removeElement(el) {
79
+ if (typeof el.remove !== "undefined") {
80
+ el.remove();
81
+ } else if (typeof el.parentNode !== "undefined" && el.parentNode !== null) {
82
+ el.parentNode.removeChild(el);
83
+ }
84
+ }
85
+ function getComponentFromVNode(vnode) {
86
+ if (!vnode) {
87
+ return void 0;
88
+ }
89
+ const { component } = vnode;
90
+ if (!component) {
91
+ return void 0;
92
+ }
93
+ return component.exposed && component.exposeProxy || component.proxy;
94
+ }
95
+ function copyAppContext(src, dest) {
96
+ const { _context: srcContext } = src;
97
+ const { _context: destContext } = dest;
98
+ destContext.config = srcContext.config;
99
+ destContext.mixins = srcContext.mixins;
100
+ destContext.components = srcContext.components;
101
+ destContext.directives = srcContext.directives;
102
+ destContext.provides = srcContext.provides;
103
+ destContext.optionsCache = srcContext.optionsCache;
104
+ destContext.propsCache = srcContext.propsCache;
105
+ destContext.emitsCache = srcContext.emitsCache;
106
+ if ("__VUE_I18N_SYMBOL__" in src) {
107
+ dest.__VUE_I18N_SYMBOL__ = src.__VUE_I18N_SYMBOL__;
108
+ }
109
+ }
110
+
111
+ const mdiIcons = {
112
+ sizes: {
113
+ default: "mdi-24px",
114
+ "is-small": null,
115
+ "is-medium": "mdi-36px",
116
+ "is-large": "mdi-48px"
117
+ },
118
+ iconPrefix: "mdi-"
119
+ };
120
+ const faIcons = () => {
121
+ const faIconPrefix = "fa-";
122
+ return {
123
+ sizes: {
124
+ default: null,
125
+ "is-small": null,
126
+ "is-medium": faIconPrefix + "lg",
127
+ "is-large": faIconPrefix + "2x"
128
+ },
129
+ iconPrefix: faIconPrefix,
130
+ internalIcons: {
131
+ information: "info-circle",
132
+ alert: "exclamation-triangle",
133
+ "alert-circle": "exclamation-circle",
134
+ "chevron-right": "angle-right",
135
+ "chevron-left": "angle-left",
136
+ "chevron-down": "angle-down",
137
+ "eye-off": "eye-slash",
138
+ "menu-down": "caret-down",
139
+ "menu-up": "caret-up",
140
+ "close-circle": "times-circle"
141
+ }
142
+ };
143
+ };
144
+ const getIcons = () => {
145
+ let icons = {
146
+ mdi: mdiIcons,
147
+ fa: faIcons(),
148
+ fas: faIcons(),
149
+ far: faIcons(),
150
+ fad: faIcons(),
151
+ fab: faIcons(),
152
+ fal: faIcons(),
153
+ "fa-solid": faIcons(),
154
+ "fa-regular": faIcons(),
155
+ "fa-light": faIcons(),
156
+ "fa-thin": faIcons(),
157
+ "fa-duotone": faIcons(),
158
+ "fa-brands": faIcons()
159
+ };
160
+ return icons;
161
+ };
162
+
163
+ var _sfc_main$1 = vue.defineComponent({
164
+ name: "BIcon",
165
+ props: {
166
+ type: [String, Object],
167
+ component: String,
168
+ pack: String,
169
+ icon: {
170
+ type: String,
171
+ required: true
172
+ },
173
+ size: String,
174
+ customSize: String,
175
+ customClass: String,
176
+ both: Boolean
177
+ // This is used internally to show both MDI and FA icon
178
+ },
179
+ computed: {
180
+ iconConfig() {
181
+ const allIcons = getIcons();
182
+ return allIcons[this.newPack];
183
+ },
184
+ iconPrefix() {
185
+ if (this.iconConfig && this.iconConfig.iconPrefix) {
186
+ return this.iconConfig.iconPrefix;
187
+ }
188
+ return "";
189
+ },
190
+ /*
191
+ * Internal icon name based on the pack.
192
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
193
+ * internal icons are always MDI.
194
+ */
195
+ newIcon() {
196
+ return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
197
+ },
198
+ newPack() {
199
+ return this.pack || config.defaultIconPack;
200
+ },
201
+ newType() {
202
+ if (!this.type) return;
203
+ let splitType = [];
204
+ if (typeof this.type === "string") {
205
+ splitType = this.type.split("-");
206
+ } else {
207
+ for (const key in this.type) {
208
+ if (this.type[key]) {
209
+ splitType = key.split("-");
210
+ break;
211
+ }
212
+ }
213
+ }
214
+ if (splitType.length <= 1) return;
215
+ const [, ...type] = splitType;
216
+ return `has-text-${type.join("-")}`;
217
+ },
218
+ newCustomSize() {
219
+ return this.customSize || this.customSizeByPack;
220
+ },
221
+ customSizeByPack() {
222
+ if (this.iconConfig && this.iconConfig.sizes) {
223
+ if (this.size && this.iconConfig.sizes[this.size] !== void 0) {
224
+ return this.iconConfig.sizes[this.size];
225
+ } else if (this.iconConfig.sizes.default) {
226
+ return this.iconConfig.sizes.default;
227
+ }
228
+ }
229
+ return null;
230
+ },
231
+ useIconComponent() {
232
+ return this.component || config.defaultIconComponent;
233
+ }
234
+ },
235
+ methods: {
236
+ /*
237
+ * Equivalent icon name of the MDI.
238
+ */
239
+ getEquivalentIconOf(value) {
240
+ if (!this.both) {
241
+ return value;
242
+ }
243
+ if (this.iconConfig == null) {
244
+ return value;
245
+ }
246
+ const maybeInternal = this.iconConfig;
247
+ if (maybeInternal && maybeInternal.internalIcons && maybeInternal.internalIcons[value]) {
248
+ return maybeInternal.internalIcons[value];
249
+ }
250
+ return value;
251
+ }
252
+ }
253
+ });
254
+
255
+ var _export_sfc = (sfc, props) => {
256
+ const target = sfc.__vccOpts || sfc;
257
+ for (const [key, val] of props) {
258
+ target[key] = val;
259
+ }
260
+ return target;
261
+ };
262
+
263
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
264
+ return vue.openBlock(), vue.createElementBlock(
265
+ "span",
266
+ {
267
+ class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
268
+ },
269
+ [
270
+ !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
271
+ "i",
272
+ {
273
+ key: 0,
274
+ class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
275
+ },
276
+ null,
277
+ 2
278
+ /* CLASS */
279
+ )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
280
+ key: 1,
281
+ icon: [_ctx.newPack, _ctx.newIcon],
282
+ size: _ctx.newCustomSize,
283
+ class: vue.normalizeClass([_ctx.customClass])
284
+ }, null, 8, ["icon", "size", "class"]))
285
+ ],
286
+ 2
287
+ /* CLASS */
288
+ );
289
+ }
290
+ var BIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$3]]);
291
+
292
+ const MODAL_SCROLLS = ["clip", "keep"];
293
+ const MODAL_ARIA_ROLES = ["dialog", "alertdialog"];
294
+ const Modal$1 = vue.defineComponent({
295
+ name: "BModal",
296
+ directives: {
297
+ trapFocus: directive
298
+ },
299
+ props: {
300
+ modelValue: Boolean,
301
+ component: [Object, Function, String],
302
+ content: {
303
+ type: [String, Object, Array]
304
+ },
305
+ programmatic: Boolean,
306
+ props: Object,
307
+ events: {
308
+ type: Object,
309
+ default() {
310
+ return {};
311
+ }
312
+ },
313
+ width: {
314
+ type: [String, Number],
315
+ default: 960
316
+ },
317
+ hasModalCard: Boolean,
318
+ animation: {
319
+ type: String,
320
+ default: "zoom-out"
321
+ },
322
+ canCancel: {
323
+ type: [Array, Boolean],
324
+ default: () => {
325
+ return config.defaultModalCanCancel;
326
+ }
327
+ },
328
+ cancelCallback: {
329
+ type: Function,
330
+ default: () => {
331
+ }
332
+ },
333
+ scroll: {
334
+ type: String,
335
+ default: () => {
336
+ return "clip";
337
+ },
338
+ validator: (value) => {
339
+ return MODAL_SCROLLS.indexOf(value) >= 0;
340
+ }
341
+ },
342
+ fullScreen: Boolean,
343
+ trapFocus: {
344
+ type: Boolean,
345
+ default: () => {
346
+ return config.defaultTrapFocus;
347
+ }
348
+ },
349
+ autoFocus: {
350
+ type: Boolean,
351
+ default: () => {
352
+ return config.defaultAutoFocus;
353
+ }
354
+ },
355
+ customClass: String,
356
+ customContentClass: [String, Array, Object],
357
+ ariaRole: {
358
+ type: String,
359
+ validator: (value) => {
360
+ return MODAL_ARIA_ROLES.indexOf(value) >= 0;
361
+ }
362
+ },
363
+ ariaModal: Boolean,
364
+ ariaLabel: {
365
+ type: String,
366
+ validator: (value) => {
367
+ return Boolean(value);
368
+ }
369
+ },
370
+ closeButtonAriaLabel: String,
371
+ destroyOnHide: {
372
+ type: Boolean,
373
+ default: true
374
+ },
375
+ renderOnMounted: {
376
+ type: Boolean,
377
+ default: false
378
+ }
379
+ },
380
+ emits: {
381
+ "after-enter": () => true,
382
+ "after-leave": () => true,
383
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
384
+ cancel: (method) => true,
385
+ close: () => true,
386
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
387
+ "update:modelValue": (active) => true
388
+ },
389
+ data() {
390
+ return {
391
+ isActive: this.modelValue || false,
392
+ savedScrollTop: null,
393
+ newWidth: typeof this.width === "number" ? this.width + "px" : this.width,
394
+ animating: !this.modelValue,
395
+ destroyed: !(this.modelValue || this.renderOnMounted)
396
+ };
397
+ },
398
+ computed: {
399
+ cancelOptions() {
400
+ return typeof this.canCancel === "boolean" ? this.canCancel ? config.defaultModalCanCancel : [] : this.canCancel;
401
+ },
402
+ showX() {
403
+ return this.cancelOptions.indexOf("x") >= 0;
404
+ },
405
+ customStyle() {
406
+ if (!this.fullScreen) {
407
+ return { maxWidth: this.newWidth };
408
+ }
409
+ return null;
410
+ }
411
+ },
412
+ watch: {
413
+ modelValue(value) {
414
+ this.isActive = value;
415
+ },
416
+ isActive(value) {
417
+ if (value) this.destroyed = false;
418
+ this.handleScroll();
419
+ this.$nextTick(() => {
420
+ if (value && this.$el && this.$el.focus && this.autoFocus) {
421
+ this.$el.focus();
422
+ }
423
+ });
424
+ }
425
+ },
426
+ methods: {
427
+ handleScroll() {
428
+ if (typeof window === "undefined") return;
429
+ if (this.scroll === "clip") {
430
+ if (this.isActive) {
431
+ document.documentElement.classList.add("is-clipped");
432
+ } else {
433
+ document.documentElement.classList.remove("is-clipped");
434
+ }
435
+ return;
436
+ }
437
+ this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
438
+ if (this.isActive) {
439
+ document.body.classList.add("is-noscroll");
440
+ } else {
441
+ document.body.classList.remove("is-noscroll");
442
+ }
443
+ if (this.isActive) {
444
+ document.body.style.top = `-${this.savedScrollTop}px`;
445
+ return;
446
+ }
447
+ document.documentElement.scrollTop = this.savedScrollTop;
448
+ document.body.style.top = "";
449
+ this.savedScrollTop = null;
450
+ },
451
+ /*
452
+ * Close the Modal if canCancel and call the cancelCallback prop (function).
453
+ */
454
+ cancel(method) {
455
+ if (this.cancelOptions.indexOf(method) < 0) return;
456
+ this.$emit("cancel", method);
457
+ this.cancelCallback.apply(null, [method]);
458
+ this.close();
459
+ },
460
+ /*
461
+ * Call the cancelCallback prop (function).
462
+ * Emit events, and destroy modal if it's programmatic.
463
+ */
464
+ close() {
465
+ this.$emit("close");
466
+ this.$emit("update:modelValue", false);
467
+ if (this.programmatic) {
468
+ this.isActive = false;
469
+ setTimeout(() => {
470
+ removeElement(this.$el);
471
+ }, 150);
472
+ }
473
+ },
474
+ /*
475
+ * Keypress event that is bound to the document.
476
+ */
477
+ keyPress({ key }) {
478
+ if (this.isActive && (key === "Escape" || key === "Esc")) this.cancel("escape");
479
+ },
480
+ /*
481
+ * Transition after-enter hook
482
+ */
483
+ afterEnter() {
484
+ this.animating = false;
485
+ this.$emit("after-enter");
486
+ },
487
+ /*
488
+ * Transition before-leave hook
489
+ */
490
+ beforeLeave() {
491
+ this.animating = true;
492
+ },
493
+ /*
494
+ * Transition after-leave hook
495
+ */
496
+ afterLeave() {
497
+ if (this.destroyOnHide) {
498
+ this.destroyed = true;
499
+ }
500
+ this.$emit("after-leave");
501
+ }
502
+ },
503
+ created() {
504
+ if (typeof window !== "undefined") {
505
+ document.addEventListener("keyup", this.keyPress);
506
+ }
507
+ },
508
+ mounted() {
509
+ if (this.programmatic) {
510
+ document.body.appendChild(this.$el);
511
+ this.isActive = true;
512
+ } else if (this.isActive) this.handleScroll();
513
+ },
514
+ beforeUnmount() {
515
+ if (typeof window !== "undefined") {
516
+ document.removeEventListener("keyup", this.keyPress);
517
+ document.documentElement.classList.remove("is-clipped");
518
+ const savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
519
+ document.body.classList.remove("is-noscroll");
520
+ document.documentElement.scrollTop = savedScrollTop;
521
+ document.body.style.top = "";
522
+ }
523
+ }
524
+ });
525
+
526
+ const _hoisted_1$2 = ["role", "aria-label", "aria-modal"];
527
+ const _hoisted_2$2 = ["innerHTML"];
528
+ const _hoisted_3$1 = ["aria-label"];
529
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
530
+ const _directive_trap_focus = vue.resolveDirective("trap-focus");
531
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
532
+ name: _ctx.animation,
533
+ onAfterEnter: _ctx.afterEnter,
534
+ onBeforeLeave: _ctx.beforeLeave,
535
+ onAfterLeave: _ctx.afterLeave
536
+ }, {
537
+ default: vue.withCtx(() => [
538
+ !_ctx.destroyed ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
539
+ key: 0,
540
+ class: vue.normalizeClass(["modal is-active", [{ "is-full-screen": _ctx.fullScreen }, _ctx.customClass]]),
541
+ tabindex: "-1",
542
+ role: _ctx.ariaRole,
543
+ "aria-label": _ctx.ariaLabel,
544
+ "aria-modal": _ctx.ariaModal || void 0
545
+ }, [
546
+ vue.createElementVNode("div", {
547
+ class: "modal-background",
548
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
549
+ }),
550
+ vue.createElementVNode(
551
+ "div",
552
+ {
553
+ class: vue.normalizeClass(["animation-content", [{ "modal-content": !_ctx.hasModalCard }, _ctx.customContentClass]]),
554
+ style: vue.normalizeStyle(_ctx.customStyle)
555
+ },
556
+ [
557
+ _ctx.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.component), vue.mergeProps({ key: 0 }, _ctx.props, vue.toHandlers(_ctx.events), {
558
+ "can-cancel": _ctx.canCancel,
559
+ onClose: _ctx.close
560
+ }), null, 16, ["can-cancel", "onClose"])) : _ctx.content ? (vue.openBlock(), vue.createElementBlock(
561
+ vue.Fragment,
562
+ { key: 1 },
563
+ [
564
+ vue.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
565
+ vue.createElementVNode("div", { innerHTML: _ctx.content }, null, 8, _hoisted_2$2)
566
+ ],
567
+ 64
568
+ /* STABLE_FRAGMENT */
569
+ )) : vue.renderSlot(_ctx.$slots, "default", {
570
+ key: 2,
571
+ canCancel: _ctx.canCancel,
572
+ close: _ctx.close
573
+ }),
574
+ _ctx.showX ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
575
+ key: 3,
576
+ type: "button",
577
+ class: "modal-close is-large",
578
+ "aria-label": _ctx.closeButtonAriaLabel,
579
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.cancel("x"))
580
+ }, null, 8, _hoisted_3$1)), [
581
+ [vue.vShow, !_ctx.animating]
582
+ ]) : vue.createCommentVNode("v-if", true)
583
+ ],
584
+ 6
585
+ /* CLASS, STYLE */
586
+ )
587
+ ], 10, _hoisted_1$2)), [
588
+ [vue.vShow, _ctx.isActive],
589
+ [_directive_trap_focus, _ctx.trapFocus]
590
+ ]) : vue.createCommentVNode("v-if", true)
591
+ ]),
592
+ _: 3
593
+ /* FORWARDED */
594
+ }, 8, ["name", "onAfterEnter", "onBeforeLeave", "onAfterLeave"]);
595
+ }
596
+ var Modal = /* @__PURE__ */ _export_sfc(Modal$1, [["render", _sfc_render$2]]);
597
+
598
+ const NATIVE_TYPES = [
599
+ "button",
600
+ "submit",
601
+ "reset"
602
+ ];
603
+ var _sfc_main = vue.defineComponent({
604
+ name: "BButton",
605
+ components: { BIcon },
606
+ inheritAttrs: false,
607
+ props: {
608
+ type: [String, Object],
609
+ size: String,
610
+ label: String,
611
+ iconPack: String,
612
+ iconLeft: String,
613
+ iconRight: String,
614
+ rounded: {
615
+ type: Boolean,
616
+ default: () => {
617
+ return config.defaultButtonRounded;
618
+ }
619
+ },
620
+ loading: Boolean,
621
+ outlined: Boolean,
622
+ expanded: Boolean,
623
+ inverted: Boolean,
624
+ focused: Boolean,
625
+ active: Boolean,
626
+ hovered: Boolean,
627
+ selected: Boolean,
628
+ nativeType: {
629
+ type: String,
630
+ default: "button",
631
+ validator: (value) => {
632
+ return NATIVE_TYPES.indexOf(value) >= 0;
633
+ }
634
+ },
635
+ tag: {
636
+ type: [String, Object],
637
+ default: "button",
638
+ validator: (value) => {
639
+ return typeof value === "object" || config.defaultLinkTags.indexOf(value) >= 0;
640
+ }
641
+ }
642
+ },
643
+ computed: {
644
+ computedTag() {
645
+ if (this.$attrs.disabled !== void 0 && this.$attrs.disabled !== false) {
646
+ return "button";
647
+ }
648
+ return this.tag;
649
+ },
650
+ iconSize() {
651
+ if (!this.size || this.size === "is-medium") {
652
+ return "is-small";
653
+ } else if (this.size === "is-large") {
654
+ return "is-medium";
655
+ }
656
+ return this.size;
657
+ }
658
+ }
659
+ });
660
+
661
+ const _hoisted_1$1 = { key: 1 };
662
+ const _hoisted_2$1 = { key: 2 };
663
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
664
+ const _component_b_icon = vue.resolveComponent("b-icon");
665
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.computedTag), vue.mergeProps({ class: "button" }, _ctx.$attrs, {
666
+ type: typeof _ctx.computedTag === "string" && ["button", "input"].includes(_ctx.computedTag) ? _ctx.nativeType : void 0,
667
+ class: [_ctx.size, _ctx.type, {
668
+ "is-rounded": _ctx.rounded,
669
+ "is-loading": _ctx.loading,
670
+ "is-outlined": _ctx.outlined,
671
+ "is-fullwidth": _ctx.expanded,
672
+ "is-inverted": _ctx.inverted,
673
+ "is-focused": _ctx.focused,
674
+ "is-active": _ctx.active,
675
+ "is-hovered": _ctx.hovered,
676
+ "is-selected": _ctx.selected
677
+ }]
678
+ }), {
679
+ default: vue.withCtx(() => [
680
+ _ctx.iconLeft ? (vue.openBlock(), vue.createBlock(_component_b_icon, {
681
+ key: 0,
682
+ pack: _ctx.iconPack,
683
+ icon: _ctx.iconLeft,
684
+ size: _ctx.iconSize
685
+ }, null, 8, ["pack", "icon", "size"])) : vue.createCommentVNode("v-if", true),
686
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock(
687
+ "span",
688
+ _hoisted_1$1,
689
+ vue.toDisplayString(_ctx.label),
690
+ 1
691
+ /* TEXT */
692
+ )) : _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$1, [
693
+ vue.renderSlot(_ctx.$slots, "default")
694
+ ])) : vue.createCommentVNode("v-if", true),
695
+ _ctx.iconRight ? (vue.openBlock(), vue.createBlock(_component_b_icon, {
696
+ key: 3,
697
+ pack: _ctx.iconPack,
698
+ icon: _ctx.iconRight,
699
+ size: _ctx.iconSize
700
+ }, null, 8, ["pack", "icon", "size"])) : vue.createCommentVNode("v-if", true)
701
+ ]),
702
+ _: 3
703
+ /* FORWARDED */
704
+ }, 16, ["type", "class"]);
705
+ }
706
+ var BButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render$1]]);
707
+
708
+ var __defProp$1 = Object.defineProperty;
709
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
710
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
711
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
712
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
713
+ var __spreadValues$1 = (a, b) => {
714
+ for (var prop in b || (b = {}))
715
+ if (__hasOwnProp$1.call(b, prop))
716
+ __defNormalProp$1(a, prop, b[prop]);
717
+ if (__getOwnPropSymbols$1)
718
+ for (var prop of __getOwnPropSymbols$1(b)) {
719
+ if (__propIsEnum$1.call(b, prop))
720
+ __defNormalProp$1(a, prop, b[prop]);
721
+ }
722
+ return a;
723
+ };
724
+ const Dialog$1 = vue.defineComponent({
725
+ name: "BDialog",
726
+ components: {
727
+ BIcon,
728
+ BButton
729
+ },
730
+ directives: {
731
+ trapFocus: directive
732
+ },
733
+ extends: Modal,
734
+ props: {
735
+ title: String,
736
+ message: [String, Array],
737
+ icon: String,
738
+ iconPack: String,
739
+ hasIcon: Boolean,
740
+ type: {
741
+ type: String,
742
+ default: "is-primary"
743
+ },
744
+ size: String,
745
+ confirmText: {
746
+ type: String,
747
+ default: () => {
748
+ return "OK";
749
+ }
750
+ },
751
+ cancelText: {
752
+ type: String,
753
+ default: () => {
754
+ return "Cancel";
755
+ }
756
+ },
757
+ hasInput: Boolean,
758
+ // Used internally to know if it's prompt
759
+ inputAttrs: {
760
+ type: Object,
761
+ default: () => ({})
762
+ },
763
+ confirmCallback: {
764
+ // I was not able to figure out how to specify the "self" type here
765
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
766
+ type: Function,
767
+ default: () => {
768
+ }
769
+ },
770
+ closeOnConfirm: {
771
+ type: Boolean,
772
+ default: true
773
+ },
774
+ container: {
775
+ type: String,
776
+ default: () => {
777
+ return config.defaultContainerElement;
778
+ }
779
+ },
780
+ focusOn: {
781
+ type: String,
782
+ default: "confirm"
783
+ }
784
+ },
785
+ emits: {
786
+ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */
787
+ // second parameter is the dialog instance but typed any
788
+ // because I was not able to figure out how to specify the "self" type here
789
+ confirm: (value, dialog) => true
790
+ /* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */
791
+ },
792
+ data() {
793
+ const prompt = this.hasInput ? this.inputAttrs.value || "" : "";
794
+ return {
795
+ prompt,
796
+ isActive: false,
797
+ validationMessage: "",
798
+ isCompositing: false,
799
+ isLoading: false
800
+ };
801
+ },
802
+ computed: {
803
+ // `safeInputAttrs` is a shallow copy of `inputAttrs` except for `value`
804
+ // `value` should not be specified to `v-bind` of the input element
805
+ // because it inhibits `v-model` of the input on Vue 3
806
+ safeInputAttrs() {
807
+ const attrs = __spreadValues$1({}, this.inputAttrs);
808
+ delete attrs.value;
809
+ if (typeof attrs.required === "undefined") {
810
+ attrs.required = true;
811
+ }
812
+ return attrs;
813
+ },
814
+ dialogClass() {
815
+ return [this.size, {
816
+ "has-custom-container": this.container !== null
817
+ }];
818
+ },
819
+ /*
820
+ * Icon name (MDI) based on the type.
821
+ */
822
+ iconByType() {
823
+ switch (this.type) {
824
+ case "is-info":
825
+ return "information";
826
+ case "is-success":
827
+ return "check-circle";
828
+ case "is-warning":
829
+ return "alert";
830
+ case "is-danger":
831
+ return "alert-circle";
832
+ default:
833
+ return null;
834
+ }
835
+ },
836
+ showCancel() {
837
+ return this.cancelOptions.indexOf("button") >= 0;
838
+ }
839
+ },
840
+ methods: {
841
+ /*
842
+ * If it's a prompt Dialog, validate the input.
843
+ * Call the confirmCallback prop (function) and close the Dialog.
844
+ */
845
+ confirm() {
846
+ const input = this.$refs.input;
847
+ if (input != null) {
848
+ if (this.isCompositing) return;
849
+ if (!input.checkValidity()) {
850
+ this.validationMessage = input.validationMessage;
851
+ this.$nextTick(() => input.select());
852
+ return;
853
+ }
854
+ }
855
+ this.$emit("confirm", this.prompt, this);
856
+ this.confirmCallback(this.prompt, this);
857
+ if (this.closeOnConfirm) this.close();
858
+ },
859
+ /*
860
+ * Close the Dialog.
861
+ */
862
+ close() {
863
+ this.isActive = false;
864
+ this.isLoading = false;
865
+ setTimeout(() => {
866
+ removeElement(this.$el);
867
+ }, 150);
868
+ },
869
+ /*
870
+ * Start the Loading.
871
+ */
872
+ startLoading() {
873
+ this.isLoading = true;
874
+ },
875
+ /*
876
+ * Cancel the Loading.
877
+ */
878
+ cancelLoading() {
879
+ this.isLoading = false;
880
+ }
881
+ },
882
+ beforeMount() {
883
+ if (typeof window !== "undefined") {
884
+ this.$nextTick(() => {
885
+ const container = document.querySelector(this.container) || document.body;
886
+ container.appendChild(this.$el);
887
+ });
888
+ }
889
+ },
890
+ mounted() {
891
+ this.isActive = true;
892
+ this.$nextTick(() => {
893
+ if (this.hasInput) {
894
+ this.$refs.input.focus();
895
+ } else if (this.focusOn === "cancel" && this.showCancel) {
896
+ this.$refs.cancelButton.$el.focus();
897
+ } else {
898
+ this.$refs.confirmButton.$el.focus();
899
+ }
900
+ });
901
+ }
902
+ });
903
+
904
+ const _hoisted_1 = ["role", "aria-modal"];
905
+ const _hoisted_2 = { class: "modal-card animation-content" };
906
+ const _hoisted_3 = {
907
+ key: 0,
908
+ class: "modal-card-head"
909
+ };
910
+ const _hoisted_4 = { class: "modal-card-title" };
911
+ const _hoisted_5 = { class: "media" };
912
+ const _hoisted_6 = {
913
+ key: 0,
914
+ class: "media-left"
915
+ };
916
+ const _hoisted_7 = { class: "media-content" };
917
+ const _hoisted_8 = ["innerHTML"];
918
+ const _hoisted_9 = {
919
+ key: 0,
920
+ class: "field"
921
+ };
922
+ const _hoisted_10 = { class: "control" };
923
+ const _hoisted_11 = { class: "help is-danger" };
924
+ const _hoisted_12 = { class: "modal-card-foot" };
925
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
926
+ const _component_b_icon = vue.resolveComponent("b-icon");
927
+ const _component_b_button = vue.resolveComponent("b-button");
928
+ const _directive_trap_focus = vue.resolveDirective("trap-focus");
929
+ return vue.openBlock(), vue.createBlock(vue.Transition, { name: _ctx.animation }, {
930
+ default: vue.withCtx(() => [
931
+ _ctx.isActive ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
932
+ key: 0,
933
+ class: vue.normalizeClass(["dialog modal is-active", _ctx.dialogClass]),
934
+ role: _ctx.ariaRole,
935
+ "aria-modal": _ctx.ariaModal
936
+ }, [
937
+ vue.createElementVNode("div", {
938
+ class: "modal-background",
939
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
940
+ }),
941
+ vue.createElementVNode("div", _hoisted_2, [
942
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_3, [
943
+ vue.createElementVNode(
944
+ "p",
945
+ _hoisted_4,
946
+ vue.toDisplayString(_ctx.title),
947
+ 1
948
+ /* TEXT */
949
+ )
950
+ ])) : vue.createCommentVNode("v-if", true),
951
+ vue.createElementVNode(
952
+ "section",
953
+ {
954
+ class: vue.normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
955
+ },
956
+ [
957
+ vue.createElementVNode("div", _hoisted_5, [
958
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
959
+ vue.createVNode(_component_b_icon, {
960
+ icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
961
+ pack: _ctx.iconPack,
962
+ type: _ctx.type,
963
+ both: !_ctx.icon,
964
+ size: "is-large"
965
+ }, null, 8, ["icon", "pack", "type", "both"])
966
+ ])) : vue.createCommentVNode("v-if", true),
967
+ vue.createElementVNode("div", _hoisted_7, [
968
+ vue.createElementVNode("p", null, [
969
+ _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(
970
+ vue.Fragment,
971
+ { key: 1 },
972
+ [
973
+ vue.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
974
+ vue.createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_8)
975
+ ],
976
+ 64
977
+ /* STABLE_FRAGMENT */
978
+ ))
979
+ ]),
980
+ _ctx.hasInput ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
981
+ vue.createElementVNode("div", _hoisted_10, [
982
+ vue.withDirectives(vue.createElementVNode(
983
+ "input",
984
+ vue.mergeProps({
985
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
986
+ class: ["input", { "is-danger": _ctx.validationMessage }],
987
+ ref: "input"
988
+ }, _ctx.safeInputAttrs, {
989
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
990
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
991
+ onKeydown: _cache[4] || (_cache[4] = vue.withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
992
+ }),
993
+ null,
994
+ 16
995
+ /* FULL_PROPS */
996
+ ), [
997
+ [vue.vModelDynamic, _ctx.prompt]
998
+ ])
999
+ ]),
1000
+ vue.createElementVNode(
1001
+ "p",
1002
+ _hoisted_11,
1003
+ vue.toDisplayString(_ctx.validationMessage),
1004
+ 1
1005
+ /* TEXT */
1006
+ )
1007
+ ])) : vue.createCommentVNode("v-if", true)
1008
+ ])
1009
+ ])
1010
+ ],
1011
+ 2
1012
+ /* CLASS */
1013
+ ),
1014
+ vue.createElementVNode("footer", _hoisted_12, [
1015
+ _ctx.showCancel ? (vue.openBlock(), vue.createBlock(_component_b_button, {
1016
+ key: 0,
1017
+ ref: "cancelButton",
1018
+ disabled: _ctx.isLoading,
1019
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
1020
+ }, {
1021
+ default: vue.withCtx(() => [
1022
+ vue.createTextVNode(
1023
+ vue.toDisplayString(_ctx.cancelText),
1024
+ 1
1025
+ /* TEXT */
1026
+ )
1027
+ ]),
1028
+ _: 1
1029
+ /* STABLE */
1030
+ }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
1031
+ vue.createVNode(_component_b_button, {
1032
+ type: _ctx.type,
1033
+ ref: "confirmButton",
1034
+ loading: _ctx.isLoading,
1035
+ onClick: _ctx.confirm
1036
+ }, {
1037
+ default: vue.withCtx(() => [
1038
+ vue.createTextVNode(
1039
+ vue.toDisplayString(_ctx.confirmText),
1040
+ 1
1041
+ /* TEXT */
1042
+ )
1043
+ ]),
1044
+ _: 1
1045
+ /* STABLE */
1046
+ }, 8, ["type", "loading", "onClick"])
1047
+ ])
1048
+ ])
1049
+ ], 10, _hoisted_1)), [
1050
+ [_directive_trap_focus, _ctx.trapFocus]
1051
+ ]) : vue.createCommentVNode("v-if", true)
1052
+ ]),
1053
+ _: 3
1054
+ /* FORWARDED */
1055
+ }, 8, ["name"]);
1056
+ }
1057
+ var Dialog = /* @__PURE__ */ _export_sfc(Dialog$1, [["render", _sfc_render]]);
1058
+
1059
+ const registerComponent = (Vue, component, name) => {
1060
+ const componentName = component.name;
1061
+ if (componentName == null) {
1062
+ throw new Error("Buefy.registerComponent: missing component name");
1063
+ }
1064
+ Vue.component(componentName, component);
1065
+ };
1066
+ const registerComponentProgrammatic = (Vue, property, component) => {
1067
+ if (!Vue.config.globalProperties.$buefy) Vue.config.globalProperties.$buefy = {};
1068
+ Vue.config.globalProperties.$buefy[property] = component;
1069
+ };
1070
+
1071
+ var __defProp = Object.defineProperty;
1072
+ var __defProps = Object.defineProperties;
1073
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1074
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1075
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
1076
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
1077
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1078
+ var __spreadValues = (a, b) => {
1079
+ for (var prop in b || (b = {}))
1080
+ if (__hasOwnProp.call(b, prop))
1081
+ __defNormalProp(a, prop, b[prop]);
1082
+ if (__getOwnPropSymbols)
1083
+ for (var prop of __getOwnPropSymbols(b)) {
1084
+ if (__propIsEnum.call(b, prop))
1085
+ __defNormalProp(a, prop, b[prop]);
1086
+ }
1087
+ return a;
1088
+ };
1089
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1090
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
1091
+ function open(propsData, app) {
1092
+ let slot;
1093
+ if (Array.isArray(propsData.message)) {
1094
+ slot = propsData.message;
1095
+ delete propsData.message;
1096
+ }
1097
+ function createDialog(onConfirm, onCancel) {
1098
+ const container = document.createElement("div");
1099
+ const vueInstance = vue.createApp({
1100
+ data() {
1101
+ return {
1102
+ dialogVNode: null
1103
+ };
1104
+ },
1105
+ methods: {
1106
+ close() {
1107
+ const dialog = getComponentFromVNode(this.dialogVNode);
1108
+ if (dialog) {
1109
+ dialog.close();
1110
+ }
1111
+ },
1112
+ startLoading() {
1113
+ const dialog = getComponentFromVNode(this.dialogVNode);
1114
+ if (dialog) {
1115
+ dialog.startLoading();
1116
+ }
1117
+ },
1118
+ cancelLoading() {
1119
+ const dialog = getComponentFromVNode(this.dialogVNode);
1120
+ if (dialog) {
1121
+ dialog.cancelLoading();
1122
+ }
1123
+ }
1124
+ },
1125
+ render() {
1126
+ this.dialogVNode = vue.h(
1127
+ Dialog,
1128
+ __spreadProps(__spreadValues({}, propsData), {
1129
+ // intentionally overrides propsData.onConfirm
1130
+ // to prevent propsData.onConfirm from receiving a "confirm" event
1131
+ onConfirm: (value) => {
1132
+ },
1133
+ // intentionally override propsData.onCancel
1134
+ // to prevent propsData.onCancel from receiving a "cancel" event
1135
+ onCancel: (method) => {
1136
+ vueInstance.unmount();
1137
+ },
1138
+ confirmCallback: (value, dialog) => {
1139
+ if (propsData.onConfirm != null) {
1140
+ propsData.onConfirm(value, dialog);
1141
+ }
1142
+ },
1143
+ cancelCallback: (method) => {
1144
+ if (propsData.onCancel != null) {
1145
+ propsData.onCancel(method);
1146
+ }
1147
+ }
1148
+ }),
1149
+ slot ? { default: () => slot } : void 0
1150
+ );
1151
+ return this.dialogVNode;
1152
+ }
1153
+ });
1154
+ if (app) {
1155
+ copyAppContext(app, vueInstance);
1156
+ }
1157
+ return vueInstance.mount(container);
1158
+ }
1159
+ {
1160
+ return createDialog();
1161
+ }
1162
+ }
1163
+ class DialogProgrammatic {
1164
+ constructor(app) {
1165
+ __publicField(this, "app");
1166
+ this.app = app;
1167
+ }
1168
+ alert(params) {
1169
+ let newParams;
1170
+ if (typeof params === "string") {
1171
+ newParams = {
1172
+ message: params
1173
+ };
1174
+ } else {
1175
+ newParams = params;
1176
+ }
1177
+ newParams = __spreadValues({
1178
+ canCancel: false
1179
+ }, newParams);
1180
+ return open(newParams, this.app);
1181
+ }
1182
+ confirm(params) {
1183
+ return open(params, this.app);
1184
+ }
1185
+ prompt(params) {
1186
+ return open(__spreadValues({ hasInput: true }, params), this.app);
1187
+ }
1188
+ }
1189
+ const Plugin = {
1190
+ install(Vue) {
1191
+ registerComponent(Vue, Dialog);
1192
+ registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue));
1193
+ }
1194
+ };
1195
+
1196
+ exports.BDialog = Dialog;
1197
+ exports.DialogProgrammatic = DialogProgrammatic;
1198
+ exports.default = Plugin;
1199
+
1200
+ Object.defineProperty(exports, '__esModule', { value: true });
1201
+
1202
+ }));