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.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import type { App } from 'vue';
3
- import { BuefyConfig as BuefyConfig_2 } from './config';
4
3
  import { ComponentCustomProps } from 'vue';
5
4
  import { ComponentOptionsMixin } from 'vue';
6
5
  import type { ComponentPublicInstance } from 'vue';
@@ -3554,6 +3553,14 @@ datetimeCreator: DatetimeCreator;
3554
3553
  }, {}>;
3555
3554
 
3556
3555
  export declare const BDialog: DefineComponent< {
3556
+ customClass: {
3557
+ type: StringConstructor;
3558
+ default: string;
3559
+ };
3560
+ customContentClass: {
3561
+ type: StringConstructor;
3562
+ default: string;
3563
+ };
3557
3564
  title: StringConstructor;
3558
3565
  message: (ArrayConstructor | StringConstructor)[];
3559
3566
  icon: StringConstructor;
@@ -3797,6 +3804,14 @@ renderOnMounted: boolean;
3797
3804
  }, {}>, {
3798
3805
  confirm: (value: string, dialog: any) => true;
3799
3806
  }, string, PublicProps, Readonly<ExtractPropTypes< {
3807
+ customClass: {
3808
+ type: StringConstructor;
3809
+ default: string;
3810
+ };
3811
+ customContentClass: {
3812
+ type: StringConstructor;
3813
+ default: string;
3814
+ };
3800
3815
  title: StringConstructor;
3801
3816
  message: (ArrayConstructor | StringConstructor)[];
3802
3817
  icon: StringConstructor;
@@ -3840,6 +3855,8 @@ default: string;
3840
3855
  onConfirm?: ((value: string, dialog: any) => any) | undefined;
3841
3856
  }, {
3842
3857
  type: string;
3858
+ customClass: string;
3859
+ customContentClass: string;
3843
3860
  hasIcon: boolean;
3844
3861
  confirmText: string;
3845
3862
  cancelText: string;
@@ -10909,10 +10926,12 @@ export declare const Colorpicker: {
10909
10926
  install(Vue: App): void;
10910
10927
  };
10911
10928
 
10912
- export declare const ConfigProgrammatic: {
10913
- getOptions(): BuefyConfig_2;
10929
+ declare interface ConfigComponent {
10930
+ getOptions(): BuefyConfigOptions;
10914
10931
  setOptions(options: BuefyConfigOptions): void;
10915
- };
10932
+ }
10933
+
10934
+ export declare const ConfigProgrammatic: ConfigComponent;
10916
10935
 
10917
10936
  declare const CONTROL_OPERATIONS: readonly ["plus", "minus"];
10918
10937
 
@@ -11698,6 +11717,20 @@ export declare const Upload: {
11698
11717
  install(Vue: App): void;
11699
11718
  };
11700
11719
 
11720
+ export declare function useConfigComponent(): ConfigComponent | undefined;
11721
+
11722
+ export declare function useDialog(): DialogProgrammatic;
11723
+
11724
+ export declare function useLoading(): LoadingProgrammatic;
11725
+
11726
+ export declare function useModal(): ModalProgrammatic;
11727
+
11728
+ export declare function useNotification(): NotificationProgrammatic;
11729
+
11730
+ export declare function useSnackbar(): SnackbarProgrammatic;
11731
+
11732
+ export declare function useToast(): ToastProgrammatic;
11733
+
11701
11734
  export declare type VueClassAttribute = (string | Record<string, boolean | undefined> | null | undefined) | (string | Record<string, boolean | undefined> | null | undefined)[];
11702
11735
 
11703
11736
  export declare let VueInstance: App | undefined;
package/dist/buefy.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
2
- import { Fragment, Comment, Text, Static, defineComponent, h, resolveComponent, createElementBlock, openBlock, normalizeClass, createBlock, renderSlot, createCommentVNode, createTextVNode, toDisplayString, withCtx, createVNode, renderList, resolveDynamicComponent, mergeProps, withDirectives, vModelDynamic, vModelText, withKeys, withModifiers, Transition, createElementVNode, normalizeStyle, vShow, normalizeProps, guardReactiveProps, vModelCheckbox, resolveDirective, createSlots, vModelSelect, toHandlers, createApp, vModelRadio, toHandlerKey, camelize, toRaw } from 'vue';
1
+ /*! Buefy v3.0.4 | MIT License | github.com/buefy/buefy */
2
+ import { Fragment, Comment, Text, Static, inject, defineComponent, h, resolveComponent, createElementBlock, openBlock, normalizeClass, createBlock, renderSlot, createCommentVNode, createTextVNode, toDisplayString, withCtx, createVNode, renderList, resolveDynamicComponent, mergeProps, withDirectives, vModelDynamic, vModelText, withKeys, withModifiers, Transition, createElementVNode, normalizeStyle, vShow, normalizeProps, guardReactiveProps, vModelCheckbox, resolveDirective, createSlots, vModelSelect, toHandlers, createApp, vModelRadio, toHandlerKey, camelize, toRaw } from 'vue';
3
3
 
4
4
  var __defProp$d = Object.defineProperty;
5
5
  var __pow = Math.pow;
@@ -752,6 +752,10 @@ const translateTouchAsDragEvent = (event, options) => {
752
752
  });
