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.
Files changed (141) hide show
  1. package/CHANGELOG.md +1764 -1741
  2. package/dist/buefy.css +6 -5
  3. package/dist/buefy.esm.js +16 -8
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +16 -8
  6. package/dist/buefy.min.css +1 -1
  7. package/dist/buefy.min.js +2 -2
  8. package/dist/cjs/autocomplete.js +2 -2
  9. package/dist/cjs/{chunk-f8eb56c6.js → chunk-4702fda4.js} +1 -1
  10. package/dist/cjs/{chunk-85b00a19.js → chunk-660b0dfb.js} +3 -3
  11. package/dist/cjs/{chunk-befea70a.js → chunk-7cf23f94.js} +1 -1
  12. package/dist/cjs/{chunk-95c4b826.js → chunk-a39776c7.js} +4 -1
  13. package/dist/cjs/{chunk-bcab8905.js → chunk-bf0893c4.js} +2 -2
  14. package/dist/cjs/clockpicker.js +2 -2
  15. package/dist/cjs/colorpicker.js +3 -3
  16. package/dist/cjs/datepicker.js +3 -3
  17. package/dist/cjs/datetimepicker.js +4 -4
  18. package/dist/cjs/field.js +1 -1
  19. package/dist/cjs/index.js +5 -5
  20. package/dist/cjs/input.js +1 -1
  21. package/dist/cjs/numberinput.js +7 -2
  22. package/dist/cjs/table.js +3 -3
  23. package/dist/cjs/taginput.js +2 -2
  24. package/dist/cjs/timepicker.js +3 -3
  25. package/dist/components/autocomplete/index.js +5 -2
  26. package/dist/components/autocomplete/index.min.js +2 -2
  27. package/dist/components/breadcrumb/index.js +1 -1
  28. package/dist/components/breadcrumb/index.min.js +1 -1
  29. package/dist/components/button/index.js +1 -1
  30. package/dist/components/button/index.min.js +1 -1
  31. package/dist/components/carousel/index.js +1 -1
  32. package/dist/components/carousel/index.min.js +1 -1
  33. package/dist/components/checkbox/index.js +1 -1
  34. package/dist/components/checkbox/index.min.js +1 -1
  35. package/dist/components/clockpicker/index.js +6 -3
  36. package/dist/components/clockpicker/index.min.js +2 -2
  37. package/dist/components/collapse/index.js +1 -1
  38. package/dist/components/collapse/index.min.js +1 -1
  39. package/dist/components/colorpicker/index.js +7 -4
  40. package/dist/components/colorpicker/index.min.js +2 -2
  41. package/dist/components/datepicker/index.js +7 -4
  42. package/dist/components/datepicker/index.min.js +2 -2
  43. package/dist/components/datetimepicker/index.js +7 -4
  44. package/dist/components/datetimepicker/index.min.js +2 -2
  45. package/dist/components/dialog/index.js +1 -1
  46. package/dist/components/dialog/index.min.js +1 -1
  47. package/dist/components/dropdown/index.js +1 -1
  48. package/dist/components/dropdown/index.min.js +1 -1
  49. package/dist/components/field/index.js +2 -2
  50. package/dist/components/field/index.min.js +2 -2
  51. package/dist/components/icon/index.js +1 -1
  52. package/dist/components/icon/index.min.js +1 -1
  53. package/dist/components/image/index.js +1 -1
  54. package/dist/components/image/index.min.js +1 -1
  55. package/dist/components/input/index.js +5 -2
  56. package/dist/components/input/index.min.js +2 -2
  57. package/dist/components/loading/index.js +1 -1
  58. package/dist/components/loading/index.min.js +1 -1
  59. package/dist/components/menu/index.js +1 -1
  60. package/dist/components/menu/index.min.js +1 -1
  61. package/dist/components/message/index.js +1 -1
  62. package/dist/components/message/index.min.js +1 -1
  63. package/dist/components/modal/index.js +1 -1
  64. package/dist/components/modal/index.min.js +1 -1
  65. package/dist/components/navbar/index.js +1 -1
  66. package/dist/components/navbar/index.min.js +1 -1
  67. package/dist/components/notification/index.js +1 -1
  68. package/dist/components/notification/index.min.js +1 -1
  69. package/dist/components/numberinput/index.js +11 -3
  70. package/dist/components/numberinput/index.min.js +2 -2
  71. package/dist/components/pagination/index.js +1 -1
  72. package/dist/components/pagination/index.min.js +1 -1
  73. package/dist/components/progress/index.js +1 -1
  74. package/dist/components/progress/index.min.js +1 -1
  75. package/dist/components/radio/index.js +1 -1
  76. package/dist/components/radio/index.min.js +1 -1
  77. package/dist/components/rate/index.js +1 -1
  78. package/dist/components/rate/index.min.js +1 -1
  79. package/dist/components/select/index.js +1 -1
  80. package/dist/components/select/index.min.js +1 -1
  81. package/dist/components/sidebar/index.js +1 -1
  82. package/dist/components/sidebar/index.min.js +1 -1
  83. package/dist/components/skeleton/index.js +1 -1
  84. package/dist/components/skeleton/index.min.js +1 -1
  85. package/dist/components/slider/index.js +1 -1
  86. package/dist/components/slider/index.min.js +1 -1
  87. package/dist/components/snackbar/index.js +1 -1
  88. package/dist/components/snackbar/index.min.js +1 -1
  89. package/dist/components/steps/index.js +1 -1
  90. package/dist/components/steps/index.min.js +1 -1
  91. package/dist/components/switch/index.js +1 -1
  92. package/dist/components/switch/index.min.js +1 -1
  93. package/dist/components/table/index.js +7 -4
  94. package/dist/components/table/index.min.js +2 -2
  95. package/dist/components/tabs/index.js +1 -1
  96. package/dist/components/tabs/index.min.js +1 -1
  97. package/dist/components/tag/index.js +1 -1
  98. package/dist/components/tag/index.min.js +1 -1
  99. package/dist/components/taginput/index.js +5 -2
  100. package/dist/components/taginput/index.min.js +2 -2
  101. package/dist/components/timepicker/index.js +6 -3
  102. package/dist/components/timepicker/index.min.js +2 -2
  103. package/dist/components/toast/index.js +1 -1
  104. package/dist/components/toast/index.min.js +1 -1
  105. package/dist/components/tooltip/index.js +1 -1
  106. package/dist/components/tooltip/index.min.js +1 -1
  107. package/dist/components/upload/index.js +1 -1
  108. package/dist/components/upload/index.min.js +1 -1
  109. package/dist/esm/autocomplete.js +3 -3
  110. package/dist/esm/{chunk-293c457c.js → chunk-35c20328.js} +2 -2
  111. package/dist/esm/{chunk-d46e7ff0.js → chunk-53788519.js} +1 -1
  112. package/dist/esm/{chunk-83c8b459.js → chunk-72ecb544.js} +4 -1
  113. package/dist/esm/{chunk-b0123b89.js → chunk-abcf9a94.js} +1 -1
  114. package/dist/esm/{chunk-6c64686f.js → chunk-ea6777b6.js} +3 -3
  115. package/dist/esm/clockpicker.js +2 -2
  116. package/dist/esm/colorpicker.js +3 -3
  117. package/dist/esm/datepicker.js +4 -4
  118. package/dist/esm/datetimepicker.js +4 -4
  119. package/dist/esm/field.js +2 -2
  120. package/dist/esm/index.js +5 -5
  121. package/dist/esm/input.js +2 -2
  122. package/dist/esm/numberinput.js +7 -2
  123. package/dist/esm/table.js +3 -3
  124. package/dist/esm/taginput.js +2 -2
  125. package/dist/esm/timepicker.js +4 -4
  126. package/dist/vetur/attributes.json +4 -0
  127. package/dist/vetur/tags.json +2 -1
  128. package/package.json +2 -2
  129. package/src/components/colorpicker/Colorpicker.vue +1 -1
  130. package/src/components/datepicker/Datepicker.spec.js +4 -4
  131. package/src/components/datepicker/Datepicker.vue +2 -2
  132. package/src/components/field/Field.spec.js +11 -2
  133. package/src/components/field/Field.vue +5 -1
  134. package/src/components/input/Input.spec.js +11 -0
  135. package/src/components/input/Input.vue +4 -1
  136. package/src/components/numberinput/Numberinput.spec.js +31 -0
  137. package/src/components/numberinput/Numberinput.vue +6 -1
  138. package/src/components/table/TableColumn.vue +121 -121
  139. package/src/scss/components/_colorpicker.scss +1 -1
  140. package/src/scss/components/_datepicker.scss +2 -2
  141. 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>
@@ -46,7 +46,7 @@ $colorpicker-hue-selected-stroke: $primary !default;
46
46
  .dropdown.is-expanded.is-mobile-modal .dropdown-menu {
47
47
  width: unset;
48
48
  }
49
- .dropdown-horizonal-colorpicker {
49
+ .dropdown-horizontal-colorpicker {
50
50
  display: flex;
51
51
  flex-direction: row;
52
52
 
@@ -210,10 +210,10 @@ $datepicker-item-selected-background-color: $primary !default;
210
210
  margin-left: 5px;
211
211
  display: flex;
212
212
  }
213
- .dropdown-horizonal-timepicker {
213
+ .dropdown-horizontal-timepicker {
214
214
  display: flex;
215
215
  }
216
- .content-horizonal-timepicker {
216
+ .content-horizontal-timepicker {
217
217
  border-right: 1px solid #dbdbdb;
218
218
  }
219
219
  }
@@ -123,6 +123,7 @@ $table-sticky-header-height: 300px !default;
123
123
  &.is-numeric {
124
124
  flex-direction: row-reverse;
125
125
  text-align: right;
126
+ width: 95%;
126
127
  .icon {
127
128
  margin-left: 0;
128
129
  margin-right: 0.5rem;