buefy 3.0.2 → 3.0.4

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 (209) hide show
  1. package/dist/buefy.d.ts +37 -4
  2. package/dist/buefy.esm.js +173 -129
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +178 -127
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/autocomplete.js +1 -1
  7. package/dist/cjs/breadcrumb.js +1 -1
  8. package/dist/cjs/button.js +1 -1
  9. package/dist/cjs/carousel.js +1 -1
  10. package/dist/cjs/checkbox.js +1 -1
  11. package/dist/cjs/clockpicker.js +1 -1
  12. package/dist/cjs/collapse.js +1 -1
  13. package/dist/cjs/colorpicker.js +2 -2
  14. package/dist/cjs/config.js +7 -1
  15. package/dist/cjs/datepicker.js +1 -1
  16. package/dist/cjs/datetimepicker.js +1 -1
  17. package/dist/cjs/dialog.js +138 -118
  18. package/dist/cjs/dropdown.js +1 -1
  19. package/dist/cjs/field.js +1 -1
  20. package/dist/cjs/icon.js +1 -1
  21. package/dist/cjs/image.js +1 -1
  22. package/dist/cjs/{index-DiQy3SCb.js → index-SLOXD6k3.js} +1 -1
  23. package/dist/cjs/index.js +10 -3
  24. package/dist/cjs/input.js +1 -1
  25. package/dist/cjs/loading.js +7 -2
  26. package/dist/cjs/menu.js +1 -1
  27. package/dist/cjs/message.js +1 -1
  28. package/dist/cjs/modal.js +7 -2
  29. package/dist/cjs/navbar.js +1 -1
  30. package/dist/cjs/notification.js +7 -2
  31. package/dist/cjs/numberinput.js +1 -1
  32. package/dist/cjs/pagination.js +1 -1
  33. package/dist/cjs/{plugins-DbyYGVpp.js → plugins-BWKpXmCr.js} +2 -1
  34. package/dist/cjs/progress.js +1 -1
  35. package/dist/cjs/radio.js +1 -1
  36. package/dist/cjs/rate.js +1 -1
  37. package/dist/cjs/select.js +1 -1
  38. package/dist/cjs/sidebar.js +1 -1
  39. package/dist/cjs/skeleton.js +1 -1
  40. package/dist/cjs/slider.js +1 -1
  41. package/dist/cjs/snackbar.js +7 -2
  42. package/dist/cjs/steps.js +1 -1
  43. package/dist/cjs/switch.js +1 -1
  44. package/dist/cjs/table.js +1 -1
  45. package/dist/cjs/tabs.js +1 -1
  46. package/dist/cjs/tag.js +1 -1
  47. package/dist/cjs/taginput.js +1 -1
  48. package/dist/cjs/timepicker.js +1 -1
  49. package/dist/cjs/toast.js +7 -2
  50. package/dist/cjs/tooltip.js +1 -1
  51. package/dist/cjs/upload.js +1 -1
  52. package/dist/components/autocomplete/index.js +1 -1
  53. package/dist/components/autocomplete/index.min.js +1 -1
  54. package/dist/components/breadcrumb/index.js +1 -1
  55. package/dist/components/breadcrumb/index.min.js +1 -1
  56. package/dist/components/button/index.js +1 -1
  57. package/dist/components/button/index.min.js +1 -1
  58. package/dist/components/carousel/index.js +1 -1
  59. package/dist/components/carousel/index.min.js +1 -1
  60. package/dist/components/checkbox/index.js +1 -1
  61. package/dist/components/checkbox/index.min.js +1 -1
  62. package/dist/components/clockpicker/index.js +1 -1
  63. package/dist/components/clockpicker/index.min.js +1 -1
  64. package/dist/components/collapse/index.js +1 -1
  65. package/dist/components/collapse/index.min.js +1 -1
  66. package/dist/components/colorpicker/index.js +1 -1
  67. package/dist/components/colorpicker/index.min.js +1 -1
  68. package/dist/components/datepicker/index.js +1 -1
  69. package/dist/components/datepicker/index.min.js +1 -1
  70. package/dist/components/datetimepicker/index.js +1 -1
  71. package/dist/components/datetimepicker/index.min.js +1 -1
  72. package/dist/components/dialog/index.js +140 -119
  73. package/dist/components/dialog/index.min.js +2 -2
  74. package/dist/components/dropdown/index.js +1 -1
  75. package/dist/components/dropdown/index.min.js +1 -1
  76. package/dist/components/field/index.js +1 -1
  77. package/dist/components/field/index.min.js +1 -1
  78. package/dist/components/icon/index.js +1 -1
  79. package/dist/components/icon/index.min.js +1 -1
  80. package/dist/components/image/index.js +1 -1
  81. package/dist/components/image/index.min.js +1 -1
  82. package/dist/components/input/index.js +1 -1
  83. package/dist/components/input/index.min.js +1 -1
  84. package/dist/components/loading/index.js +9 -3
  85. package/dist/components/loading/index.min.js +2 -2
  86. package/dist/components/menu/index.js +1 -1
  87. package/dist/components/menu/index.min.js +1 -1
  88. package/dist/components/message/index.js +1 -1
  89. package/dist/components/message/index.min.js +1 -1
  90. package/dist/components/modal/index.js +9 -3
  91. package/dist/components/modal/index.min.js +2 -2
  92. package/dist/components/navbar/index.js +1 -1
  93. package/dist/components/navbar/index.min.js +1 -1
  94. package/dist/components/notification/index.js +9 -3
  95. package/dist/components/notification/index.min.js +2 -2
  96. package/dist/components/numberinput/index.js +1 -1
  97. package/dist/components/numberinput/index.min.js +1 -1
  98. package/dist/components/pagination/index.js +1 -1
  99. package/dist/components/pagination/index.min.js +1 -1
  100. package/dist/components/progress/index.js +1 -1
  101. package/dist/components/progress/index.min.js +1 -1
  102. package/dist/components/radio/index.js +1 -1
  103. package/dist/components/radio/index.min.js +1 -1
  104. package/dist/components/rate/index.js +1 -1
  105. package/dist/components/rate/index.min.js +1 -1
  106. package/dist/components/select/index.js +1 -1
  107. package/dist/components/select/index.min.js +1 -1
  108. package/dist/components/sidebar/index.js +1 -1
  109. package/dist/components/sidebar/index.min.js +1 -1
  110. package/dist/components/skeleton/index.js +1 -1
  111. package/dist/components/skeleton/index.min.js +1 -1
  112. package/dist/components/slider/index.js +1 -1
  113. package/dist/components/slider/index.min.js +1 -1
  114. package/dist/components/snackbar/index.js +9 -3
  115. package/dist/components/snackbar/index.min.js +2 -2
  116. package/dist/components/steps/index.js +1 -1
  117. package/dist/components/steps/index.min.js +1 -1
  118. package/dist/components/switch/index.js +1 -1
  119. package/dist/components/switch/index.min.js +1 -1
  120. package/dist/components/table/index.js +1 -1
  121. package/dist/components/table/index.min.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/tabs/index.min.js +1 -1
  124. package/dist/components/tag/index.js +1 -1
  125. package/dist/components/tag/index.min.js +1 -1
  126. package/dist/components/taginput/index.js +1 -1
  127. package/dist/components/taginput/index.min.js +1 -1
  128. package/dist/components/timepicker/index.js +1 -1
  129. package/dist/components/timepicker/index.min.js +1 -1
  130. package/dist/components/toast/index.js +9 -3
  131. package/dist/components/toast/index.min.js +2 -2
  132. package/dist/components/tooltip/index.js +1 -1
  133. package/dist/components/tooltip/index.min.js +1 -1
  134. package/dist/components/upload/index.js +1 -1
  135. package/dist/components/upload/index.min.js +1 -1
  136. package/dist/css/buefy.css +70 -61
  137. package/dist/css/buefy.css.map +1 -1
  138. package/dist/css/buefy.min.css +1 -1
  139. package/dist/css/versions/buefy-no-reset.css +70 -61
  140. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  141. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  142. package/dist/css/versions/buefy-standalone.css +171 -56
  143. package/dist/css/versions/buefy-standalone.css.map +1 -1
  144. package/dist/css/versions/buefy-standalone.min.css +1 -1
  145. package/dist/esm/autocomplete.js +1 -1
  146. package/dist/esm/breadcrumb.js +1 -1
  147. package/dist/esm/button.js +1 -1
  148. package/dist/esm/carousel.js +1 -1
  149. package/dist/esm/checkbox.js +1 -1
  150. package/dist/esm/clockpicker.js +1 -1
  151. package/dist/esm/collapse.js +1 -1
  152. package/dist/esm/colorpicker.js +2 -2
  153. package/dist/esm/config.js +6 -2
  154. package/dist/esm/datepicker.js +1 -1
  155. package/dist/esm/datetimepicker.js +1 -1
  156. package/dist/esm/dialog.js +139 -120
  157. package/dist/esm/dropdown.js +1 -1
  158. package/dist/esm/field.js +1 -1
  159. package/dist/esm/icon.js +1 -1
  160. package/dist/esm/image.js +1 -1
  161. package/dist/esm/{index-CQegEsxK.js → index-BE58-KfV.js} +1 -1
  162. package/dist/esm/index.js +12 -11
  163. package/dist/esm/input.js +1 -1
  164. package/dist/esm/loading.js +8 -4
  165. package/dist/esm/menu.js +1 -1
  166. package/dist/esm/message.js +1 -1
  167. package/dist/esm/modal.js +8 -4
  168. package/dist/esm/navbar.js +1 -1
  169. package/dist/esm/notification.js +8 -4
  170. package/dist/esm/numberinput.js +1 -1
  171. package/dist/esm/pagination.js +1 -1
  172. package/dist/esm/{plugins-B172kuKE.js → plugins-1tLsuIZF.js} +2 -1
  173. package/dist/esm/progress.js +1 -1
  174. package/dist/esm/radio.js +1 -1
  175. package/dist/esm/rate.js +1 -1
  176. package/dist/esm/select.js +1 -1
  177. package/dist/esm/sidebar.js +1 -1
  178. package/dist/esm/skeleton.js +1 -1
  179. package/dist/esm/slider.js +1 -1
  180. package/dist/esm/snackbar.js +8 -4
  181. package/dist/esm/steps.js +1 -1
  182. package/dist/esm/switch.js +1 -1
  183. package/dist/esm/table.js +1 -1
  184. package/dist/esm/tabs.js +1 -1
  185. package/dist/esm/tag.js +1 -1
  186. package/dist/esm/taginput.js +1 -1
  187. package/dist/esm/timepicker.js +1 -1
  188. package/dist/esm/toast.js +8 -4
  189. package/dist/esm/tooltip.js +1 -1
  190. package/dist/esm/upload.js +1 -1
  191. package/package.json +1 -2
  192. package/src/components/dialog/Dialog.vue +10 -2
  193. package/src/components/dialog/index.ts +9 -3
  194. package/src/components/loading/index.ts +9 -3
  195. package/src/components/modal/index.ts +9 -3
  196. package/src/components/notification/index.ts +9 -3
  197. package/src/components/snackbar/index.ts +9 -3
  198. package/src/components/toast/index.ts +9 -3
  199. package/src/index.ts +9 -9
  200. package/src/scss/buefy.scss +0 -1
  201. package/src/scss/components/_checkbox.scss +4 -4
  202. package/src/scss/components/_datepicker.scss +1 -1
  203. package/src/scss/components/_dropdown.scss +7 -6
  204. package/src/scss/components/_form.scss +31 -31
  205. package/src/scss/components/_radio.scss +9 -9
  206. package/src/scss/components/_switch.scss +28 -5
  207. package/src/scss/components/_table.scss +2 -1
  208. package/src/utils/ConfigComponent.ts +13 -1
  209. package/src/utils/plugins.ts +3 -2