753
753
  };
754
754
 
755
+ const configInjectionKey = Symbol("Buefy Config Component");
756
+ function useConfigComponent() {
757
+ return inject(configInjectionKey);
758
+ }
755
759
  var ConfigComponent = {
756
760
  getOptions() {
757
761
  return config;
@@ -2749,9 +2753,10 @@ const registerComponent = (Vue, component, name) => {
2749
2753
  }
2750
2754
  Vue.component(componentName, component);
2751
2755
  };
2752
- const registerComponentProgrammatic = (Vue, property, component) => {
2756
+ const registerComponentProgrammatic = (Vue, property, component, injectionKey) => {
2753
2757
  if (!Vue.config.globalProperties.$buefy) Vue.config.globalProperties.$buefy = {};
2754
2758
  Vue.config.globalProperties.$buefy[property] = component;
2759
+ Vue.provide(injectionKey, component);
2755
2760
  };
2756
2761
 
2757
2762
  const Plugin$F = {
@@ -6840,7 +6845,7 @@ const _hoisted_9$4 = ["id"];
6840
6845
  const _hoisted_10$3 = ["d"];
6841
6846
  const _hoisted_11$3 = { class: "colorpicker-triangle-slider-hue" };
6842
6847
  const _hoisted_12$3 = ["width", "height", "clip-path"];
6843
- const _hoisted_13$2 = ["x", "height"];
6848
+ const _hoisted_13$1 = ["x", "height"];
6844
6849
  const _hoisted_14$1 = ["aria-valuenow"];
6845
6850
  const _hoisted_15$1 = ["d", "fill"];
6846
6851
  const _hoisted_16$1 = ["d", "fill"];
@@ -6931,7 +6936,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
6931
6936
  onMousedown: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"])),
6932
6937
  onTouchstart: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"]))
6933
6938
  }, null, 44, _hoisted_14$1)
6934
- ], 8, _hoisted_13$2))
6939
+ ], 8, _hoisted_13$1))
6935
6940
  ],
6936
6941
  4
6937
6942
  /* STYLE */
