buefy 0.9.26 → 0.9.28

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 (259) hide show
  1. package/README.md +3 -1
  2. package/dist/buefy.css +15904 -0
  3. package/dist/buefy.esm.js +17883 -0
  4. package/dist/buefy.esm.min.js +2 -0
  5. package/dist/buefy.js +17967 -0
  6. package/dist/buefy.min.css +1 -0
  7. package/dist/buefy.min.js +2 -0
  8. package/dist/cjs/Autocomplete-7a39c5ce.js +673 -0
  9. package/dist/cjs/Button-01827709.js +114 -0
  10. package/dist/cjs/CheckRadioMixin-c910f2ed.js +45 -0
  11. package/dist/cjs/Checkbox-43f54cc7.js +70 -0
  12. package/dist/cjs/Datepicker-680659bc.js +1679 -0
  13. package/dist/cjs/DropdownItem-422f8c34.js +559 -0
  14. package/dist/cjs/Field-4557b10c.js +315 -0
  15. package/dist/cjs/FormElementMixin-193a88b8.js +163 -0
  16. package/dist/cjs/Icon-78961800.js +189 -0
  17. package/dist/cjs/Image-c4bcd9b3.js +299 -0
  18. package/dist/cjs/InjectedChildMixin-d6bf7f91.js +135 -0
  19. package/dist/cjs/Input-e5a72d97.js +248 -0
  20. package/dist/cjs/Loading-6f2c7075.js +150 -0
  21. package/dist/cjs/MessageMixin-8d959514.js +146 -0
  22. package/dist/cjs/Modal-4cf07210.js +278 -0
  23. package/dist/cjs/NoticeMixin-01121bd2.js +154 -0
  24. package/dist/cjs/Pagination-d6b3fb85.js +413 -0
  25. package/dist/cjs/Select-2b3879bc.js +100 -0
  26. package/dist/cjs/SlotComponent-4fb48389.js +53 -0
  27. package/dist/cjs/TabbedChildMixin-907cad32.js +222 -0
  28. package/dist/cjs/Tag-437f65fb.js +154 -0
  29. package/dist/cjs/Timepicker-498fa02b.js +67 -0
  30. package/dist/cjs/TimepickerMixin-6c1a4ab4.js +661 -0
  31. package/dist/cjs/Tooltip-c1df7ee3.js +370 -0
  32. package/dist/cjs/_rollupPluginBabelHelpers-8b2e54ad.js +365 -0
  33. package/dist/cjs/autocomplete.js +22 -0
  34. package/dist/cjs/breadcrumb.js +139 -0
  35. package/dist/cjs/button.js +20 -0
  36. package/dist/cjs/carousel.js +662 -0
  37. package/dist/cjs/checkbox.js +86 -0
  38. package/dist/cjs/clockpicker.js +461 -0
  39. package/dist/cjs/collapse.js +128 -0
  40. package/dist/cjs/colorpicker.js +23 -0
  41. package/dist/cjs/config-8cfb5a4a.js +81 -0
  42. package/dist/cjs/config.js +18 -0
  43. package/dist/cjs/datepicker.js +27 -0
  44. package/dist/cjs/datetimepicker.js +377 -0
  45. package/dist/cjs/dialog.js +308 -0
  46. package/dist/cjs/dropdown.js +23 -0
  47. package/dist/cjs/field.js +18 -0
  48. package/dist/cjs/helpers.js +375 -0
  49. package/dist/cjs/icon.js +19 -0
  50. package/dist/cjs/image.js +19 -0
  51. package/dist/cjs/index-99d1c930.js +1633 -0
  52. package/dist/cjs/index.js +216 -0
  53. package/dist/cjs/input.js +21 -0
  54. package/dist/cjs/loading.js +38 -0
  55. package/dist/cjs/menu.js +304 -0
  56. package/dist/cjs/message.js +67 -0
  57. package/dist/cjs/modal.js +59 -0
  58. package/dist/cjs/navbar.js +679 -0
  59. package/dist/cjs/notification.js +181 -0
  60. package/dist/cjs/numberinput.js +278 -0
  61. package/dist/cjs/pagination.js +22 -0
  62. package/dist/cjs/plugins-7f41b028.js +94 -0
  63. package/dist/cjs/progress.js +239 -0
  64. package/dist/cjs/radio.js +130 -0
  65. package/dist/cjs/rate.js +156 -0
  66. package/dist/cjs/select.js +21 -0
  67. package/dist/cjs/sidebar.js +303 -0
  68. package/dist/cjs/skeleton.js +111 -0
  69. package/dist/cjs/slider.js +603 -0
  70. package/dist/cjs/snackbar.js +132 -0
  71. package/dist/cjs/ssr-20dba236.js +10 -0
  72. package/dist/cjs/steps.js +278 -0
  73. package/dist/cjs/switch.js +139 -0
  74. package/dist/cjs/table.js +1695 -0
  75. package/dist/cjs/tabs.js +214 -0
  76. package/dist/cjs/tag.js +70 -0
  77. package/dist/cjs/taginput.js +331 -0
  78. package/dist/cjs/timepicker.js +28 -0
  79. package/dist/cjs/toast.js +106 -0
  80. package/dist/cjs/tooltip.js +19 -0
  81. package/dist/cjs/trapFocus-261420b0.js +49 -0
  82. package/dist/cjs/upload.js +205 -0
  83. package/dist/components/autocomplete/index.js +1620 -0
  84. package/dist/components/autocomplete/index.min.js +2 -0
  85. package/dist/components/breadcrumb/index.js +297 -0
  86. package/dist/components/breadcrumb/index.min.js +2 -0
  87. package/dist/components/button/index.js +569 -0
  88. package/dist/components/button/index.min.js +2 -0
  89. package/dist/components/carousel/index.js +1629 -0
  90. package/dist/components/carousel/index.min.js +2 -0
  91. package/dist/components/checkbox/index.js +279 -0
  92. package/dist/components/checkbox/index.min.js +2 -0
  93. package/dist/components/clockpicker/index.js +3131 -0
  94. package/dist/components/clockpicker/index.min.js +2 -0
  95. package/dist/components/collapse/index.js +217 -0
  96. package/dist/components/collapse/index.min.js +2 -0
  97. package/dist/components/colorpicker/index.js +4249 -0
  98. package/dist/components/colorpicker/index.min.js +2 -0
  99. package/dist/components/datepicker/index.js +3845 -0
  100. package/dist/components/datepicker/index.min.js +2 -0
  101. package/dist/components/datetimepicker/index.js +4902 -0
  102. package/dist/components/datetimepicker/index.min.js +2 -0
  103. package/dist/components/dialog/index.js +1168 -0
  104. package/dist/components/dialog/index.min.js +2 -0
  105. package/dist/components/dropdown/index.js +1043 -0
  106. package/dist/components/dropdown/index.min.js +2 -0
  107. package/dist/components/field/index.js +511 -0
  108. package/dist/components/field/index.min.js +2 -0
  109. package/dist/components/icon/index.js +463 -0
  110. package/dist/components/icon/index.min.js +2 -0
  111. package/dist/components/image/index.js +513 -0
  112. package/dist/components/image/index.min.js +2 -0
  113. package/dist/components/input/index.js +862 -0
  114. package/dist/components/input/index.min.js +2 -0
  115. package/dist/components/loading/index.js +366 -0
  116. package/dist/components/loading/index.min.js +2 -0
  117. package/dist/components/menu/index.js +748 -0
  118. package/dist/components/menu/index.min.js +2 -0
  119. package/dist/components/message/index.js +650 -0
  120. package/dist/components/message/index.min.js +2 -0
  121. package/dist/components/modal/index.js +624 -0
  122. package/dist/components/modal/index.min.js +2 -0
  123. package/dist/components/navbar/index.js +805 -0
  124. package/dist/components/navbar/index.min.js +2 -0
  125. package/dist/components/notification/index.js +923 -0
  126. package/dist/components/notification/index.min.js +2 -0
  127. package/dist/components/numberinput/index.js +1119 -0
  128. package/dist/components/numberinput/index.min.js +2 -0
  129. package/dist/components/pagination/index.js +868 -0
  130. package/dist/components/pagination/index.min.js +2 -0
  131. package/dist/components/progress/index.js +621 -0
  132. package/dist/components/progress/index.min.js +2 -0
  133. package/dist/components/radio/index.js +260 -0
  134. package/dist/components/radio/index.min.js +2 -0
  135. package/dist/components/rate/index.js +600 -0
  136. package/dist/components/rate/index.min.js +2 -0
  137. package/dist/components/select/index.js +715 -0
  138. package/dist/components/select/index.min.js +2 -0
  139. package/dist/components/sidebar/index.js +467 -0
  140. package/dist/components/sidebar/index.min.js +2 -0
  141. package/dist/components/skeleton/index.js +200 -0
  142. package/dist/components/skeleton/index.min.js +2 -0
  143. package/dist/components/slider/index.js +1264 -0
  144. package/dist/components/slider/index.min.js +2 -0
  145. package/dist/components/snackbar/index.js +527 -0
  146. package/dist/components/snackbar/index.min.js +2 -0
  147. package/dist/components/steps/index.js +1180 -0
  148. package/dist/components/steps/index.min.js +2 -0
  149. package/dist/components/switch/index.js +297 -0
  150. package/dist/components/switch/index.min.js +2 -0
  151. package/dist/components/table/index.js +3480 -0
  152. package/dist/components/table/index.min.js +2 -0
  153. package/dist/components/tabs/index.js +1116 -0
  154. package/dist/components/tabs/index.min.js +2 -0
  155. package/dist/components/tag/index.js +307 -0
  156. package/dist/components/tag/index.min.js +2 -0
  157. package/dist/components/taginput/index.js +2104 -0
  158. package/dist/components/taginput/index.min.js +2 -0
  159. package/dist/components/timepicker/index.js +2843 -0
  160. package/dist/components/timepicker/index.min.js +2 -0
  161. package/dist/components/toast/index.js +501 -0
  162. package/dist/components/toast/index.min.js +2 -0
  163. package/dist/components/tooltip/index.js +630 -0
  164. package/dist/components/tooltip/index.min.js +2 -0
  165. package/dist/components/upload/index.js +525 -0
  166. package/dist/components/upload/index.min.js +2 -0
  167. package/dist/esm/Autocomplete-1a6e8770.js +671 -0
  168. package/dist/esm/Button-521f6efc.js +112 -0
  169. package/dist/esm/CheckRadioMixin-e726a83c.js +43 -0
  170. package/dist/esm/Checkbox-1d02686e.js +68 -0
  171. package/dist/esm/Datepicker-0ae1e826.js +1677 -0
  172. package/dist/esm/DropdownItem-55682322.js +556 -0
  173. package/dist/esm/Field-3ceba31e.js +313 -0
  174. package/dist/esm/FormElementMixin-b223d3c7.js +161 -0
  175. package/dist/esm/Icon-60d47b31.js +187 -0
  176. package/dist/esm/Image-75808acb.js +297 -0
  177. package/dist/esm/InjectedChildMixin-b4220787.js +130 -0
  178. package/dist/esm/Input-20612b63.js +246 -0
  179. package/dist/esm/Loading-ae028ea5.js +148 -0
  180. package/dist/esm/MessageMixin-d577a9f5.js +144 -0
  181. package/dist/esm/Modal-7da7641f.js +276 -0
  182. package/dist/esm/NoticeMixin-bd6f61d9.js +152 -0
  183. package/dist/esm/Pagination-68f12c1e.js +409 -0
  184. package/dist/esm/Select-97781d4e.js +98 -0
  185. package/dist/esm/SlotComponent-8871a20f.js +51 -0
  186. package/dist/esm/TabbedChildMixin-bcb13767.js +219 -0
  187. package/dist/esm/Tag-6365aa46.js +152 -0
  188. package/dist/esm/Timepicker-38480bbc.js +65 -0
  189. package/dist/esm/TimepickerMixin-d736b0a9.js +659 -0
  190. package/dist/esm/Tooltip-d98a769c.js +368 -0
  191. package/dist/esm/_rollupPluginBabelHelpers-df313029.js +350 -0
  192. package/dist/esm/autocomplete.js +18 -0
  193. package/dist/esm/breadcrumb.js +133 -0
  194. package/dist/esm/button.js +16 -0
  195. package/dist/esm/carousel.js +655 -0
  196. package/dist/esm/checkbox.js +81 -0
  197. package/dist/esm/clockpicker.js +456 -0
  198. package/dist/esm/collapse.js +123 -0
  199. package/dist/esm/colorpicker.js +14 -0
  200. package/dist/esm/config-e7d4b9c2.js +78 -0
  201. package/dist/esm/config.js +14 -0
  202. package/dist/esm/datepicker.js +23 -0
  203. package/dist/esm/datetimepicker.js +372 -0
  204. package/dist/esm/dialog.js +302 -0
  205. package/dist/esm/dropdown.js +18 -0
  206. package/dist/esm/field.js +14 -0
  207. package/dist/esm/helpers.js +348 -0
  208. package/dist/esm/icon.js +15 -0
  209. package/dist/esm/image.js +15 -0
  210. package/dist/esm/index-903f63ea.js +1629 -0
  211. package/dist/esm/index.js +182 -0
  212. package/dist/esm/input.js +17 -0
  213. package/dist/esm/loading.js +33 -0
  214. package/dist/esm/menu.js +297 -0
  215. package/dist/esm/message.js +62 -0
  216. package/dist/esm/modal.js +54 -0
  217. package/dist/esm/navbar.js +672 -0
  218. package/dist/esm/notification.js +175 -0
  219. package/dist/esm/numberinput.js +273 -0
  220. package/dist/esm/pagination.js +17 -0
  221. package/dist/esm/plugins-218aea86.js +89 -0
  222. package/dist/esm/progress.js +233 -0
  223. package/dist/esm/radio.js +124 -0
  224. package/dist/esm/rate.js +151 -0
  225. package/dist/esm/select.js +17 -0
  226. package/dist/esm/sidebar.js +298 -0
  227. package/dist/esm/skeleton.js +106 -0
  228. package/dist/esm/slider.js +597 -0
  229. package/dist/esm/snackbar.js +126 -0
  230. package/dist/esm/ssr-b847d137.js +7 -0
  231. package/dist/esm/steps.js +272 -0
  232. package/dist/esm/switch.js +134 -0
  233. package/dist/esm/table.js +1689 -0
  234. package/dist/esm/tabs.js +208 -0
  235. package/dist/esm/tag.js +65 -0
  236. package/dist/esm/taginput.js +326 -0
  237. package/dist/esm/timepicker.js +24 -0
  238. package/dist/esm/toast.js +100 -0
  239. package/dist/esm/tooltip.js +15 -0
  240. package/dist/esm/trapFocus-f0736873.js +47 -0
  241. package/dist/esm/upload.js +200 -0
  242. package/dist/vetur/attributes.json +3238 -0
  243. package/dist/vetur/tags.json +1183 -0
  244. package/package.json +3 -3
  245. package/src/components/autocomplete/Autocomplete.spec.js +16 -0
  246. package/src/components/autocomplete/Autocomplete.vue +9 -3
  247. package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +2 -0
  248. package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +2 -0
  249. package/src/components/dropdown/Dropdown.vue +51 -3
  250. package/src/components/numberinput/Numberinput.vue +4 -0
  251. package/src/components/sidebar/Sidebar.vue +1 -0
  252. package/src/components/slider/Slider.vue +7 -2
  253. package/src/components/slider/SliderThumb.vue +8 -0
  254. package/src/components/table/Table.vue +4 -1
  255. package/src/components/table/TableColumn.spec.js +51 -0
  256. package/src/components/table/TableColumn.vue +8 -1
  257. package/src/components/taginput/Taginput.vue +7 -2
  258. package/src/components/tooltip/Tooltip.vue +10 -3
  259. package/src/scss/components/_dropdown.scss +4 -2