package/dist/buefy.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.4 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -756,6 +756,10 @@
756
756
  });
757
757
  };
758
758
 
759
+ const configInjectionKey = Symbol("Buefy Config Component");
760
+ function useConfigComponent() {
761
+ return vue.inject(configInjectionKey);
762
+ }
759
763
  var ConfigComponent = {
760
764
  getOptions() {
761
765
  return config;
@@ -2753,9 +2757,10 @@
2753
2757
  }
2754
2758
  Vue.component(componentName, component);
2755
2759
  };
2756
- const registerComponentProgrammatic = (Vue, property, component) => {
2760
+ const registerComponentProgrammatic = (Vue, property, component, injectionKey) => {
2757
2761
  if (!Vue.config.globalProperties.$buefy) Vue.config.globalProperties.$buefy = {};
2758
2762
  Vue.config.globalProperties.$buefy[property] = component;
2763
+ Vue.provide(injectionKey, component);
2759
2764
  };
2760
2765
 
2761
2766
  const Plugin$F = {
@@ -6844,7 +6849,7 @@
6844
6849
  const _hoisted_10$3 = ["d"];
6845
6850
  const _hoisted_11$3 = { class: "colorpicker-triangle-slider-hue" };
6846
6851
  const _hoisted_12$3 = ["width", "height", "clip-path"];
6847
- const _hoisted_13$2 = ["x", "height"];
6852
+ const _hoisted_13$1 = ["x", "height"];
6848
6853
  const _hoisted_14$1 = ["aria-valuenow"];
6849
6854
  const _hoisted_15$1 = ["d", "fill"];
6850
6855
  const _hoisted_16$1 = ["d", "fill"];
@@ -6935,7 +6940,7 @@
6935
6940
  onMousedown: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"])),
6936
6941
  onTouchstart: _cache[6] || (_cache[6] = vue.withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"]))
6937
6942
  }, null, 44, _hoisted_14$1)
6938
- ], 8, _hoisted_13$2))
6943
+ ], 8, _hoisted_13$1))
6939
6944
  ],