@@ -11710,6 +11715,14 @@ const Dialog$1 = defineComponent({
11710
11715
  },
11711
11716
  extends: Modal,
11712
11717
  props: {
11718
+ customClass: {
11719
+ type: String,
11720
+ default: ""
11721
+ },
11722
+ customContentClass: {
11723
+ type: String,
11724
+ default: ""
11725
+ },
11713
11726
  title: String,
11714
11727
  message: [String, Array],
11715
11728
  icon: String,
@@ -11880,27 +11893,26 @@ const Dialog$1 = defineComponent({
11880
11893
  });
11881
11894
 
11882
11895
  const _hoisted_1$t = ["role", "aria-modal"];
11883
- const _hoisted_2$o = { class: "modal-card animation-content" };
11884
- const _hoisted_3$d = {
11896
+ const _hoisted_2$o = {
11885
11897
  key: 0,
11886
11898
  class: "modal-card-head"
11887
11899
  };
11888
- const _hoisted_4$9 = { class: "modal-card-title" };
11889
- const _hoisted_5$7 = { class: "media" };
11890
- const _hoisted_6$5 = {
11900
+ const _hoisted_3$d = { class: "modal-card-title" };
11901
+ const _hoisted_4$9 = { class: "media" };
11902
+ const _hoisted_5$7 = {
11891
11903
  key: 0,
11892
11904
  class: "media-left"
11893
11905
  };
11894
- const _hoisted_7$4 = { class: "media-content" };
11895
- const _hoisted_8$4 = ["innerHTML"];
11896
- const _hoisted_9$3 = {
11906
+ const _hoisted_6$5 = { class: "media-content" };
11907
+ const _hoisted_7$4 = ["innerHTML"];
11908
+ const _hoisted_8$4 = {
11897
11909
  key: 0,
11898
11910
  class: "field"
11899
11911
  };
11900
- const _hoisted_10$2 = { class: "control" };
11901
- const _hoisted_11$2 = { class: "help is-danger" };
11902
- const _hoisted_12$2 = { class: "modal-card-foot" };
11903
- const _hoisted_13$1 = { class: "buttons" };
11912
+ const _hoisted_9$3 = { class: "control" };
11913
+ const _hoisted_10$2 = { class: "help is-danger" };
11914
+ const _hoisted_11$2 = { class: "modal-card-foot" };
11915
+ const _hoisted_12$2 = { class: "buttons" };
11904
11916
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11905
11917
  const _component_b_icon = resolveComponent("b-icon");
11906
11918
  const _component_b_button = resolveComponent("b-button");
@@ -11909,7 +11921,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11909
11921
  default: withCtx(() => [
11910
11922
  _ctx.isActive ? withDirectives((openBlock(), createElementBlock("div", {
11911
11923
  key: 0,
11912
- class: normalizeClass(["dialog modal is-active", _ctx.dialogClass]),
11924
+ class: normalizeClass(["dialog modal is-active", [_ctx.dialogClass, _ctx.customClass]]),
11913
11925
  role: _ctx.ariaRole,
11914
11926
  "aria-modal": _ctx.ariaModal
11915
11927
  }, [
@@ -11917,116 +11929,124 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11917
11929
  class: "modal-background",
11918
11930
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
11919
11931
  }),
11920
- createElementVNode("div", _hoisted_2$o, [
11921
- _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_3$d, [
11932
+ createElementVNode(
11933
+ "div",
11934
+ {
11935
+ class: normalizeClass(["modal-card animation-content", _ctx.customContentClass])
11936
+ },
11937
+ [
11938
+ _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$o, [
11939
+ createElementVNode(
11940
+ "p",
11941
+ _hoisted_3$d,
11942
+ toDisplayString(_ctx.title),
11943
+ 1
11944
+ /* TEXT */
11945
+ )
11946
+ ])) : createCommentVNode("v-if", true),
11922
11947
  createElementVNode(
11923
- "p",
11924
- _hoisted_4$9,
11925
- toDisplayString(_ctx.title),
11926
- 1
11927
- /* TEXT */
11928
- )
11929
- ])) : createCommentVNode("v-if", true),
11930
- createElementVNode(
11931
- "section",
11932
- {
11933
- class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11934
- },
11935
- [
11936
- createElementVNode("div", _hoisted_5$7, [
11937
- _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
11938
- createVNode(_component_b_icon, {
11939
- icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11940
- pack: _ctx.iconPack,
11941
- type: _ctx.type,
11942
- both: !_ctx.icon,
11943
- size: "is-large"
11944
- }, null, 8, ["icon", "pack", "type", "both"])
11945
- ])) : createCommentVNode("v-if", true),
11946
- createElementVNode("div", _hoisted_7$4, [
11947
- createElementVNode("p", null, [
11948
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
11949
- Fragment,
11950
- { key: 1 },
11951
- [
11952
- createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11953
- createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_8$4)
11954
- ],
11955
- 64
11956
- /* STABLE_FRAGMENT */
11957
- ))
11958
- ]),
11959
- _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
11960
- createElementVNode("div", _hoisted_10$2, [
11961
- withDirectives(createElementVNode(
11962
- "input",
11963
- mergeProps({
11964
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11965
- class: ["input", { "is-danger": _ctx.validationMessage }],
11966
- ref: "input"
11967
- }, _ctx.safeInputAttrs, {
11968
- onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11969
- onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11970
- onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11971
- }),
11972
- null,
11973
- 16
11974
- /* FULL_PROPS */
11975
- ), [
11976
- [vModelDynamic, _ctx.prompt]
11977
- ])
11948
+ "section",
11949
+ {
11950
+ class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11951
+ },
11952
+ [
11953
+ createElementVNode("div", _hoisted_4$9, [
11954
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
11955
+ createVNode(_component_b_icon, {
11956
+ icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11957
+ pack: _ctx.iconPack,
11958
+ type: _ctx.type,
11959
+ both: !_ctx.icon,
11960
+ size: "is-large"
11961
+ }, null, 8, ["icon", "pack", "type", "both"])
11962
+ ])) : createCommentVNode("v-if", true),
11963
+ createElementVNode("div", _hoisted_6$5, [
11964
+ createElementVNode("p", null, [
11965
+ _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
11966
+ Fragment,
11967
+ { key: 1 },
11968
+ [
11969
+ createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11970
+ createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_7$4)
11971
+ ],
11972
+ 64
11973
+ /* STABLE_FRAGMENT */
11974
+ ))
11978
11975
  ]),
11979
- createElementVNode(
11980
- "p",
11981
- _hoisted_11$2,
11982
- toDisplayString(_ctx.validationMessage),
11976
+ _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
11977
+ createElementVNode("div", _hoisted_9$3, [
11978
+ withDirectives(createElementVNode(
11979
+ "input",
11980
+ mergeProps({
11981
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11982
+ class: ["input", { "is-danger": _ctx.validationMessage }],
11983
+ ref: "input"
11984
+ }, _ctx.safeInputAttrs, {
11985
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11986
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11987
+ onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11988
+ }),
11989
+ null,
11990
+ 16
11991
+ /* FULL_PROPS */
11992
+ ), [
11993
+ [vModelDynamic, _ctx.prompt]
11994
+ ])
11995
+ ]),
11996
+ createElementVNode(
11997
+ "p",
11998
+ _hoisted_10$2,
11999
+ toDisplayString(_ctx.validationMessage),
12000
+ 1
12001
+ /* TEXT */
12002
+ )
12003
+ ])) : createCommentVNode("v-if", true)
12004
+ ])
12005
+ ])
12006
+ ],
12007
+ 2
12008
+ /* CLASS */
12009
+ ),
12010
+ createElementVNode("footer", _hoisted_11$2, [
12011
+ createElementVNode("div", _hoisted_12$2, [
12012
+ _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
12013
+ key: 0,
12014
+ ref: "cancelButton",
12015
+ disabled: _ctx.isLoading,
12016
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12017
+ }, {
12018
+ default: withCtx(() => [
12019
+ createTextVNode(
12020
+ toDisplayString(_ctx.cancelText),
11983
12021
  1
11984
12022
  /* TEXT */
11985
12023
  )
11986
- ])) : createCommentVNode("v-if", true)
11987
- ])
12024
+ ]),
12025
+ _: 1
12026
+ /* STABLE */
12027
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true),
12028
+ createVNode(_component_b_button, {
12029
+ type: _ctx.type,
12030
+ ref: "confirmButton",
12031
+ loading: _ctx.isLoading,
12032
+ onClick: _ctx.confirm
12033
+ }, {
12034
+ default: withCtx(() => [
12035
+ createTextVNode(
12036
+ toDisplayString(_ctx.confirmText),
12037
+ 1
12038
+ /* TEXT */
12039
+ )
12040
+ ]),
12041
+ _: 1
12042
+ /* STABLE */
12043
+ }, 8, ["type", "loading", "onClick"])
11988
12044
  ])
