buefy 3.0.0 → 3.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 (116) hide show
  1. package/README.md +2 -2
  2. package/dist/buefy.d.ts +1 -1
  3. package/dist/buefy.esm.js +34 -25
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +33 -24
  6. package/dist/buefy.min.js +2 -2
  7. package/dist/cjs/navbar.js +11 -3
  8. package/dist/cjs/table.js +9 -8
  9. package/dist/components/autocomplete/index.js +1 -1
  10. package/dist/components/autocomplete/index.min.js +1 -1
  11. package/dist/components/breadcrumb/index.js +1 -1
  12. package/dist/components/breadcrumb/index.min.js +1 -1
  13. package/dist/components/button/index.js +1 -1
  14. package/dist/components/button/index.min.js +1 -1
  15. package/dist/components/carousel/index.js +1 -1
  16. package/dist/components/carousel/index.min.js +1 -1
  17. package/dist/components/checkbox/index.js +1 -1
  18. package/dist/components/checkbox/index.min.js +1 -1
  19. package/dist/components/clockpicker/index.js +1 -1
  20. package/dist/components/clockpicker/index.min.js +1 -1
  21. package/dist/components/collapse/index.js +1 -1
  22. package/dist/components/collapse/index.min.js +1 -1
  23. package/dist/components/colorpicker/index.js +1 -1
  24. package/dist/components/colorpicker/index.min.js +1 -1
  25. package/dist/components/datepicker/index.js +1 -1
  26. package/dist/components/datepicker/index.min.js +1 -1
  27. package/dist/components/datetimepicker/index.js +1 -1
  28. package/dist/components/datetimepicker/index.min.js +1 -1
  29. package/dist/components/dialog/index.js +1 -1
  30. package/dist/components/dialog/index.min.js +1 -1
  31. package/dist/components/dropdown/index.js +1 -1
  32. package/dist/components/dropdown/index.min.js +1 -1
  33. package/dist/components/field/index.js +1 -1
  34. package/dist/components/field/index.min.js +1 -1
  35. package/dist/components/icon/index.js +1 -1
  36. package/dist/components/icon/index.min.js +1 -1
  37. package/dist/components/image/index.js +1 -1
  38. package/dist/components/image/index.min.js +1 -1
  39. package/dist/components/input/index.js +1 -1
  40. package/dist/components/input/index.min.js +1 -1
  41. package/dist/components/loading/index.js +1 -1
  42. package/dist/components/loading/index.min.js +1 -1
  43. package/dist/components/menu/index.js +1 -1
  44. package/dist/components/menu/index.min.js +1 -1
  45. package/dist/components/message/index.js +1 -1
  46. package/dist/components/message/index.min.js +1 -1
  47. package/dist/components/modal/index.js +1 -1
  48. package/dist/components/modal/index.min.js +1 -1
  49. package/dist/components/navbar/index.js +12 -4
  50. package/dist/components/navbar/index.min.js +2 -2
  51. package/dist/components/notification/index.js +1 -1
  52. package/dist/components/notification/index.min.js +1 -1
  53. package/dist/components/numberinput/index.js +1 -1
  54. package/dist/components/numberinput/index.min.js +1 -1
  55. package/dist/components/pagination/index.js +1 -1
  56. package/dist/components/pagination/index.min.js +1 -1
  57. package/dist/components/progress/index.js +1 -1
  58. package/dist/components/progress/index.min.js +1 -1
  59. package/dist/components/radio/index.js +1 -1
  60. package/dist/components/radio/index.min.js +1 -1
  61. package/dist/components/rate/index.js +1 -1
  62. package/dist/components/rate/index.min.js +1 -1
  63. package/dist/components/select/index.js +1 -1
  64. package/dist/components/select/index.min.js +1 -1
  65. package/dist/components/sidebar/index.js +1 -1
  66. package/dist/components/sidebar/index.min.js +1 -1
  67. package/dist/components/skeleton/index.js +1 -1
  68. package/dist/components/skeleton/index.min.js +1 -1
  69. package/dist/components/slider/index.js +1 -1
  70. package/dist/components/slider/index.min.js +1 -1
  71. package/dist/components/snackbar/index.js +1 -1
  72. package/dist/components/snackbar/index.min.js +1 -1
  73. package/dist/components/steps/index.js +1 -1
  74. package/dist/components/steps/index.min.js +1 -1
  75. package/dist/components/switch/index.js +1 -1
  76. package/dist/components/switch/index.min.js +1 -1
  77. package/dist/components/table/index.js +10 -9
  78. package/dist/components/table/index.min.js +2 -2
  79. package/dist/components/tabs/index.js +1 -1
  80. package/dist/components/tabs/index.min.js +1 -1
  81. package/dist/components/tag/index.js +1 -1
  82. package/dist/components/tag/index.min.js +1 -1
  83. package/dist/components/taginput/index.js +1 -1
  84. package/dist/components/taginput/index.min.js +1 -1
  85. package/dist/components/timepicker/index.js +1 -1
  86. package/dist/components/timepicker/index.min.js +1 -1
  87. package/dist/components/toast/index.js +1 -1
  88. package/dist/components/toast/index.min.js +1 -1
  89. package/dist/components/tooltip/index.js +1 -1
  90. package/dist/components/tooltip/index.min.js +1 -1
  91. package/dist/components/upload/index.js +1 -1
  92. package/dist/components/upload/index.min.js +1 -1
  93. package/dist/{buefy.css → css/buefy.css} +5 -9
  94. package/dist/css/buefy.css.map +1 -0
  95. package/dist/css/buefy.min.css +1 -0
  96. package/dist/css/versions/buefy-no-reset.css +25931 -0
  97. package/dist/css/versions/buefy-no-reset.css.map +1 -0
  98. package/dist/css/versions/buefy-no-reset.min.css +1 -0
  99. package/dist/css/versions/buefy-standalone.css +5875 -0
  100. package/dist/css/versions/buefy-standalone.css.map +1 -0
  101. package/dist/css/versions/buefy-standalone.min.css +1 -0
  102. package/dist/esm/navbar.js +11 -3
  103. package/dist/esm/table.js +10 -9
  104. package/package.json +6 -2
  105. package/src/components/navbar/NavbarBurger.vue +1 -0
  106. package/src/components/navbar/__snapshots__/NavBar.spec.ts.snap +1 -1
  107. package/src/components/navbar/__snapshots__/NavBarBurger.spec.ts.snap +1 -1
  108. package/src/components/table/Table.vue +18 -12
  109. package/src/scss/buefy.scss +38 -38
  110. package/src/scss/components/_autocomplete.scss +5 -0
  111. package/src/scss/components/_modal.scss +0 -14
  112. package/src/scss/{buefy-build.scss → versions/buefy-bulma-bundle.scss} +1 -1
  113. package/src/scss/versions/buefy-no-reset.scss +16 -0
  114. package/src/utils/vue-augmentation.ts +1 -1
  115. package/dist/buefy.css.map +0 -1
  116. package/dist/buefy.min.css +0 -1