6940
6945
  4
6941
6946
  /* STYLE */
@@ -11714,6 +11719,14 @@
11714
11719
  },
11715
11720
  extends: Modal,
11716
11721
  props: {
11722
+ customClass: {
11723
+ type: String,
11724
+ default: ""
11725
+ },
11726
+ customContentClass: {
11727
+ type: String,
11728
+ default: ""
11729
+ },
11717
11730
  title: String,
11718
11731
  message: [String, Array],
11719
11732
  icon: String,
@@ -11884,27 +11897,26 @@
11884
11897
  });
11885
11898
 
11886
11899
  const _hoisted_1$t = ["role", "aria-modal"];
11887
- const _hoisted_2$o = { class: "modal-card animation-content" };
11888
- const _hoisted_3$d = {
11900
+ const _hoisted_2$o = {
11889
11901
  key: 0,
11890
11902
  class: "modal-card-head"
11891
11903
  };
11892
- const _hoisted_4$9 = { class: "modal-card-title" };
11893
- const _hoisted_5$7 = { class: "media" };
11894
- const _hoisted_6$5 = {
11904
+ const _hoisted_3$d = { class: "modal-card-title" };
11905
+ const _hoisted_4$9 = { class: "media" };
11906
+ const _hoisted_5$7 = {
11895
11907
  key: 0,
11896
11908
  class: "media-left"
11897
11909
  };
11898
- const _hoisted_7$4 = { class: "media-content" };
11899
- const _hoisted_8$4 = ["innerHTML"];
11900
- const _hoisted_9$3 = {
11910
+ const _hoisted_6$5 = { class: "media-content" };
11911
+ const _hoisted_7$4 = ["innerHTML"];
11912
+ const _hoisted_8$4 = {
11901
11913
  key: 0,
11902
11914
  class: "field"
11903
11915
  };
11904
- const _hoisted_10$2 = { class: "control" };
11905
- const _hoisted_11$2 = { class: "help is-danger" };
11906
- const _hoisted_12$2 = { class: "modal-card-foot" };
11907
- const _hoisted_13$1 = { class: "buttons" };
11916
+ const _hoisted_9$3 = { class: "control" };
11917
+ const _hoisted_10$2 = { class: "help is-danger" };
11918
+ const _hoisted_11$2 = { class: "modal-card-foot" };
11919
+ const _hoisted_12$2 = { class: "buttons" };
11908
11920
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11909
11921
  const _component_b_icon = vue.resolveComponent("b-icon");
11910
11922
  const _component_b_button = vue.resolveComponent("b-button");
@@ -11913,7 +11925,7 @@
11913
11925
  default: vue.withCtx(() => [
11914
11926
  _ctx.isActive ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
11915
11927
  key: 0,
11916
- class: vue.normalizeClass(["dialog modal is-active", _ctx.dialogClass]),
11928
+ class: vue.normalizeClass(["dialog modal is-active", [_ctx.dialogClass, _ctx.customClass]]),
11917
11929
  role: _ctx.ariaRole,
11918
11930
  "aria-modal": _ctx.ariaModal
11919
11931
  }, [
@@ -11921,116 +11933,124 @@
11921
11933
  class: "modal-background",
11922
11934
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
11923
11935
  }),
11924
- vue.createElementVNode("div", _hoisted_2$o, [
11925
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_3$d, [
11936
+ vue.createElementVNode(
11937
+ "div",
11938
+ {
11939
+ class: vue.normalizeClass(["modal-card animation-content", _ctx.customContentClass])
11940
+ },
11941
+ [
11942
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2$o, [
11943
+ vue.createElementVNode(
11944
+ "p",
11945
+ _hoisted_3$d,
11946
+ vue.toDisplayString(_ctx.title),
11947
+ 1
11948
+ /* TEXT */
11949
+ )
11950
+ ])) : vue.createCommentVNode("v-if", true),
11926
11951
  vue.createElementVNode(
11927
- "p",
11928
- _hoisted_4$9,
11929
- vue.toDisplayString(_ctx.title),
11930
- 1
11931
- /* TEXT */
11932
- )
11933
- ])) : vue.createCommentVNode("v-if", true),
11934
- vue.createElementVNode(
11935
- "section",
11936
- {
11937
- class: vue.normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11938
- },
11939
- [
11940
- vue.createElementVNode("div", _hoisted_5$7, [
11941
- _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5, [
11942
- vue.createVNode(_component_b_icon, {
11943
- icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11944
- pack: _ctx.iconPack,
11945
- type: _ctx.type,
11946
- both: !_ctx.icon,
11947
- size: "is-large"
11948
- }, null, 8, ["icon", "pack", "type", "both"])
11949
- ])) : vue.createCommentVNode("v-if", true),
11950
- vue.createElementVNode("div", _hoisted_7$4, [
11951
- vue.createElementVNode("p", null, [
11952
- _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(
11953
- vue.Fragment,
11954
- { key: 1 },
11955
- [
11956
- vue.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11957
- vue.createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_8$4)
11958
- ],
11959
- 64
11960
- /* STABLE_FRAGMENT */
11961
- ))
11962
- ]),
11963
- _ctx.hasInput ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$3, [
11964
- vue.createElementVNode("div", _hoisted_10$2, [
11965
- vue.withDirectives(vue.createElementVNode(
11966
- "input",
11967
- vue.mergeProps({
11968
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11969
- class: ["input", { "is-danger": _ctx.validationMessage }],
11970
- ref: "input"
11971
- }, _ctx.safeInputAttrs, {
11972
- onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11973
- onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11974
- onKeydown: _cache[4] || (_cache[4] = vue.withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11975
- }),
11976
- null,
11977
- 16
11978
- /* FULL_PROPS */
11979
- ), [
11980
- [vue.vModelDynamic, _ctx.prompt]
11981
- ])
11952
+ "section",
11953
+ {
11954
+ class: vue.normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11955
+ },
11956
+ [
11957
+ vue.createElementVNode("div", _hoisted_4$9, [
11958
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, [
11959
+ vue.createVNode(_component_b_icon, {
11960
+ icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11961
+ pack: _ctx.iconPack,
11962
+ type: _ctx.type,
11963
+ both: !_ctx.icon,
11964
+ size: "is-large"
11965
+ }, null, 8, ["icon", "pack", "type", "both"])
11966
+ ])) : vue.createCommentVNode("v-if", true),
11967
+ vue.createElementVNode("div", _hoisted_6$5, [
11968
+ vue.createElementVNode("p", null, [
11969
+ _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(
11970
+ vue.Fragment,
11971
+ { key: 1 },
11972
+ [
11973
+ vue.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11974
+ vue.createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_7$4)
11975
+ ],
11976
+ 64
11977
+ /* STABLE_FRAGMENT */
11978
+ ))
11982
11979
  ]),
11983
- vue.createElementVNode(
11984
- "p",
11985
- _hoisted_11$2,
11986
- vue.toDisplayString(_ctx.validationMessage),
11980
+ _ctx.hasInput ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
11981
+ vue.createElementVNode("div", _hoisted_9$3, [
11982
+ vue.withDirectives(vue.createElementVNode(
11983
+ "input",
11984
+ vue.mergeProps({
11985
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11986
+ class: ["input", { "is-danger": _ctx.validationMessage }],
11987
+ ref: "input"
11988
+ }, _ctx.safeInputAttrs, {
11989
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11990
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11991
+ onKeydown: _cache[4] || (_cache[4] = vue.withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11992
+ }),
11993
+ null,
11994
+ 16
11995
+ /* FULL_PROPS */
11996
+ ), [
11997
+ [vue.vModelDynamic, _ctx.prompt]
11998
+ ])
11999
+ ]),
12000
+ vue.createElementVNode(
12001
+ "p",
12002
+ _hoisted_10$2,
12003
+ vue.toDisplayString(_ctx.validationMessage),
12004
+ 1
12005
+ /* TEXT */
12006
+ )
12007
+ ])) : vue.createCommentVNode("v-if", true)
12008
+ ])
12009
+ ])
12010
+ ],
12011
+ 2
12012
+ /* CLASS */
12013
+ ),
12014
+ vue.createElementVNode("footer", _hoisted_11$2, [
12015
+ vue.createElementVNode("div", _hoisted_12$2, [
12016
+ _ctx.showCancel ? (vue.openBlock(), vue.createBlock(_component_b_button, {
12017
+ key: 0,
12018
+ ref: "cancelButton",
12019
+ disabled: _ctx.isLoading,
12020
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12021
+ }, {
12022
+ default: vue.withCtx(() => [
12023
+ vue.createTextVNode(
12024
+ vue.toDisplayString(_ctx.cancelText),
11987
12025
  1
11988
12026
  /* TEXT */
11989
12027
  )
11990
- ])) : vue.createCommentVNode("v-if", true)
11991
- ])
12028
+ ]),
12029
+ _: 1
12030
+ /* STABLE */
12031
+ }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
12032
+ vue.createVNode(_component_b_button, {
12033
+ type: _ctx.type,
12034
+ ref: "confirmButton",
12035
+ loading: _ctx.isLoading,
12036
+ onClick: _ctx.confirm
12037
+ }, {
12038
+ default: vue.withCtx(() => [
12039
+ vue.createTextVNode(
12040
+ vue.toDisplayString(_ctx.confirmText),
12041
+ 1
12042
+ /* TEXT */
12043
+ )
12044
+ ]),
12045
+ _: 1
12046
+ /* STABLE */
12047
+ }, 8, ["type", "loading", "onClick"])
11992
12048
  ])
11993
- ],
11994
- 2
11995
- /* CLASS */
11996
- ),
11997
- vue.createElementVNode("footer", _hoisted_12$2, [
11998
- vue.createElementVNode("div", _hoisted_13$1, [
11999
- _ctx.showCancel ? (vue.openBlock(), vue.createBlock(_component_b_button, {
12000
- key: 0,
12001
- ref: "cancelButton",
12002
- disabled: _ctx.isLoading,
12003
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12004
- }, {
12005
- default: vue.withCtx(() => [
12006
- vue.createTextVNode(
12007
- vue.toDisplayString(_ctx.cancelText),
12008
- 1
12009
- /* TEXT */
12010
- )
12011
- ]),
12012
- _: 1
12013
- /* STABLE */
12014
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
12015
- vue.createVNode(_component_b_button, {
12016
- type: _ctx.type,
12017
- ref: "confirmButton",
12018
- loading: _ctx.isLoading,
12019
- onClick: _ctx.confirm
12020
- }, {
12021
- default: vue.withCtx(() => [
12022
- vue.createTextVNode(
12023
- vue.toDisplayString(_ctx.confirmText),
12024
- 1
12025
- /* TEXT */
12026
- )
12027
- ]),
12028
- _: 1
12029
- /* STABLE */
12030
- }, 8, ["type", "loading", "onClick"])
12031
12049
  ])
12032
- ])
12033
- ])
12050
+ ],
12051
+ 2
12052
+ /* CLASS */
12053
+ )
12034
12054
  ], 10, _hoisted_1$t)), [
12035
12055
  [_directive_trap_focus, _ctx.trapFocus]
12036
12056
  ]) : vue.createCommentVNode("v-if", true)