11989
- ],
11990
- 2
11991
- /* CLASS */
11992
- ),
11993
- createElementVNode("footer", _hoisted_12$2, [
11994
- createElementVNode("div", _hoisted_13$1, [
11995
- _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
11996
- key: 0,
11997
- ref: "cancelButton",
11998
- disabled: _ctx.isLoading,
11999
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12000
- }, {
12001
- default: withCtx(() => [
12002
- createTextVNode(
12003
- toDisplayString(_ctx.cancelText),
12004
- 1
12005
- /* TEXT */
12006
- )
12007
- ]),
12008
- _: 1
12009
- /* STABLE */
12010
- }, 8, ["disabled"])) : createCommentVNode("v-if", true),
12011
- createVNode(_component_b_button, {
12012
- type: _ctx.type,
12013
- ref: "confirmButton",
12014
- loading: _ctx.isLoading,
12015
- onClick: _ctx.confirm
12016
- }, {
12017
- default: withCtx(() => [
12018
- createTextVNode(
12019
- toDisplayString(_ctx.confirmText),
12020
- 1
12021
- /* TEXT */
12022
- )
12023
- ]),
12024
- _: 1
12025
- /* STABLE */
12026
- }, 8, ["type", "loading", "onClick"])
12027
12045
  ])
12028
- ])
12029
- ])
12046
+ ],
12047
+ 2
12048
+ /* CLASS */
12049
+ )
12030
12050
  ], 10, _hoisted_1$t)), [
12031
12051
  [_directive_trap_focus, _ctx.trapFocus]
12032
12052
  ]) : createCommentVNode("v-if", true)
