buefy 0.9.20 → 0.9.21
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/CHANGELOG.md +1741 -1741
- package/dist/buefy.css +1 -1
- package/dist/buefy.esm.js +45 -25
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +45 -25
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +5 -5
- package/dist/cjs/breadcrumb.js +1 -1
- package/dist/cjs/button.js +3 -3
- package/dist/cjs/carousel.js +3 -3
- package/dist/cjs/{chunk-5ed8a75a.js → chunk-09574ad9.js} +3 -3
- package/dist/cjs/{chunk-7c11fdde.js → chunk-201c9e5c.js} +1 -1
- package/dist/cjs/{chunk-545e1c7f.js → chunk-2a96ec68.js} +2 -2
- package/dist/cjs/{chunk-9103eeda.js → chunk-437dd7a0.js} +1 -0
- package/dist/cjs/{chunk-7545a2bd.js → chunk-7b44db6e.js} +2 -2
- package/dist/cjs/{chunk-670ac7e7.js → chunk-85b00a19.js} +7 -7
- package/dist/cjs/{chunk-3ef2e7dd.js → chunk-95c4b826.js} +3 -3
- package/dist/cjs/{chunk-5010c284.js → chunk-99367591.js} +18 -2
- package/dist/cjs/{chunk-73f8eef8.js → chunk-a6b29437.js} +1 -1
- package/dist/cjs/{chunk-cd626a19.js → chunk-bcab8905.js} +6 -6
- package/dist/cjs/{chunk-7e877557.js → chunk-befea70a.js} +2 -2
- package/dist/cjs/{chunk-4bcfaf1c.js → chunk-cc9676a6.js} +1 -1
- package/dist/cjs/{chunk-03279fd8.js → chunk-dddb035c.js} +1 -1
- package/dist/cjs/{chunk-e872f5e2.js → chunk-e0373ab6.js} +1 -1
- package/dist/cjs/{chunk-2d94476d.js → chunk-e90b3d05.js} +2 -2
- package/dist/cjs/{chunk-f5285f14.js → chunk-eba24a95.js} +1 -1
- package/dist/cjs/{chunk-e86d3eeb.js → chunk-f5139026.js} +1 -1
- package/dist/cjs/{chunk-d03d9202.js → chunk-f8eb56c6.js} +21 -21
- package/dist/cjs/{chunk-93c51748.js → chunk-fb8ff6be.js} +1 -1
- package/dist/cjs/clockpicker.js +7 -7
- package/dist/cjs/colorpicker.js +8 -8
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +8 -8
- package/dist/cjs/datetimepicker.js +10 -10
- package/dist/cjs/dialog.js +4 -4
- package/dist/cjs/dropdown.js +2 -2
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/icon.js +2 -2
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/index.js +19 -19
- package/dist/cjs/input.js +4 -4
- package/dist/cjs/loading.js +1 -1
- package/dist/cjs/menu.js +2 -2
- package/dist/cjs/message.js +3 -3
- package/dist/cjs/modal.js +2 -2
- package/dist/cjs/notification.js +4 -4
- package/dist/cjs/numberinput.js +4 -4
- package/dist/cjs/pagination.js +3 -3
- package/dist/cjs/progress.js +1 -1
- package/dist/cjs/rate.js +2 -2
- package/dist/cjs/select.js +4 -4
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +2 -2
- package/dist/cjs/snackbar.js +2 -2
- package/dist/cjs/steps.js +3 -3
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +11 -8
- package/dist/cjs/tabs.js +3 -3
- package/dist/cjs/taginput.js +5 -5
- package/dist/cjs/timepicker.js +9 -9
- package/dist/cjs/toast.js +2 -2
- package/dist/cjs/tooltip.js +2 -2
- package/dist/cjs/upload.js +2 -2
- package/dist/components/autocomplete/index.js +2 -1
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +2 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +3 -2
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +2 -1
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +22 -21
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/colorpicker/index.js +39 -22
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +22 -21
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +22 -21
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +3 -2
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +2 -1
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +22 -21
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +2 -1
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +2 -1
- package/dist/components/image/index.min.js +2 -2
- package/dist/components/input/index.js +2 -1
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +2 -1
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +2 -1
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +2 -1
- package/dist/components/modal/index.min.js +2 -2
- package/dist/components/navbar/index.js +1 -1
- package/dist/components/navbar/index.min.js +1 -1
- package/dist/components/notification/index.js +2 -1
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +2 -1
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +2 -1
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +2 -1
- package/dist/components/progress/index.min.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +2 -1
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +2 -1
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +2 -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 +19 -2
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +2 -1
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +2 -1
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +2 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +7 -3
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +2 -1
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +2 -1
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +22 -21
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +2 -1
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +19 -2
- package/dist/components/tooltip/index.min.js +2 -2
- package/dist/components/upload/index.js +2 -1
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +6 -6
- package/dist/esm/breadcrumb.js +1 -1
- package/dist/esm/button.js +4 -4
- package/dist/esm/carousel.js +3 -3
- package/dist/esm/{chunk-726445a2.js → chunk-17b33cd2.js} +1 -1
- package/dist/esm/{chunk-aed3f638.js → chunk-293c457c.js} +6 -6
- package/dist/esm/{chunk-d35985c7.js → chunk-33e1434e.js} +1 -1
- package/dist/esm/{chunk-690d5be4.js → chunk-493ff0a9.js} +1 -1
- package/dist/esm/{chunk-51455f8c.js → chunk-4e788733.js} +2 -2
- package/dist/esm/{chunk-970672ce.js → chunk-6c64686f.js} +7 -7
- package/dist/esm/{chunk-c2803e80.js → chunk-6e56b8bc.js} +2 -2
- package/dist/esm/{chunk-5435bd9a.js → chunk-7bb9107f.js} +1 -1
- package/dist/esm/{chunk-e044aa02.js → chunk-7e17a637.js} +1 -1
- package/dist/esm/{chunk-4fb80d59.js → chunk-83c8b459.js} +3 -3
- package/dist/esm/{chunk-ced7578e.js → chunk-9b0b8225.js} +18 -2
- package/dist/esm/{chunk-d9232770.js → chunk-a32d1427.js} +1 -1
- package/dist/esm/{chunk-598015da.js → chunk-ade5b253.js} +1 -1
- package/dist/esm/{chunk-8747d0a8.js → chunk-b0123b89.js} +2 -2
- package/dist/esm/{chunk-58cdbf2b.js → chunk-b5576437.js} +3 -3
- package/dist/esm/{chunk-1a4fde6d.js → chunk-c5284276.js} +2 -2
- package/dist/esm/{chunk-2509b537.js → chunk-d46e7ff0.js} +21 -21
- package/dist/esm/{chunk-8ed29c41.js → chunk-e92e3389.js} +1 -0
- package/dist/esm/{chunk-6d96579e.js → chunk-f32d0228.js} +1 -1
- package/dist/esm/clockpicker.js +7 -7
- package/dist/esm/colorpicker.js +8 -8
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +9 -9
- package/dist/esm/datetimepicker.js +10 -10
- package/dist/esm/dialog.js +4 -4
- package/dist/esm/dropdown.js +3 -3
- package/dist/esm/field.js +3 -3
- package/dist/esm/icon.js +3 -3
- package/dist/esm/image.js +3 -3
- package/dist/esm/index.js +19 -19
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +1 -1
- package/dist/esm/menu.js +2 -2
- package/dist/esm/message.js +3 -3
- package/dist/esm/modal.js +3 -3
- package/dist/esm/notification.js +4 -4
- package/dist/esm/numberinput.js +4 -4
- package/dist/esm/pagination.js +4 -4
- package/dist/esm/progress.js +1 -1
- package/dist/esm/rate.js +2 -2
- package/dist/esm/select.js +5 -5
- package/dist/esm/sidebar.js +1 -1
- package/dist/esm/slider.js +2 -2
- package/dist/esm/snackbar.js +2 -2
- package/dist/esm/steps.js +3 -3
- package/dist/esm/switch.js +1 -1
- package/dist/esm/table.js +11 -8
- package/dist/esm/tabs.js +3 -3
- package/dist/esm/taginput.js +5 -5
- package/dist/esm/timepicker.js +10 -10
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +3 -3
- package/dist/esm/upload.js +2 -2
- package/dist/vetur/attributes.json +5 -1
- package/dist/vetur/tags.json +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.spec.js +14 -0
- package/src/components/button/Button.vue +1 -1
- package/src/components/field/Field.vue +272 -272
- package/src/components/table/TableColumn.vue +121 -118
- package/src/components/tooltip/Tooltip.vue +12 -1
- package/src/utils/config.js +1 -0
|
@@ -1,118 +1,121 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { toCssWidth } from '../../utils/helpers'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
name: 'BTableColumn',
|
|
6
|
-
inject: {
|
|
7
|
-
$table: { name: '$table', default: false }
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
label: String,
|
|
11
|
-
customKey: [String, Number],
|
|
12
|
-
field: String,
|
|
13
|
-
meta: [String, Number, Boolean, Function, Object, Array],
|
|
14
|
-
width: [Number, String],
|
|
15
|
-
numeric: Boolean,
|
|
16
|
-
centered: Boolean,
|
|
17
|
-
searchable: Boolean,
|
|
18
|
-
sortable: Boolean,
|
|
19
|
-
visible: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true
|
|
22
|
-
},
|
|
23
|
-
subheading: [String, Number],
|
|
24
|
-
customSort: Function,
|
|
25
|
-
customSearch: Function,
|
|
26
|
-
sticky: Boolean,
|
|
27
|
-
headerSelectable: Boolean,
|
|
28
|
-
headerClass: String,
|
|
29
|
-
cellClass: String,
|
|
30
|
-
thAttrs: {
|
|
31
|
-
type: Function,
|
|
32
|
-
default: () => ({})
|
|
33
|
-
},
|
|
34
|
-
tdAttrs: {
|
|
35
|
-
type: Function,
|
|
36
|
-
default: () => ({})
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
newKey: this.customKey || this.label,
|
|
42
|
-
_isTableColumn: true
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
computed: {
|
|
46
|
-
thClasses() {
|
|
47
|
-
const attrs = this.thAttrs(this)
|
|
48
|
-
const classes = [this.headerClass, {
|
|
49
|
-
'is-sortable': this.sortable,
|
|
50
|
-
'is-sticky': this.sticky,
|
|
51
|
-
'is-unselectable': this.isHeaderUnSelectable
|
|
52
|
-
}]
|
|
53
|
-
if (attrs && attrs.class) {
|
|
54
|
-
classes.push(attrs.class)
|
|
55
|
-
}
|
|
56
|
-
return classes
|
|
57
|
-
},
|
|
58
|
-
thStyle() {
|
|
59
|
-
const attrs = this.thAttrs(this)
|
|
60
|
-
const style = [this.style]
|
|
61
|
-
if (attrs && attrs.style) {
|
|
62
|
-
style.push(attrs.style)
|
|
63
|
-
}
|
|
64
|
-
return style
|
|
65
|
-
},
|
|
66
|
-
rootClasses() {
|
|
67
|
-
return [this.cellClass, {
|
|
68
|
-
'has-text-right': this.numeric && !this.centered,
|
|
69
|
-
'has-text-centered': this.centered,
|
|
70
|
-
'is-sticky': this.sticky
|
|
71
|
-
}]
|
|
72
|
-
},
|
|
73
|
-
style() {
|
|
74
|
-
return {
|
|
75
|
-
width: toCssWidth(this.width)
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
hasDefaultSlot() {
|
|
79
|
-
return !!this.$scopedSlots.default
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* Return if column header is un-selectable
|
|
83
|
-
*/
|
|
84
|
-
isHeaderUnSelectable() {
|
|
85
|
-
return !this.headerSelectable && this.sortable
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
getRootClasses(row) {
|
|
90
|
-
const attrs = this.tdAttrs(row, this)
|
|
91
|
-
const classes = [this.rootClasses]
|
|
92
|
-
if (attrs && attrs.class) {
|
|
93
|
-
classes.push(attrs.class)
|
|
94
|
-
}
|
|
95
|
-
return classes
|
|
96
|
-
},
|
|
97
|
-
getRootStyle(row) {
|
|
98
|
-
const attrs = this.tdAttrs(row, this)
|
|
99
|
-
const style = []
|
|
100
|
-
if (attrs && attrs.style) {
|
|
101
|
-
style.push(attrs.style)
|
|
102
|
-
}
|
|
103
|
-
return style
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
created() {
|
|
107
|
-
if (!this.$table) {
|
|
108
|
-
this.$destroy()
|
|
109
|
-
throw new Error('You should wrap bTableColumn on a bTable')
|
|
110
|
-
}
|
|
111
|
-
this.$table.refreshSlots()
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
1
|
+
<script>
|
|
2
|
+
import { toCssWidth } from '../../utils/helpers'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'BTableColumn',
|
|
6
|
+
inject: {
|
|
7
|
+
$table: { name: '$table', default: false }
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
label: String,
|
|
11
|
+
customKey: [String, Number],
|
|
12
|
+
field: String,
|
|
13
|
+
meta: [String, Number, Boolean, Function, Object, Array],
|
|
14
|
+
width: [Number, String],
|
|
15
|
+
numeric: Boolean,
|
|
16
|
+
centered: Boolean,
|
|
17
|
+
searchable: Boolean,
|
|
18
|
+
sortable: Boolean,
|
|
19
|
+
visible: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
23
|
+
subheading: [String, Number],
|
|
24
|
+
customSort: Function,
|
|
25
|
+
customSearch: Function,
|
|
26
|
+
sticky: Boolean,
|
|
27
|
+
headerSelectable: Boolean,
|
|
28
|
+
headerClass: String,
|
|
29
|
+
cellClass: String,
|
|
30
|
+
thAttrs: {
|
|
31
|
+
type: Function,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
tdAttrs: {
|
|
35
|
+
type: Function,
|
|
36
|
+
default: () => ({})
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
newKey: this.customKey || this.label,
|
|
42
|
+
_isTableColumn: true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
computed: {
|
|
46
|
+
thClasses() {
|
|
47
|
+
const attrs = this.thAttrs(this)
|
|
48
|
+
const classes = [this.headerClass, {
|
|
49
|
+
'is-sortable': this.sortable,
|
|
50
|
+
'is-sticky': this.sticky,
|
|
51
|
+
'is-unselectable': this.isHeaderUnSelectable
|
|
52
|
+
}]
|
|
53
|
+
if (attrs && attrs.class) {
|
|
54
|
+
classes.push(attrs.class)
|
|
55
|
+
}
|
|
56
|
+
return classes
|
|
57
|
+
},
|
|
58
|
+
thStyle() {
|
|
59
|
+
const attrs = this.thAttrs(this)
|
|
60
|
+
const style = [this.style]
|
|
61
|
+
if (attrs && attrs.style) {
|
|
62
|
+
style.push(attrs.style)
|
|
63
|
+
}
|
|
64
|
+
return style
|
|
65
|
+
},
|
|
66
|
+
rootClasses() {
|
|
67
|
+
return [this.cellClass, {
|
|
68
|
+
'has-text-right': this.numeric && !this.centered,
|
|
69
|
+
'has-text-centered': this.centered,
|
|
70
|
+
'is-sticky': this.sticky
|
|
71
|
+
}]
|
|
72
|
+
},
|
|
73
|
+
style() {
|
|
74
|
+
return {
|
|
75
|
+
width: toCssWidth(this.width)
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
hasDefaultSlot() {
|
|
79
|
+
return !!this.$scopedSlots.default
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Return if column header is un-selectable
|
|
83
|
+
*/
|
|
84
|
+
isHeaderUnSelectable() {
|
|
85
|
+
return !this.headerSelectable && this.sortable
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
getRootClasses(row) {
|
|
90
|
+
const attrs = this.tdAttrs(row, this)
|
|
91
|
+
const classes = [this.rootClasses]
|
|
92
|
+
if (attrs && attrs.class) {
|
|
93
|
+
classes.push(attrs.class)
|
|
94
|
+
}
|
|
95
|
+
return classes
|
|
96
|
+
},
|
|
97
|
+
getRootStyle(row) {
|
|
98
|
+
const attrs = this.tdAttrs(row, this)
|
|
99
|
+
const style = []
|
|
100
|
+
if (attrs && attrs.style) {
|
|
101
|
+
style.push(attrs.style)
|
|
102
|
+
}
|
|
103
|
+
return style
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
created() {
|
|
107
|
+
if (!this.$table) {
|
|
108
|
+
this.$destroy()
|
|
109
|
+
throw new Error('You should wrap bTableColumn on a bTable')
|
|
110
|
+
}
|
|
111
|
+
this.$table.refreshSlots()
|
|
112
|
+
},
|
|
113
|
+
beforeDestroy() {
|
|
114
|
+
this.$table.refreshSlots()
|
|
115
|
+
},
|
|
116
|
+
render(createElement) {
|
|
117
|
+
// renderless
|
|
118
|
+
return null
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</script>
|
|
@@ -46,6 +46,10 @@ export default {
|
|
|
46
46
|
type: Number,
|
|
47
47
|
default: () => config.defaultTooltipDelay
|
|
48
48
|
},
|
|
49
|
+
closeDelay: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: () => config.defaultTooltipCloseDelay
|
|
52
|
+
},
|
|
49
53
|
position: {
|
|
50
54
|
type: String,
|
|
51
55
|
default: 'is-top',
|
|
@@ -214,8 +218,15 @@ export default {
|
|
|
214
218
|
},
|
|
215
219
|
close() {
|
|
216
220
|
if (typeof this.autoClose === 'boolean') {
|
|
217
|
-
this.isActive = !this.autoClose
|
|
218
221
|
if (this.autoClose && this.timer) clearTimeout(this.timer)
|
|
222
|
+
if (this.closeDelay) {
|
|
223
|
+
this.timer = setTimeout(() => {
|
|
224
|
+
this.isActive = !this.autoClose
|
|
225
|
+
this.timer = null
|
|
226
|
+
}, this.closeDelay)
|
|
227
|
+
} else {
|
|
228
|
+
this.isActive = !this.autoClose
|
|
229
|
+
}
|
|
219
230
|
}
|
|
220
231
|
},
|
|
221
232
|
/**
|
package/src/utils/config.js
CHANGED