@@ -12172,10 +12192,14 @@
12172
12192
  return open(__spreadValues$6({ hasInput: true }, params), this.app);
12173
12193
  }
12174
12194
  }
12195
+ const dialogInjectionKey = Symbol("Buefy Dialog");
12196
+ function useDialog() {
12197
+ return vue.inject(dialogInjectionKey);
12198
+ }
12175
12199
  const Plugin$t = {
12176
12200
  install(Vue) {
12177
12201
  registerComponent(Vue, Dialog);
12178
- registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue));
12202
+ registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue), dialogInjectionKey);
12179
12203
  }
12180
12204
  };
12181
12205
 
@@ -12404,10 +12428,14 @@
12404
12428
  return vueInstance.mount(container);
12405
12429
  }
12406
12430
  }
12431
+ const loadingInjectionKey = Symbol("Buefy Loading");
12432
+ function useLoading() {
12433
+ return vue.inject(loadingInjectionKey);
12434
+ }
12407
12435
  const Plugin$p = {
12408
12436
  install(Vue) {
12409
12437
  registerComponent(Vue, BLoading);
12410
- registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue));
12438
+ registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue), loadingInjectionKey);
12411
12439
  }
12412
12440
  };
12413
12441
 
@@ -13222,10 +13250,14 @@
13222
13250
  return vueInstance.mount(container);