@@ -12168,10 +12188,14 @@ class DialogProgrammatic {
12168
12188
  return open(__spreadValues$6({ hasInput: true }, params), this.app);
12169
12189
  }
12170
12190
  }
12191
+ const dialogInjectionKey = Symbol("Buefy Dialog");
12192
+ function useDialog() {
12193
+ return inject(dialogInjectionKey);
12194
+ }
12171
12195
  const Plugin$t = {
12172
12196
  install(Vue) {
12173
12197
  registerComponent(Vue, Dialog);
12174
- registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue));
12198
+ registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue), dialogInjectionKey);
12175
12199
  }
12176
12200
  };
12177
12201
 
@@ -12400,10 +12424,14 @@ class LoadingProgrammatic {
12400
12424
  return vueInstance.mount(container);
12401
12425
  }
12402
12426
  }
12427
+ const loadingInjectionKey = Symbol("Buefy Loading");
12428
+ function useLoading() {
12429
+ return inject(loadingInjectionKey);
12430
+ }
12403
12431
  const Plugin$p = {
12404
12432
  install(Vue) {
12405
12433
  registerComponent(Vue, BLoading);
12406
- registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue));
12434
+ registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue), loadingInjectionKey);
12407
12435
  }
12408
12436
  };
12409
12437
 
@@ -13218,10 +13246,14 @@ class ModalProgrammatic {
13218
13246
  return vueInstance.mount(container);
13219
13247
  }
13220
13248
  }
13249
+ const modalInjectionKey = Symbol("Buefy Modal");
13250
+ function useModal() {
13251
+ return inject(modalInjectionKey);
13252
+ }
13221
13253
  const Plugin$m = {
13222
13254
  install(Vue) {
13223
13255
  registerComponent(Vue, Modal);
13224
- registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue));
13256
+ registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue), modalInjectionKey);
13225
13257
  }
13226
13258
  };
13227
13259
 
@@ -13638,10 +13670,14 @@ class NotificationProgrammatic {
13638
13670
  return vueInstance.mount(container);
13639
13671
  }
13640
13672
  }
13673
+ const notificationInjectionKey = Symbol("Buefy Notification");
13674
+ function useNotification() {
13675
+ return inject(notificationInjectionKey);
13676
+ }
13641
13677
  const Plugin$l = {
13642
13678
  install(Vue) {
13643
13679
  registerComponent(Vue, Notification);
13644
- registerComponentProgrammatic(Vue, "notification", new NotificationProgrammatic(Vue));
13680
+ registerComponentProgrammatic(Vue, "notification", new NotificationProgrammatic(Vue), notificationInjectionKey);
13645
13681
  }
13646
13682
  };
13647
13683
 
@@ -16772,9 +16808,13 @@ class SnackbarProgrammatic {
16772
16808
  return vueInstance.mount(container);
16773
16809
  }
16774
16810
  }
