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,10 +1,10 @@
1
1
  import { _ as _defineProperty } from './chunk-455cdeae.js';
2
2
  import { I as Icon } from './chunk-7e17a637.js';
3
3
  import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
4
- import { I as Input } from './chunk-83c8b459.js';
4
+ import { I as Input } from './chunk-72ecb544.js';
5
5
  import { T as TimepickerMixin } from './chunk-6e56b8bc.js';
6
6
  import { D as Dropdown, a as DropdownItem } from './chunk-ade5b253.js';
7
- import { F as Field } from './chunk-d46e7ff0.js';
7
+ import { F as Field } from './chunk-53788519.js';
8
8
  import { S as Select } from './chunk-4e788733.js';
9
9
 
10
10
  var _components;
@@ -292,7 +292,7 @@ var script$1 = {
292
292
  const __vue_script__$1 = script$1;
293
293
 
294
294
  /* template */
295
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
295
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message",null,{"messages":_vm.formattedMessage}):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
296
296
  var __vue_staticRenderFns__ = [];
297
297
 
298
298
  /* style */
@@ -143,7 +143,7 @@ var script = {
143
143
  */
144
144
  valueLength: function valueLength() {
145
145
  if (typeof this.computedValue === 'string') {
146
- return this.computedValue.length;
146
+ return Array.from(this.computedValue).length;
147
147
  } else if (typeof this.computedValue === 'number') {
148
148
  return this.computedValue.toString().length;
149
149
  }
@@ -158,6 +158,9 @@ var script = {
158
158
  */
159
159
  value: function value(_value) {
160
160
  this.newValue = _value;
161
+ },
162
+ type: function type(_type) {
163
+ this.newType = _type;
161
164
  }
162
165
  },
163
166
  methods: {
@@ -2,7 +2,7 @@ import { _ as _defineProperty, d as _toConsumableArray, b as _typeof } from './c
2
2
  import { getValueByPath, toCssWidth, isCustomElement, createAbsoluteElement, removeElement } from './helpers.js';
3
3
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
4
4
  import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
5
- import { I as Input } from './chunk-83c8b459.js';
5
+ import { I as Input } from './chunk-72ecb544.js';
6
6
 
7
7
  var script = {
8
8
  name: 'BAutocomplete',
@@ -4,9 +4,9 @@ import { c as config } from './chunk-e92e3389.js';
4
4
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
5
5
  import { I as Icon } from './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
8
  import { D as Dropdown, a as DropdownItem } from './chunk-ade5b253.js';
9
- import { F as Field } from './chunk-d46e7ff0.js';
9
+ import { F as Field } from './chunk-53788519.js';
10
10
  import { S as Select } from './chunk-4e788733.js';
11
11
 
12
12
  //
@@ -1794,7 +1794,7 @@ var script$3 = {
1794
1794
  const __vue_script__$3 = script$3;
1795
1795
 
1796
1796
  /* template */
1797
- var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formattedValue,"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"use-html5-validation":false},on:{"icon-right-click":function($event){return _vm.$emit('icon-right-click', $event)},"focus":_vm.handleOnFocus},nativeOn:{"click":function($event){return _vm.onInputClick($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.togglePicker(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizonal-timepicker': _vm.horizontalTimePicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"datepicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_c('div',{staticClass:"pagination field is-centered",class:_vm.size},[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showPrev && !_vm.disabled),expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.prev($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.prev($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.prev($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showNext && !_vm.disabled),expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.next($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.next($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.next($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('div',{staticClass:"pagination-list"},[_c('b-field',[(!_vm.isTypeMonth)?_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.month),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "month", $$v);},expression:"focusedDateData.month"}},_vm._l((_vm.listOfMonths),function(month){return _c('option',{key:month.name,attrs:{"disabled":month.disabled},domProps:{"value":month.index}},[_vm._v(" "+_vm._s(month.name)+" ")])}),0):_vm._e(),_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.year),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "year", $$v);},expression:"focusedDateData.year"}},_vm._l((_vm.listOfYears),function(year){return _c('option',{key:year,domProps:{"value":year}},[_vm._v(" "+_vm._s(year)+" ")])}),0)],1)],1)])],2),(!_vm.isTypeMonth)?_c('div',{staticClass:"datepicker-content",class:{'content-horizonal-timepicker': _vm.horizontalTimePicker}},[_c('b-datepicker-table',{attrs:{"day-names":_vm.newDayNames,"month-names":_vm.newMonthNames,"first-day-of-week":_vm.firstDayOfWeek,"rules-for-first-week":_vm.rulesForFirstWeek,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"type-month":_vm.isTypeMonth,"nearby-month-days":_vm.nearbyMonthDays,"nearby-selectable-month-days":_vm.nearbySelectableMonthDays,"show-week-number":_vm.showWeekNumber,"week-number-clickable":_vm.weekNumberClickable,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1):_c('div',[_c('b-datepicker-month',{attrs:{"month-names":_vm.newMonthNames,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"change-focus":_vm.changeFocus,"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1)]),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"datepicker-footer",class:{'footer-horizontal-timepicker': _vm.horizontalTimePicker}},[_vm._t("default")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":!_vm.isTypeMonth ? 'date' : 'month',"autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":false},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)};
1797
+ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formattedValue,"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"use-html5-validation":false},on:{"icon-right-click":function($event){return _vm.$emit('icon-right-click', $event)},"focus":_vm.handleOnFocus},nativeOn:{"click":function($event){return _vm.onInputClick($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.togglePicker(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizontal-timepicker': _vm.horizontalTimePicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"datepicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_c('div',{staticClass:"pagination field is-centered",class:_vm.size},[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showPrev && !_vm.disabled),expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.prev($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.prev($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.prev($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showNext && !_vm.disabled),expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.next($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.next($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.next($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('div',{staticClass:"pagination-list"},[_c('b-field',[(!_vm.isTypeMonth)?_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.month),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "month", $$v);},expression:"focusedDateData.month"}},_vm._l((_vm.listOfMonths),function(month){return _c('option',{key:month.name,attrs:{"disabled":month.disabled},domProps:{"value":month.index}},[_vm._v(" "+_vm._s(month.name)+" ")])}),0):_vm._e(),_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.year),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "year", $$v);},expression:"focusedDateData.year"}},_vm._l((_vm.listOfYears),function(year){return _c('option',{key:year,domProps:{"value":year}},[_vm._v(" "+_vm._s(year)+" ")])}),0)],1)],1)])],2),(!_vm.isTypeMonth)?_c('div',{staticClass:"datepicker-content",class:{'content-horizontal-timepicker': _vm.horizontalTimePicker}},[_c('b-datepicker-table',{attrs:{"day-names":_vm.newDayNames,"month-names":_vm.newMonthNames,"first-day-of-week":_vm.firstDayOfWeek,"rules-for-first-week":_vm.rulesForFirstWeek,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"type-month":_vm.isTypeMonth,"nearby-month-days":_vm.nearbyMonthDays,"nearby-selectable-month-days":_vm.nearbySelectableMonthDays,"show-week-number":_vm.showWeekNumber,"week-number-clickable":_vm.weekNumberClickable,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1):_c('div',[_c('b-datepicker-month',{attrs:{"month-names":_vm.newMonthNames,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"change-focus":_vm.changeFocus,"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1)]),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"datepicker-footer",class:{'footer-horizontal-timepicker': _vm.horizontalTimePicker}},[_vm._t("default")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":!_vm.isTypeMonth ? 'date' : 'month',"autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":false},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)};
1798
1798
  var __vue_staticRenderFns__$3 = [];
1799
1799
 
1800
1800
  /* style */
@@ -4,12 +4,12 @@ import { c as config } from './chunk-e92e3389.js';
4
4
  import './chunk-17b33cd2.js';
5
5
  import { I as Icon } from './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
8
  import './chunk-60a03517.js';
9
9
  import { T as TimepickerMixin } from './chunk-6e56b8bc.js';
10
10
  import './chunk-42f463e6.js';
11
11
  import { D as Dropdown, a as DropdownItem } from './chunk-ade5b253.js';
12
- import { F as Field } from './chunk-d46e7ff0.js';
12
+ import { F as Field } from './chunk-53788519.js';
13
13
 
14
14
  //
15
15
  //
@@ -4,11 +4,11 @@ import { c as config } from './chunk-e92e3389.js';
4
4
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
5
5
  import { I as Icon } from './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
8
  import './chunk-60a03517.js';
9
9
  import './chunk-42f463e6.js';
10
10
  import { D as Dropdown, a as DropdownItem } from './chunk-ade5b253.js';
11
- import { F as Field } from './chunk-d46e7ff0.js';
11
+ import { F as Field } from './chunk-53788519.js';
12
12
  import { S as Select } from './chunk-4e788733.js';
13
13
  import { T as Tooltip } from './chunk-9b0b8225.js';
14
14
 
@@ -1716,7 +1716,7 @@ var script$3 = {
1716
1716
  const __vue_script__$3 = script$3;
1717
1717
 
1718
1718
  /* template */
1719
- var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"colorpicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"expanded":_vm.expanded,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-button',{style:(_vm.triggerStyle),attrs:{"expanded":_vm.expanded,"disabled":_vm.disabled}},[_c('span',{staticClass:"color-name"},[_vm._v(_vm._s(_vm.colorFormatter(_vm.colorSelected)))])])])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizonal-colorpicker': _vm.horizontalColorPicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"colorpicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_vm._e()],2),_c('div',{staticClass:"colorpicker-content"},[(_vm.representation === 'square')?_c('b-colorpicker-h-s-l-representation-square',{attrs:{"value":_vm.colorSelected},on:{"input":_vm.updateColor}}):_c('b-colorpicker-h-s-l-representation-triangle',{attrs:{"value":_vm.colorSelected},on:{"input":_vm.updateColor}})],1)]),_c('footer',{staticClass:"colorpicker-footer"},[(_vm.alpha)?_c('b-colorpicker-alpha-slider',{attrs:{"value":_vm.colorSelected.alpha,"color":_vm.colorSelected},on:{"input":_vm.updateAlpha}}):_vm._e(),_vm._t("footer",[_c('b-field',{staticClass:"colorpicker-fields",attrs:{"grouped":""}},[_c('b-field',{attrs:{"horizontal":"","label":"R"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Red"},model:{value:(_vm.colorSelected.red),callback:function ($$v) {_vm.$set(_vm.colorSelected, "red", _vm._n($$v));},expression:"colorSelected.red"}})],1),_c('b-field',{attrs:{"horizontal":"","label":"G"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Green"},model:{value:(_vm.colorSelected.green),callback:function ($$v) {_vm.$set(_vm.colorSelected, "green", _vm._n($$v));},expression:"colorSelected.green"}})],1),_c('b-field',{attrs:{"horizontal":"","label":"B"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Blue"},model:{value:(_vm.colorSelected.blue),callback:function ($$v) {_vm.$set(_vm.colorSelected, "blue", _vm._n($$v));},expression:"colorSelected.blue"}})],1)],1)],{"color":_vm.colorSelected})],2)])],1):_vm._e()],1)};
1719
+ var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"colorpicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"expanded":_vm.expanded,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-button',{style:(_vm.triggerStyle),attrs:{"expanded":_vm.expanded,"disabled":_vm.disabled}},[_c('span',{staticClass:"color-name"},[_vm._v(_vm._s(_vm.colorFormatter(_vm.colorSelected)))])])])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizontal-colorpicker': _vm.horizontalColorPicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"colorpicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_vm._e()],2),_c('div',{staticClass:"colorpicker-content"},[(_vm.representation === 'square')?_c('b-colorpicker-h-s-l-representation-square',{attrs:{"value":_vm.colorSelected},on:{"input":_vm.updateColor}}):_c('b-colorpicker-h-s-l-representation-triangle',{attrs:{"value":_vm.colorSelected},on:{"input":_vm.updateColor}})],1)]),_c('footer',{staticClass:"colorpicker-footer"},[(_vm.alpha)?_c('b-colorpicker-alpha-slider',{attrs:{"value":_vm.colorSelected.alpha,"color":_vm.colorSelected},on:{"input":_vm.updateAlpha}}):_vm._e(),_vm._t("footer",[_c('b-field',{staticClass:"colorpicker-fields",attrs:{"grouped":""}},[_c('b-field',{attrs:{"horizontal":"","label":"R"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Red"},model:{value:(_vm.colorSelected.red),callback:function ($$v) {_vm.$set(_vm.colorSelected, "red", _vm._n($$v));},expression:"colorSelected.red"}})],1),_c('b-field',{attrs:{"horizontal":"","label":"G"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Green"},model:{value:(_vm.colorSelected.green),callback:function ($$v) {_vm.$set(_vm.colorSelected, "green", _vm._n($$v));},expression:"colorSelected.green"}})],1),_c('b-field',{attrs:{"horizontal":"","label":"B"}},[_c('b-input',{attrs:{"type":"number","size":"is-small","aria-label":"Blue"},model:{value:(_vm.colorSelected.blue),callback:function ($$v) {_vm.$set(_vm.colorSelected, "blue", _vm._n($$v));},expression:"colorSelected.blue"}})],1)],1)],{"color":_vm.colorSelected})],2)])],1):_vm._e()],1)};
1720
1720
  var __vue_staticRenderFns__$3 = [];