13223
13251
  }
13224
13252
  }
13253
+ const modalInjectionKey = Symbol("Buefy Modal");
13254
+ function useModal() {
13255
+ return vue.inject(modalInjectionKey);
13256
+ }
13225
13257
  const Plugin$m = {
13226
13258
  install(Vue) {
13227
13259
  registerComponent(Vue, Modal);
13228
- registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue));
13260
+ registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue), modalInjectionKey);
13229
13261
  }
13230
13262
  };
13231
13263
 
@@ -13642,10 +13674,14 @@
13642
13674
  return vueInstance.mount(container);
13643
13675
  }
13644
13676
  }
13677
+ const notificationInjectionKey = Symbol("Buefy Notification");
13678
+ function useNotification() {
13679
+ return vue.inject(notificationInjectionKey);
13680
+ }
13645
13681
  const Plugin$l = {
13646
13682
  install(Vue) {
13647
13683
  registerComponent(Vue, Notification);
13648
- registerComponentProgrammatic(Vue, "notification", new NotificationProgrammatic(Vue));
13684
+ registerComponentProgrammatic(Vue, "notification", new NotificationProgrammatic(Vue), notificationInjectionKey);
13649
13685
  }
13650
13686
  };
13651
13687
 
@@ -16776,9 +16812,13 @@
16776
16812
  return vueInstance.mount(container);