package/README.md CHANGED
@@ -58,7 +58,7 @@ Bundle
58
58
  ```javascript
59
59
  import { createApp } from "vue";
60
60
  import Buefy from "buefy";
61
- import "buefy/dist/buefy.css";
61
+ import "buefy/dist/css/buefy.css";
62
62
 
63
63
  const app = createApp();
64
64
 
@@ -70,7 +70,7 @@ or Individual Components
70
70
  ```javascript
71
71
  import { createApp } from "vue";
72
72
  import { Field, Input } from "buefy";
73
- import "buefy/dist/buefy.css";
73
+ import "buefy/dist/css/buefy.css";
74
74
 
75
75
  const app = createApp();
76
76
 
package/dist/buefy.d.ts CHANGED
@@ -11704,7 +11704,7 @@ export declare let VueInstance: App | undefined;
11704
11704
 
11705
11705
  export { }
11706
11706
 
11707
- declare module '@vue/runtime-core' {
11707
+ declare module 'vue' {
11708
11708
  interface ComponentCustomProperties {
11709
11709
  $buefy: {
11710
11710
  config: typeof ConfigComponent;
package/dist/buefy.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! Buefy v3.0.0 | 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, toRaw, toHandlerKey } from 'vue';
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';
3
3
 
4
4
  var __defProp$d = Object.defineProperty;
5
5
  var __pow = Math.pow;
@@ -6252,7 +6252,7 @@ const _hoisted_5$b = {
6252
6252
  key: 0,
6253
6253
  class: "b-clockpicker-period"
6254
6254
  };
6255
- const _hoisted_6$8 = { class: "card-content" };
6255
+ const _hoisted_6$9 = { class: "card-content" };
6256
6256
  const _hoisted_7$8 = {
6257
6257
  key: 0,
6258
6258
  class: "b-clockpicker-time"
@@ -6351,7 +6351,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
6351
6351
  ])) : createCommentVNode("v-if", true)
6352
6352
  ])