1721
1721
 
1722
1722
  /* style */
@@ -4,14 +4,14 @@ import './chunk-e92e3389.js';
4
4
  import './chunk-17b33cd2.js';
5
5
  import './chunk-7e17a637.js';
6
6
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import './chunk-83c8b459.js';
7
+ import './chunk-72ecb544.js';
8
8
  import './chunk-60a03517.js';
9
9
  import './chunk-42f463e6.js';
10
10
  import './chunk-ade5b253.js';
11
- import './chunk-d46e7ff0.js';
11
+ import './chunk-53788519.js';
12
12
  import './chunk-4e788733.js';
13
- import { D as Datepicker } from './chunk-6c64686f.js';
14
- export { D as BDatepicker } from './chunk-6c64686f.js';
13
+ import { D as Datepicker } from './chunk-ea6777b6.js';
14
+ export { D as BDatepicker } from './chunk-ea6777b6.js';
15
15
 
16
16
  var Plugin = {
17
17
  install: function install(Vue) {
@@ -4,15 +4,15 @@ import { c as config } from './chunk-e92e3389.js';
4
4
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
5
5
  import './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import './chunk-83c8b459.js';
7
+ import './chunk-72ecb544.js';
8
8
  import './chunk-60a03517.js';
9
9
  import './chunk-6e56b8bc.js';
10
10
  import './chunk-42f463e6.js';
11
11
  import './chunk-ade5b253.js';
12
- import './chunk-d46e7ff0.js';
12
+ import './chunk-53788519.js';
13
13
  import './chunk-4e788733.js';
14
- import { D as Datepicker } from './chunk-6c64686f.js';
15
- import { T as Timepicker } from './chunk-293c457c.js';
14
+ import { D as Datepicker } from './chunk-ea6777b6.js';
15
+ import { T as Timepicker } from './chunk-35c20328.js';
16
16
 
17
17
  var _components;
18
18
  var AM = 'AM';
package/dist/esm/field.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import './chunk-455cdeae.js';
2
2
  import './chunk-e92e3389.js';
3
3
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
4
- import { F as Field } from './chunk-d46e7ff0.js';
5
- export { F as BField } from './chunk-d46e7ff0.js';
4
+ import { F as Field } from './chunk-53788519.js';
5
+ export { F as BField } from './chunk-53788519.js';
6
6
 
7
7
  var Plugin = {
8
8
  install: function install(Vue) {
package/dist/esm/index.js CHANGED
@@ -5,8 +5,8 @@ import { s as setVueInstance, a as setOptions, c as config } from './chunk-e92e3
5
5
  import './chunk-17b33cd2.js';
6
6
  import './chunk-7e17a637.js';
7
7
  import { a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';
8
- import './chunk-83c8b459.js';
9
- import './chunk-b0123b89.js';
8
+ import './chunk-72ecb544.js';
9
+ import './chunk-abcf9a94.js';
10
10
  import Plugin from './autocomplete.js';
11
11
  export { default as Autocomplete } from './autocomplete.js';
12
12
  import Plugin$1 from './breadcrumb.js';
@@ -27,17 +27,17 @@ export { default as Collapse } from './collapse.js';
27
27
  import './chunk-6e56b8bc.js';
28
28
  import './chunk-42f463e6.js';
29
29
  import './chunk-ade5b253.js';
30
- import './chunk-d46e7ff0.js';
30
+ import './chunk-53788519.js';
31
31
  import Plugin$5 from './clockpicker.js';
32
32
  export { default as Clockpicker } from './clockpicker.js';
33
33
  import Plugin$7 from './colorpicker.js';
34
34
  export { default as Colorpicker } from './colorpicker.js';
35
35
  import './chunk-4e788733.js';
36
36
  import './chunk-9b0b8225.js';
37
- import './chunk-6c64686f.js';
37
+ import './chunk-ea6777b6.js';
38
38
  import Plugin$8 from './datepicker.js';
39
39
  export { default as Datepicker } from './datepicker.js';
40
- import './chunk-293c457c.js';
40
+ import './chunk-35c20328.js';
41
41
  import Plugin$9 from './datetimepicker.js';
42
42
  export { default as Datetimepicker } from './datetimepicker.js';
43
43
  import './chunk-33e1434e.js';
package/dist/esm/input.js CHANGED
@@ -4,8 +4,8 @@ import './chunk-e92e3389.js';
4
4
  import './chunk-17b33cd2.js';
5
5
  import './chunk-7e17a637.js';
6
6
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
8
- export { I as BInput } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
+ export { I as BInput } from './chunk-72ecb544.js';
9
9
 
10
10
  var Plugin = {
11
11
  install: function install(Vue) {
@@ -4,7 +4,7 @@ import './chunk-e92e3389.js';
4
4
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
5
5
  import { I as Icon } from './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
8
 
9
9
  var _components;
10
10
  var script = {
@@ -48,7 +48,11 @@ var script = {
48
48
  controlsPosition: String,
49
49
  placeholder: [Number, String],
50
50
  ariaMinusLabel: String,
51
- ariaPlusLabel: String
51
+ ariaPlusLabel: String,
52
+ longPress: {
53
+ type: Boolean,
54
+ default: true
55
+ }
52
56
  },
53
57
  data: function data() {
54
58
  return {
@@ -225,6 +229,7 @@ var script = {
225
229
  }, this.exponential ? 250 / (this.exponential * this.timesPressed++) : 250);
226
230
  },
227
231
  onStartLongPress: function onStartLongPress(event, inc) {
232
+ if (!this.longPress) return;
228
233
  if (event.button !== 0 && event.type !== 'touchstart') return;
229
234
  clearTimeout(this._$intervalRef);
230
235
  this.longPressTick(inc);
package/dist/esm/table.js CHANGED
@@ -4,7 +4,7 @@ import { V as VueInstance, s as setVueInstance } from './chunk-e92e3389.js';
4
4
  import './chunk-17b33cd2.js';
5
5
  import { I as Icon } from './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import { I as Input } from './chunk-83c8b459.js';
7
+ import { I as Input } from './chunk-72ecb544.js';
8
8
  import './chunk-2793447b.js';
9
9
  import { C as Checkbox } from './chunk-4a2008fa.js';
10
10
  import { S as Select } from './chunk-4e788733.js';
@@ -243,8 +243,8 @@ var script$1 = {
243
243
  return !!this.$scopedSlots.default;
244
244
  },
245
245
 
246
- /**
247
- * Return if column header is un-selectable
246
+ /**
247
+ * Return if column header is un-selectable
248
248
  */
249
249
  isHeaderUnSelectable: function isHeaderUnSelectable() {
250
250
  return !this.headerSelectable && this.sortable;
@@ -4,8 +4,8 @@ import { c as config } from './chunk-e92e3389.js';
4
4
  import { F as FormElementMixin } from './chunk-17b33cd2.js';
5
5
  import './chunk-7e17a637.js';
6
6
  import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import './chunk-83c8b459.js';
8
- import { A as Autocomplete } from './chunk-b0123b89.js';
7
+ import './chunk-72ecb544.js';
8
+ import { A as Autocomplete } from './chunk-abcf9a94.js';
9
9
  import { T as Tag } from './chunk-2f2f0a74.js';
10
10
 
11
11
  var _components;
@@ -4,15 +4,15 @@ import './chunk-e92e3389.js';
4
4
  import './chunk-17b33cd2.js';
5
5
  import './chunk-7e17a637.js';
6
6
  import { r as registerComponent, u as use } from './chunk-cca88db8.js';
7
- import './chunk-83c8b459.js';
7
+ import './chunk-72ecb544.js';
8
8
  import './chunk-60a03517.js';
9
9
  import './chunk-6e56b8bc.js';
10
10
  import './chunk-42f463e6.js';
11
11
  import './chunk-ade5b253.js';
12
- import './chunk-d46e7ff0.js';
12
+ import './chunk-53788519.js';
13
13
  import './chunk-4e788733.js';
14
- import { T as Timepicker } from './chunk-293c457c.js';
15
- export { T as BTimepicker } from './chunk-293c457c.js';
14
+ import { T as Timepicker } from './chunk-35c20328.js';
15
+ export { T as BTimepicker } from './chunk-35c20328.js';
16
16
 
17
17
  var Plugin = {
18
18
  install: function install(Vue) {
@@ -1707,6 +1707,10 @@
1707
1707
  "description": "Accessibility label for the plus button.",
1708
1708
  "type": "string"
1709
1709
  },
1710
+ "b-numberinput/long-press": {
1711
+ "description": "Long press on the plus or minus button will increment/decrement the input value.",
1712
+ "type": "boolean"
1713
+ },
1710
1714
  "b-numberinput/Any native attribute": {
1711
1715
  "description": "—",
1712
1716
  "type": "—"
@@ -619,7 +619,8 @@
619
619
  "controls-position",
620
620
  "controls-alignment",
621
621
  "aria-minus-label",
622
- "aria-plus-label"
622
+ "aria-plus-label",
623
+ "long-press"
623
624
  ],
624
625
  "description": "Buefy component <b-numberinput>",
625
626
  "subtags": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buefy",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "homepage": "https://buefy.org",
5
5
  "description": "Lightweight UI components for Vue.js based on Bulma",
6
6
  "author": "Rafael Beraldo <rafael.pimpa@gmail.com>",
@@ -60,7 +60,7 @@
60
60
  "components"
61
61
  ],
62
62
  "dependencies": {
63
- "bulma": "0.9.3"
63
+ "bulma": "0.9.4"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "vue": "^2.6.11"
@@ -33,7 +33,7 @@
33
33
  :disabled="disabled"
34
34
  :focusable="focusable"
35
35
  custom
36
- :class="{'dropdown-horizonal-colorpicker': horizontalColorPicker}"
36
+ :class="{'dropdown-horizontal-colorpicker': horizontalColorPicker}"
37
37
  >
38
38
  <div>
39
39
  <header class="colorpicker-header">
@@ -377,13 +377,13 @@ describe('BDatepicker', () => {
377
377
  })
378
378
  })
379
379
 
380
- it('renders a component with .dropdown-horizonal-timepicker class', () => {
381
- const subject = wrapper.find('.dropdown-horizonal-timepicker')
380
+ it('renders a component with .dropdown-horizontal-timepicker class', () => {
381
+ const subject = wrapper.find('.dropdown-horizontal-timepicker')
382
382
  expect(subject.exists()).toBeTruthy()
383
383
  })
384
384
 
385
- it('renders a component with .content-horizonal-timepicker class', () => {
386
- const subject = wrapper.find('.content-horizonal-timepicker')
385
+ it('renders a component with .content-horizontal-timepicker class', () => {
386
+ const subject = wrapper.find('.content-horizontal-timepicker')
387
387
  expect(subject.exists()).toBeTruthy()
388
388
  })
389
389
 
@@ -45,7 +45,7 @@
45
45
  :disabled="disabled"
46
46
  :focusable="focusable"
47
47
  custom
48
- :class="{'dropdown-horizonal-timepicker': horizontalTimePicker}">
48
+ :class="{'dropdown-horizontal-timepicker': horizontalTimePicker}">
49
49
  <div>
50
50
  <header class="datepicker-header">
51
51
  <template v-if="$slots.header !== undefined && $slots.header.length">
@@ -122,7 +122,7 @@
122
122
  <div
123
123
  v-if="!isTypeMonth"
124
124
  class="datepicker-content"
125
- :class="{'content-horizonal-timepicker': horizontalTimePicker}">
125
+ :class="{'content-horizontal-timepicker': horizontalTimePicker}">
126
126
  <b-datepicker-table
127
127
  v-model="computedValue"
128
128
  :day-names="newDayNames"
@@ -48,13 +48,14 @@ describe('BField', () => {
48
48
  })
49
49
 
50
50
  describe('Passing a message prop', () => {
51
- const generateMountOptions = ({message}) => {
51
+ const generateMountOptions = ({message, slot}) => {
52
52
  return {
53
53
  propsData: {message},
54
54
  localVue,
55
55
  slots: {
56
56
  default: [BInput, '<button class="button">Button</button>']
57
- }
57
+ },
58
+ scopedSlots: slot ? {message: slot} : {}
58
59
  }
59
60
  }
60
61
 
@@ -114,6 +115,14 @@ describe('BField', () => {
114
115
  const wrapper = shallowMount(BField, mountOptions)
115
116
  expect(wrapper.find('p.help').html().split('<br>').length).toEqual(5)
116
117
  })
118
+
119
+ it('messages are passed down to the message slot', () => {
120
+ const message = 'Some string message'
121
+ const slot = '<template #message="{ messages }">{{ messages }}</template>'
122
+ const mountOptions = generateMountOptions({message, slot})
123
+ const wrapper = shallowMount(BField, mountOptions)
124
+ expect(wrapper.find('p.help').text()).toEqual(message)
125
+ })
117
126
  })
118
127
 
119
128
  describe('managing groups', () => {
@@ -45,7 +45,11 @@
45
45
  class="help"
46
46
  :class="newType"
47
47
  >
48
- <slot v-if="$slots.message" name="message"/>
48
+ <slot
49
+ v-if="$slots.message"
50
+ name="message"
51
+ :messages="formattedMessage"
52
+ />
49
53
  <template v-else>
50
54
  <template v-for="(mess, i) in formattedMessage">
51
55
  {{ mess }}
@@ -54,6 +54,17 @@ describe('BInput', () => {
54
54
  expect(counter.text()).toBe('4 / 100')
55
55
  })
56
56
 
57
+ it('display correct input value length when value contains some emoji', () => {
58
+ wrapper.setProps({
59
+ value: '😀2',
60
+ maxlength: 5
61
+ })
62
+ const counter = wrapper.find('small.counter')
63
+
64
+ expect(counter.exists()).toBeTruthy()
65
+ expect(counter.text()).toBe('2 / 5')
66
+ })
67
+
57
68
  it('no display counter when hasCounter property set for false', () => {
58
69
  wrapper.setProps({ maxlength: 100 })
59
70
  expect(wrapper.find('small.counter').exists()).toBeTruthy()
@@ -203,7 +203,7 @@ export default {
203
203
  */
204
204
  valueLength() {
205
205
  if (typeof this.computedValue === 'string') {
206
- return this.computedValue.length
206
+ return Array.from(this.computedValue).length
207
207
  } else if (typeof this.computedValue === 'number') {
208
208
  return this.computedValue.toString().length
209
209
  }
@@ -217,6 +217,9 @@ export default {
217
217
  */
218
218
  value(value) {
219
219
  this.newValue = value
220
+ },
221
+ type(type) {
222
+ this.newType = type
220
223
  }
221
224
  },
222
225
  methods: {
@@ -92,6 +92,37 @@ describe('BNumberinput', () => {
92
92
  expect(wrapper.vm.computedValue).toBe(val)
93
93
  })
94
94
 
95
+ it('does not increment/decrement on long pressing when feature is disabled', async () => {
96
+ wrapper.setProps({
97
+ longPress: false
98
+ })
99
+ jest.useFakeTimers()
100
+ wrapper.vm.computedValue = 0
101
+
102
+ // Increment
103
+ wrapper.find('.control.plus button').trigger('mousedown')
104
+
105
+ // await wait(2000)
106
+ jest.runOnlyPendingTimers()
107
+ jest.runOnlyPendingTimers()
108
+ jest.runOnlyPendingTimers()
109
+
110
+ wrapper.find('.control.plus').trigger('mouseup')
111
+ expect(wrapper.vm.computedValue).toBe(0)
112
+
113
+ // Decrement
114
+ wrapper.find('.control.minus button').trigger('mousedown')
115
+
116
+ jest.runOnlyPendingTimers()
117
+ jest.runOnlyPendingTimers()
118
+
119
+ wrapper.find('.control.minus button').trigger('mouseup')
120
+ // Trigger it another time to check for unexpected browser behavior
121
+ wrapper.find('.control.minus button').trigger('mouseup')
122
+
123
+ expect(wrapper.vm.computedValue).toBe(0)
124
+ })
125
+
95
126
  it('increments/decrements after manually set value on input', async () => {
96
127
  wrapper.setProps({exponential: true, value: 1, step: 1})
97
128
  const BASE_VALUE = Math.floor(Math.random() * 10 + 1)
@@ -143,7 +143,11 @@ export default {
143
143
  controlsPosition: String,
144
144
  placeholder: [Number, String],
145
145
  ariaMinusLabel: String,
146
- ariaPlusLabel: String
146
+ ariaPlusLabel: String,
147
+ longPress: {
148
+ type: Boolean,
149
+ default: true
150
+ }
147
151
  },
148
152
  data() {
149
153
  return {
@@ -301,6 +305,7 @@ export default {
301
305
  }, this.exponential ? (250 / (this.exponential * this.timesPressed++)) : 250)
302
306
  },
303
307
  onStartLongPress(event, inc) {
308
+ if (!this.longPress) return
304
309
  if (event.button !== 0 && event.type !== 'touchstart') return
305
310
  clearTimeout(this._$intervalRef)
306
311
  this.longPressTick(inc)