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,239 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-8b2e54ad.js');
6
+ var config = require('./config-8cfb5a4a.js');
7
+ var InjectedChildMixin = require('./InjectedChildMixin-d6bf7f91.js');
8
+ var plugins = require('./plugins-7f41b028.js');
9
+ require('./helpers.js');
10
+
11
+ var script$1 = {
12
+ name: 'BProgress',
13
+ mixins: [InjectedChildMixin.ProviderParentMixin('progress')],
14
+ props: {
15
+ type: {
16
+ type: [String, Object],
17
+ default: 'is-darkgrey'
18
+ },
19
+ size: String,
20
+ rounded: {
21
+ type: Boolean,
22
+ default: true
23
+ },
24
+ value: {
25
+ type: Number,
26
+ default: undefined
27
+ },
28
+ max: {
29
+ type: Number,
30
+ default: 100
31
+ },
32
+ showValue: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ format: {
37
+ type: String,
38
+ default: 'raw',
39
+ validator: function validator(value) {
40
+ return ['raw', 'percent'].indexOf(value) >= 0;
41
+ }
42
+ },
43
+ precision: {
44
+ type: Number,
45
+ default: 2
46
+ },
47
+ keepTrailingZeroes: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ locale: {
52
+ type: [String, Array],
53
+ default: function _default() {
54
+ return config.config.defaultLocale;
55
+ }
56
+ }
57
+ },
58
+ computed: {
59
+ isIndeterminate: function isIndeterminate() {
60
+ return this.value === undefined || this.value === null;
61
+ },
62
+ newType: function newType() {
63
+ return [this.size, this.type, {
64
+ 'is-more-than-half': this.value && this.value > this.max / 2
65
+ }];
66
+ },
67
+ newValue: function newValue() {
68
+ return this.calculateValue(this.value);
69
+ },
70
+ isNative: function isNative() {
71
+ return this.$slots.bar === undefined;
72
+ },
73
+ wrapperClasses: function wrapperClasses() {
74
+ return _rollupPluginBabelHelpers._defineProperty({
75
+ 'is-not-native': !this.isNative
76
+ }, this.size, typeof this.size === 'string' && !this.isNative);
77
+ }
78
+ },
79
+ watch: {
80
+ /**
81
+ * When value is changed back to undefined, value of native progress get reset to 0.
82
+ * Need to add and remove the value attribute to have the indeterminate or not.
83
+ */
84
+ isIndeterminate: function isIndeterminate(indeterminate) {
85
+ var _this = this;
86
+ this.$nextTick(function () {
87
+ if (_this.$refs.progress) {
88
+ if (indeterminate) {
89
+ _this.$refs.progress.removeAttribute('value');
90
+ } else {
91
+ _this.$refs.progress.setAttribute('value', _this.value);
92
+ }
93
+ }
94
+ });
95
+ }
96
+ },
97
+ methods: {
98
+ calculateValue: function calculateValue(value) {
99
+ if (value === undefined || value === null || isNaN(value)) {
100
+ return undefined;
101
+ }
102
+ var minimumFractionDigits = this.keepTrailingZeroes ? this.precision : 0;
103
+ var maximumFractionDigits = this.precision;
104
+ if (this.format === 'percent') {
105
+ return new Intl.NumberFormat(this.locale, {
106
+ style: 'percent',
107
+ minimumFractionDigits: minimumFractionDigits,
108
+ maximumFractionDigits: maximumFractionDigits
109
+ }).format(value / this.max);
110
+ }
111
+ return new Intl.NumberFormat(this.locale, {
112
+ minimumFractionDigits: minimumFractionDigits,
113
+ maximumFractionDigits: maximumFractionDigits
114
+ }).format(value);
115
+ }
116
+ }
117
+ };
118
+
119
+ /* script */
120
+ const __vue_script__$1 = script$1;
121
+
122
+ /* template */
123
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"progress-wrapper",class:[_vm.wrapperClasses, { 'is-squared': !_vm.rounded }]},[(_vm.isNative)?_c('progress',{ref:"progress",staticClass:"progress",class:[_vm.newType, { 'is-squared': !_vm.rounded }],attrs:{"max":_vm.max},domProps:{"value":_vm.value}},[_vm._v(_vm._s(_vm.newValue))]):_vm._t("bar"),(_vm.isNative && _vm.showValue)?_c('p',{staticClass:"progress-value"},[_vm._t("default",[_vm._v(_vm._s(_vm.newValue))])],2):_vm._e()],2)};
124
+ var __vue_staticRenderFns__$1 = [];
125
+
126
+ /* style */
127
+ const __vue_inject_styles__$1 = undefined;
128
+ /* scoped */
129
+ const __vue_scope_id__$1 = undefined;
130
+ /* module identifier */
131
+ const __vue_module_identifier__$1 = undefined;
132
+ /* functional template */
133
+ const __vue_is_functional_template__$1 = false;
134
+ /* style inject */
135
+
136
+ /* style inject SSR */
137
+
138
+ /* style inject shadow dom */
139
+
140
+
141
+
142
+ const __vue_component__$1 = /*#__PURE__*/plugins.normalizeComponent(
143
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
144
+ __vue_inject_styles__$1,
145
+ __vue_script__$1,
146
+ __vue_scope_id__$1,
147
+ __vue_is_functional_template__$1,
148
+ __vue_module_identifier__$1,
149
+ false,
150
+ undefined,
151
+ undefined,
152
+ undefined
153
+ );
154
+
155
+ var Progress = __vue_component__$1;
156
+
157
+ //
158
+ var script = {
159
+ name: 'BProgressBar',
160
+ mixins: [InjectedChildMixin.InjectedChildMixin('progress')],
161
+ props: {
162
+ type: {
163
+ type: [String, Object],
164
+ default: undefined
165
+ },
166
+ value: {
167
+ type: Number,
168
+ default: undefined
169
+ },
170
+ showValue: {
171
+ type: Boolean,
172
+ default: false
173
+ }
174
+ },
175
+ computed: {
176
+ newType: function newType() {
177
+ return [this.parent.size, this.type || this.parent.type];
178
+ },
179
+ newShowValue: function newShowValue() {
180
+ return this.showValue || this.parent.showValue;
181
+ },
182
+ newValue: function newValue() {
183
+ return this.parent.calculateValue(this.value);
184
+ },
185
+ barWidth: function barWidth() {
186
+ return "".concat(this.value * 100 / this.parent.max, "%");
187
+ }
188
+ }
189
+ };
190
+
191
+ /* script */
192
+ const __vue_script__ = script;
193
+
194
+ /* template */
195
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"progress-bar",class:_vm.newType,style:({width: _vm.barWidth}),attrs:{"role":"progressbar","aria-valuenow":_vm.value,"aria-valuemax":_vm.parent.max,"aria-valuemin":"0"}},[(_vm.newShowValue)?_c('p',{staticClass:"progress-value"},[_vm._t("default",[_vm._v(_vm._s(_vm.newValue))])],2):_vm._e()])};
196
+ var __vue_staticRenderFns__ = [];
197
+
198
+ /* style */
199
+ const __vue_inject_styles__ = undefined;
200
+ /* scoped */
201
+ const __vue_scope_id__ = undefined;
202
+ /* module identifier */
203
+ const __vue_module_identifier__ = undefined;
204
+ /* functional template */
205
+ const __vue_is_functional_template__ = false;
206
+ /* style inject */
207
+
208
+ /* style inject SSR */
209
+
210
+ /* style inject shadow dom */
211
+
212
+
213
+
214
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
215
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
216
+ __vue_inject_styles__,
217
+ __vue_script__,
218
+ __vue_scope_id__,
219
+ __vue_is_functional_template__,
220
+ __vue_module_identifier__,
221
+ false,
222
+ undefined,
223
+ undefined,
224
+ undefined
225
+ );
226
+
227
+ var ProgressBar = __vue_component__;
228
+
229
+ var Plugin = {
230
+ install: function install(Vue) {
231
+ plugins.registerComponent(Vue, Progress);
232
+ plugins.registerComponent(Vue, ProgressBar);
233
+ }
234
+ };
235
+ plugins.use(Plugin);
236
+
237
+ exports.BProgress = Progress;
238
+ exports.BProgressBar = ProgressBar;
239
+ exports["default"] = Plugin;
@@ -0,0 +1,130 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var CheckRadioMixin = require('./CheckRadioMixin-c910f2ed.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+
8
+ //
9
+ var script$1 = {
10
+ name: 'BRadio',
11
+ mixins: [CheckRadioMixin.CheckRadioMixin]
12
+ };
13
+
14
+ /* script */
15
+ const __vue_script__$1 = script$1;
16
+
17
+ /* template */
18
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-radio radio",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){_vm.computedValue=_vm.nativeValue;}}}),_c('span',{staticClass:"check",class:_vm.type}),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])};
19
+ var __vue_staticRenderFns__$1 = [];
20
+
21
+ /* style */
22
+ const __vue_inject_styles__$1 = undefined;
23
+ /* scoped */
24
+ const __vue_scope_id__$1 = undefined;
25
+ /* module identifier */
26
+ const __vue_module_identifier__$1 = undefined;
27
+ /* functional template */
28
+ const __vue_is_functional_template__$1 = false;
29
+ /* style inject */
30
+
31
+ /* style inject SSR */
32
+
33
+ /* style inject shadow dom */
34
+
35
+
36
+
37
+ const __vue_component__$1 = /*#__PURE__*/plugins.normalizeComponent(
38
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
39
+ __vue_inject_styles__$1,
40
+ __vue_script__$1,
41
+ __vue_scope_id__$1,
42
+ __vue_is_functional_template__$1,
43
+ __vue_module_identifier__$1,
44
+ false,
45
+ undefined,
46
+ undefined,
47
+ undefined
48
+ );
49
+
50
+ var Radio = __vue_component__$1;
51
+
52
+ //
53
+ var script = {
54
+ name: 'BRadioButton',
55
+ mixins: [CheckRadioMixin.CheckRadioMixin],
56
+ props: {
57
+ type: {
58
+ type: String,
59
+ default: 'is-primary'
60
+ },
61
+ expanded: Boolean
62
+ },
63
+ data: function data() {
64
+ return {
65
+ isFocused: false
66
+ };
67
+ },
68
+ computed: {
69
+ isSelected: function isSelected() {
70
+ return this.newValue === this.nativeValue;
71
+ },
72
+ labelClass: function labelClass() {
73
+ return [this.isSelected ? this.type : null, this.size, {
74
+ 'is-selected': this.isSelected,
75
+ 'is-disabled': this.disabled,
76
+ 'is-focused': this.isFocused
77
+ }];
78
+ }
79
+ }
80
+ };
81
+
82
+ /* script */
83
+ const __vue_script__ = script;
84
+
85
+ /* template */
86
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:"label",staticClass:"b-radio radio button",class:_vm.labelClass,attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()}}},[_vm._t("default"),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){_vm.computedValue=_vm.nativeValue;}}})],2)])};
87
+ var __vue_staticRenderFns__ = [];
88
+
89
+ /* style */
90
+ const __vue_inject_styles__ = undefined;
91
+ /* scoped */
92
+ const __vue_scope_id__ = undefined;
93
+ /* module identifier */
94
+ const __vue_module_identifier__ = undefined;
95
+ /* functional template */
96
+ const __vue_is_functional_template__ = false;
97
+ /* style inject */
98
+
99
+ /* style inject SSR */
100
+
101
+ /* style inject shadow dom */
102
+
103
+
104
+
105
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
106
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
107
+ __vue_inject_styles__,
108
+ __vue_script__,
109
+ __vue_scope_id__,
110
+ __vue_is_functional_template__,
111
+ __vue_module_identifier__,
112
+ false,
113
+ undefined,
114
+ undefined,
115
+ undefined
116
+ );
117
+
118
+ var RadioButton = __vue_component__;
119
+
120
+ var Plugin = {
121
+ install: function install(Vue) {
122
+ plugins.registerComponent(Vue, Radio);
123
+ plugins.registerComponent(Vue, RadioButton);
124
+ }
125
+ };
126
+ plugins.use(Plugin);
127
+
128
+ exports.BRadio = Radio;
129
+ exports.BRadioButton = RadioButton;
130
+ exports["default"] = Plugin;
@@ -0,0 +1,156 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-8b2e54ad.js');
6
+ var config = require('./config-8cfb5a4a.js');
7
+ var Icon = require('./Icon-78961800.js');
8
+ var plugins = require('./plugins-7f41b028.js');
9
+ require('./helpers.js');
10
+
11
+ var script = {
12
+ name: 'BRate',
13
+ components: _rollupPluginBabelHelpers._defineProperty({}, Icon.Icon.name, Icon.Icon),
14
+ props: {
15
+ value: {
16
+ type: Number,
17
+ default: 0
18
+ },
19
+ max: {
20
+ type: Number,
21
+ default: 5
22
+ },
23
+ icon: {
24
+ type: String,
25
+ default: 'star'
26
+ },
27
+ iconPack: String,
28
+ size: String,
29
+ spaced: Boolean,
30
+ rtl: Boolean,
31
+ disabled: Boolean,
32
+ showScore: Boolean,
33
+ showText: Boolean,
34
+ customText: String,
35
+ texts: Array,
36
+ locale: {
37
+ type: [String, Array],
38
+ default: function _default() {
39
+ return config.config.defaultLocale;
40
+ }
41
+ }
42
+ },
43
+ data: function data() {
44
+ return {
45
+ newValue: this.value,
46
+ hoverValue: 0
47
+ };
48
+ },
49
+ computed: {
50
+ halfStyle: function halfStyle() {
51
+ return "width:".concat(this.valueDecimal, "%");
52
+ },
53
+ showMe: function showMe() {
54
+ var result = '';
55
+ if (this.showScore) {
56
+ result = this.disabled ? this.value : this.newValue;
57
+ if (result === 0) {
58
+ result = '';
59
+ } else {
60
+ result = new Intl.NumberFormat(this.locale).format(this.value);
61
+ }
62
+ } else if (this.showText) {
63
+ result = this.texts[Math.ceil(this.newValue) - 1];
64
+ }
65
+ return result;
66
+ },
67
+ valueDecimal: function valueDecimal() {
68
+ return this.value * 100 - Math.floor(this.value) * 100;
69
+ }
70
+ },
71
+ watch: {
72
+ // When v-model is changed set the new value.
73
+ value: function value(_value) {
74
+ this.newValue = _value;
75
+ }
76
+ },
77
+ methods: {
78
+ resetNewValue: function resetNewValue() {
79
+ if (this.disabled) return;
80
+ this.hoverValue = 0;
81
+ },
82
+ previewRate: function previewRate(index, event) {
83
+ if (this.disabled) return;
84
+ this.hoverValue = index;
85
+ event.stopPropagation();
86
+ },
87
+ confirmValue: function confirmValue(index) {
88
+ if (this.disabled) return;
89
+ this.newValue = index;
90
+ this.$emit('change', this.newValue);
91
+ this.$emit('input', this.newValue);
92
+ },
93
+ checkHalf: function checkHalf(index) {
94
+ var showWhenDisabled = this.disabled && this.valueDecimal > 0 && index - 1 < this.value && index > this.value;
95
+ return showWhenDisabled;
96
+ },
97
+ rateClass: function rateClass(index) {
98
+ var output = '';
99
+ var currentValue = this.hoverValue !== 0 ? this.hoverValue : this.newValue;
100
+ if (index <= currentValue) {
101
+ output = 'set-on';
102
+ } else if (this.disabled && Math.ceil(this.value) === index) {
103
+ output = 'set-half';
104
+ }
105
+ return output;
106
+ }
107
+ }
108
+ };
109
+
110
+ /* script */
111
+ const __vue_script__ = script;
112
+
113
+ /* template */
114
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"rate",class:{ 'is-disabled': _vm.disabled, 'is-spaced': _vm.spaced, 'is-rtl': _vm.rtl }},[_vm._l((_vm.max),function(item,index){return _c('div',{key:index,staticClass:"rate-item",class:_vm.rateClass(item),on:{"mousemove":function($event){return _vm.previewRate(item, $event)},"mouseleave":_vm.resetNewValue,"click":function($event){$event.preventDefault();return _vm.confirmValue(item)}}},[_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.icon,"size":_vm.size}}),(_vm.checkHalf(item))?_c('b-icon',{staticClass:"is-half",style:(_vm.halfStyle),attrs:{"pack":_vm.iconPack,"icon":_vm.icon,"size":_vm.size}}):_vm._e()],1)}),(_vm.showText || _vm.showScore || _vm.customText)?_c('div',{staticClass:"rate-text",class:_vm.size},[_c('span',[_vm._v(_vm._s(_vm.showMe))]),(_vm.customText && !_vm.showText)?_c('span',[_vm._v(_vm._s(_vm.customText))]):_vm._e()]):_vm._e()],2)};
115
+ var __vue_staticRenderFns__ = [];
116
+
117
+ /* style */
118
+ const __vue_inject_styles__ = undefined;
119
+ /* scoped */
120
+ const __vue_scope_id__ = undefined;
121
+ /* module identifier */
122
+ const __vue_module_identifier__ = undefined;
123
+ /* functional template */
124
+ const __vue_is_functional_template__ = false;
125
+ /* style inject */
126
+
127
+ /* style inject SSR */
128
+
129
+ /* style inject shadow dom */
130
+
131
+
132
+
133
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
134
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
135
+ __vue_inject_styles__,
136
+ __vue_script__,
137
+ __vue_scope_id__,
138
+ __vue_is_functional_template__,
139
+ __vue_module_identifier__,
140
+ false,
141
+ undefined,
142
+ undefined,
143
+ undefined
144
+ );
145
+
146
+ var Rate = __vue_component__;
147
+
148
+ var Plugin = {
149
+ install: function install(Vue) {
150
+ plugins.registerComponent(Vue, Rate);
151
+ }
152
+ };
153
+ plugins.use(Plugin);
154
+
155
+ exports.BRate = Rate;
156
+ exports["default"] = Plugin;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Select = require('./Select-2b3879bc.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+ require('./_rollupPluginBabelHelpers-8b2e54ad.js');
8
+ require('./Icon-78961800.js');
9
+ require('./config-8cfb5a4a.js');
10
+ require('./helpers.js');
11
+ require('./FormElementMixin-193a88b8.js');
12
+
13
+ var Plugin = {
14
+ install: function install(Vue) {
15
+ plugins.registerComponent(Vue, Select.Select);
16
+ }
17
+ };
18
+ plugins.use(Plugin);
19
+
20
+ exports.BSelect = Select.Select;
21
+ exports["default"] = Plugin;