@@ -0,0 +1,181 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var MessageMixin = require('./MessageMixin-8d959514.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+ var config = require('./config-8cfb5a4a.js');
8
+ var NoticeMixin = require('./NoticeMixin-01121bd2.js');
9
+ var helpers = require('./helpers.js');
10
+ require('./_rollupPluginBabelHelpers-8b2e54ad.js');
11
+ require('./Icon-78961800.js');
12
+
13
+ //
14
+ var script$1 = {
15
+ name: 'BNotification',
16
+ mixins: [MessageMixin.MessageMixin],
17
+ props: {
18
+ position: String,
19
+ ariaCloseLabel: String,
20
+ animation: {
21
+ type: String,
22
+ default: 'fade'
23
+ }
24
+ }
25
+ };
26
+
27
+ /* script */
28
+ const __vue_script__$1 = script$1;
29
+
30
+ /* template */
31
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[_c('article',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"notification",class:[_vm.type, _vm.position],on:{"click":_vm.click}},[(_vm.closable)?_c('button',{staticClass:"delete",attrs:{"type":"button","aria-label":_vm.ariaCloseLabel},on:{"click":_vm.close}}):_vm._e(),(_vm.$slots.default || _vm.message)?_c('div',{staticClass:"media"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.computedIcon,"pack":_vm.iconPack,"size":_vm.newIconSize,"both":"","aria-hidden":""}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[(_vm.$slots.default)?[_vm._t("default")]:[_c('p',{staticClass:"text",domProps:{"innerHTML":_vm._s(_vm.message)}})]],2)]):_vm._e(),(_vm.autoClose && _vm.progressBar)?_c('b-progress',{staticClass:"auto-close-progress",attrs:{"value":_vm.remainingTime - 1,"max":_vm.duration / 1000 - 1,"type":_vm.type,"rounded":false}}):_vm._e()],1)])};
32
+ var __vue_staticRenderFns__$1 = [];
33
+
34
+ /* style */
35
+ const __vue_inject_styles__$1 = undefined;
36
+ /* scoped */
37
+ const __vue_scope_id__$1 = undefined;
38
+ /* module identifier */
39
+ const __vue_module_identifier__$1 = undefined;
40
+ /* functional template */
41
+ const __vue_is_functional_template__$1 = false;
42
+ /* style inject */
43
+
44
+ /* style inject SSR */
45
+
46
+ /* style inject shadow dom */
47
+
48
+
49
+
50
+ const __vue_component__$1 = /*#__PURE__*/plugins.normalizeComponent(
51
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
52
+ __vue_inject_styles__$1,
53
+ __vue_script__$1,
54
+ __vue_scope_id__$1,
55
+ __vue_is_functional_template__$1,
56
+ __vue_module_identifier__$1,
57
+ false,
58
+ undefined,
59
+ undefined,
60
+ undefined
61
+ );
62
+
63
+ var Notification = __vue_component__$1;
64
+
65
+ //
66
+ var script = {
67
+ name: 'BNotificationNotice',
68
+ mixins: [NoticeMixin.NoticeMixin],
69
+ data: function data() {
70
+ return {
71
+ newDuration: this.duration || config.config.defaultNotificationDuration
72
+ };
73
+ },
74
+ methods: {
75
+ close: function close() {
76
+ var _this = this;
77
+ if (!this.isPaused) {
78
+ clearTimeout(this.timer);
79
+ this.$refs.notification.isActive = false;
80
+ this.$emit('close');
81
+
82
+ // Timeout for the animation complete before destroying
83
+ setTimeout(function () {
84
+ _this.$destroy();
85
+ helpers.removeElement(_this.$el);
86
+ }, 150);
87
+ }
88
+ }
89
+ }
90
+ };
91
+
92
+ /* script */
93
+ const __vue_script__ = script;
94
+
95
+ /* template */
96
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-notification',_vm._b({ref:"notification",on:{"click":_vm.click,"close":_vm.close},nativeOn:{"mouseenter":function($event){return _vm.pause($event)},"mouseleave":function($event){return _vm.removePause($event)}}},'b-notification',_vm.$options.propsData,false),[_vm._t("default")],2)};
97
+ var __vue_staticRenderFns__ = [];
98
+
99
+ /* style */
100
+ const __vue_inject_styles__ = undefined;
101
+ /* scoped */
102
+ const __vue_scope_id__ = undefined;
103
+ /* module identifier */
104
+ const __vue_module_identifier__ = undefined;
105
+ /* functional template */
106
+ const __vue_is_functional_template__ = false;
107
+ /* style inject */
108
+
109
+ /* style inject SSR */
110
+
111
+ /* style inject shadow dom */
112
+
113
+
114
+
115
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
116
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
117
+ __vue_inject_styles__,
118
+ __vue_script__,
119
+ __vue_scope_id__,
120
+ __vue_is_functional_template__,
121
+ __vue_module_identifier__,
122
+ false,
123
+ undefined,
124
+ undefined,
125
+ undefined
126
+ );
127
+
128
+ var NotificationNotice = __vue_component__;
129
+
130
+ var localVueInstance;
131
+ var NotificationProgrammatic = {
132
+ open: function open(params) {
133
+ var parent;
134
+ if (typeof params === 'string') {
135
+ params = {
136
+ message: params
137
+ };
138
+ }
139
+ var defaultParam = {
140
+ position: config.config.defaultNotificationPosition || 'is-top-right'
141
+ };
142
+ if (params.parent) {
143
+ parent = params.parent;
144
+ delete params.parent;
145
+ }
146
+ var slot;
147
+ if (Array.isArray(params.message)) {
148
+ slot = params.message;
149
+ delete params.message;
150
+ }
151
+ // fix animation
152
+ params.active = false;
153
+ var propsData = helpers.merge(defaultParam, params);
154
+ var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || config.VueInstance;
155
+ var NotificationNoticeComponent = vm.extend(NotificationNotice);
156
+ var component = new NotificationNoticeComponent({
157
+ parent: parent,
158
+ el: document.createElement('div'),
159
+ propsData: propsData
160
+ });
161
+ if (slot) {
162
+ component.$slots.default = slot;
163
+ component.$forceUpdate();
164
+ }
165
+ // fix animation
166
+ component.$children[0].isActive = true;
167
+ return component;
168
+ }
169
+ };
170
+ var Plugin = {
171
+ install: function install(Vue) {
172
+ localVueInstance = Vue;
173
+ plugins.registerComponent(Vue, Notification);
174
+ plugins.registerComponentProgrammatic(Vue, 'notification', NotificationProgrammatic);
175
+ }
176
+ };
177
+ plugins.use(Plugin);
178
+
179
+ exports.BNotification = Notification;
180
+ exports.NotificationProgrammatic = NotificationProgrammatic;
181
+ exports["default"] = Plugin;
@@ -0,0 +1,278 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-8b2e54ad.js');
6
+ var Icon = require('./Icon-78961800.js');
7
+ var Input = require('./Input-e5a72d97.js');
8
+ var FormElementMixin = require('./FormElementMixin-193a88b8.js');
9
+ var plugins = require('./plugins-7f41b028.js');
10
+ require('./config-8cfb5a4a.js');
11
+ require('./helpers.js');
12
+
13
+ var script = {
14
+ name: 'BNumberinput',
15
+ components: _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._defineProperty({}, Icon.Icon.name, Icon.Icon), Input.Input.name, Input.Input),
16
+ mixins: [FormElementMixin.FormElementMixin],
17
+ inheritAttrs: false,
18
+ props: {
19
+ value: Number,
20
+ min: {
21
+ type: [Number, String]
22
+ },
23
+ max: [Number, String],
24
+ step: [Number, String],
25
+ minStep: [Number, String],
26
+ exponential: [Boolean, Number],
27
+ disabled: Boolean,
28
+ type: {
29
+ type: String,
30
+ default: 'is-primary'
31
+ },
32
+ editable: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ controls: {
37
+ type: Boolean,
38
+ default: true
39
+ },
40
+ controlsAlignment: {
41
+ type: String,
42
+ default: 'center',
43
+ validator: function validator(value) {
44
+ return ['left', 'right', 'center'].indexOf(value) >= 0;
45
+ }
46
+ },
47
+ controlsRounded: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ controlsPosition: String,
52
+ placeholder: [Number, String],
53
+ ariaMinusLabel: String,
54
+ ariaPlusLabel: String,
55
+ longPress: {
56
+ type: Boolean,
57
+ default: true
58
+ }
59
+ },
60
+ data: function data() {
61
+ return {
62
+ newValue: this.value,
63
+ newStep: this.step || 1,
64
+ newMinStep: this.minStep,
65
+ timesPressed: 1,
66
+ _elementRef: 'input'
67
+ };
68
+ },
69
+ computed: {
70
+ computedValue: {
71
+ get: function get() {
72
+ return this.newValue;
73
+ },
74
+ set: function set(value) {
75
+ var _this = this;
76
+ // Parses the number, so that "0" => 0, and "invalid" => null
77
+ var newValue = Number(value) === 0 ? 0 : Number(value) || null;
78
+ if (value === '' || value === undefined || value === null) {
79
+ newValue = null;
80
+ }
81
+ this.newValue = newValue;
82
+ if (newValue === null) {
83
+ this.$emit('input', newValue);
84
+ } else if (!isNaN(newValue) && newValue !== '-0') {
85
+ this.$emit('input', Number(newValue));
86
+ }
87
+ this.$nextTick(function () {
88
+ if (_this.$refs.input) {
89
+ _this.$refs.input.checkHtml5Validity();
90
+ }
91
+ });
92
+ }
93
+ },
94
+ controlsLeft: function controlsLeft() {
95
+ if (this.controls && this.controlsAlignment !== 'right') {
96
+ return this.controlsAlignment === 'left' ? ['minus', 'plus'] : ['minus'];
97
+ }
98
+ return [];
99
+ },
100
+ controlsRight: function controlsRight() {
101
+ if (this.controls && this.controlsAlignment !== 'left') {
102
+ return this.controlsAlignment === 'right' ? ['minus', 'plus'] : ['plus'];
103
+ }
104
+ return [];
105
+ },
106
+ fieldClasses: function fieldClasses() {
107
+ return [{
108
+ 'has-addons': this.controlsPosition === 'compact'
109
+ }, {
110
+ 'is-grouped': this.controlsPosition !== 'compact'
111
+ }, {
112
+ 'is-expanded': this.expanded
113
+ }];
114
+ },
115
+ buttonClasses: function buttonClasses() {
116
+ return [this.type, this.size, {
117
+ 'is-rounded': this.controlsRounded
118
+ }];
119
+ },
120
+ minNumber: function minNumber() {
121
+ return typeof this.min === 'string' ? parseFloat(this.min) : this.min;
122
+ },
123
+ maxNumber: function maxNumber() {
124
+ return typeof this.max === 'string' ? parseFloat(this.max) : this.max;
125
+ },
126
+ stepNumber: function stepNumber() {
127
+ if (this.newStep === 'any') {
128
+ return 1;
129
+ }
130
+ return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;
131
+ },
132
+ minStepNumber: function minStepNumber() {
133
+ if (this.newStep === 'any' && typeof this.newMinStep === 'undefined') {
134
+ return 'any';
135
+ }
136
+ var step = typeof this.newMinStep !== 'undefined' ? this.newMinStep : this.newStep;
137
+ return typeof step === 'string' ? parseFloat(step) : step;
138
+ },
139
+ disabledMin: function disabledMin() {
140
+ return this.computedValue - this.stepNumber < this.minNumber;
141
+ },
142
+ disabledMax: function disabledMax() {
143
+ return this.computedValue + this.stepNumber > this.maxNumber;
144
+ },
145
+ stepDecimals: function stepDecimals() {
146
+ var step = this.minStepNumber.toString();
147
+ var index = step.indexOf('.');
148
+ if (index >= 0) {
149
+ return step.substring(index + 1).length;
150
+ }
151
+ return 0;
152
+ }
153
+ },
154
+ watch: {
155
+ /**
156
+ * When v-model is changed:
157
+ * 1. Set internal value.
158
+ */
159
+ value: {
160
+ immediate: true,
161
+ handler: function handler(value) {
162
+ this.newValue = value;
163
+ }
164
+ },
165
+ step: function step(value) {
166
+ this.newStep = value;
167
+ },
168
+ minStep: function minStep(value) {
169
+ this.newMinStep = value;
170
+ }
171
+ },
172
+ methods: {
173
+ isDisabled: function isDisabled(control) {
174
+ return this.disabled || (control === 'plus' ? this.disabledMax : this.disabledMin);
175
+ },
176
+ decrement: function decrement() {
177
+ if (this.computedValue === null || typeof this.computedValue === 'undefined') {
178
+ if (this.maxNumber !== null && typeof this.maxNumber !== 'undefined') {
179
+ this.computedValue = this.maxNumber;
180
+ return;
181
+ }
182
+ this.computedValue = 0;
183
+ }
184
+ if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {
185
+ var value = this.computedValue - this.stepNumber;
186
+ this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
187
+ }
188
+ },
189
+ increment: function increment() {
190
+ if (this.computedValue === null || typeof this.computedValue === 'undefined' || this.computedValue < this.minNumber) {
191
+ if (this.minNumber !== null && typeof this.minNumber !== 'undefined') {
192
+ this.computedValue = this.minNumber;
193
+ return;
194
+ }
195
+ this.computedValue = 0;
196
+ }
197
+ if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {
198
+ var value = this.computedValue + this.stepNumber;
199
+ this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
200
+ }
201
+ },
202
+ onControlClick: function onControlClick(event, inc) {
203
+ // IE 11 -> filter click event
204
+ if (event.detail !== 0 || event.type !== 'click') return;
205
+ if (inc) this.increment();else this.decrement();
206
+ },
207
+ longPressTick: function longPressTick(inc) {
208
+ var _this2 = this;
209
+ if (inc) this.increment();else this.decrement();
210
+ if (!this.longPress) return;
211
+ this._$intervalRef = setTimeout(function () {
212
+ _this2.longPressTick(inc);
213
+ }, this.exponential ? 250 / (this.exponential * this.timesPressed++) : 250);
214
+ },
215
+ onStartLongPress: function onStartLongPress(event, inc) {
216
+ if (event.button !== 0 && event.type !== 'touchstart') return;
217
+ clearTimeout(this._$intervalRef);
218
+ this.longPressTick(inc);
219
+ },
220
+ onStopLongPress: function onStopLongPress() {
221
+ if (!this._$intervalRef) return;
222
+ this.timesPressed = 1;
223
+ clearTimeout(this._$intervalRef);
224
+ this._$intervalRef = null;
225
+ }
226
+ },
227
+ beforeDestroy: function beforeDestroy() {
228
+ clearTimeout(this._$intervalRef);
229
+ }
230
+ };
231
+
232
+ /* script */
233
+ const __vue_script__ = script;
234
+
235
+ /* template */
236
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-numberinput field",class:_vm.fieldClasses},[_vm._l((_vm.controlsLeft),function(control){return _c('p',{key:control,class:['control', control],on:{"mouseup":_vm.onStopLongPress,"mouseleave":_vm.onStopLongPress,"touchend":_vm.onStopLongPress,"touchcancel":_vm.onStopLongPress}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.isDisabled(control),"aria-label":control === 'plus' ? _vm.ariaPlusLabel : _vm.ariaMinusLabel},on:{"mousedown":function($event){!_vm.isDisabled(control) && _vm.onStartLongPress($event, control === 'plus');},"touchstart":function($event){$event.preventDefault();!_vm.isDisabled(control) && _vm.onStartLongPress($event, control === 'plus');},"click":function($event){!_vm.isDisabled(control) && _vm.onControlClick($event, control === 'plus');}}},[_c('b-icon',{attrs:{"both":"","icon":control,"pack":_vm.iconPack,"size":_vm.iconSize}})],1)])}),_c('b-input',_vm._b({ref:"input",attrs:{"type":"number","step":_vm.minStepNumber,"max":_vm.max,"min":_vm.min,"size":_vm.size,"disabled":_vm.disabled,"readonly":!_vm.editable,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-pack":_vm.iconPack,"autocomplete":_vm.autocomplete,"expanded":_vm.expanded,"placeholder":_vm.placeholder,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":function($event){return _vm.$emit('focus', $event)},"blur":function($event){return _vm.$emit('blur', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-input',_vm.$attrs,false)),_vm._l((_vm.controlsRight),function(control){return _c('p',{key:control,class:['control', control],on:{"mouseup":_vm.onStopLongPress,"mouseleave":_vm.onStopLongPress,"touchend":_vm.onStopLongPress,"touchcancel":_vm.onStopLongPress}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.isDisabled(control),"aria-label":control === 'plus' ? _vm.ariaPlusLabel : _vm.ariaMinusLabel},on:{"mousedown":function($event){!_vm.isDisabled(control) && _vm.onStartLongPress($event, control === 'plus');},"touchstart":function($event){$event.preventDefault();!_vm.isDisabled(control) && _vm.onStartLongPress($event, control === 'plus');},"click":function($event){!_vm.isDisabled(control) && _vm.onControlClick($event, control === 'plus');}}},[_c('b-icon',{attrs:{"both":"","icon":control,"pack":_vm.iconPack,"size":_vm.iconSize}})],1)])})],2)};
237
+ var __vue_staticRenderFns__ = [];
238
+
239
+ /* style */
240
+ const __vue_inject_styles__ = undefined;
241
+ /* scoped */
242
+ const __vue_scope_id__ = undefined;
243
+ /* module identifier */
244
+ const __vue_module_identifier__ = undefined;
245
+ /* functional template */
246
+ const __vue_is_functional_template__ = false;
247
+ /* style inject */
248
+
249
+ /* style inject SSR */
250
+
251
+ /* style inject shadow dom */
252
+
253
+
254
+
255
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
256
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
257
+ __vue_inject_styles__,
258
+ __vue_script__,
259
+ __vue_scope_id__,
260
+ __vue_is_functional_template__,
261
+ __vue_module_identifier__,
262
+ false,
263
+ undefined,
264
+ undefined,
265
+ undefined
266
+ );
267
+
268
+ var Numberinput = __vue_component__;
269
+
270
+ var Plugin = {
271
+ install: function install(Vue) {
272
+ plugins.registerComponent(Vue, Numberinput);
273
+ }
274
+ };
275
+ plugins.use(Plugin);
276
+
277
+ exports.BNumberinput = Numberinput;
278
+ exports["default"] = Plugin;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Pagination = require('./Pagination-d6b3fb85.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+ require('./_rollupPluginBabelHelpers-8b2e54ad.js');
8
+ require('./config-8cfb5a4a.js');
9
+ require('./Icon-78961800.js');
10
+ require('./helpers.js');
11
+
12
+ var Plugin = {
13
+ install: function install(Vue) {
14
+ plugins.registerComponent(Vue, Pagination.Pagination);
15
+ plugins.registerComponent(Vue, Pagination.PaginationButton);
16
+ }
17
+ };
18
+ plugins.use(Plugin);
19
+
20
+ exports.BPagination = Pagination.Pagination;
21
+ exports.BPaginationButton = Pagination.PaginationButton;
22
+ exports["default"] = Plugin;
@@ -0,0 +1,94 @@
1
+ 'use strict';
2
+
3
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
4
+ if (typeof shadowMode !== 'boolean') {
5
+ createInjectorSSR = createInjector;
6
+ createInjector = shadowMode;
7
+ shadowMode = false;
8
+ }
9
+ // Vue.extend constructor export interop.
10
+ const options = typeof script === 'function' ? script.options : script;
11
+ // render functions
12
+ if (template && template.render) {
13
+ options.render = template.render;
14
+ options.staticRenderFns = template.staticRenderFns;
15
+ options._compiled = true;
16
+ // functional template
17
+ if (isFunctionalTemplate) {
18
+ options.functional = true;
19
+ }
20
+ }
21
+ // scopedId
22
+ if (scopeId) {
23
+ options._scopeId = scopeId;
24
+ }
25
+ let hook;
26
+ if (moduleIdentifier) {
27
+ // server build
28
+ hook = function (context) {
29
+ // 2.3 injection
30
+ context =
31
+ context || // cached call
32
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
33
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
34
+ // 2.2 with runInNewContext: true
35
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
36
+ context = __VUE_SSR_CONTEXT__;
37
+ }
38
+ // inject component styles
39
+ if (style) {
40
+ style.call(this, createInjectorSSR(context));
41
+ }
42
+ // register component module identifier for async chunk inference
43
+ if (context && context._registeredComponents) {
44
+ context._registeredComponents.add(moduleIdentifier);
45
+ }
46
+ };
47
+ // used by ssr in case component is cached and beforeCreate
48
+ // never gets called
49
+ options._ssrRegister = hook;
50
+ }
51
+ else if (style) {
52
+ hook = shadowMode
53
+ ? function (context) {
54
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
55
+ }
56
+ : function (context) {
57
+ style.call(this, createInjector(context));
58
+ };
59
+ }
60
+ if (hook) {
61
+ if (options.functional) {
62
+ // register for functional component in vue file
63
+ const originalRender = options.render;
64
+ options.render = function renderWithStyleInjection(h, context) {
65
+ hook.call(context);
66
+ return originalRender(h, context);
67
+ };
68
+ }
69
+ else {
70
+ // inject component registration as beforeCreate hook
71
+ const existing = options.beforeCreate;
72
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
73
+ }
74
+ }
75
+ return script;
76
+ }
77
+
78
+ var use = function use(plugin) {
79
+ if (typeof window !== 'undefined' && window.Vue) {
80
+ window.Vue.use(plugin);
81
+ }
82
+ };
83
+ var registerComponent = function registerComponent(Vue, component) {
84
+ Vue.component(component.name, component);
85
+ };
86
+ var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
87
+ if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};
88
+ Vue.prototype.$buefy[property] = component;
89
+ };
90
+
91
+ exports.normalizeComponent = normalizeComponent;
92
+ exports.registerComponent = registerComponent;
93
+ exports.registerComponentProgrammatic = registerComponentProgrammatic;
94
+ exports.use = use;