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,1180 @@
1
+ /*! Buefy v0.9.28 | MIT License | github.com/buefy/buefy */
2
+ (function (global, factory) {
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Steps = {}));
6
+ })(this, (function (exports) { 'use strict';
7
+
8
+ function ownKeys(e, r) {
9
+ var t = Object.keys(e);
10
+ if (Object.getOwnPropertySymbols) {
11
+ var o = Object.getOwnPropertySymbols(e);
12
+ r && (o = o.filter(function (r) {
13
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
14
+ })), t.push.apply(t, o);
15
+ }
16
+ return t;
17
+ }
18
+ function _objectSpread2(e) {
19
+ for (var r = 1; r < arguments.length; r++) {
20
+ var t = null != arguments[r] ? arguments[r] : {};
21
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
22
+ _defineProperty(e, r, t[r]);
23
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
24
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
25
+ });
26
+ }
27
+ return e;
28
+ }
29
+ function _toPrimitive(t, r) {
30
+ if ("object" != typeof t || !t) return t;
31
+ var e = t[Symbol.toPrimitive];
32
+ if (void 0 !== e) {
33
+ var i = e.call(t, r || "default");
34
+ if ("object" != typeof i) return i;
35
+ throw new TypeError("@@toPrimitive must return a primitive value.");
36
+ }
37
+ return ("string" === r ? String : Number)(t);
38
+ }
39
+ function _toPropertyKey(t) {
40
+ var i = _toPrimitive(t, "string");
41
+ return "symbol" == typeof i ? i : String(i);
42
+ }
43
+ function _typeof(o) {
44
+ "@babel/helpers - typeof";
45
+
46
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
47
+ return typeof o;
48
+ } : function (o) {
49
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
50
+ }, _typeof(o);
51
+ }
52
+ function _defineProperty(obj, key, value) {
53
+ key = _toPropertyKey(key);
54
+ if (key in obj) {
55
+ Object.defineProperty(obj, key, {
56
+ value: value,
57
+ enumerable: true,
58
+ configurable: true,
59
+ writable: true
60
+ });
61
+ } else {
62
+ obj[key] = value;
63
+ }
64
+ return obj;
65
+ }
66
+ function _toArray(arr) {
67
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
68
+ }
69
+ function _arrayWithHoles(arr) {
70
+ if (Array.isArray(arr)) return arr;
71
+ }
72
+ function _iterableToArray(iter) {
73
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
74
+ }
75
+ function _unsupportedIterableToArray(o, minLen) {
76
+ if (!o) return;
77
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
78
+ var n = Object.prototype.toString.call(o).slice(8, -1);
79
+ if (n === "Object" && o.constructor) n = o.constructor.name;
80
+ if (n === "Map" || n === "Set") return Array.from(o);
81
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
82
+ }
83
+ function _arrayLikeToArray(arr, len) {
84
+ if (len == null || len > arr.length) len = arr.length;
85
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
86
+ return arr2;
87
+ }
88
+ function _nonIterableRest() {
89
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90
+ }
91
+ function _createForOfIteratorHelper(o, allowArrayLike) {
92
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
93
+ if (!it) {
94
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
95
+ if (it) o = it;
96
+ var i = 0;
97
+ var F = function () {};
98
+ return {
99
+ s: F,
100
+ n: function () {
101
+ if (i >= o.length) return {
102
+ done: true
103
+ };
104
+ return {
105
+ done: false,
106
+ value: o[i++]
107
+ };
108
+ },
109
+ e: function (e) {
110
+ throw e;
111
+ },
112
+ f: F
113
+ };
114
+ }
115
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
+ }
117
+ var normalCompletion = true,
118
+ didErr = false,
119
+ err;
120
+ return {
121
+ s: function () {
122
+ it = it.call(o);
123
+ },
124
+ n: function () {
125
+ var step = it.next();
126
+ normalCompletion = step.done;
127
+ return step;
128
+ },
129
+ e: function (e) {
130
+ didErr = true;
131
+ err = e;
132
+ },
133
+ f: function () {
134
+ try {
135
+ if (!normalCompletion && it.return != null) it.return();
136
+ } finally {
137
+ if (didErr) throw err;
138
+ }
139
+ }
140
+ };
141
+ }
142
+
143
+ var config = {
144
+ defaultContainerElement: null,
145
+ defaultIconPack: 'mdi',
146
+ defaultIconComponent: null,
147
+ defaultIconPrev: 'chevron-left',
148
+ defaultIconNext: 'chevron-right',
149
+ defaultLocale: undefined,
150
+ defaultDialogConfirmText: null,
151
+ defaultDialogCancelText: null,
152
+ defaultSnackbarDuration: 3500,
153
+ defaultSnackbarPosition: null,
154
+ defaultToastDuration: 2000,
155
+ defaultToastPosition: null,
156
+ defaultNotificationDuration: 2000,
157
+ defaultNotificationPosition: null,
158
+ defaultTooltipType: 'is-primary',
159
+ defaultTooltipDelay: null,
160
+ defaultTooltipCloseDelay: null,
161
+ defaultSidebarDelay: null,
162
+ defaultInputAutocomplete: 'on',
163
+ defaultDateFormatter: null,
164
+ defaultDateParser: null,
165
+ defaultDateCreator: null,
166
+ defaultTimeCreator: null,
167
+ defaultDayNames: null,
168
+ defaultMonthNames: null,
169
+ defaultFirstDayOfWeek: null,
170
+ defaultUnselectableDaysOfWeek: null,
171
+ defaultTimeFormatter: null,
172
+ defaultTimeParser: null,
173
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
174
+ defaultModalScroll: null,
175
+ defaultDatepickerMobileNative: true,
176
+ defaultTimepickerMobileNative: true,
177
+ defaultTimepickerMobileModal: true,
178
+ defaultNoticeQueue: true,
179
+ defaultInputHasCounter: true,
180
+ defaultTaginputHasCounter: true,
181
+ defaultUseHtml5Validation: true,
182
+ defaultDropdownMobileModal: true,
183
+ defaultFieldLabelPosition: null,
184
+ defaultDatepickerYearsRange: [-100, 10],
185
+ defaultDatepickerNearbyMonthDays: true,
186
+ defaultDatepickerNearbySelectableMonthDays: false,
187
+ defaultDatepickerShowWeekNumber: false,
188
+ defaultDatepickerWeekNumberClickable: false,
189
+ defaultDatepickerMobileModal: true,
190
+ defaultTrapFocus: true,
191
+ defaultAutoFocus: true,
192
+ defaultButtonRounded: false,
193
+ defaultSwitchRounded: true,
194
+ defaultCarouselInterval: 3500,
195
+ defaultTabsExpanded: false,
196
+ defaultTabsAnimated: true,
197
+ defaultTabsType: null,
198
+ defaultStatusIcon: true,
199
+ defaultProgrammaticPromise: false,
200
+ defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],
201
+ defaultImageWebpFallback: null,
202
+ defaultImageLazy: true,
203
+ defaultImageResponsive: true,
204
+ defaultImageRatio: null,
205
+ defaultImageSrcsetFormatter: null,
206
+ defaultBreadcrumbTag: 'a',
207
+ defaultBreadcrumbAlign: 'is-left',
208
+ defaultBreadcrumbSeparator: '',
209
+ defaultBreadcrumbSize: 'is-medium',
210
+ customIconPacks: null
211
+ };
212
+
213
+ /**
214
+ * Checks if the flag is set
215
+ * @param val
216
+ * @param flag
217
+ * @returns {boolean}
218
+ */
219
+ function hasFlag(val, flag) {
220
+ return (val & flag) === flag;
221
+ }
222
+
223
+ /**
224
+ * Asserts a value is beetween min and max
225
+ * @param val
226
+ * @param min
227
+ * @param max
228
+ * @returns {number}
229
+ */
230
+ function bound(val, min, max) {
231
+ return Math.max(min, Math.min(max, val));
232
+ }
233
+
234
+ /**
235
+ * Merge function to replace Object.assign with deep merging possibility
236
+ */
237
+ var isObject = function isObject(item) {
238
+ return _typeof(item) === 'object' && !Array.isArray(item);
239
+ };
240
+ var mergeFn = function mergeFn(target, source) {
241
+ var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
242
+ if (deep || !Object.assign) {
243
+ var isDeep = function isDeep(prop) {
244
+ return isObject(source[prop]) && target !== null && target.hasOwnProperty(prop) && isObject(target[prop]);
245
+ };
246
+ var replaced = Object.getOwnPropertyNames(source).map(function (prop) {
247
+ return _defineProperty({}, prop, isDeep(prop) ? mergeFn(target[prop], source[prop], deep) : source[prop]);
248
+ }).reduce(function (a, b) {
249
+ return _objectSpread2(_objectSpread2({}, a), b);
250
+ }, {});
251
+ return _objectSpread2(_objectSpread2({}, target), replaced);
252
+ } else {
253
+ return Object.assign(target, source);
254
+ }
255
+ };
256
+ var merge = mergeFn;
257
+ function isVueComponent(c) {
258
+ return c && c._isVue;
259
+ }
260
+
261
+ var mdiIcons = {
262
+ sizes: {
263
+ 'default': 'mdi-24px',
264
+ 'is-small': null,
265
+ 'is-medium': 'mdi-36px',
266
+ 'is-large': 'mdi-48px'
267
+ },
268
+ iconPrefix: 'mdi-'
269
+ };
270
+ var faIcons = function faIcons() {
271
+ var faIconPrefix = config && config.defaultIconComponent ? '' : 'fa-';
272
+ return {
273
+ sizes: {
274
+ 'default': null,
275
+ 'is-small': null,
276
+ 'is-medium': faIconPrefix + 'lg',
277
+ 'is-large': faIconPrefix + '2x'
278
+ },
279
+ iconPrefix: faIconPrefix,
280
+ internalIcons: {
281
+ 'information': 'info-circle',
282
+ 'alert': 'exclamation-triangle',
283
+ 'alert-circle': 'exclamation-circle',
284
+ 'chevron-right': 'angle-right',
285
+ 'chevron-left': 'angle-left',
286
+ 'chevron-down': 'angle-down',
287
+ 'eye-off': 'eye-slash',
288
+ 'menu-down': 'caret-down',
289
+ 'menu-up': 'caret-up',
290
+ 'close-circle': 'times-circle'
291
+ }
292
+ };
293
+ };
294
+ var getIcons = function getIcons() {
295
+ var icons = {
296
+ mdi: mdiIcons,
297
+ fa: faIcons(),
298
+ fas: faIcons(),
299
+ far: faIcons(),
300
+ fad: faIcons(),
301
+ fab: faIcons(),
302
+ fal: faIcons(),
303
+ 'fa-solid': faIcons(),
304
+ 'fa-regular': faIcons(),
305
+ 'fa-light': faIcons(),
306
+ 'fa-thin': faIcons(),
307
+ 'fa-duotone': faIcons(),
308
+ 'fa-brands': faIcons()
309
+ };
310
+ if (config && config.customIconPacks) {
311
+ icons = merge(icons, config.customIconPacks, true);
312
+ }
313
+ return icons;
314
+ };
315
+ var getIcons$1 = getIcons;
316
+
317
+ var script$2 = {
318
+ name: 'BIcon',
319
+ props: {
320
+ type: [String, Object],
321
+ component: String,
322
+ pack: String,
323
+ icon: String,
324
+ size: String,
325
+ customSize: String,
326
+ customClass: String,
327
+ both: Boolean // This is used internally to show both MDI and FA icon
328
+ },
329
+ computed: {
330
+ iconConfig: function iconConfig() {
331
+ var allIcons = getIcons$1();
332
+ return allIcons[this.newPack];
333
+ },
334
+ iconPrefix: function iconPrefix() {
335
+ if (this.iconConfig && this.iconConfig.iconPrefix) {
336
+ return this.iconConfig.iconPrefix;
337
+ }
338
+ return '';
339
+ },
340
+ /**
341
+ * Internal icon name based on the pack.
342
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
343
+ * internal icons are always MDI.
344
+ */
345
+ newIcon: function newIcon() {
346
+ return "".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon));
347
+ },
348
+ newPack: function newPack() {
349
+ return this.pack || config.defaultIconPack;
350
+ },
351
+ newType: function newType() {
352
+ if (!this.type) return;
353
+ var splitType = [];
354
+ if (typeof this.type === 'string') {
355
+ splitType = this.type.split('-');
356
+ } else {
357
+ for (var key in this.type) {
358
+ if (this.type[key]) {
359
+ splitType = key.split('-');
360
+ break;
361
+ }
362
+ }
363
+ }
364
+ if (splitType.length <= 1) return;
365
+ var _splitType = splitType,
366
+ _splitType2 = _toArray(_splitType),
367
+ type = _splitType2.slice(1);
368
+ return "has-text-".concat(type.join('-'));
369
+ },
370
+ newCustomSize: function newCustomSize() {
371
+ return this.customSize || this.customSizeByPack;
372
+ },
373
+ customSizeByPack: function customSizeByPack() {
374
+ if (this.iconConfig && this.iconConfig.sizes) {
375
+ if (this.size && this.iconConfig.sizes[this.size] !== undefined) {
376
+ return this.iconConfig.sizes[this.size];
377
+ } else if (this.iconConfig.sizes.default) {
378
+ return this.iconConfig.sizes.default;
379
+ }
380
+ }
381
+ return null;
382
+ },
383
+ useIconComponent: function useIconComponent() {
384
+ return this.component || config.defaultIconComponent;
385
+ }
386
+ },
387
+ methods: {
388
+ /**
389
+ * Equivalent icon name of the MDI.
390
+ */
391
+ getEquivalentIconOf: function getEquivalentIconOf(value) {
392
+ // Only transform the class if the both prop is set to true
393
+ if (!this.both) {
394
+ return value;
395
+ }
396
+ if (this.iconConfig && this.iconConfig.internalIcons && this.iconConfig.internalIcons[value]) {
397
+ return this.iconConfig.internalIcons[value];
398
+ }
399
+ return value;
400
+ }
401
+ }
402
+ };
403
+
404
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
405
+ if (typeof shadowMode !== 'boolean') {
406
+ createInjectorSSR = createInjector;
407
+ createInjector = shadowMode;
408
+ shadowMode = false;
409
+ }
410
+ // Vue.extend constructor export interop.
411
+ const options = typeof script === 'function' ? script.options : script;
412
+ // render functions
413
+ if (template && template.render) {
414
+ options.render = template.render;
415
+ options.staticRenderFns = template.staticRenderFns;
416
+ options._compiled = true;
417
+ // functional template
418
+ if (isFunctionalTemplate) {
419
+ options.functional = true;
420
+ }
421
+ }
422
+ // scopedId
423
+ if (scopeId) {
424
+ options._scopeId = scopeId;
425
+ }
426
+ let hook;
427
+ if (moduleIdentifier) {
428
+ // server build
429
+ hook = function (context) {
430
+ // 2.3 injection
431
+ context =
432
+ context || // cached call
433
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
434
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
435
+ // 2.2 with runInNewContext: true
436
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
437
+ context = __VUE_SSR_CONTEXT__;
438
+ }
439
+ // inject component styles
440
+ if (style) {
441
+ style.call(this, createInjectorSSR(context));
442
+ }
443
+ // register component module identifier for async chunk inference
444
+ if (context && context._registeredComponents) {
445
+ context._registeredComponents.add(moduleIdentifier);
446
+ }
447
+ };
448
+ // used by ssr in case component is cached and beforeCreate
449
+ // never gets called
450
+ options._ssrRegister = hook;
451
+ }
452
+ else if (style) {
453
+ hook = shadowMode
454
+ ? function (context) {
455
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
456
+ }
457
+ : function (context) {
458
+ style.call(this, createInjector(context));
459
+ };
460
+ }
461
+ if (hook) {
462
+ if (options.functional) {
463
+ // register for functional component in vue file
464
+ const originalRender = options.render;
465
+ options.render = function renderWithStyleInjection(h, context) {
466
+ hook.call(context);
467
+ return originalRender(h, context);
468
+ };
469
+ }
470
+ else {
471
+ // inject component registration as beforeCreate hook
472
+ const existing = options.beforeCreate;
473
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
474
+ }
475
+ }
476
+ return script;
477
+ }
478
+
479
+ /* script */
480
+ const __vue_script__$2 = script$2;
481
+
482
+ /* template */
483
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"icon",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:"component",class:[_vm.customClass],attrs:{"icon":[_vm.newPack, _vm.newIcon],"size":_vm.newCustomSize}})],1)};
484
+ var __vue_staticRenderFns__$1 = [];
485
+
486
+ /* style */
487
+ const __vue_inject_styles__$2 = undefined;
488
+ /* scoped */
489
+ const __vue_scope_id__$2 = undefined;
490
+ /* module identifier */
491
+ const __vue_module_identifier__$2 = undefined;
492
+ /* functional template */
493
+ const __vue_is_functional_template__$2 = false;
494
+ /* style inject */
495
+
496
+ /* style inject SSR */
497
+
498
+ /* style inject shadow dom */
499
+
500
+
501
+
502
+ const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
503
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
504
+ __vue_inject_styles__$2,
505
+ __vue_script__$2,
506
+ __vue_scope_id__$2,
507
+ __vue_is_functional_template__$2,
508
+ __vue_module_identifier__$2,
509
+ false,
510
+ undefined,
511
+ undefined,
512
+ undefined
513
+ );
514
+
515
+ var Icon = __vue_component__$2;
516
+
517
+ var SlotComponent = {
518
+ name: 'BSlotComponent',
519
+ props: {
520
+ component: {
521
+ type: Object,
522
+ required: true
523
+ },
524
+ name: {
525
+ type: String,
526
+ default: 'default'
527
+ },
528
+ scoped: {
529
+ type: Boolean
530
+ },
531
+ props: {
532
+ type: Object
533
+ },
534
+ tag: {
535
+ type: String,
536
+ default: 'div'
537
+ },
538
+ event: {
539
+ type: String,
540
+ default: 'hook:updated'
541
+ }
542
+ },
543
+ methods: {
544
+ refresh: function refresh() {
545
+ this.$forceUpdate();
546
+ }
547
+ },
548
+ created: function created() {
549
+ if (isVueComponent(this.component)) {
550
+ this.component.$on(this.event, this.refresh);
551
+ }
552
+ },
553
+ beforeDestroy: function beforeDestroy() {
554
+ if (isVueComponent(this.component)) {
555
+ this.component.$off(this.event, this.refresh);
556
+ }
557
+ },
558
+ render: function render(createElement) {
559
+ if (isVueComponent(this.component)) {
560
+ return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);
561
+ }
562
+ }
563
+ };
564
+
565
+ var items = 1;
566
+ var sorted$1 = 3;
567
+ var Sorted$1 = sorted$1;
568
+ var ProviderParentMixin = (function (itemName) {
569
+ var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
570
+ var mixin = {
571
+ provide: function provide() {
572
+ return _defineProperty({}, 'b' + itemName, this);
573
+ }
574
+ };
575
+ if (hasFlag(flags, items)) {
576
+ mixin.data = function () {
577
+ return {
578
+ childItems: []
579
+ };
580
+ };
581
+ mixin.methods = {
582
+ _registerItem: function _registerItem(item) {
583
+ this.childItems.push(item);
584
+ },
585
+ _unregisterItem: function _unregisterItem(item) {
586
+ this.childItems = this.childItems.filter(function (i) {
587
+ return i !== item;
588
+ });
589
+ }
590
+ };
591
+ if (hasFlag(flags, sorted$1)) {
592
+ mixin.watch = {
593
+ /**
594
+ * When items are added/removed deep search in the elements default's slot
595
+ * And mark the items with their index
596
+ */
597
+ childItems: function childItems(items) {
598
+ if (items.length > 0 && this.$scopedSlots.default) {
599
+ var tag = items[0].$vnode.tag;
600
+ var index = 0;
601
+ var deepSearch = function deepSearch(children) {
602
+ var _iterator = _createForOfIteratorHelper(children),
603
+ _step;
604
+ try {
605
+ var _loop = function _loop() {
606
+ var child = _step.value;
607
+ if (child.tag === tag) {
608
+ // An item with the same tag will for sure be found
609
+ var it = items.find(function (i) {
610
+ return i.$vnode === child;
611
+ });
612
+ if (it) {
613
+ it.index = index++;
614
+ }
615
+ } else if (child.tag) {
616
+ var sub = child.componentInstance ? child.componentInstance.$scopedSlots.default ? child.componentInstance.$scopedSlots.default() : child.componentInstance.$children : child.children;
617
+ if (Array.isArray(sub) && sub.length > 0) {
618
+ deepSearch(sub.map(function (e) {
619
+ return e.$vnode;
620
+ }));
621
+ }
622
+ }
623
+ };
624
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
625
+ _loop();
626
+ }
627
+ } catch (err) {
628
+ _iterator.e(err);
629
+ } finally {
630
+ _iterator.f();
631
+ }
632
+ return false;
633
+ };
634
+ deepSearch(this.$scopedSlots.default());
635
+ }
636
+ }
637
+ };
638
+ mixin.computed = {
639
+ /**
640
+ * When items are added/removed sort them according to their position
641
+ */
642
+ sortedItems: function sortedItems() {
643
+ return this.childItems.slice().sort(function (i1, i2) {
644
+ return i1.index - i2.index;
645
+ });
646
+ }
647
+ };
648
+ }
649
+ }
650
+ return mixin;
651
+ });
652
+
653
+ var TabbedMixin = (function (cmp) {
654
+ return {
655
+ mixins: [ProviderParentMixin(cmp, Sorted$1)],
656
+ components: _defineProperty(_defineProperty({}, Icon.name, Icon), SlotComponent.name, SlotComponent),
657
+ props: {
658
+ value: {
659
+ type: [String, Number],
660
+ default: undefined
661
+ },
662
+ size: String,
663
+ animated: {
664
+ type: Boolean,
665
+ default: true
666
+ },
667
+ animation: String,
668
+ animateInitially: Boolean,
669
+ vertical: {
670
+ type: Boolean,
671
+ default: false
672
+ },
673
+ position: String,
674
+ destroyOnHide: {
675
+ type: Boolean,
676
+ default: false
677
+ }
678
+ },
679
+ data: function data() {
680
+ return {
681
+ activeId: this.value,
682
+ // Internal state
683
+ defaultSlots: [],
684
+ contentHeight: 0,
685
+ isTransitioning: false
686
+ };
687
+ },
688
+ mounted: function mounted() {
689
+ if (typeof this.value === 'number') {
690
+ // Backward compatibility: converts the index value to an id
691
+ var value = bound(this.value, 0, this.items.length - 1);
692
+ this.activeId = this.items[value].value;
693
+ } else {
694
+ this.activeId = this.value;
695
+ }
696
+ },
697
+ computed: {
698
+ activeItem: function activeItem() {
699
+ var _this = this;
700
+ return this.activeId === undefined ? this.items[0] : this.activeId === null ? null : this.childItems.find(function (i) {
701
+ return i.value === _this.activeId;
702
+ });
703
+ },
704
+ items: function items() {
705
+ return this.sortedItems;
706
+ }
707
+ },
708
+ watch: {
709
+ /**
710
+ * When v-model is changed set the new active tab.
711
+ */
712
+ value: function value(_value) {
713
+ if (typeof _value === 'number') {
714
+ // Backward compatibility: converts the index value to an id
715
+ _value = bound(_value, 0, this.items.length - 1);
716
+ this.activeId = this.items[_value].value;
717
+ } else {
718
+ this.activeId = _value;
719
+ }
720
+ },
721
+ /**
722
+ * Sync internal state with external state
723
+ */
724
+ activeId: function activeId(val, oldValue) {
725
+ var oldTab = oldValue !== undefined && oldValue !== null ? this.childItems.find(function (i) {
726
+ return i.value === oldValue;
727
+ }) : null;
728
+ if (oldTab && this.activeItem) {
729
+ oldTab.deactivate(this.activeItem.index);
730
+ this.activeItem.activate(oldTab.index);
731
+ }
732
+ val = this.activeItem ? typeof this.value === 'number' ? this.items.indexOf(this.activeItem) : this.activeItem.value : undefined;
733
+ if (val !== this.value) {
734
+ this.$emit('input', val);
735
+ }
736
+ }
737
+ },
738
+ methods: {
739
+ /**
740
+ * Child click listener, emit input event and change active child.
741
+ */
742
+ childClick: function childClick(child) {
743
+ this.activeId = child.value;
744
+ },
745
+ getNextItemIdx: function getNextItemIdx(fromIdx) {
746
+ var skipDisabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
747
+ var nextItemIdx = null;
748
+ var idx = fromIdx + 1;
749
+ for (; idx < this.items.length; idx++) {
750
+ var item = this.items[idx];
751
+ if (item.visible && (!skipDisabled || skipDisabled && !item.disabled)) {
752
+ nextItemIdx = idx;
753
+ break;
754
+ }
755
+ }
756
+ return nextItemIdx;
757
+ },
758
+ getPrevItemIdx: function getPrevItemIdx(fromIdx) {
759
+ var skipDisabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
760
+ var prevItemIdx = null;
761
+ for (var idx = fromIdx - 1; idx >= 0; idx--) {
762
+ var item = this.items[idx];
763
+ if (item.visible && (!skipDisabled || skipDisabled && !item.disabled)) {
764
+ prevItemIdx = idx;
765
+ break;
766
+ }
767
+ }
768
+ return prevItemIdx;
769
+ }
770
+ }
771
+ };
772
+ });
773
+
774
+ var script$1 = {
775
+ name: 'BSteps',
776
+ components: _defineProperty({}, Icon.name, Icon),
777
+ mixins: [TabbedMixin('step')],
778
+ props: {
779
+ type: [String, Object],
780
+ iconPack: String,
781
+ iconPrev: {
782
+ type: String,
783
+ default: function _default() {
784
+ return config.defaultIconPrev;
785
+ }
786
+ },
787
+ iconNext: {
788
+ type: String,
789
+ default: function _default() {
790
+ return config.defaultIconNext;
791
+ }
792
+ },
793
+ hasNavigation: {
794
+ type: Boolean,
795
+ default: true
796
+ },
797
+ labelPosition: {
798
+ type: String,
799
+ validator: function validator(value) {
800
+ return ['bottom', 'right', 'left'].indexOf(value) > -1;
801
+ },
802
+ default: 'bottom'
803
+ },
804
+ rounded: {
805
+ type: Boolean,
806
+ default: true
807
+ },
808
+ mobileMode: {
809
+ type: String,
810
+ validator: function validator(value) {
811
+ return ['minimalist', 'compact'].indexOf(value) > -1;
812
+ },
813
+ default: 'minimalist'
814
+ },
815
+ ariaNextLabel: String,
816
+ ariaPreviousLabel: String
817
+ },
818
+ computed: {
819
+ // Override mixin implementation to always have a value
820
+ activeItem: function activeItem() {
821
+ var _this = this;
822
+ return this.childItems.filter(function (i) {
823
+ return i.value === _this.activeId;
824
+ })[0] || this.items[0];
825
+ },
826
+ wrapperClasses: function wrapperClasses() {
827
+ return [this.size, _defineProperty({
828
+ 'is-vertical': this.vertical
829
+ }, this.position, this.position && this.vertical)];
830
+ },
831
+ mainClasses: function mainClasses() {
832
+ return [this.type, _defineProperty({
833
+ 'has-label-right': this.labelPosition === 'right',
834
+ 'has-label-left': this.labelPosition === 'left',
835
+ 'is-animated': this.animated,
836
+ 'is-rounded': this.rounded
837
+ }, "mobile-".concat(this.mobileMode), this.mobileMode !== null)];
838
+ },
839
+ /**
840
+ * Check if previous button is available.
841
+ */
842
+ hasPrev: function hasPrev() {
843
+ return this.prevItemIdx !== null;
844
+ },
845
+ /**
846
+ * Retrieves the next visible item index
847
+ */
848
+ nextItemIdx: function nextItemIdx() {
849
+ var idx = this.activeItem ? this.items.indexOf(this.activeItem) : 0;
850
+ return this.getNextItemIdx(idx);
851
+ },
852
+ /**
853
+ * Retrieves the next visible item
854
+ */
855
+ nextItem: function nextItem() {
856
+ var nextItem = null;
857
+ if (this.nextItemIdx !== null) {
858
+ nextItem = this.items[this.nextItemIdx];
859
+ }
860
+ return nextItem;
861
+ },
862
+ /**
863
+ * Retrieves the next visible item index
864
+ */
865
+ prevItemIdx: function prevItemIdx() {
866
+ if (!this.activeItem) {
867
+ return null;
868
+ }
869
+ var idx = this.items.indexOf(this.activeItem);
870
+ return this.getPrevItemIdx(idx);
871
+ },
872
+ /**
873
+ * Retrieves the previous visible item
874
+ */
875
+ prevItem: function prevItem() {
876
+ if (!this.activeItem) {
877
+ return null;
878
+ }
879
+ var prevItem = null;
880
+ if (this.prevItemIdx !== null) {
881
+ prevItem = this.items[this.prevItemIdx];
882
+ }
883
+ return prevItem;
884
+ },
885
+ /**
886
+ * Check if next button is available.
887
+ */
888
+ hasNext: function hasNext() {
889
+ return this.nextItemIdx !== null;
890
+ },
891
+ navigationProps: function navigationProps() {
892
+ return {
893
+ previous: {
894
+ disabled: !this.hasPrev,
895
+ action: this.prev
896
+ },
897
+ next: {
898
+ disabled: !this.hasNext,
899
+ action: this.next
900
+ }
901
+ };
902
+ }
903
+ },
904
+ methods: {
905
+ /**
906
+ * Return if the step should be clickable or not.
907
+ */
908
+ isItemClickable: function isItemClickable(stepItem) {
909
+ if (stepItem.clickable === undefined) {
910
+ return stepItem.index < this.activeItem.index;
911
+ }
912
+ return stepItem.clickable;
913
+ },
914
+ /**
915
+ * Previous button click listener.
916
+ */
917
+ prev: function prev() {
918
+ if (this.hasPrev) {
919
+ this.activeId = this.prevItem.value;
920
+ }
921
+ },
922
+ /**
923
+ * Previous button click listener.
924
+ */
925
+ next: function next() {
926
+ if (this.hasNext) {
927
+ this.activeId = this.nextItem.value;
928
+ }
929
+ }
930
+ }
931
+ };
932
+
933
+ /* script */
934
+ const __vue_script__$1 = script$1;
935
+
936
+ /* template */
937
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-steps",class:_vm.wrapperClasses},[_c('nav',{staticClass:"steps",class:_vm.mainClasses},[_c('ul',{staticClass:"step-items"},_vm._l((_vm.items),function(childItem){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,staticClass:"step-item",class:[childItem.type || _vm.type, childItem.headerClass, {
938
+ 'is-active': childItem.isActive,
939
+ 'is-previous': _vm.activeItem.index > childItem.index
940
+ }]},[_c('a',{staticClass:"step-link",class:{'is-clickable': _vm.isItemClickable(childItem)},on:{"click":function($event){_vm.isItemClickable(childItem) && _vm.childClick(childItem);}}},[_c('div',{staticClass:"step-marker"},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):(childItem.step)?_c('span',[_vm._v(_vm._s(childItem.step))]):_vm._e()],1),_c('div',{staticClass:"step-details"},[_c('span',{staticClass:"step-title"},[_vm._v(_vm._s(childItem.label))])])])])}),0)]),_c('section',{staticClass:"step-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2),_vm._t("navigation",[(_vm.hasNavigation)?_c('nav',{staticClass:"step-navigation"},[_c('a',{staticClass:"pagination-previous",attrs:{"role":"button","disabled":_vm.navigationProps.previous.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.navigationProps.previous.action($event)}}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_c('a',{staticClass:"pagination-next",attrs:{"role":"button","disabled":_vm.navigationProps.next.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.navigationProps.next.action($event)}}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1)]):_vm._e()],{"previous":_vm.navigationProps.previous,"next":_vm.navigationProps.next})],2)};
941
+ var __vue_staticRenderFns__ = [];
942
+
943
+ /* style */
944
+ const __vue_inject_styles__$1 = undefined;
945
+ /* scoped */
946
+ const __vue_scope_id__$1 = undefined;
947
+ /* module identifier */
948
+ const __vue_module_identifier__$1 = undefined;
949
+ /* functional template */
950
+ const __vue_is_functional_template__$1 = false;
951
+ /* style inject */
952
+
953
+ /* style inject SSR */
954
+
955
+ /* style inject shadow dom */
956
+
957
+
958
+
959
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
960
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
961
+ __vue_inject_styles__$1,
962
+ __vue_script__$1,
963
+ __vue_scope_id__$1,
964
+ __vue_is_functional_template__$1,
965
+ __vue_module_identifier__$1,
966
+ false,
967
+ undefined,
968
+ undefined,
969
+ undefined
970
+ );
971
+
972
+ var Steps = __vue_component__$1;
973
+
974
+ var sorted = 1;
975
+ var optional = 2;
976
+ var Sorted = sorted;
977
+ var InjectedChildMixin = (function (parentItemName) {
978
+ var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
979
+ var mixin = {
980
+ inject: {
981
+ parent: {
982
+ from: 'b' + parentItemName,
983
+ default: false
984
+ }
985
+ },
986
+ created: function created() {
987
+ if (!this.parent) {
988
+ if (!hasFlag(flags, optional)) {
989
+ this.$destroy();
990
+ throw new Error('You should wrap ' + this.$options.name + ' in a ' + parentItemName);
991
+ }
992
+ } else if (this.parent._registerItem) {
993
+ this.parent._registerItem(this);
994
+ }
995
+ },
996
+ beforeDestroy: function beforeDestroy() {
997
+ if (this.parent && this.parent._unregisterItem) {
998
+ this.parent._unregisterItem(this);
999
+ }
1000
+ }
1001
+ };
1002
+ if (hasFlag(flags, sorted)) {
1003
+ mixin.data = function () {
1004
+ return {
1005
+ index: null
1006
+ };
1007
+ };
1008
+ }
1009
+ return mixin;
1010
+ });
1011
+
1012
+ var TabbedChildMixin = (function (parentCmp) {
1013
+ return {
1014
+ mixins: [InjectedChildMixin(parentCmp, Sorted)],
1015
+ props: {
1016
+ label: String,
1017
+ icon: String,
1018
+ iconPack: String,
1019
+ visible: {
1020
+ type: Boolean,
1021
+ default: true
1022
+ },
1023
+ value: {
1024
+ type: String,
1025
+ default: function _default() {
1026
+ return this._uid.toString();
1027
+ }
1028
+ },
1029
+ headerClass: {
1030
+ type: [String, Array, Object],
1031
+ default: null
1032
+ }
1033
+ },
1034
+ data: function data() {
1035
+ return {
1036
+ transitionName: null,
1037
+ elementClass: 'item',
1038
+ elementRole: null
1039
+ };
1040
+ },
1041
+ computed: {
1042
+ isActive: function isActive() {
1043
+ return this.parent.activeItem === this;
1044
+ }
1045
+ },
1046
+ methods: {
1047
+ /**
1048
+ * Activate element, alter animation name based on the index.
1049
+ */
1050
+ activate: function activate(oldIndex) {
1051
+ this.transitionName = this.index < oldIndex ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
1052
+ },
1053
+ /**
1054
+ * Deactivate element, alter animation name based on the index.
1055
+ */
1056
+ deactivate: function deactivate(newIndex) {
1057
+ this.transitionName = newIndex < this.index ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
1058
+ }
1059
+ },
1060
+ render: function render(createElement) {
1061
+ var _this = this;
1062
+ // if destroy apply v-if
1063
+ if (this.parent.destroyOnHide) {
1064
+ if (!this.isActive || !this.visible) {
1065
+ return;
1066
+ }
1067
+ }
1068
+ var vnode = createElement('div', {
1069
+ directives: [{
1070
+ name: 'show',
1071
+ value: this.isActive && this.visible
1072
+ }],
1073
+ staticClass: this.elementClass,
1074
+ attrs: {
1075
+ 'role': this.elementRole,
1076
+ 'id': "".concat(this.value, "-content"),
1077
+ 'aria-labelledby': this.elementRole ? "".concat(this.value, "-label") : null,
1078
+ 'tabindex': this.isActive ? 0 : -1
1079
+ }
1080
+ }, this.$slots.default);
1081
+ // check animated prop
1082
+ if (this.parent.animated) {
1083
+ return createElement('transition', {
1084
+ props: {
1085
+ 'name': this.parent.animation || this.transitionName,
1086
+ 'appear': this.parent.animateInitially === true || undefined
1087
+ },
1088
+ on: {
1089
+ 'before-enter': function beforeEnter() {
1090
+ _this.parent.isTransitioning = true;
1091
+ },
1092
+ 'after-enter': function afterEnter() {
1093
+ _this.parent.isTransitioning = false;
1094
+ }
1095
+ }
1096
+ }, [vnode]);
1097
+ }
1098
+ return vnode;
1099
+ }
1100
+ };
1101
+ });
1102
+
1103
+ var script = {
1104
+ name: 'BStepItem',
1105
+ mixins: [TabbedChildMixin('step')],
1106
+ props: {
1107
+ step: [String, Number],
1108
+ type: [String, Object],
1109
+ clickable: {
1110
+ type: Boolean,
1111
+ default: undefined
1112
+ }
1113
+ },
1114
+ data: function data() {
1115
+ return {
1116
+ elementClass: 'step-item'
1117
+ };
1118
+ }
1119
+ };
1120
+
1121
+ /* script */
1122
+ const __vue_script__ = script;
1123
+
1124
+ /* template */
1125
+
1126
+ /* style */
1127
+ const __vue_inject_styles__ = undefined;
1128
+ /* scoped */
1129
+ const __vue_scope_id__ = undefined;
1130
+ /* module identifier */
1131
+ const __vue_module_identifier__ = undefined;
1132
+ /* functional template */
1133
+ const __vue_is_functional_template__ = undefined;
1134
+ /* style inject */
1135
+
1136
+ /* style inject SSR */
1137
+
1138
+ /* style inject shadow dom */
1139
+
1140
+
1141
+
1142
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
1143
+ {},
1144
+ __vue_inject_styles__,
1145
+ __vue_script__,
1146
+ __vue_scope_id__,
1147
+ __vue_is_functional_template__,
1148
+ __vue_module_identifier__,
1149
+ false,
1150
+ undefined,
1151
+ undefined,
1152
+ undefined
1153
+ );
1154
+
1155
+ var StepItem = __vue_component__;
1156
+
1157
+ var use = function use(plugin) {
1158
+ if (typeof window !== 'undefined' && window.Vue) {
1159
+ window.Vue.use(plugin);
1160
+ }
1161
+ };
1162
+ var registerComponent = function registerComponent(Vue, component) {
1163
+ Vue.component(component.name, component);
1164
+ };
1165
+
1166
+ var Plugin = {
1167
+ install: function install(Vue) {
1168
+ registerComponent(Vue, Steps);
1169
+ registerComponent(Vue, StepItem);
1170
+ }
1171
+ };
1172
+ use(Plugin);
1173
+
1174
+ exports.BStepItem = StepItem;
1175
+ exports.BSteps = Steps;
1176
+ exports["default"] = Plugin;
1177
+
1178
+ Object.defineProperty(exports, '__esModule', { value: true });
1179
+
1180
+ }));