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,214 @@
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 TabbedChildMixin = require('./TabbedChildMixin-907cad32.js');
8
+ var plugins = require('./plugins-7f41b028.js');
9
+ require('./Icon-78961800.js');
10
+ require('./helpers.js');
11
+ require('./SlotComponent-4fb48389.js');
12
+ require('./InjectedChildMixin-d6bf7f91.js');
13
+
14
+ var script$1 = {
15
+ name: 'BTabs',
16
+ mixins: [TabbedChildMixin.TabbedMixin('tab')],
17
+ props: {
18
+ expanded: {
19
+ type: Boolean,
20
+ default: function _default() {
21
+ return config.config.defaultTabsExpanded;
22
+ }
23
+ },
24
+ type: {
25
+ type: [String, Object],
26
+ default: function _default() {
27
+ return config.config.defaultTabsType;
28
+ }
29
+ },
30
+ animated: {
31
+ type: Boolean,
32
+ default: function _default() {
33
+ return config.config.defaultTabsAnimated;
34
+ }
35
+ },
36
+ multiline: Boolean
37
+ },
38
+ data: function data() {
39
+ return {
40
+ currentFocus: this.value
41
+ };
42
+ },
43
+ computed: {
44
+ mainClasses: function mainClasses() {
45
+ return _rollupPluginBabelHelpers._defineProperty({
46
+ 'is-fullwidth': this.expanded,
47
+ 'is-vertical': this.vertical,
48
+ 'is-multiline': this.multiline
49
+ }, this.position, this.position && this.vertical);
50
+ },
51
+ navClasses: function navClasses() {
52
+ return [this.type, this.size, _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._defineProperty({}, this.position, this.position && !this.vertical), 'is-fullwidth', this.expanded), 'is-toggle', this.type === 'is-toggle-rounded')];
53
+ }
54
+ },
55
+ methods: {
56
+ giveFocusToTab: function giveFocusToTab(tab) {
57
+ if (tab.$el && tab.$el.focus) {
58
+ tab.$el.focus();
59
+ } else if (tab.focus) {
60
+ tab.focus();
61
+ }
62
+ },
63
+ manageTablistKeydown: function manageTablistKeydown(event) {
64
+ // https://developer.mozilla.org/fr/docs/Web/API/KeyboardEvent/key/Key_Values#Navigation_keys
65
+ var key = event.key;
66
+ switch (key) {
67
+ case this.vertical ? 'ArrowUp' : 'ArrowLeft':
68
+ case this.vertical ? 'Up' : 'Left':
69
+ {
70
+ var prevIdx = this.getPrevItemIdx(this.currentFocus, true);
71
+ if (prevIdx === null) {
72
+ // We try to give focus back to the last visible element
73
+ prevIdx = this.getPrevItemIdx(this.items.length, true);
74
+ }
75
+ if (prevIdx !== null && this.$refs.tabLink && prevIdx < this.$refs.tabLink.length && !this.items[prevIdx].disabled) {
76
+ this.giveFocusToTab(this.$refs.tabLink[prevIdx]);
77
+ }
78
+ event.preventDefault();
79
+ break;
80
+ }
81
+ case this.vertical ? 'ArrowDown' : 'ArrowRight':
82
+ case this.vertical ? 'Down' : 'Right':
83
+ {
84
+ var nextIdx = this.getNextItemIdx(this.currentFocus, true);
85
+ if (nextIdx === null) {
86
+ // We try to give focus back to the first visible element
87
+ nextIdx = this.getNextItemIdx(-1, true);
88
+ }
89
+ if (nextIdx !== null && this.$refs.tabLink && nextIdx < this.$refs.tabLink.length && !this.items[nextIdx].disabled) {
90
+ this.giveFocusToTab(this.$refs.tabLink[nextIdx]);
91
+ }
92
+ event.preventDefault();
93
+ break;
94
+ }
95
+ }
96
+ },
97
+ manageTabKeydown: function manageTabKeydown(event, childItem) {
98
+ // https://developer.mozilla.org/fr/docs/Web/API/KeyboardEvent/key/Key_Values#Navigation_keys
99
+ var key = event.key;
100
+ switch (key) {
101
+ case ' ':
102
+ case 'Space':
103
+ case 'Spacebar':
104
+ case 'Enter':
105
+ {
106
+ this.childClick(childItem);
107
+ event.preventDefault();
108
+ break;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ };
114
+
115
+ /* script */
116
+ const __vue_script__$1 = script$1;
117
+
118
+ /* template */
119
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-tabs",class:_vm.mainClasses},[_c('nav',{staticClass:"tabs",class:_vm.navClasses,on:{"keydown":_vm.manageTablistKeydown}},[_vm._t("start"),_c('ul',{attrs:{"aria-orientation":_vm.vertical ? 'vertical' : 'horizontal',"role":"tablist"}},_vm._l((_vm.items),function(childItem,childIdx){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,class:[ childItem.headerClass, { 'is-active': childItem.isActive,
120
+ 'is-disabled': childItem.disabled }],attrs:{"role":"tab","aria-controls":((childItem.value) + "-content"),"aria-selected":("" + (childItem.isActive))}},[(childItem.$scopedSlots.header)?_c('b-slot-component',{ref:"tabLink",refInFor:true,attrs:{"component":childItem,"name":"header","tag":"a","id":((childItem.value) + "-label"),"tabindex":childItem.isActive ? 0 : -1},on:{"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}},nativeOn:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)}}}):_c('a',{ref:"tabLink",refInFor:true,attrs:{"id":((childItem.value) + "-label"),"tabindex":childItem.isActive ? 0 : -1},on:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)},"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}}},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):_vm._e(),_c('span',[_vm._v(_vm._s(childItem.label))])],1)],1)}),0),_vm._t("end")],2),_c('section',{staticClass:"tab-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2)])};
121
+ var __vue_staticRenderFns__ = [];
122
+
123
+ /* style */
124
+ const __vue_inject_styles__$1 = undefined;
125
+ /* scoped */
126
+ const __vue_scope_id__$1 = undefined;
127
+ /* module identifier */
128
+ const __vue_module_identifier__$1 = undefined;
129
+ /* functional template */
130
+ const __vue_is_functional_template__$1 = false;
131
+ /* style inject */
132
+
133
+ /* style inject SSR */
134
+
135
+ /* style inject shadow dom */
136
+
137
+
138
+
139
+ const __vue_component__$1 = /*#__PURE__*/plugins.normalizeComponent(
140
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
141
+ __vue_inject_styles__$1,
142
+ __vue_script__$1,
143
+ __vue_scope_id__$1,
144
+ __vue_is_functional_template__$1,
145
+ __vue_module_identifier__$1,
146
+ false,
147
+ undefined,
148
+ undefined,
149
+ undefined
150
+ );
151
+
152
+ var Tabs = __vue_component__$1;
153
+
154
+ var script = {
155
+ name: 'BTabItem',
156
+ mixins: [TabbedChildMixin.TabbedChildMixin('tab')],
157
+ props: {
158
+ disabled: Boolean
159
+ },
160
+ data: function data() {
161
+ return {
162
+ elementClass: 'tab-item',
163
+ elementRole: 'tabpanel'
164
+ };
165
+ }
166
+ };
167
+
168
+ /* script */
169
+ const __vue_script__ = script;
170
+
171
+ /* template */
172
+
173
+ /* style */
174
+ const __vue_inject_styles__ = undefined;
175
+ /* scoped */
176
+ const __vue_scope_id__ = undefined;
177
+ /* module identifier */
178
+ const __vue_module_identifier__ = undefined;
179
+ /* functional template */
180
+ const __vue_is_functional_template__ = undefined;
181
+ /* style inject */
182
+
183
+ /* style inject SSR */
184
+
185
+ /* style inject shadow dom */
186
+
187
+
188
+
189
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
190
+ {},
191
+ __vue_inject_styles__,
192
+ __vue_script__,
193
+ __vue_scope_id__,
194
+ __vue_is_functional_template__,
195
+ __vue_module_identifier__,
196
+ false,
197
+ undefined,
198
+ undefined,
199
+ undefined
200
+ );
201
+
202
+ var TabItem = __vue_component__;
203
+
204
+ var Plugin = {
205
+ install: function install(Vue) {
206
+ plugins.registerComponent(Vue, Tabs);
207
+ plugins.registerComponent(Vue, TabItem);
208
+ }
209
+ };
210
+ plugins.use(Plugin);
211
+
212
+ exports.BTabItem = TabItem;
213
+ exports.BTabs = Tabs;
214
+ exports["default"] = Plugin;
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Tag = require('./Tag-437f65fb.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+
8
+ //
9
+ //
10
+ //
11
+ //
12
+ //
13
+ //
14
+
15
+ var script = {
16
+ name: 'BTaglist',
17
+ props: {
18
+ attached: Boolean
19
+ }
20
+ };
21
+
22
+ /* script */
23
+ const __vue_script__ = script;
24
+
25
+ /* template */
26
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tags",class:{ 'has-addons': _vm.attached }},[_vm._t("default")],2)};
27
+ var __vue_staticRenderFns__ = [];
28
+
29
+ /* style */
30
+ const __vue_inject_styles__ = undefined;
31
+ /* scoped */
32
+ const __vue_scope_id__ = undefined;
33
+ /* module identifier */
34
+ const __vue_module_identifier__ = undefined;
35
+ /* functional template */
36
+ const __vue_is_functional_template__ = false;
37
+ /* style inject */
38
+
39
+ /* style inject SSR */
40
+
41
+ /* style inject shadow dom */
42
+
43
+
44
+
45
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
46
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
47
+ __vue_inject_styles__,
48
+ __vue_script__,
49
+ __vue_scope_id__,
50
+ __vue_is_functional_template__,
51
+ __vue_module_identifier__,
52
+ false,
53
+ undefined,
54
+ undefined,
55
+ undefined
56
+ );
57
+
58
+ var Taglist = __vue_component__;
59
+
60
+ var Plugin = {
61
+ install: function install(Vue) {
62
+ plugins.registerComponent(Vue, Tag.Tag);
63
+ plugins.registerComponent(Vue, Taglist);
64
+ }
65
+ };
66
+ plugins.use(Plugin);
67
+
68
+ exports.BTag = Tag.Tag;
69
+ exports.BTaglist = Taglist;
70
+ exports["default"] = Plugin;
@@ -0,0 +1,331 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-8b2e54ad.js');
6
+ var helpers = require('./helpers.js');
7
+ var Tag = require('./Tag-437f65fb.js');
8
+ var Autocomplete = require('./Autocomplete-7a39c5ce.js');
9
+ var config = require('./config-8cfb5a4a.js');
10
+ var FormElementMixin = require('./FormElementMixin-193a88b8.js');
11
+ var plugins = require('./plugins-7f41b028.js');
12
+ require('./Input-e5a72d97.js');
13
+ require('./Icon-78961800.js');
14
+
15
+ var _excluded = ["input"];
16
+ var script = {
17
+ name: 'BTaginput',
18
+ components: _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._defineProperty({}, Autocomplete.Autocomplete.name, Autocomplete.Autocomplete), Tag.Tag.name, Tag.Tag),
19
+ mixins: [FormElementMixin.FormElementMixin],
20
+ inheritAttrs: false,
21
+ props: {
22
+ value: {
23
+ type: Array,
24
+ default: function _default() {
25
+ return [];
26
+ }
27
+ },
28
+ data: {
29
+ type: Array,
30
+ default: function _default() {
31
+ return [];
32
+ }
33
+ },
34
+ type: String,
35
+ closeType: String,
36
+ rounded: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ attached: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ maxtags: {
45
+ type: [Number, String],
46
+ required: false
47
+ },
48
+ hasCounter: {
49
+ type: Boolean,
50
+ default: function _default() {
51
+ return config.config.defaultTaginputHasCounter;
52
+ }
53
+ },
54
+ field: {
55
+ type: String,
56
+ default: 'value'
57
+ },
58
+ autocomplete: Boolean,
59
+ groupField: String,
60
+ groupOptions: String,
61
+ nativeAutocomplete: String,
62
+ openOnFocus: Boolean,
63
+ keepOpen: {
64
+ type: Boolean,
65
+ default: true
66
+ },
67
+ keepFirst: Boolean,
68
+ disabled: Boolean,
69
+ ellipsis: Boolean,
70
+ closable: {
71
+ type: Boolean,
72
+ default: true
73
+ },
74
+ ariaCloseLabel: String,
75
+ confirmKeys: {
76
+ type: Array,
77
+ default: function _default() {
78
+ return [',', 'Tab', 'Enter'];
79
+ }
80
+ },
81
+ removeOnKeys: {
82
+ type: Array,
83
+ default: function _default() {
84
+ return ['Backspace'];
85
+ }
86
+ },
87
+ allowNew: Boolean,
88
+ onPasteSeparators: {
89
+ type: Array,
90
+ default: function _default() {
91
+ return [','];
92
+ }
93
+ },
94
+ beforeAdding: {
95
+ type: Function,
96
+ default: function _default() {
97
+ return true;
98
+ }
99
+ },
100
+ allowDuplicates: {
101
+ type: Boolean,
102
+ default: false
103
+ },
104
+ checkInfiniteScroll: {
105
+ type: Boolean,
106
+ default: false
107
+ },
108
+ createTag: {
109
+ type: Function,
110
+ default: function _default(tag) {
111
+ return tag;
112
+ }
113
+ },
114
+ appendToBody: Boolean
115
+ },
116
+ data: function data() {
117
+ return {
118
+ tags: Array.isArray(this.value) ? this.value.slice(0) : this.value || [],
119
+ newTag: '',
120
+ isComposing: false,
121
+ _elementRef: 'autocomplete',
122
+ _isTaginput: true,
123
+ requestID: null
124
+ };
125
+ },
126
+ computed: {
127
+ listeners: function listeners() {
128
+ var _this$$listeners = this.$listeners;
129
+ _this$$listeners.input;
130
+ var listeners = _rollupPluginBabelHelpers._objectWithoutProperties(_this$$listeners, _excluded);
131
+ return listeners;
132
+ },
133
+ rootClasses: function rootClasses() {
134
+ return {
135
+ 'is-expanded': this.expanded
136
+ };
137
+ },
138
+ containerClasses: function containerClasses() {
139
+ return {
140
+ 'is-focused': this.isFocused,
141
+ 'is-focusable': this.hasInput
142
+ };
143
+ },
144
+ valueLength: function valueLength() {
145
+ return this.newTag.trim().length;
146
+ },
147
+ hasDefaultSlot: function hasDefaultSlot() {
148
+ return !!this.$scopedSlots.default;
149
+ },
150
+ hasEmptySlot: function hasEmptySlot() {
151
+ return !!this.$slots.empty;
152
+ },
153
+ hasHeaderSlot: function hasHeaderSlot() {
154
+ return !!this.$slots.header;
155
+ },
156
+ hasFooterSlot: function hasFooterSlot() {
157
+ return !!this.$slots.footer;
158
+ },
159
+ /**
160
+ * Show the input field if a maxtags hasn't been set or reached.
161
+ */
162
+ hasInput: function hasInput() {
163
+ return this.maxtags == null || this.maxtags === 1 || this.tagsLength < this.maxtags;
164
+ },
165
+ tagsLength: function tagsLength() {
166
+ return this.tags.length;
167
+ },
168
+ /**
169
+ * If Taginput has onPasteSeparators prop,
170
+ * returning new RegExp used to split pasted string.
171
+ */
172
+ separatorsAsRegExp: function separatorsAsRegExp() {
173
+ var sep = this.onPasteSeparators;
174
+ return sep.length ? new RegExp(sep.map(function (s) {
175
+ return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null;
176
+ }).join('|'), 'g') : null;
177
+ }
178
+ },
179
+ watch: {
180
+ /**
181
+ * When v-model is changed set internal value.
182
+ */
183
+ value: function value(_value) {
184
+ this.tags = Array.isArray(_value) ? _value.slice(0) : _value || [];
185
+ },
186
+ hasInput: function hasInput() {
187
+ if (!this.hasInput) this.onBlur();
188
+ }
189
+ },
190
+ methods: {
191
+ addTag: function addTag(tag) {
192
+ var _this = this;
193
+ var tagToAdd = tag || this.newTag.trim();
194
+ if (tagToAdd) {
195
+ if (!this.autocomplete) {
196
+ var reg = this.separatorsAsRegExp;
197
+ if (reg && tagToAdd.match(reg)) {
198
+ tagToAdd.split(reg).map(function (t) {
199
+ return t.trim();
200
+ }).filter(function (t) {
201
+ return t.length !== 0;
202
+ }).map(this.addTag);
203
+ return;
204
+ }
205
+ }
206
+ // Add the tag input if it is not blank
207
+ // or previously added (if not allowDuplicates).
208
+ var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;
209
+ if (add && this.beforeAdding(tagToAdd)) {
210
+ if (this.maxtags === 1) {
211
+ this.tags = []; // replace existing tag if only 1 is allowed
212
+ }
213
+ this.tags.push(this.createTag(tagToAdd));
214
+ this.$emit('input', this.tags);
215
+ this.$emit('add', tagToAdd);
216
+ }
217
+
218
+ // after autocomplete events
219
+ this.requestID = requestAnimationFrame(function () {
220
+ _this.newTag = '';
221
+ _this.$emit('typing', '');
222
+ });
223
+ }
224
+ },
225
+ getNormalizedTagText: function getNormalizedTagText(tag) {
226
+ if (_rollupPluginBabelHelpers._typeof(tag) === 'object') {
227
+ tag = helpers.getValueByPath(tag, this.field);
228
+ }
229
+ return "".concat(tag);
230
+ },
231
+ customOnBlur: function customOnBlur(event) {
232
+ // Add tag on-blur if not select only
233
+ if (!this.autocomplete) this.addTag();
234
+ this.onBlur(event);
235
+ },
236
+ onSelect: function onSelect(option) {
237
+ var _this2 = this;
238
+ if (!option) return;
239
+ this.addTag(option);
240
+ this.$nextTick(function () {
241
+ _this2.newTag = '';
242
+ });
243
+ },
244
+ removeTag: function removeTag(index, event) {
245
+ var tag = this.tags.splice(index, 1)[0];
246
+ this.$emit('input', this.tags);
247
+ this.$emit('remove', tag);
248
+ if (event) event.stopPropagation();
249
+ if (this.openOnFocus && this.$refs.autocomplete) {
250
+ this.$refs.autocomplete.focus();
251
+ }
252
+ return tag;
253
+ },
254
+ removeLastTag: function removeLastTag() {
255
+ if (this.tagsLength > 0) {
256
+ this.removeTag(this.tagsLength - 1);
257
+ }
258
+ },
259
+ keydown: function keydown(event) {
260
+ var key = event.key; // cannot destructure preventDefault (https://stackoverflow.com/a/49616808/2774496)
261
+ if (this.removeOnKeys.indexOf(key) !== -1 && !this.newTag.length) {
262
+ this.removeLastTag();
263
+ }
264
+ // Stop if is to accept select only
265
+ if (this.autocomplete && !this.allowNew) return;
266
+ if (this.confirmKeys.indexOf(key) >= 0) {
267
+ // Allow Tab to advance to next field regardless
268
+ if (key !== 'Tab') event.preventDefault();
269
+ if (key === 'Enter' && this.isComposing) return;
270
+ this.addTag();
271
+ }
272
+ },
273
+ onTyping: function onTyping(event) {
274
+ this.$emit('typing', event.trim());
275
+ },
276
+ emitInfiniteScroll: function emitInfiniteScroll() {
277
+ this.$emit('infinite-scroll');
278
+ }
279
+ },
280
+ beforeDestroy: function beforeDestroy() {
281
+ cancelAnimationFrame(this.requestID);
282
+ }
283
+ };
284
+
285
+ /* script */
286
+ const __vue_script__ = script;
287
+
288
+ /* template */
289
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"taginput control",class:_vm.rootClasses},[_c('div',{staticClass:"taginput-container",class:[_vm.statusType, _vm.size, _vm.containerClasses],attrs:{"disabled":_vm.disabled},on:{"click":function($event){_vm.hasInput && _vm.focus($event);}}},[_vm._t("selected",_vm._l((_vm.tags),function(tag,index){return _c('b-tag',{key:_vm.getNormalizedTagText(tag) + index,attrs:{"type":_vm.type,"close-type":_vm.closeType,"size":_vm.size,"rounded":_vm.rounded,"attached":_vm.attached,"tabstop":false,"disabled":_vm.disabled,"ellipsis":_vm.ellipsis,"closable":_vm.closable,"aria-close-label":_vm.ariaCloseLabel,"title":_vm.ellipsis && _vm.getNormalizedTagText(tag)},on:{"close":function($event){return _vm.removeTag(index, $event)}}},[_vm._t("tag",[_vm._v(" "+_vm._s(_vm.getNormalizedTagText(tag))+" ")],{"tag":tag})],2)}),{"tags":_vm.tags}),(_vm.hasInput)?_c('b-autocomplete',_vm._g(_vm._b({ref:"autocomplete",attrs:{"data":_vm.data,"field":_vm.field,"icon":_vm.icon,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"has-counter":false,"size":_vm.size,"disabled":_vm.disabled,"loading":_vm.loading,"autocomplete":_vm.nativeAutocomplete,"open-on-focus":_vm.openOnFocus,"keep-open":_vm.keepOpen,"keep-first":_vm.keepFirst,"group-field":_vm.groupField,"group-options":_vm.groupOptions,"use-html5-validation":_vm.useHtml5Validation,"check-infinite-scroll":_vm.checkInfiniteScroll,"append-to-body":_vm.appendToBody,"confirm-keys":_vm.confirmKeys},on:{"typing":_vm.onTyping,"focus":_vm.onFocus,"blur":_vm.customOnBlur,"select":_vm.onSelect,"infinite-scroll":_vm.emitInfiniteScroll},nativeOn:{"keydown":function($event){return _vm.keydown($event)},"compositionstart":function($event){_vm.isComposing = true;},"compositionend":function($event){_vm.isComposing = false;}},scopedSlots:_vm._u([(_vm.hasHeaderSlot)?{key:"header",fn:function(){return [_vm._t("header")]},proxy:true}:null,(_vm.hasDefaultSlot)?{key:"default",fn:function(props){return [_vm._t("default",null,{"option":props.option,"index":props.index})]}}:null,(_vm.hasEmptySlot)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,(_vm.hasFooterSlot)?{key:"footer",fn:function(){return [_vm._t("footer")]},proxy:true}:null],null,true),model:{value:(_vm.newTag),callback:function ($$v) {_vm.newTag=$$v;},expression:"newTag"}},'b-autocomplete',_vm.$attrs,false),_vm.listeners)):_vm._e()],2),(_vm.hasCounter && (_vm.maxtags || _vm.maxlength))?_c('small',{staticClass:"help counter"},[(_vm.maxlength && _vm.valueLength > 0)?[_vm._v(" "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+" ")]:(_vm.maxtags)?[_vm._v(" "+_vm._s(_vm.tagsLength)+" / "+_vm._s(_vm.maxtags)+" ")]:_vm._e()],2):_vm._e()])};
290
+ var __vue_staticRenderFns__ = [];
291
+
292
+ /* style */
293
+ const __vue_inject_styles__ = undefined;
294
+ /* scoped */
295
+ const __vue_scope_id__ = undefined;
296
+ /* module identifier */
297
+ const __vue_module_identifier__ = undefined;
298
+ /* functional template */
299
+ const __vue_is_functional_template__ = false;
300
+ /* style inject */
301
+
302
+ /* style inject SSR */
303
+
304
+ /* style inject shadow dom */
305
+
306
+
307
+
308
+ const __vue_component__ = /*#__PURE__*/plugins.normalizeComponent(
309
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
310
+ __vue_inject_styles__,
311
+ __vue_script__,
312
+ __vue_scope_id__,
313
+ __vue_is_functional_template__,
314
+ __vue_module_identifier__,
315
+ false,
316
+ undefined,
317
+ undefined,
318
+ undefined
319
+ );
320
+
321
+ var Taginput = __vue_component__;
322
+
323
+ var Plugin = {
324
+ install: function install(Vue) {
325
+ plugins.registerComponent(Vue, Taginput);
326
+ }
327
+ };
328
+ plugins.use(Plugin);
329
+
330
+ exports.BTaginput = Taginput;
331
+ exports["default"] = Plugin;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Timepicker = require('./Timepicker-498fa02b.js');
6
+ var plugins = require('./plugins-7f41b028.js');
7
+ require('./_rollupPluginBabelHelpers-8b2e54ad.js');
8
+ require('./TimepickerMixin-6c1a4ab4.js');
9
+ require('./FormElementMixin-193a88b8.js');
10
+ require('./config-8cfb5a4a.js');
11
+ require('./helpers.js');
12
+ require('./DropdownItem-422f8c34.js');
13
+ require('./trapFocus-261420b0.js');
14
+ require('./InjectedChildMixin-d6bf7f91.js');
15
+ require('./Input-e5a72d97.js');
16
+ require('./Icon-78961800.js');
17
+ require('./Field-4557b10c.js');
18
+ require('./Select-2b3879bc.js');
19
+
20
+ var Plugin = {
21
+ install: function install(Vue) {
22
+ plugins.registerComponent(Vue, Timepicker.Timepicker);
23
+ }
24
+ };
25
+ plugins.use(Plugin);
26
+
27
+ exports.BTimepicker = Timepicker.Timepicker;
28
+ exports["default"] = Plugin;