16777
16813
  }
16778
16814
  }
16815
+ const snackbarInjectionKey = Symbol("Buefy Snackbar");
16816
+ function useSnackbar() {
16817
+ return vue.inject(snackbarInjectionKey);
16818
+ }
16779
16819
  const Plugin$a = {
16780
16820
  install(Vue) {
16781
- registerComponentProgrammatic(Vue, "snackbar", new SnackbarProgrammatic(Vue));
16821
+ registerComponentProgrammatic(Vue, "snackbar", new SnackbarProgrammatic(Vue), snackbarInjectionKey);
16782
16822
  }
16783
16823
  };
16784
16824
 
@@ -20852,9 +20892,13 @@
20852
20892
  return vueInstance.mount(container);
20853
20893
  }
20854
20894
  }
20895
+ const toastInjectionKey = Symbol("Buefy Toast");
20896
+ function useToast() {
20897
+ return vue.inject(toastInjectionKey);
20898
+ }
20855
20899
  const Plugin$2 = {
20856
20900
  install(Vue) {
20857
- registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue));
20901
+ registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue), toastInjectionKey);
20858
20902
  }
20859
20903
  };
20860
20904
 
@@ -21094,7 +21138,7 @@
21094
21138
  install(Vue, options = {}) {
21095
21139
  setOptions(merge(config, options, true));
21096
21140
  allComponents.forEach((component) => Vue.use(component));
21097
- registerComponentProgrammatic(Vue, "config", ConfigComponent);
21141
+ registerComponentProgrammatic(Vue, "config", ConfigComponent, configInjectionKey);
21098
21142
  Vue.config.globalProperties.$buefy.globalNoticeInterval = void 0;
21099
21143
  }
21100
21144
  };
@@ -21237,6 +21281,13 @@
21237
21281
  exports.sign = sign;
21238
21282
  exports.toCssWidth = toCssWidth;
21239
21283
  exports.translateTouchAsDragEvent = translateTouchAsDragEvent;
21284
+ exports.useConfigComponent = useConfigComponent;
21285
+ exports.useDialog = useDialog;
21286
+ exports.useLoading = useLoading;
21287
+ exports.useModal = useModal;
21288
+ exports.useNotification = useNotification;
21289
+ exports.useSnackbar = useSnackbar;
21290
+ exports.useToast = useToast;
21240
21291
 
21241
21292
  Object.defineProperty(exports, '__esModule', { value: true });
21242
21293