16811
+ const snackbarInjectionKey = Symbol("Buefy Snackbar");
16812
+ function useSnackbar() {
16813
+ return inject(snackbarInjectionKey);
16814
+ }
16775
16815
  const Plugin$a = {
16776
16816
  install(Vue) {
16777
- registerComponentProgrammatic(Vue, "snackbar", new SnackbarProgrammatic(Vue));
16817
+ registerComponentProgrammatic(Vue, "snackbar", new SnackbarProgrammatic(Vue), snackbarInjectionKey);
16778
16818
  }
16779
16819
  };
16780
16820
 
@@ -20848,9 +20888,13 @@ class ToastProgrammatic {
20848
20888
  return vueInstance.mount(container);
20849
20889
  }
20850
20890
  }
20891
+ const toastInjectionKey = Symbol("Buefy Toast");
20892
+ function useToast() {
20893
+ return inject(toastInjectionKey);
20894
+ }
20851
20895
  const Plugin$2 = {
20852
20896
  install(Vue) {
20853
- registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue));
20897
+ registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue), toastInjectionKey);
20854
20898
  }
20855
20899
  };
20856
20900
 
@@ -21090,9 +21134,9 @@ const Buefy = {
21090
21134
  install(Vue, options = {}) {
21091
21135
  setOptions(merge(config, options, true));
21092
21136
  allComponents.forEach((component) => Vue.use(component));
21093
- registerComponentProgrammatic(Vue, "config", ConfigComponent);
21137
+ registerComponentProgrammatic(Vue, "config", ConfigComponent, configInjectionKey);
21094
21138
  Vue.config.globalProperties.$buefy.globalNoticeInterval = void 0;
21095
21139
  }
21096
21140
  };
21097
21141
 
