buefy 3.0.0 → 3.0.1
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.
- package/dist/buefy.css +4 -9
- package/dist/buefy.css.map +1 -1
- package/dist/buefy.esm.js +24 -16
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +24 -16
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/navbar.js +11 -3
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/autocomplete/index.min.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.min.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.min.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +1 -1
- package/dist/components/clockpicker/index.min.js +1 -1
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/colorpicker/index.js +1 -1
- package/dist/components/colorpicker/index.min.js +1 -1
- package/dist/components/datepicker/index.js +1 -1
- package/dist/components/datepicker/index.min.js +1 -1
- package/dist/components/datetimepicker/index.js +1 -1
- package/dist/components/datetimepicker/index.min.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.min.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.min.js +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.min.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.min.js +1 -1
- package/dist/components/message/index.js +1 -1
- package/dist/components/message/index.min.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +12 -4
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification/index.min.js +1 -1
- package/dist/components/numberinput/index.js +1 -1
- package/dist/components/numberinput/index.min.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.min.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.min.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +1 -1
- package/dist/components/rate/index.min.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.min.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.min.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.min.js +1 -1
- package/dist/components/snackbar/index.js +1 -1
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.min.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.min.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.min.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +1 -1
- package/dist/components/taginput/index.min.js +1 -1
- package/dist/components/timepicker/index.js +1 -1
- package/dist/components/timepicker/index.min.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/index.min.js +1 -1
- package/dist/esm/navbar.js +11 -3
- package/package.json +1 -1
- package/src/components/navbar/NavbarBurger.vue +1 -0
- package/src/components/navbar/__snapshots__/NavBar.spec.ts.snap +1 -1
- package/src/components/navbar/__snapshots__/NavBarBurger.spec.ts.snap +1 -1
- package/src/scss/buefy.scss +38 -38
- package/src/scss/components/_autocomplete.scss +5 -0
- package/src/scss/components/_modal.scss +0 -14
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.1 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Upload={},e.Vue)}(this,(function(e,t){"use strict";let i,s="mdi",n=!0,a=!0,l=!0;var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>n}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:i,id:s}=e;return((e,t)=>{var i={};for(var s in e)o.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&r)for(var s of r(e))t.indexOf(s)<0&&d.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}}),p=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const h=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>a},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>l}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||s,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}}),c="undefined"==typeof window?Object:window.File,f=t.defineComponent({name:"BUpload",mixins:[u,h],props:{modelValue:{type:[Object,Function,c,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},emits:{invalid:()=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,dragDropFocus:!1,_elementRef:"input"}},computed:{disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.newValue=e,(!e||Array.isArray(e)&&0===e.length)&&(this.$refs.input.value=""),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange(e){var t,i;if(this.disabled||this.loading)return;this.dragDrop&&this.updateDragDropFocus(!1);const s=null!=(i=null!=(t=e.target.files)?t:e.dataTransfer.files)?i:[];if(0===s.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){let e=!1;!this.native&&this.newValue||(this.newValue=[],e=!0);for(let t=0;t<s.length;t++){const i=s[t];this.checkType(i)&&Array.isArray(this.newValue)&&(this.newValue.push(i),e=!0)}if(!e)return}else{if(this.dragDrop&&1!==s.length)return;{const e=s[0];if(this.checkType(e))this.newValue=e;else{if(!this.newValue)return this.clearInput(),void this.checkHtml5Validity();this.newValue=null,this.clearInput()}}}this.$emit("update:modelValue",this.newValue),!this.dragDrop&&this.checkHtml5Validity()},clearInput(){this.$refs.input.value=""},updateDragDropFocus(e){this.disabled||this.loading||(this.dragDropFocus=e)},checkType(e){if(!this.accept)return!0;const t=this.accept.split(",");if(0===t.length)return!0;let i=!1;for(let s=0;s<t.length&&!i;s++){const n=t[s].trim();if(n)if("."===n.substring(0,1)){e.name.toLowerCase().slice(-n.length)===n.toLowerCase()&&(i=!0)}else e.type.match(n)&&(i=!0)}return i||this.$emit("invalid"),i}}}),g=["multiple","accept","disabled"];var m=p(f,[["render",function(e,i,s,n,a,l){return t.openBlock(),t.createElementBlock("label",t.mergeProps({class:"upload control"},e.rootAttrs,{class:[{"is-expanded":e.expanded,"is-rounded":e.rounded}]}),[e.dragDrop?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["upload-draggable",[e.type,{"is-loading":e.loading,"is-disabled":e.disabled,"is-hovered":e.dragDropFocus,"is-expanded":e.expanded}]]),onDragover:i[0]||(i[0]=t.withModifiers((t=>e.updateDragDropFocus(!0)),["prevent"])),onDragleave:i[1]||(i[1]=t.withModifiers((t=>e.updateDragDropFocus(!1)),["prevent"])),onDragenter:i[2]||(i[2]=t.withModifiers((t=>e.updateDragDropFocus(!0)),["prevent"])),onDrop:i[3]||(i[3]=t.withModifiers(((...t)=>e.onFileChange&&e.onFileChange(...t)),["prevent"]))},[t.renderSlot(e.$slots,"default")],34)):t.renderSlot(e.$slots,"default",{key:0}),t.createElementVNode("input",t.mergeProps({ref:"input",type:"file"},e.fallthroughAttrs,{multiple:e.multiple,accept:e.accept,disabled:e.disabledOrUndefined,onChange:i[4]||(i[4]=(...t)=>e.onFileChange&&e.onFileChange(...t))}),null,16,g)],16)}]]);const y={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,m)}};e.BUpload=m,e.default=y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/dist/esm/navbar.js
CHANGED
|
@@ -36,10 +36,18 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode(
|
|
|
36
36
|
-1
|
|
37
37
|
/* HOISTED */
|
|
38
38
|
);
|
|
39
|
-
const _hoisted_5 =
|
|
39
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode(
|
|
40
|
+
"span",
|
|
41
|
+
{ "aria-hidden": "true" },
|
|
42
|
+
null,
|
|
43
|
+
-1
|
|
44
|
+
/* HOISTED */
|
|
45
|
+
);
|
|
46
|
+
const _hoisted_6 = [
|
|
40
47
|
_hoisted_2,
|
|
41
48
|
_hoisted_3,
|
|
42
|
-
_hoisted_4
|
|
49
|
+
_hoisted_4,
|
|
50
|
+
_hoisted_5
|
|
43
51
|
];
|
|
44
52
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
53
|
return openBlock(), createElementBlock("a", mergeProps({
|
|
@@ -47,7 +55,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47
55
|
class: ["navbar-burger burger", { "is-active": _ctx.isOpened }],
|
|
48
56
|
"aria-label": "menu",
|
|
49
57
|
"aria-expanded": _ctx.isOpened || void 0
|
|
50
|
-
}, _ctx.$attrs, { tabindex: "0" }), [...
|
|
58
|
+
}, _ctx.$attrs, { tabindex: "0" }), [..._hoisted_6], 16, _hoisted_1);
|
|
51
59
|
}
|
|
52
60
|
var NavbarBurger = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2]]);
|
|
53
61
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`BNavbar > render correctly 1`] = `
|
|
4
4
|
"<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
5
|
-
<div class="navbar-brand"><a role="button" class="navbar-burger burger" aria-label="menu" tabindex="0"><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span></a></div>
|
|
5
|
+
<div class="navbar-brand"><a role="button" class="navbar-burger burger" aria-label="menu" tabindex="0"><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span></a></div>
|
|
6
6
|
<div class="navbar-menu">
|
|
7
7
|
<div class="navbar-start"></div>
|
|
8
8
|
<div class="navbar-end"></div>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`BNavbarBurger > render correctly 1`] = `"<a role="button" class="navbar-burger burger" aria-label="menu" tabindex="0"><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span></a>"`;
|
|
3
|
+
exports[`BNavbarBurger > render correctly 1`] = `"<a role="button" class="navbar-burger burger" aria-label="menu" tabindex="0"><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span><span aria-hidden="true"></span></a>"`;
|
package/src/scss/buefy.scss
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@
|
|
1
|
+
@forward "utils/_all";
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
38
|
-
@
|
|
39
|
-
@
|
|
3
|
+
@forward "components/_autocomplete";
|
|
4
|
+
@forward "components/_carousel";
|
|
5
|
+
@forward "components/_checkbox";
|
|
6
|
+
@forward "components/_clockpicker";
|
|
7
|
+
@forward "components/_collapse";
|
|
8
|
+
@forward "components/_colorpicker";
|
|
9
|
+
@forward "components/_datepicker";
|
|
10
|
+
@forward "components/_dialog";
|
|
11
|
+
@forward "components/_dropdown";
|
|
12
|
+
@forward "components/_form";
|
|
13
|
+
@forward "components/_icon";
|
|
14
|
+
@forward "components/_image";
|
|
15
|
+
@forward "components/_loading";
|
|
16
|
+
@forward "components/_menu";
|
|
17
|
+
@forward "components/_message";
|
|
18
|
+
@forward "components/_modal";
|
|
19
|
+
@forward "components/_navbar";
|
|
20
|
+
@forward "components/_notices";
|
|
21
|
+
@forward "components/_notification";
|
|
22
|
+
@forward "components/_numberinput";
|
|
23
|
+
@forward "components/_pagination";
|
|
24
|
+
@forward "components/_progress";
|
|
25
|
+
@forward "components/_radio";
|
|
26
|
+
@forward "components/_rate";
|
|
27
|
+
@forward "components/_select";
|
|
28
|
+
@forward "components/_skeleton";
|
|
29
|
+
@forward "components/_sidebar";
|
|
30
|
+
@forward "components/_slider";
|
|
31
|
+
@forward "components/_steps";
|
|
32
|
+
@forward "components/_switch";
|
|
33
|
+
@forward "components/_table";
|
|
34
|
+
@forward "components/_tabs";
|
|
35
|
+
@forward "components/_tag";
|
|
36
|
+
@forward "components/_taginput";
|
|
37
|
+
@forward "components/_timepicker";
|
|
38
|
+
@forward "components/_tooltip";
|
|
39
|
+
@forward "components/_upload";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "bulma/sass/utilities/initial-variables" as iv;
|
|
3
3
|
@use "bulma/sass/utilities/controls" as controls;
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
$dropdown-content-max-height: 200px !default;
|
|
6
7
|
|
|
7
8
|
.#{iv.$class-prefix}autocomplete {
|
|
@@ -30,6 +31,10 @@ $dropdown-content-max-height: 200px !default;
|
|
|
30
31
|
white-space: nowrap;
|
|
31
32
|
overflow: hidden;
|
|
32
33
|
text-overflow: ellipsis;
|
|
34
|
+
&.is-hovered {
|
|
35
|
+
--bulma-dropdown-item-background-l-delta: var(--bulma-dropdown-item-hover-background-l-delta);
|
|
36
|
+
--bulma-dropdown-item-border-l-delta: var(--bulma-dropdown-item-hover-border-l-delta);
|
|
37
|
+
}
|
|
33
38
|
&.is-disabled {
|
|
34
39
|
opacity: 0.5;
|
|
35
40
|
cursor: not-allowed;
|
|
@@ -31,17 +31,3 @@
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
// temporary fix for modal close button
|
|
36
|
-
// as ::before and ::after pseudo elements from bulma
|
|
37
|
-
// are not working properly
|
|
38
|
-
.#{iv.$class-prefix}modal-close {
|
|
39
|
-
&::before {
|
|
40
|
-
content: "×";
|
|
41
|
-
display: block;
|
|
42
|
-
font-size: 1.5rem;
|
|
43
|
-
line-height: 1;
|
|
44
|
-
text-align: center;
|
|
45
|
-
width: 1.5rem;
|
|
46
|
-
}
|
|
47
|
-
}
|