buefy 0.9.18 → 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 -1719
- package/dist/buefy.css +15848 -1
- package/dist/buefy.esm.js +77 -38
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +77 -38
- 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/checkbox.js +1 -1
- 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-3b43d77a.js → chunk-5cd29907.js} +1 -1
- package/dist/cjs/{chunk-334bc809.js → chunk-7b44db6e.js} +2 -2
- package/dist/cjs/{chunk-779e6a5d.js → chunk-85b00a19.js} +8 -8
- package/dist/cjs/{chunk-5058e659.js → chunk-95c4b826.js} +3 -3
- package/dist/cjs/{chunk-83b41298.js → chunk-99367591.js} +24 -8
- package/dist/cjs/{chunk-73f8eef8.js → chunk-a6b29437.js} +1 -1
- package/dist/cjs/{chunk-8ef75f09.js → chunk-bcab8905.js} +6 -6
- package/dist/cjs/{chunk-54b0042d.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-1f7e4ed3.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-c8abb3ed.js → chunk-f8eb56c6.js} +2 -2
- package/dist/cjs/{chunk-87a116d9.js → chunk-fb8ff6be.js} +1 -2
- package/dist/cjs/clockpicker.js +17 -8
- package/dist/cjs/colorpicker.js +18 -11
- 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 +20 -20
- package/dist/cjs/input.js +4 -4
- package/dist/cjs/loading.js +1 -1
- package/dist/cjs/menu.js +3 -3
- 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 +16 -16
- 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 +19 -12
- 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 -2
- 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 +2 -2
- package/dist/components/checkbox/index.min.js +2 -2
- package/dist/components/clockpicker/index.js +13 -4
- 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 +36 -13
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +4 -4
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +4 -4
- 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 +3 -2
- package/dist/components/field/index.min.js +2 -2
- 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 -2
- 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 +3 -2
- 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 -2
- 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 -2
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +17 -16
- 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 +25 -8
- 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 +15 -8
- 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 -2
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +3 -3
- 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 +25 -8
- package/dist/components/tooltip/index.min.js +2 -2
- package/dist/components/upload/index.js +2 -2
- 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/checkbox.js +2 -2
- package/dist/esm/{chunk-84c6dfd6.js → chunk-17b33cd2.js} +1 -2
- package/dist/esm/{chunk-a5e3ae5d.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-252f2b57.js → chunk-4a2008fa.js} +1 -1
- package/dist/esm/{chunk-6adc5c5d.js → chunk-4e788733.js} +2 -2
- package/dist/esm/{chunk-43fb1457.js → chunk-6c64686f.js} +8 -8
- package/dist/esm/{chunk-262b3f82.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-a628d44d.js → chunk-83c8b459.js} +3 -3
- package/dist/esm/{chunk-f967f402.js → chunk-9b0b8225.js} +24 -8
- 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-f9eaeac4.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-effa4d25.js → chunk-d46e7ff0.js} +2 -2
- 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 +17 -8
- package/dist/esm/colorpicker.js +18 -11
- 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 +20 -20
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +1 -1
- package/dist/esm/menu.js +3 -3
- 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 +16 -16
- 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 +19 -12
- 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 +9 -1
- package/dist/vetur/tags.json +2 -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/checkbox/Checkbox.vue +5 -1
- package/src/components/clockpicker/Clockpicker.vue +9 -1
- package/src/components/colorpicker/Colorpicker.vue +7 -2
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +3 -1
- package/src/components/datepicker/Datepicker.vue +1 -1
- package/src/components/field/Field.vue +1 -0
- package/src/components/menu/MenuItem.vue +1 -1
- package/src/components/sidebar/Sidebar.spec.js +105 -105
- package/src/components/sidebar/Sidebar.vue +303 -303
- package/src/components/table/Table.vue +10 -2
- package/src/components/table/TableColumn.vue +121 -118
- package/src/components/tooltip/Tooltip.vue +299 -288
- package/src/scss/components/_dropdown.scss +6 -0
- package/src/scss/utils/_helpers.scss +0 -6
- package/src/utils/FormElementMixin.js +0 -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>
|