6353
6353
  ])) : createCommentVNode("v-if", true),
6354
- createElementVNode("div", _hoisted_6$8, [
6354
+ createElementVNode("div", _hoisted_6$9, [
6355
6355
  createElementVNode(
6356
6356
  "div",
6357
6357
  {
@@ -6833,7 +6833,7 @@ const _hoisted_5$a = [
6833
6833
  _hoisted_3$l,
6834
6834
  _hoisted_4$g
6835
6835
  ];
6836
- const _hoisted_6$7 = ["id"];
6836
+ const _hoisted_6$8 = ["id"];
6837
6837
  const _hoisted_7$7 = ["stop-color"];
6838
6838
  const _hoisted_8$6 = ["stop-color"];
6839
6839
  const _hoisted_9$4 = ["id"];
@@ -6876,7 +6876,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
6876
6876
  "stop-color": `hsl(${_ctx.hue}deg, 100%, 50%)`,
6877
6877
  "stop-opacity": "0"
6878
6878
  }, null, 8, _hoisted_8$6)
6879
- ], 8, _hoisted_6$7),
6879
+ ], 8, _hoisted_6$8),
6880
6880
  createElementVNode("clipPath", {
6881
6881
  id: `cp-triangle-clip-${_ctx.id}`
6882
6882
  }, [
@@ -10345,7 +10345,7 @@ const _hoisted_2$s = ["disabled", "aria-label"];
10345
10345
  const _hoisted_3$h = ["disabled", "aria-label"];
10346
10346
  const _hoisted_4$c = { class: "pagination-list" };
10347
10347
  const _hoisted_5$9 = ["value", "disabled"];
10348
- const _hoisted_6$6 = ["value"];
10348
+ const _hoisted_6$7 = ["value"];
10349
10349
  const _hoisted_7$6 = { key: 1 };
10350
10350
  function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
10351
10351
  const _component_b_input = resolveComponent("b-input");
@@ -10477,7 +10477,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
10477
10477
  return openBlock(), createElementBlock("option", {
10478
10478
  value: year,
10479
10479
  key: year
10480
- }, toDisplayString(year), 9, _hoisted_6$6);
10480
+ }, toDisplayString(year), 9, _hoisted_6$7);
10481
10481
  }),
10482
10482
  128
10483
10483
  /* KEYED_FRAGMENT */
@@ -10676,7 +10676,7 @@ const _hoisted_2$r = { class: "control is-colon" };
10676
10676
  const _hoisted_3$g = ["value", "disabled"];
10677
10677
  const _hoisted_4$b = { class: "control is-colon" };
10678
10678
  const _hoisted_5$8 = ["value", "disabled"];
10679
- const _hoisted_6$5 = { class: "control is-colon" };
10679
+ const _hoisted_6$6 = { class: "control is-colon" };
10680
10680
  const _hoisted_7$5 = ["value"];
10681
10681
  const _hoisted_8$5 = {
10682
10682
  key: 0,
@@ -10812,7 +10812,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
10812
10812
  }, 8, ["modelValue", "disabled"]),
