buefy 0.9.21 → 0.9.22
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 +1764 -1741
- package/dist/buefy.css +6 -5
- package/dist/buefy.esm.js +16 -8
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +16 -8
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +2 -2
- package/dist/cjs/{chunk-f8eb56c6.js → chunk-4702fda4.js} +1 -1
- package/dist/cjs/{chunk-85b00a19.js → chunk-660b0dfb.js} +3 -3
- package/dist/cjs/{chunk-befea70a.js → chunk-7cf23f94.js} +1 -1
- package/dist/cjs/{chunk-95c4b826.js → chunk-a39776c7.js} +4 -1
- package/dist/cjs/{chunk-bcab8905.js → chunk-bf0893c4.js} +2 -2
- package/dist/cjs/clockpicker.js +2 -2
- package/dist/cjs/colorpicker.js +3 -3
- package/dist/cjs/datepicker.js +3 -3
- package/dist/cjs/datetimepicker.js +4 -4
- package/dist/cjs/field.js +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/input.js +1 -1
- package/dist/cjs/numberinput.js +7 -2
- package/dist/cjs/table.js +3 -3
- package/dist/cjs/taginput.js +2 -2
- package/dist/cjs/timepicker.js +3 -3
- package/dist/components/autocomplete/index.js +5 -2
- package/dist/components/autocomplete/index.min.js +2 -2
- 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 +6 -3
- 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 +7 -4
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +7 -4
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +7 -4
- package/dist/components/datetimepicker/index.min.js +2 -2
- 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 +2 -2
- package/dist/components/field/index.min.js +2 -2
- 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 +5 -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 +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 +1 -1
- package/dist/components/navbar/index.min.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification/index.min.js +1 -1
- package/dist/components/numberinput/index.js +11 -3
- package/dist/components/numberinput/index.min.js +2 -2
- 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 +7 -4
- package/dist/components/table/index.min.js +2 -2
- 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 +5 -2
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +6 -3
- package/dist/components/timepicker/index.min.js +2 -2
- 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/autocomplete.js +3 -3
- package/dist/esm/{chunk-293c457c.js → chunk-35c20328.js} +2 -2
- package/dist/esm/{chunk-d46e7ff0.js → chunk-53788519.js} +1 -1
- package/dist/esm/{chunk-83c8b459.js → chunk-72ecb544.js} +4 -1
- package/dist/esm/{chunk-b0123b89.js → chunk-abcf9a94.js} +1 -1
- package/dist/esm/{chunk-6c64686f.js → chunk-ea6777b6.js} +3 -3
- package/dist/esm/clockpicker.js +2 -2
- package/dist/esm/colorpicker.js +3 -3
- package/dist/esm/datepicker.js +4 -4
- package/dist/esm/datetimepicker.js +4 -4
- package/dist/esm/field.js +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/input.js +2 -2
- package/dist/esm/numberinput.js +7 -2
- package/dist/esm/table.js +3 -3
- package/dist/esm/taginput.js +2 -2
- package/dist/esm/timepicker.js +4 -4
- package/dist/vetur/attributes.json +4 -0
- package/dist/vetur/tags.json +2 -1
- package/package.json +2 -2
- package/src/components/colorpicker/Colorpicker.vue +1 -1
- package/src/components/datepicker/Datepicker.spec.js +4 -4
- package/src/components/datepicker/Datepicker.vue +2 -2
- package/src/components/field/Field.spec.js +11 -2
- package/src/components/field/Field.vue +5 -1
- package/src/components/input/Input.spec.js +11 -0
- package/src/components/input/Input.vue +4 -1
- package/src/components/numberinput/Numberinput.spec.js +31 -0
- package/src/components/numberinput/Numberinput.vue +6 -1
- package/src/components/table/TableColumn.vue +121 -121
- package/src/scss/components/_colorpicker.scss +1 -1
- package/src/scss/components/_datepicker.scss +2 -2
- package/src/scss/components/_table.scss +1 -0
|
@@ -1,121 +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
|
-
beforeDestroy() {
|
|
114
|
-
this.$table.refreshSlots()
|
|
115
|
-
},
|
|
116
|
-
render(createElement) {
|
|
117
|
-
// renderless
|
|
118
|
-
return null
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
</script>
|
|
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>
|
|
@@ -210,10 +210,10 @@ $datepicker-item-selected-background-color: $primary !default;
|
|
|
210
210
|
margin-left: 5px;
|
|
211
211
|
display: flex;
|
|
212
212
|
}
|
|
213
|
-
.dropdown-
|
|
213
|
+
.dropdown-horizontal-timepicker {
|
|
214
214
|
display: flex;
|
|
215
215
|
}
|
|
216
|
-
.content-
|
|
216
|
+
.content-horizontal-timepicker {
|
|
217
217
|
border-right: 1px solid #dbdbdb;
|
|
218
218
|
}
|
|
219
219
|
}
|