21098
- export { Plugin$F as Autocomplete, BAutocomplete, Breadcrumb as BBreadcrumb, BreadcrumbItem as BBreadcrumbItem, BButton, Carousel as BCarousel, CarouselItem as BCarouselItem, CarouselList as BCarouselList, BCheckbox, CheckboxButton as BCheckboxButton, Clockpicker as BClockpicker, _sfc_main$F as BCollapse, Colorpicker as BColorpicker, BDatepicker, Datetimepicker as BDatetimepicker, Dialog as BDialog, BDropdown, BDropdownItem, Field as BField, BIcon, Image$1 as BImage, BInput, BLoading, Menu as BMenu, MenuItem as BMenuItem, MenuList as BMenuList, Message as BMessage, Modal as BModal, _sfc_main$k as BNavbar, NavbarDropdown as BNavbarDropdown, NavbarItem as BNavbarItem, Notification as BNotification, Numberinput as BNumberinput, BPagination, PaginationButton as BPaginationButton, Progress as BProgress, ProgressBar as BProgressBar, Radio as BRadio, RadioButton as BRadioButton, Rate as BRate, BSelect, Sidebar as BSidebar, BSkeleton, Slider as BSlider, SliderTick as BSliderTick, Snackbar as BSnackbar, _sfc_main$9 as BStepItem, Steps as BSteps, Switch as BSwitch, _sfc_main$3 as BTabItem, Table as BTable, _sfc_main$5 as BTableColumn, Tabs as BTabs, BTag, Taginput as BTaginput, Taglist as BTaglist, Timepicker as BTimepicker, Toast as BToast, Tooltip as BTooltip, Upload as BUpload, Plugin$E as Breadcrumb, Plugin$D as Button, Plugin$C as Carousel, Plugin$B as Checkbox, Plugin$x as Clockpicker, Plugin$A as Collapse, Color, Plugin$w as Colorpicker, ConfigComponent as ConfigProgrammatic, Plugin$v as Datepicker, Plugin$u as Datetimepicker, Plugin$t as Dialog, DialogProgrammatic, Plugin$z as Dropdown, Plugin$s as Field, Plugin$r as Icon, Plugin$q as Image, Plugin$y as Input, Plugin$p as Loading, LoadingProgrammatic, Plugin$o as Menu, Plugin$n as Message, Plugin$m as Modal, ModalProgrammatic, Plugin$k as Navbar, Plugin$l as Notification, NotificationProgrammatic, Plugin$j as Numberinput, Plugin$i as Pagination, Plugin$h as Progress, Plugin$g as Radio, Plugin$f as Rate, Plugin$e as Select, Plugin$c as Sidebar, Plugin$d as Skeleton, Plugin$b as Slider, Plugin$a as Snackbar, SnackbarProgrammatic, Plugin$9 as Steps, Plugin$8 as Switch, Plugin$7 as Table, Plugin$6 as Tabs, Plugin$5 as Tag, Plugin$4 as Taginput, Plugin$3 as Timepicker, Plugin$2 as Toast, ToastProgrammatic, Plugin$1 as Tooltip, Plugin as Upload, bound, copyAppContext, createAbsoluteElement, createNewEvent, Buefy as default, escapeRegExpChars, getComponentFromVNode, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isFragment, isMobile, isNil, isTag, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeDiacriticsFromString, removeElement, sign, toCssWidth, translateTouchAsDragEvent };
21142
+ export { Plugin$F as Autocomplete, BAutocomplete, Breadcrumb as BBreadcrumb, BreadcrumbItem as BBreadcrumbItem, BButton, Carousel as BCarousel, CarouselItem as BCarouselItem, CarouselList as BCarouselList, BCheckbox, CheckboxButton as BCheckboxButton, Clockpicker as BClockpicker, _sfc_main$F as BCollapse, Colorpicker as BColorpicker, BDatepicker, Datetimepicker as BDatetimepicker, Dialog as BDialog, BDropdown, BDropdownItem, Field as BField, BIcon, Image$1 as BImage, BInput, BLoading, Menu as BMenu, MenuItem as BMenuItem, MenuList as BMenuList, Message as BMessage, Modal as BModal, _sfc_main$k as BNavbar, NavbarDropdown as BNavbarDropdown, NavbarItem as BNavbarItem, Notification as BNotification, Numberinput as BNumberinput, BPagination, PaginationButton as BPaginationButton, Progress as BProgress, ProgressBar as BProgressBar, Radio as BRadio, RadioButton as BRadioButton, Rate as BRate, BSelect, Sidebar as BSidebar, BSkeleton, Slider as BSlider, SliderTick as BSliderTick, Snackbar as BSnackbar, _sfc_main$9 as BStepItem, Steps as BSteps, Switch as BSwitch, _sfc_main$3 as BTabItem, Table as BTable, _sfc_main$5 as BTableColumn, Tabs as BTabs, BTag, Taginput as BTaginput, Taglist as BTaglist, Timepicker as BTimepicker, Toast as BToast, Tooltip as BTooltip, Upload as BUpload, Plugin$E as Breadcrumb, Plugin$D as Button, Plugin$C as Carousel, Plugin$B as Checkbox, Plugin$x as Clockpicker, Plugin$A as Collapse, Color, Plugin$w as Colorpicker, ConfigComponent as ConfigProgrammatic, Plugin$v as Datepicker, Plugin$u as Datetimepicker, Plugin$t as Dialog, DialogProgrammatic, Plugin$z as Dropdown, Plugin$s as Field, Plugin$r as Icon, Plugin$q as Image, Plugin$y as Input, Plugin$p as Loading, LoadingProgrammatic, Plugin$o as Menu, Plugin$n as Message, Plugin$m as Modal, ModalProgrammatic, Plugin$k as Navbar, Plugin$l as Notification, NotificationProgrammatic, Plugin$j as Numberinput, Plugin$i as Pagination, Plugin$h as Progress, Plugin$g as Radio, Plugin$f as Rate, Plugin$e as Select, Plugin$c as Sidebar, Plugin$d as Skeleton, Plugin$b as Slider, Plugin$a as Snackbar, SnackbarProgrammatic, Plugin$9 as Steps, Plugin$8 as Switch, Plugin$7 as Table, Plugin$6 as Tabs, Plugin$5 as Tag, Plugin$4 as Taginput, Plugin$3 as Timepicker, Plugin$2 as Toast, ToastProgrammatic, Plugin$1 as Tooltip, Plugin as Upload, bound, copyAppContext, createAbsoluteElement, createNewEvent, Buefy as default, escapeRegExpChars, getComponentFromVNode, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isFragment, isMobile, isNil, isTag, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeDiacriticsFromString, removeElement, sign, toCssWidth, translateTouchAsDragEvent, useConfigComponent, useDialog, useLoading, useModal, useNotification, useSnackbar, useToast };