10813
10813
  createElementVNode(
10814
10814
  "span",
10815
- _hoisted_6$5,
10815
+ _hoisted_6$6,
10816
10816
  toDisplayString(_ctx.secondLiteral),
10817
10817
  1
10818
10818
  /* TEXT */
@@ -11887,7 +11887,7 @@ const _hoisted_3$d = {
11887
11887
  };
11888
11888
  const _hoisted_4$9 = { class: "modal-card-title" };
11889
11889
  const _hoisted_5$7 = { class: "media" };
11890
- const _hoisted_6$4 = {
11890
+ const _hoisted_6$5 = {
11891
11891
  key: 0,
11892
11892
  class: "media-left"
11893
11893
  };
@@ -11934,7 +11934,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11934
11934
  },
11935
11935
  [
11936
11936
  createElementVNode("div", _hoisted_5$7, [
11937
- _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
11937
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
11938
11938
  createVNode(_component_b_icon, {
11939
11939
  icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11940
11940
  pack: _ctx.iconPack,
@@ -13056,7 +13056,7 @@ const _hoisted_5$6 = {
13056
13056
  key: 1,
13057
13057
  class: "message-body"
13058
13058
  };
13059
- const _hoisted_6$3 = { class: "media" };
13059
+ const _hoisted_6$4 = { class: "media" };
13060
13060
  const _hoisted_7$3 = {
13061
13061
  key: 0,
13062
13062
  class: "media-left"
@@ -13095,7 +13095,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
13095
13095
  }, null, 8, _hoisted_4$8)) : createCommentVNode("v-if", true)
13096
13096
  ])) : createCommentVNode("v-if", true),
13097
13097
  _ctx.$slots.default ? (openBlock(), createElementBlock("section", _hoisted_5$6, [
13098
- createElementVNode("div", _hoisted_6$3, [
13098
+ createElementVNode("div", _hoisted_6$4, [
13099
13099
  _ctx.computedIcon && _ctx.hasIcon ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
13100
13100
  createVNode(_component_b_icon, {
13101
13101
  icon: _ctx.computedIcon,
@@ -13677,10 +13677,18 @@ const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
13677
13677
  -1
13678
13678
  /* HOISTED */
13679
13679
  );
13680
- const _hoisted_5$4 = [
13680
+ const _hoisted_5$4 = /* @__PURE__ */ createElementVNode(
13681
+ "span",
13682
+ { "aria-hidden": "true" },
13683
+ null,
13684
+ -1
13685
+ /* HOISTED */
13686
+ );
13687
+ const _hoisted_6$3 = [
13681
13688
  _hoisted_2$i,
13682
13689
  _hoisted_3$a,
13683
- _hoisted_4$6
13690
+ _hoisted_4$6,
13691
+ _hoisted_5$4
13684
13692
  ];
13685
13693
  function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
13686
13694
  return openBlock(), createElementBlock("a", mergeProps({
@@ -13688,7 +13696,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
13688
13696
  class: ["navbar-burger burger", { "is-active": _ctx.isOpened }],
13689
13697
  "aria-label": "menu",
13690
13698
  "aria-expanded": _ctx.isOpened || void 0
13691
- }, _ctx.$attrs, { tabindex: "0" }), [..._hoisted_5$4], 16, _hoisted_1$l);
13699
+ }, _ctx.$attrs, { tabindex: "0" }), [..._hoisted_6$3], 16, _hoisted_1$l);
13692
13700
  }
13693
13701
  var NavbarBurger = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$p]]);
13694
13702
 
@@ -18872,15 +18880,16 @@ var _sfc_main$6 = defineComponent({
18872
18880
  if (!this.canDragRow) return;
18873
18881
  this.$emit("dragleave", { event, row, index });
18874
18882
  },
18875
- // FIXME: this method may emit events not listed in `emits`.
18876
- // I decided not to list them to check if event listeners are actually
18877
- // set in `$attrs`. The original idea of this method was to address
18878
- // some performance issues and introduced at the commit:
18879
- // https://github.com/ntohq/buefy-next/commit/e38726497785145195e9605840e33980fd4ae9e0
18880
- // I am not sure whether the justification at https://github.com/buefy/buefy/pull/2150
18881
- // is still relevant with Vue 3.
18883
+ // this method is for "mouseenter", and "mouseleave" events.
18884
+ // the original idea of this method was introduced by the PR
18885
+ // https://github.com/buefy/buefy/pull/2150
18886
+ // to address some performance issues related to these events.
18887
+ // I am not sure whether the justification made at the PR is still
18888
+ // relevant to Vue 3.
18889
+ // btw, this function was made by the PR https://github.com/buefy/buefy/pull/3236
18882
18890
  emitEventForRow(eventName, event, row) {
18883
- return this.$attrs[`on${eventName}`] ? this.$emit(eventName, row, event) : null;
18891
+ const listener = this.$attrs[toHandlerKey(eventName)] || this.$attrs[toHandlerKey(camelize(eventName))];
18892
+ return listener != null ? this.$emit(eventName, row, event) : null;
18884
18893
  },
18885
18894
  /*
18886
18895
  * Emits drag start event (column)