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,923 @@
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.Notification = {}));
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
+
92
+ var config = {
93
+ defaultContainerElement: null,
94
+ defaultIconPack: 'mdi',
95
+ defaultIconComponent: null,
96
+ defaultIconPrev: 'chevron-left',
97
+ defaultIconNext: 'chevron-right',
98
+ defaultLocale: undefined,
99
+ defaultDialogConfirmText: null,
100
+ defaultDialogCancelText: null,
101
+ defaultSnackbarDuration: 3500,
102
+ defaultSnackbarPosition: null,
103
+ defaultToastDuration: 2000,
104
+ defaultToastPosition: null,
105
+ defaultNotificationDuration: 2000,
106
+ defaultNotificationPosition: null,
107
+ defaultTooltipType: 'is-primary',
108
+ defaultTooltipDelay: null,
109
+ defaultTooltipCloseDelay: null,
110
+ defaultSidebarDelay: null,
111
+ defaultInputAutocomplete: 'on',
112
+ defaultDateFormatter: null,
113
+ defaultDateParser: null,
114
+ defaultDateCreator: null,
115
+ defaultTimeCreator: null,
116
+ defaultDayNames: null,
117
+ defaultMonthNames: null,
118
+ defaultFirstDayOfWeek: null,
119
+ defaultUnselectableDaysOfWeek: null,
120
+ defaultTimeFormatter: null,
121
+ defaultTimeParser: null,
122
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
123
+ defaultModalScroll: null,
124
+ defaultDatepickerMobileNative: true,
125
+ defaultTimepickerMobileNative: true,
126
+ defaultTimepickerMobileModal: true,
127
+ defaultNoticeQueue: true,
128
+ defaultInputHasCounter: true,
129
+ defaultTaginputHasCounter: true,
130
+ defaultUseHtml5Validation: true,
131
+ defaultDropdownMobileModal: true,
132
+ defaultFieldLabelPosition: null,
133
+ defaultDatepickerYearsRange: [-100, 10],
134
+ defaultDatepickerNearbyMonthDays: true,
135
+ defaultDatepickerNearbySelectableMonthDays: false,
136
+ defaultDatepickerShowWeekNumber: false,
137
+ defaultDatepickerWeekNumberClickable: false,
138
+ defaultDatepickerMobileModal: true,
139
+ defaultTrapFocus: true,
140
+ defaultAutoFocus: true,
141
+ defaultButtonRounded: false,
142
+ defaultSwitchRounded: true,
143
+ defaultCarouselInterval: 3500,
144
+ defaultTabsExpanded: false,
145
+ defaultTabsAnimated: true,
146
+ defaultTabsType: null,
147
+ defaultStatusIcon: true,
148
+ defaultProgrammaticPromise: false,
149
+ defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],
150
+ defaultImageWebpFallback: null,
151
+ defaultImageLazy: true,
152
+ defaultImageResponsive: true,
153
+ defaultImageRatio: null,
154
+ defaultImageSrcsetFormatter: null,
155
+ defaultBreadcrumbTag: 'a',
156
+ defaultBreadcrumbAlign: 'is-left',
157
+ defaultBreadcrumbSeparator: '',
158
+ defaultBreadcrumbSize: 'is-medium',
159
+ customIconPacks: null
160
+ };
161
+ var VueInstance;
162
+
163
+ /**
164
+ * Merge function to replace Object.assign with deep merging possibility
165
+ */
166
+ var isObject = function isObject(item) {
167
+ return _typeof(item) === 'object' && !Array.isArray(item);
168
+ };
169
+ var mergeFn = function mergeFn(target, source) {
170
+ var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
171
+ if (deep || !Object.assign) {
172
+ var isDeep = function isDeep(prop) {
173
+ return isObject(source[prop]) && target !== null && target.hasOwnProperty(prop) && isObject(target[prop]);
174
+ };
175
+ var replaced = Object.getOwnPropertyNames(source).map(function (prop) {
176
+ return _defineProperty({}, prop, isDeep(prop) ? mergeFn(target[prop], source[prop], deep) : source[prop]);
177
+ }).reduce(function (a, b) {
178
+ return _objectSpread2(_objectSpread2({}, a), b);
179
+ }, {});
180
+ return _objectSpread2(_objectSpread2({}, target), replaced);
181
+ } else {
182
+ return Object.assign(target, source);
183
+ }
184
+ };
185
+ var merge = mergeFn;
186
+ function removeElement(el) {
187
+ if (typeof el.remove !== 'undefined') {
188
+ el.remove();
189
+ } else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) {
190
+ el.parentNode.removeChild(el);
191
+ }
192
+ }
193
+
194
+ var mdiIcons = {
195
+ sizes: {
196
+ 'default': 'mdi-24px',
197
+ 'is-small': null,
198
+ 'is-medium': 'mdi-36px',
199
+ 'is-large': 'mdi-48px'
200
+ },
201
+ iconPrefix: 'mdi-'
202
+ };
203
+ var faIcons = function faIcons() {
204
+ var faIconPrefix = config && config.defaultIconComponent ? '' : 'fa-';
205
+ return {
206
+ sizes: {
207
+ 'default': null,
208
+ 'is-small': null,
209
+ 'is-medium': faIconPrefix + 'lg',
210
+ 'is-large': faIconPrefix + '2x'
211
+ },
212
+ iconPrefix: faIconPrefix,
213
+ internalIcons: {
214
+ 'information': 'info-circle',
215
+ 'alert': 'exclamation-triangle',
216
+ 'alert-circle': 'exclamation-circle',
217
+ 'chevron-right': 'angle-right',
218
+ 'chevron-left': 'angle-left',
219
+ 'chevron-down': 'angle-down',
220
+ 'eye-off': 'eye-slash',
221
+ 'menu-down': 'caret-down',
222
+ 'menu-up': 'caret-up',
223
+ 'close-circle': 'times-circle'
224
+ }
225
+ };
226
+ };
227
+ var getIcons = function getIcons() {
228
+ var icons = {
229
+ mdi: mdiIcons,
230
+ fa: faIcons(),
231
+ fas: faIcons(),
232
+ far: faIcons(),
233
+ fad: faIcons(),
234
+ fab: faIcons(),
235
+ fal: faIcons(),
236
+ 'fa-solid': faIcons(),
237
+ 'fa-regular': faIcons(),
238
+ 'fa-light': faIcons(),
239
+ 'fa-thin': faIcons(),
240
+ 'fa-duotone': faIcons(),
241
+ 'fa-brands': faIcons()
242
+ };
243
+ if (config && config.customIconPacks) {
244
+ icons = merge(icons, config.customIconPacks, true);
245
+ }
246
+ return icons;
247
+ };
248
+ var getIcons$1 = getIcons;
249
+
250
+ var script$2 = {
251
+ name: 'BIcon',
252
+ props: {
253
+ type: [String, Object],
254
+ component: String,
255
+ pack: String,
256
+ icon: String,
257
+ size: String,
258
+ customSize: String,
259
+ customClass: String,
260
+ both: Boolean // This is used internally to show both MDI and FA icon
261
+ },
262
+ computed: {
263
+ iconConfig: function iconConfig() {
264
+ var allIcons = getIcons$1();
265
+ return allIcons[this.newPack];
266
+ },
267
+ iconPrefix: function iconPrefix() {
268
+ if (this.iconConfig && this.iconConfig.iconPrefix) {
269
+ return this.iconConfig.iconPrefix;
270
+ }
271
+ return '';
272
+ },
273
+ /**
274
+ * Internal icon name based on the pack.
275
+ * If pack is 'fa', gets the equivalent FA icon name of the MDI,
276
+ * internal icons are always MDI.
277
+ */
278
+ newIcon: function newIcon() {
279
+ return "".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon));
280
+ },
281
+ newPack: function newPack() {
282
+ return this.pack || config.defaultIconPack;
283
+ },
284
+ newType: function newType() {
285
+ if (!this.type) return;
286
+ var splitType = [];
287
+ if (typeof this.type === 'string') {
288
+ splitType = this.type.split('-');
289
+ } else {
290
+ for (var key in this.type) {
291
+ if (this.type[key]) {
292
+ splitType = key.split('-');
293
+ break;
294
+ }
295
+ }
296
+ }
297
+ if (splitType.length <= 1) return;
298
+ var _splitType = splitType,
299
+ _splitType2 = _toArray(_splitType),
300
+ type = _splitType2.slice(1);
301
+ return "has-text-".concat(type.join('-'));
302
+ },
303
+ newCustomSize: function newCustomSize() {
304
+ return this.customSize || this.customSizeByPack;
305
+ },
306
+ customSizeByPack: function customSizeByPack() {
307
+ if (this.iconConfig && this.iconConfig.sizes) {
308
+ if (this.size && this.iconConfig.sizes[this.size] !== undefined) {
309
+ return this.iconConfig.sizes[this.size];
310
+ } else if (this.iconConfig.sizes.default) {
311
+ return this.iconConfig.sizes.default;
312
+ }
313
+ }
314
+ return null;
315
+ },
316
+ useIconComponent: function useIconComponent() {
317
+ return this.component || config.defaultIconComponent;
318
+ }
319
+ },
320
+ methods: {
321
+ /**
322
+ * Equivalent icon name of the MDI.
323
+ */
324
+ getEquivalentIconOf: function getEquivalentIconOf(value) {
325
+ // Only transform the class if the both prop is set to true
326
+ if (!this.both) {
327
+ return value;
328
+ }
329
+ if (this.iconConfig && this.iconConfig.internalIcons && this.iconConfig.internalIcons[value]) {
330
+ return this.iconConfig.internalIcons[value];
331
+ }
332
+ return value;
333
+ }
334
+ }
335
+ };
336
+
337
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
338
+ if (typeof shadowMode !== 'boolean') {
339
+ createInjectorSSR = createInjector;
340
+ createInjector = shadowMode;
341
+ shadowMode = false;
342
+ }
343
+ // Vue.extend constructor export interop.
344
+ const options = typeof script === 'function' ? script.options : script;
345
+ // render functions
346
+ if (template && template.render) {
347
+ options.render = template.render;
348
+ options.staticRenderFns = template.staticRenderFns;
349
+ options._compiled = true;
350
+ // functional template
351
+ if (isFunctionalTemplate) {
352
+ options.functional = true;
353
+ }
354
+ }
355
+ // scopedId
356
+ if (scopeId) {
357
+ options._scopeId = scopeId;
358
+ }
359
+ let hook;
360
+ if (moduleIdentifier) {
361
+ // server build
362
+ hook = function (context) {
363
+ // 2.3 injection
364
+ context =
365
+ context || // cached call
366
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
367
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
368
+ // 2.2 with runInNewContext: true
369
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
370
+ context = __VUE_SSR_CONTEXT__;
371
+ }
372
+ // inject component styles
373
+ if (style) {
374
+ style.call(this, createInjectorSSR(context));
375
+ }
376
+ // register component module identifier for async chunk inference
377
+ if (context && context._registeredComponents) {
378
+ context._registeredComponents.add(moduleIdentifier);
379
+ }
380
+ };
381
+ // used by ssr in case component is cached and beforeCreate
382
+ // never gets called
383
+ options._ssrRegister = hook;
384
+ }
385
+ else if (style) {
386
+ hook = shadowMode
387
+ ? function (context) {
388
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
389
+ }
390
+ : function (context) {
391
+ style.call(this, createInjector(context));
392
+ };
393
+ }
394
+ if (hook) {
395
+ if (options.functional) {
396
+ // register for functional component in vue file
397
+ const originalRender = options.render;
398
+ options.render = function renderWithStyleInjection(h, context) {
399
+ hook.call(context);
400
+ return originalRender(h, context);
401
+ };
402
+ }
403
+ else {
404
+ // inject component registration as beforeCreate hook
405
+ const existing = options.beforeCreate;
406
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
407
+ }
408
+ }
409
+ return script;
410
+ }
411
+
412
+ /* script */
413
+ const __vue_script__$2 = script$2;
414
+
415
+ /* template */
416
+ var __vue_render__$2 = 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)};
417
+ var __vue_staticRenderFns__$2 = [];
418
+
419
+ /* style */
420
+ const __vue_inject_styles__$2 = undefined;
421
+ /* scoped */
422
+ const __vue_scope_id__$2 = undefined;
423
+ /* module identifier */
424
+ const __vue_module_identifier__$2 = undefined;
425
+ /* functional template */
426
+ const __vue_is_functional_template__$2 = false;
427
+ /* style inject */
428
+
429
+ /* style inject SSR */
430
+
431
+ /* style inject shadow dom */
432
+
433
+
434
+
435
+ const __vue_component__$2 = /*#__PURE__*/normalizeComponent(
436
+ { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },
437
+ __vue_inject_styles__$2,
438
+ __vue_script__$2,
439
+ __vue_scope_id__$2,
440
+ __vue_is_functional_template__$2,
441
+ __vue_module_identifier__$2,
442
+ false,
443
+ undefined,
444
+ undefined,
445
+ undefined
446
+ );
447
+
448
+ var Icon = __vue_component__$2;
449
+
450
+ var MessageMixin = {
451
+ components: _defineProperty({}, Icon.name, Icon),
452
+ // deprecated, to replace with default 'value' in the next breaking change
453
+ model: {
454
+ prop: 'active',
455
+ event: 'update:active'
456
+ },
457
+ props: {
458
+ active: {
459
+ type: Boolean,
460
+ default: true
461
+ },
462
+ title: String,
463
+ closable: {
464
+ type: Boolean,
465
+ default: true
466
+ },
467
+ message: String,
468
+ type: String,
469
+ hasIcon: Boolean,
470
+ size: String,
471
+ icon: String,
472
+ iconPack: String,
473
+ iconSize: String,
474
+ autoClose: {
475
+ type: Boolean,
476
+ default: false
477
+ },
478
+ duration: {
479
+ type: Number,
480
+ default: 2000
481
+ },
482
+ progressBar: {
483
+ type: Boolean,
484
+ default: false
485
+ }
486
+ },
487
+ data: function data() {
488
+ return {
489
+ isActive: this.active,
490
+ remainingTime: this.duration / 1000,
491
+ // in seconds
492
+ newIconSize: this.iconSize || this.size || 'is-large'
493
+ };
494
+ },
495
+ watch: {
496
+ active: function active(value) {
497
+ this.isActive = value;
498
+ },
499
+ isActive: function isActive(value) {
500
+ if (value) {
501
+ this.setAutoClose();
502
+ this.setDurationProgress();
503
+ } else {
504
+ if (this.timer) {
505
+ clearTimeout(this.timer);
506
+ }
507
+ }
508
+ }
509
+ },
510
+ computed: {
511
+ /**
512
+ * Icon name (MDI) based on type.
513
+ */
514
+ computedIcon: function computedIcon() {
515
+ if (this.icon) {
516
+ return this.icon;
517
+ }
518
+ switch (this.type) {
519
+ case 'is-info':
520
+ return 'information';
521
+ case 'is-success':
522
+ return 'check-circle';
523
+ case 'is-warning':
524
+ return 'alert';
525
+ case 'is-danger':
526
+ return 'alert-circle';
527
+ default:
528
+ return null;
529
+ }
530
+ }
531
+ },
532
+ methods: {
533
+ /**
534
+ * Close the Message and emit events.
535
+ */
536
+ close: function close() {
537
+ this.isActive = false;
538
+ this.resetDurationProgress();
539
+ this.$emit('close');
540
+ this.$emit('update:active', false);
541
+ },
542
+ click: function click() {
543
+ this.$emit('click');
544
+ },
545
+ /**
546
+ * Set timer to auto close message
547
+ */
548
+ setAutoClose: function setAutoClose() {
549
+ var _this = this;
550
+ if (this.autoClose) {
551
+ this.timer = setTimeout(function () {
552
+ if (_this.isActive) {
553
+ _this.close();
554
+ }
555
+ }, this.duration);
556
+ }
557
+ },
558
+ setDurationProgress: function setDurationProgress() {
559
+ var _this2 = this;
560
+ if (this.progressBar) {
561
+ /**
562
+ * Runs every one second to set the duration passed before
563
+ * the alert will auto close to show it in the progress bar (Remaining Time)
564
+ */
565
+ this.$buefy.globalNoticeInterval = setInterval(function () {
566
+ if (_this2.remainingTime !== 0) {
567
+ _this2.remainingTime -= 1;
568
+ } else {
569
+ _this2.resetDurationProgress();
570
+ }
571
+ }, 1000);
572
+ }
573
+ },
574
+ resetDurationProgress: function resetDurationProgress() {
575
+ var _this3 = this;
576
+ /**
577
+ * Wait until the component get closed and then reset
578
+ **/
579
+ setTimeout(function () {
580
+ _this3.remainingTime = _this3.duration / 1000;
581
+ clearInterval(_this3.$buefy.globalNoticeInterval);
582
+ }, 100);
583
+ }
584
+ },
585
+ mounted: function mounted() {
586
+ this.setAutoClose();
587
+ }
588
+ };
589
+
590
+ //
591
+ var script$1 = {
592
+ name: 'BNotification',
593
+ mixins: [MessageMixin],
594
+ props: {
595
+ position: String,
596
+ ariaCloseLabel: String,
597
+ animation: {
598
+ type: String,
599
+ default: 'fade'
600
+ }
601
+ }
602
+ };
603
+
604
+ /* script */
605
+ const __vue_script__$1 = script$1;
606
+
607
+ /* template */
608
+ var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[_c('article',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"notification",class:[_vm.type, _vm.position],on:{"click":_vm.click}},[(_vm.closable)?_c('button',{staticClass:"delete",attrs:{"type":"button","aria-label":_vm.ariaCloseLabel},on:{"click":_vm.close}}):_vm._e(),(_vm.$slots.default || _vm.message)?_c('div',{staticClass:"media"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.computedIcon,"pack":_vm.iconPack,"size":_vm.newIconSize,"both":"","aria-hidden":""}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[(_vm.$slots.default)?[_vm._t("default")]:[_c('p',{staticClass:"text",domProps:{"innerHTML":_vm._s(_vm.message)}})]],2)]):_vm._e(),(_vm.autoClose && _vm.progressBar)?_c('b-progress',{staticClass:"auto-close-progress",attrs:{"value":_vm.remainingTime - 1,"max":_vm.duration / 1000 - 1,"type":_vm.type,"rounded":false}}):_vm._e()],1)])};
609
+ var __vue_staticRenderFns__$1 = [];
610
+
611
+ /* style */
612
+ const __vue_inject_styles__$1 = undefined;
613
+ /* scoped */
614
+ const __vue_scope_id__$1 = undefined;
615
+ /* module identifier */
616
+ const __vue_module_identifier__$1 = undefined;
617
+ /* functional template */
618
+ const __vue_is_functional_template__$1 = false;
619
+ /* style inject */
620
+
621
+ /* style inject SSR */
622
+
623
+ /* style inject shadow dom */
624
+
625
+
626
+
627
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
628
+ { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
629
+ __vue_inject_styles__$1,
630
+ __vue_script__$1,
631
+ __vue_scope_id__$1,
632
+ __vue_is_functional_template__$1,
633
+ __vue_module_identifier__$1,
634
+ false,
635
+ undefined,
636
+ undefined,
637
+ undefined
638
+ );
639
+
640
+ var Notification = __vue_component__$1;
641
+
642
+ var NoticeMixin = {
643
+ props: {
644
+ type: {
645
+ type: String,
646
+ default: 'is-dark'
647
+ },
648
+ message: [String, Array],
649
+ duration: Number,
650
+ queue: {
651
+ type: Boolean,
652
+ default: undefined
653
+ },
654
+ indefinite: {
655
+ type: Boolean,
656
+ default: false
657
+ },
658
+ pauseOnHover: {
659
+ type: Boolean,
660
+ default: false
661
+ },
662
+ position: {
663
+ type: String,
664
+ default: 'is-top',
665
+ validator: function validator(value) {
666
+ return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
667
+ }
668
+ },
669
+ container: String
670
+ },
671
+ data: function data() {
672
+ return {
673
+ isActive: false,
674
+ isPaused: false,
675
+ parentTop: null,
676
+ parentBottom: null,
677
+ newContainer: this.container || config.defaultContainerElement
678
+ };
679
+ },
680
+ computed: {
681
+ correctParent: function correctParent() {
682
+ switch (this.position) {
683
+ case 'is-top-right':
684
+ case 'is-top':
685
+ case 'is-top-left':
686
+ return this.parentTop;
687
+ case 'is-bottom-right':
688
+ case 'is-bottom':
689
+ case 'is-bottom-left':
690
+ return this.parentBottom;
691
+ }
692
+ },
693
+ transition: function transition() {
694
+ switch (this.position) {
695
+ case 'is-top-right':
696
+ case 'is-top':
697
+ case 'is-top-left':
698
+ return {
699
+ enter: 'fadeInDown',
700
+ leave: 'fadeOut'
701
+ };
702
+ case 'is-bottom-right':
703
+ case 'is-bottom':
704
+ case 'is-bottom-left':
705
+ return {
706
+ enter: 'fadeInUp',
707
+ leave: 'fadeOut'
708
+ };
709
+ }
710
+ }
711
+ },
712
+ methods: {
713
+ pause: function pause() {
714
+ if (this.pauseOnHover && !this.indefinite) {
715
+ this.isPaused = true;
716
+ clearInterval(this.$buefy.globalNoticeInterval);
717
+ }
718
+ },
719
+ removePause: function removePause() {
720
+ if (this.pauseOnHover && !this.indefinite) {
721
+ this.isPaused = false;
722
+ this.close();
723
+ }
724
+ },
725
+ shouldQueue: function shouldQueue() {
726
+ var queue = this.queue !== undefined ? this.queue : config.defaultNoticeQueue;
727
+ if (!queue) return false;
728
+ return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
729
+ },
730
+ click: function click() {
731
+ this.$emit('click');
732
+ },
733
+ close: function close() {
734
+ var _this = this;
735
+ if (!this.isPaused) {
736
+ clearTimeout(this.timer);
737
+ this.isActive = false;
738
+ this.$emit('close');
739
+
740
+ // Timeout for the animation complete before destroying
741
+ setTimeout(function () {
742
+ _this.$destroy();
743
+ removeElement(_this.$el);
744
+ }, 150);
745
+ }
746
+ },
747
+ timeoutCallback: function timeoutCallback() {
748
+ return this.close();
749
+ },
750
+ showNotice: function showNotice() {
751
+ var _this2 = this;
752
+ if (this.shouldQueue()) this.correctParent.innerHTML = '';
753
+ this.correctParent.insertAdjacentElement('afterbegin', this.$el);
754
+ this.isActive = true;
755
+ if (!this.indefinite) {
756
+ this.timer = setTimeout(function () {
757
+ return _this2.timeoutCallback();
758
+ }, this.newDuration);
759
+ }
760
+ },
761
+ setupContainer: function setupContainer() {
762
+ this.parentTop = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-top');
763
+ this.parentBottom = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-bottom');
764
+ if (this.parentTop && this.parentBottom) return;
765
+ if (!this.parentTop) {
766
+ this.parentTop = document.createElement('div');
767
+ this.parentTop.className = 'notices is-top';
768
+ }
769
+ if (!this.parentBottom) {
770
+ this.parentBottom = document.createElement('div');
771
+ this.parentBottom.className = 'notices is-bottom';
772
+ }
773
+ var container = document.querySelector(this.newContainer) || document.body;
774
+ container.appendChild(this.parentTop);
775
+ container.appendChild(this.parentBottom);
776
+ if (this.newContainer) {
777
+ this.parentTop.classList.add('has-custom-container');
778
+ this.parentBottom.classList.add('has-custom-container');
779
+ }
780
+ }
781
+ },
782
+ beforeMount: function beforeMount() {
783
+ this.setupContainer();
784
+ },
785
+ mounted: function mounted() {
786
+ this.showNotice();
787
+ }
788
+ };
789
+
790
+ //
791
+ var script = {
792
+ name: 'BNotificationNotice',
793
+ mixins: [NoticeMixin],
794
+ data: function data() {
795
+ return {
796
+ newDuration: this.duration || config.defaultNotificationDuration
797
+ };
798
+ },
799
+ methods: {
800
+ close: function close() {
801
+ var _this = this;
802
+ if (!this.isPaused) {
803
+ clearTimeout(this.timer);
804
+ this.$refs.notification.isActive = false;
805
+ this.$emit('close');
806
+
807
+ // Timeout for the animation complete before destroying
808
+ setTimeout(function () {
809
+ _this.$destroy();
810
+ removeElement(_this.$el);
811
+ }, 150);
812
+ }
813
+ }
814
+ }
815
+ };
816
+
817
+ /* script */
818
+ const __vue_script__ = script;
819
+
820
+ /* template */
821
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-notification',_vm._b({ref:"notification",on:{"click":_vm.click,"close":_vm.close},nativeOn:{"mouseenter":function($event){return _vm.pause($event)},"mouseleave":function($event){return _vm.removePause($event)}}},'b-notification',_vm.$options.propsData,false),[_vm._t("default")],2)};
822
+ var __vue_staticRenderFns__ = [];
823
+
824
+ /* style */
825
+ const __vue_inject_styles__ = undefined;
826
+ /* scoped */
827
+ const __vue_scope_id__ = undefined;
828
+ /* module identifier */
829
+ const __vue_module_identifier__ = undefined;
830
+ /* functional template */
831
+ const __vue_is_functional_template__ = false;
832
+ /* style inject */
833
+
834
+ /* style inject SSR */
835
+
836
+ /* style inject shadow dom */
837
+
838
+
839
+
840
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
841
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
842
+ __vue_inject_styles__,
843
+ __vue_script__,
844
+ __vue_scope_id__,
845
+ __vue_is_functional_template__,
846
+ __vue_module_identifier__,
847
+ false,
848
+ undefined,
849
+ undefined,
850
+ undefined
851
+ );
852
+
853
+ var NotificationNotice = __vue_component__;
854
+
855
+ var use = function use(plugin) {
856
+ if (typeof window !== 'undefined' && window.Vue) {
857
+ window.Vue.use(plugin);
858
+ }
859
+ };
860
+ var registerComponent = function registerComponent(Vue, component) {
861
+ Vue.component(component.name, component);
862
+ };
863
+ var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
864
+ if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};
865
+ Vue.prototype.$buefy[property] = component;
866
+ };
867
+
868
+ var localVueInstance;
869
+ var NotificationProgrammatic = {
870
+ open: function open(params) {
871
+ var parent;
872
+ if (typeof params === 'string') {
873
+ params = {
874
+ message: params
875
+ };
876
+ }
877
+ var defaultParam = {
878
+ position: config.defaultNotificationPosition || 'is-top-right'
879
+ };
880
+ if (params.parent) {
881
+ parent = params.parent;
882
+ delete params.parent;
883
+ }
884
+ var slot;
885
+ if (Array.isArray(params.message)) {
886
+ slot = params.message;
887
+ delete params.message;
888
+ }
889
+ // fix animation
890
+ params.active = false;
891
+ var propsData = merge(defaultParam, params);
892
+ var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;
893
+ var NotificationNoticeComponent = vm.extend(NotificationNotice);
894
+ var component = new NotificationNoticeComponent({
895
+ parent: parent,
896
+ el: document.createElement('div'),
897
+ propsData: propsData
898
+ });
899
+ if (slot) {
900
+ component.$slots.default = slot;
901
+ component.$forceUpdate();
902
+ }
903
+ // fix animation
904
+ component.$children[0].isActive = true;
905
+ return component;
906
+ }
907
+ };
908
+ var Plugin = {
909
+ install: function install(Vue) {
910
+ localVueInstance = Vue;
911
+ registerComponent(Vue, Notification);
912
+ registerComponentProgrammatic(Vue, 'notification', NotificationProgrammatic);
913
+ }
914
+ };
915
+ use(Plugin);
916
+
917
+ exports.BNotification = Notification;
918
+ exports.NotificationProgrammatic = NotificationProgrammatic;
919
+ exports["default"] = Plugin;
920
+
921
+ Object.defineProperty(exports, '__esModule', { value: true });
922
+
923
+ }));