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,630 @@
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.Tooltip = {}));
6
+ })(this, (function (exports) { 'use strict';
7
+
8
+ function _typeof(o) {
9
+ "@babel/helpers - typeof";
10
+
11
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
12
+ return typeof o;
13
+ } : function (o) {
14
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
15
+ }, _typeof(o);
16
+ }
17
+ function _unsupportedIterableToArray(o, minLen) {
18
+ if (!o) return;
19
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
20
+ var n = Object.prototype.toString.call(o).slice(8, -1);
21
+ if (n === "Object" && o.constructor) n = o.constructor.name;
22
+ if (n === "Map" || n === "Set") return Array.from(o);
23
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
24
+ }
25
+ function _arrayLikeToArray(arr, len) {
26
+ if (len == null || len > arr.length) len = arr.length;
27
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
28
+ return arr2;
29
+ }
30
+ function _createForOfIteratorHelper(o, allowArrayLike) {
31
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
32
+ if (!it) {
33
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
34
+ if (it) o = it;
35
+ var i = 0;
36
+ var F = function () {};
37
+ return {
38
+ s: F,
39
+ n: function () {
40
+ if (i >= o.length) return {
41
+ done: true
42
+ };
43
+ return {
44
+ done: false,
45
+ value: o[i++]
46
+ };
47
+ },
48
+ e: function (e) {
49
+ throw e;
50
+ },
51
+ f: F
52
+ };
53
+ }
54
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55
+ }
56
+ var normalCompletion = true,
57
+ didErr = false,
58
+ err;
59
+ return {
60
+ s: function () {
61
+ it = it.call(o);
62
+ },
63
+ n: function () {
64
+ var step = it.next();
65
+ normalCompletion = step.done;
66
+ return step;
67
+ },
68
+ e: function (e) {
69
+ didErr = true;
70
+ err = e;
71
+ },
72
+ f: function () {
73
+ try {
74
+ if (!normalCompletion && it.return != null) it.return();
75
+ } finally {
76
+ if (didErr) throw err;
77
+ }
78
+ }
79
+ };
80
+ }
81
+
82
+ var config = {
83
+ defaultContainerElement: null,
84
+ defaultIconPack: 'mdi',
85
+ defaultIconComponent: null,
86
+ defaultIconPrev: 'chevron-left',
87
+ defaultIconNext: 'chevron-right',
88
+ defaultLocale: undefined,
89
+ defaultDialogConfirmText: null,
90
+ defaultDialogCancelText: null,
91
+ defaultSnackbarDuration: 3500,
92
+ defaultSnackbarPosition: null,
93
+ defaultToastDuration: 2000,
94
+ defaultToastPosition: null,
95
+ defaultNotificationDuration: 2000,
96
+ defaultNotificationPosition: null,
97
+ defaultTooltipType: 'is-primary',
98
+ defaultTooltipDelay: null,
99
+ defaultTooltipCloseDelay: null,
100
+ defaultSidebarDelay: null,
101
+ defaultInputAutocomplete: 'on',
102
+ defaultDateFormatter: null,
103
+ defaultDateParser: null,
104
+ defaultDateCreator: null,
105
+ defaultTimeCreator: null,
106
+ defaultDayNames: null,
107
+ defaultMonthNames: null,
108
+ defaultFirstDayOfWeek: null,
109
+ defaultUnselectableDaysOfWeek: null,
110
+ defaultTimeFormatter: null,
111
+ defaultTimeParser: null,
112
+ defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
113
+ defaultModalScroll: null,
114
+ defaultDatepickerMobileNative: true,
115
+ defaultTimepickerMobileNative: true,
116
+ defaultTimepickerMobileModal: true,
117
+ defaultNoticeQueue: true,
118
+ defaultInputHasCounter: true,
119
+ defaultTaginputHasCounter: true,
120
+ defaultUseHtml5Validation: true,
121
+ defaultDropdownMobileModal: true,
122
+ defaultFieldLabelPosition: null,
123
+ defaultDatepickerYearsRange: [-100, 10],
124
+ defaultDatepickerNearbyMonthDays: true,
125
+ defaultDatepickerNearbySelectableMonthDays: false,
126
+ defaultDatepickerShowWeekNumber: false,
127
+ defaultDatepickerWeekNumberClickable: false,
128
+ defaultDatepickerMobileModal: true,
129
+ defaultTrapFocus: true,
130
+ defaultAutoFocus: true,
131
+ defaultButtonRounded: false,
132
+ defaultSwitchRounded: true,
133
+ defaultCarouselInterval: 3500,
134
+ defaultTabsExpanded: false,
135
+ defaultTabsAnimated: true,
136
+ defaultTabsType: null,
137
+ defaultStatusIcon: true,
138
+ defaultProgrammaticPromise: false,
139
+ defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],
140
+ defaultImageWebpFallback: null,
141
+ defaultImageLazy: true,
142
+ defaultImageResponsive: true,
143
+ defaultImageRatio: null,
144
+ defaultImageSrcsetFormatter: null,
145
+ defaultBreadcrumbTag: 'a',
146
+ defaultBreadcrumbAlign: 'is-left',
147
+ defaultBreadcrumbSeparator: '',
148
+ defaultBreadcrumbSize: 'is-medium',
149
+ customIconPacks: null
150
+ };
151
+
152
+ function removeElement(el) {
153
+ if (typeof el.remove !== 'undefined') {
154
+ el.remove();
155
+ } else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) {
156
+ el.parentNode.removeChild(el);
157
+ }
158
+ }
159
+ function createAbsoluteElement(el) {
160
+ var root = document.createElement('div');
161
+ root.style.position = 'absolute';
162
+ root.style.left = '0px';
163
+ root.style.top = '0px';
164
+ root.style.width = '100%';
165
+ var wrapper = document.createElement('div');
166
+ root.appendChild(wrapper);
167
+ wrapper.appendChild(el);
168
+ document.body.appendChild(root);
169
+ return root;
170
+ }
171
+
172
+ var script = {
173
+ name: 'BTooltip',
174
+ props: {
175
+ active: {
176
+ type: Boolean,
177
+ default: true
178
+ },
179
+ type: {
180
+ type: String,
181
+ default: function _default() {
182
+ return config.defaultTooltipType;
183
+ }
184
+ },
185
+ label: String,
186
+ delay: {
187
+ type: Number,
188
+ default: function _default() {
189
+ return config.defaultTooltipDelay;
190
+ }
191
+ },
192
+ closeDelay: {
193
+ type: Number,
194
+ default: function _default() {
195
+ return config.defaultTooltipCloseDelay;
196
+ }
197
+ },
198
+ position: {
199
+ type: String,
200
+ default: 'is-top',
201
+ validator: function validator(value) {
202
+ return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;
203
+ }
204
+ },
205
+ triggers: {
206
+ type: Array,
207
+ default: function _default() {
208
+ return ['hover'];
209
+ }
210
+ },
211
+ always: Boolean,
212
+ square: Boolean,
213
+ dashed: Boolean,
214
+ multilined: Boolean,
215
+ size: {
216
+ type: String,
217
+ default: 'is-medium'
218
+ },
219
+ appendToBody: Boolean,
220
+ animated: {
221
+ type: Boolean,
222
+ default: true
223
+ },
224
+ animation: {
225
+ type: String,
226
+ default: 'fade'
227
+ },
228
+ contentClass: String,
229
+ autoClose: {
230
+ type: [Array, Boolean],
231
+ default: true
232
+ }
233
+ },
234
+ data: function data() {
235
+ return {
236
+ isActive: false,
237
+ triggerStyle: {},
238
+ timer: null,
239
+ _bodyEl: undefined,
240
+ // Used to append to body
241
+ resizeObserver: undefined,
242
+ resizeListener: undefined,
243
+ timeOutID: null
244
+ };
245
+ },
246
+ computed: {
247
+ rootClasses: function rootClasses() {
248
+ return ['b-tooltip', this.type, this.position, this.size, {
249
+ 'is-square': this.square,
250
+ 'is-always': this.always,
251
+ 'is-multiline': this.multilined,
252
+ 'is-dashed': this.dashed
253
+ }];
254
+ },
255
+ newAnimation: function newAnimation() {
256
+ return this.animated ? this.animation : undefined;
257
+ }
258
+ },
259
+ watch: {
260
+ isActive: function isActive() {
261
+ this.$emit(this.isActive ? 'open' : 'close');
262
+ if (this.appendToBody) {
263
+ this.updateAppendToBody();
264
+ }
265
+ }
266
+ },
267
+ methods: {
268
+ updateAppendToBody: function updateAppendToBody() {
269
+ var tooltip = this.$refs.tooltip;
270
+ var trigger = this.$refs.trigger;
271
+ if (tooltip && trigger) {
272
+ // update wrapper tooltip
273
+ var tooltipEl = this.$data._bodyEl.children[0];
274
+ tooltipEl.classList.forEach(function (item) {
275
+ return tooltipEl.classList.remove(item);
276
+ });
277
+ if (this.$vnode && this.$vnode.data && this.$vnode.data.staticClass) {
278
+ tooltipEl.classList.add(this.$vnode.data.staticClass);
279
+ }
280
+ this.rootClasses.forEach(function (item) {
281
+ if (_typeof(item) === 'object') {
282
+ for (var key in item) {
283
+ if (item[key]) {
284
+ tooltipEl.classList.add(key);
285
+ }
286
+ }
287
+ } else {
288
+ tooltipEl.classList.add(item);
289
+ }
290
+ });
291
+ var rect = trigger.getBoundingClientRect();
292
+ var top = rect.top + window.scrollY;
293
+ var left = rect.left + window.scrollX;
294
+
295
+ // `tooltipEl` will be placed relative to `wrapper`
296
+ // because `wrapper` should create a stacking context
297
+ // as its z-index is non-auto
298
+ tooltipEl.style.position = 'absolute';
299
+ switch (this.position) {
300
+ case 'is-top':
301
+ tooltipEl.style.width = "".concat(trigger.clientWidth, "px");
302
+ tooltipEl.style.height = '0px';
303
+ tooltipEl.style.top = '0px';
304
+ tooltipEl.style.left = '0px';
305
+ break;
306
+ case 'is-bottom':
307
+ tooltipEl.style.width = "".concat(trigger.clientWidth, "px");
308
+ tooltipEl.style.height = '0px';
309
+ tooltipEl.style.top = "".concat(trigger.clientHeight, "px");
310
+ tooltipEl.style.left = '0px';
311
+ break;
312
+ case 'is-left':
313
+ tooltipEl.style.width = '0px';
314
+ tooltipEl.style.height = "".concat(trigger.clientHeight, "px");
315
+ tooltipEl.style.top = '0px';
316
+ tooltipEl.style.left = '0px';
317
+ break;
318
+ case 'is-right':
319
+ tooltipEl.style.width = '0px';
320
+ tooltipEl.style.height = "".concat(trigger.clientHeight, "px");
321
+ tooltipEl.style.top = '0px';
322
+ tooltipEl.style.left = "".concat(trigger.clientWidth, "px");
323
+ break;
324
+ }
325
+ var wrapper = this.$data._bodyEl;
326
+ wrapper.style.position = 'absolute';
327
+ wrapper.style.top = "".concat(top, "px");
328
+ wrapper.style.left = "".concat(left, "px");
329
+ wrapper.style.width = '0px';
330
+ wrapper.style.zIndex = this.isActive || this.always ? '99' : '-1';
331
+ this.triggerStyle = {
332
+ zIndex: this.isActive || this.always ? '100' : undefined
333
+ };
334
+ }
335
+ },
336
+ onClick: function onClick() {
337
+ var _this = this;
338
+ if (this.triggers.indexOf('click') < 0) return;
339
+ // if not active, toggle after clickOutside event
340
+ // this fixes toggling programmatic
341
+ this.$nextTick(function () {
342
+ _this.timeOutID = setTimeout(function () {
343
+ return _this.open();
344
+ });
345
+ });
346
+ },
347
+ onHover: function onHover() {
348
+ if (this.triggers.indexOf('hover') < 0) return;
349
+ this.open();
350
+ },
351
+ onContextMenu: function onContextMenu(e) {
352
+ if (this.triggers.indexOf('contextmenu') < 0) return;
353
+ e.preventDefault();
354
+ this.open();
355
+ },
356
+ onFocus: function onFocus() {
357
+ if (this.triggers.indexOf('focus') < 0) return;
358
+ this.open();
359
+ },
360
+ open: function open() {
361
+ var _this2 = this;
362
+ if (this.delay) {
363
+ this.timer = setTimeout(function () {
364
+ _this2.isActive = true;
365
+ _this2.timer = null;
366
+ }, this.delay);
367
+ } else {
368
+ this.isActive = true;
369
+ }
370
+ },
371
+ close: function close() {
372
+ var _this3 = this;
373
+ if (typeof this.autoClose === 'boolean') {
374
+ if (this.autoClose && this.timer) clearTimeout(this.timer);
375
+ if (this.closeDelay) {
376
+ this.timer = setTimeout(function () {
377
+ _this3.isActive = !_this3.autoClose;
378
+ _this3.timer = null;
379
+ }, this.closeDelay);
380
+ } else {
381
+ this.isActive = !this.autoClose;
382
+ }
383
+ }
384
+ },
385
+ /**
386
+ * Close tooltip if clicked outside.
387
+ */
388
+ clickedOutside: function clickedOutside(event) {
389
+ if (this.isActive) {
390
+ if (Array.isArray(this.autoClose)) {
391
+ if (this.autoClose.includes('outside')) {
392
+ if (!this.isInWhiteList(event.target)) {
393
+ this.isActive = false;
394
+ return;
395
+ }
396
+ }
397
+ if (this.autoClose.includes('inside')) {
398
+ if (this.isInWhiteList(event.target)) this.isActive = false;
399
+ }
400
+ }
401
+ }
402
+ },
403
+ /**
404
+ * Keypress event that is bound to the document
405
+ */
406
+ keyPress: function keyPress(_ref) {
407
+ var key = _ref.key;
408
+ if (this.isActive && (key === 'Escape' || key === 'Esc')) {
409
+ if (Array.isArray(this.autoClose)) {
410
+ if (this.autoClose.indexOf('escape') >= 0) this.isActive = false;
411
+ }
412
+ }
413
+ },
414
+ /**
415
+ * White-listed items to not close when clicked.
416
+ */
417
+ isInWhiteList: function isInWhiteList(el) {
418
+ if (el === this.$refs.content) return true;
419
+ // All chidren from content
420
+ if (this.$refs.content !== undefined) {
421
+ var children = this.$refs.content.querySelectorAll('*');
422
+ var _iterator = _createForOfIteratorHelper(children),
423
+ _step;
424
+ try {
425
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
426
+ var child = _step.value;
427
+ if (el === child) {
428
+ return true;
429
+ }
430
+ }
431
+ } catch (err) {
432
+ _iterator.e(err);
433
+ } finally {
434
+ _iterator.f();
435
+ }
436
+ }
437
+ return false;
438
+ }
439
+ },
440
+ mounted: function mounted() {
441
+ var _this4 = this;
442
+ this.controller = new window.AbortController();
443
+ if (this.appendToBody && typeof window !== 'undefined') {
444
+ this.$data._bodyEl = createAbsoluteElement(this.$refs.content);
445
+ this.updateAppendToBody();
446
+ // updates the tooltip position if the tooltip is inside
447
+ // `.animation-content`
448
+ var animation = this.$el.closest('.animation-content');
449
+ if (animation != null) {
450
+ var listener = function listener() {
451
+ _this4.updateAppendToBody();
452
+ animation.removeEventListener('transitionend', listener);
453
+ };
454
+ animation.addEventListener('transitionend', listener, {
455
+ signal: this.controller.signal
456
+ });
457
+ }
458
+ // observes changes in the window size
459
+ this.resizeListener = function () {
460
+ return _this4.updateAppendToBody();
461
+ };
462
+ window.addEventListener('resize', this.resizeListener);
463
+ // observes changes in the size of the immediate parent
464
+ this.resizeObserver = new ResizeObserver(this.resizeListener);
465
+ if (this.$el.parentNode != null && this.$el.parentNode.nodeType === Node.ELEMENT_NODE) {
466
+ this.resizeObserver.observe(this.$el.parentNode);
467
+ }
468
+ }
469
+ },
470
+ created: function created() {
471
+ if (typeof window !== 'undefined') {
472
+ document.addEventListener('click', this.clickedOutside);
473
+ document.addEventListener('keyup', this.keyPress);
474
+ }
475
+ },
476
+ beforeDestroy: function beforeDestroy() {
477
+ if (typeof window !== 'undefined') {
478
+ document.removeEventListener('click', this.clickedOutside);
479
+ document.removeEventListener('keyup', this.keyPress);
480
+ }
481
+ if (this.resizeListener != null) {
482
+ window.removeEventListener('resize', this.resizeListener);
483
+ }
484
+ if (this.resizeObserver != null) {
485
+ this.resizeObserver.disconnect();
486
+ }
487
+ if (this.appendToBody) {
488
+ removeElement(this.$data._bodyEl);
489
+ }
490
+ this.controller.abort();
491
+ clearTimeout(this.timer);
492
+ clearTimeout(this.timeOutID);
493
+ }
494
+ };
495
+
496
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
497
+ if (typeof shadowMode !== 'boolean') {
498
+ createInjectorSSR = createInjector;
499
+ createInjector = shadowMode;
500
+ shadowMode = false;
501
+ }
502
+ // Vue.extend constructor export interop.
503
+ const options = typeof script === 'function' ? script.options : script;
504
+ // render functions
505
+ if (template && template.render) {
506
+ options.render = template.render;
507
+ options.staticRenderFns = template.staticRenderFns;
508
+ options._compiled = true;
509
+ // functional template
510
+ if (isFunctionalTemplate) {
511
+ options.functional = true;
512
+ }
513
+ }
514
+ // scopedId
515
+ if (scopeId) {
516
+ options._scopeId = scopeId;
517
+ }
518
+ let hook;
519
+ if (moduleIdentifier) {
520
+ // server build
521
+ hook = function (context) {
522
+ // 2.3 injection
523
+ context =
524
+ context || // cached call
525
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
526
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
527
+ // 2.2 with runInNewContext: true
528
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
529
+ context = __VUE_SSR_CONTEXT__;
530
+ }
531
+ // inject component styles
532
+ if (style) {
533
+ style.call(this, createInjectorSSR(context));
534
+ }
535
+ // register component module identifier for async chunk inference
536
+ if (context && context._registeredComponents) {
537
+ context._registeredComponents.add(moduleIdentifier);
538
+ }
539
+ };
540
+ // used by ssr in case component is cached and beforeCreate
541
+ // never gets called
542
+ options._ssrRegister = hook;
543
+ }
544
+ else if (style) {
545
+ hook = shadowMode
546
+ ? function (context) {
547
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
548
+ }
549
+ : function (context) {
550
+ style.call(this, createInjector(context));
551
+ };
552
+ }
553
+ if (hook) {
554
+ if (options.functional) {
555
+ // register for functional component in vue file
556
+ const originalRender = options.render;
557
+ options.render = function renderWithStyleInjection(h, context) {
558
+ hook.call(context);
559
+ return originalRender(h, context);
560
+ };
561
+ }
562
+ else {
563
+ // inject component registration as beforeCreate hook
564
+ const existing = options.beforeCreate;
565
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
566
+ }
567
+ }
568
+ return script;
569
+ }
570
+
571
+ /* script */
572
+ const __vue_script__ = script;
573
+
574
+ /* template */
575
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"tooltip",class:_vm.rootClasses},[_c('transition',{attrs:{"name":_vm.newAnimation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active && (_vm.isActive || _vm.always)),expression:"active && (isActive || always)"}],ref:"content",class:['tooltip-content', _vm.contentClass]},[(_vm.label)?[_vm._v(_vm._s(_vm.label))]:(_vm.$slots.content)?[_vm._t("content")]:_vm._e()],2)]),_c('div',{ref:"trigger",staticClass:"tooltip-trigger",style:(_vm.triggerStyle),on:{"click":_vm.onClick,"contextmenu":_vm.onContextMenu,"mouseenter":_vm.onHover,"!focus":function($event){return _vm.onFocus($event)},"!blur":function($event){return _vm.close($event)},"mouseleave":_vm.close}},[_vm._t("default")],2)],1)};
576
+ var __vue_staticRenderFns__ = [];
577
+
578
+ /* style */
579
+ const __vue_inject_styles__ = undefined;
580
+ /* scoped */
581
+ const __vue_scope_id__ = undefined;
582
+ /* module identifier */
583
+ const __vue_module_identifier__ = undefined;
584
+ /* functional template */
585
+ const __vue_is_functional_template__ = false;
586
+ /* style inject */
587
+
588
+ /* style inject SSR */
589
+
590
+ /* style inject shadow dom */
591
+
592
+
593
+
594
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
595
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
596
+ __vue_inject_styles__,
597
+ __vue_script__,
598
+ __vue_scope_id__,
599
+ __vue_is_functional_template__,
600
+ __vue_module_identifier__,
601
+ false,
602
+ undefined,
603
+ undefined,
604
+ undefined
605
+ );
606
+
607
+ var Tooltip = __vue_component__;
608
+
609
+ var use = function use(plugin) {
610
+ if (typeof window !== 'undefined' && window.Vue) {
611
+ window.Vue.use(plugin);
612
+ }
613
+ };
614
+ var registerComponent = function registerComponent(Vue, component) {
615
+ Vue.component(component.name, component);
616
+ };
617
+
618
+ var Plugin = {
619
+ install: function install(Vue) {
620
+ registerComponent(Vue, Tooltip);
621
+ }
622
+ };
623
+ use(Plugin);
624
+
625
+ exports.BTooltip = Tooltip;
626
+ exports["default"] = Plugin;
627
+
628
+ Object.defineProperty(exports, '__esModule', { value: true });
629
+
630
+ }));
@@ -0,0 +1,2 @@
1
+ /*! Buefy v0.9.28 | MIT License | github.com/buefy/buefy */
2
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Tooltip={})}(this,(function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,s=function(){};return{s:s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){a=!0,r=t},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw r}}}}var o="is-primary",s=null,r=null;function l(t,e,i,n,o,s,r,l,a,c){"boolean"!=typeof r&&(a=l,l=r,r=!1);const d="function"==typeof i?i.options:i;let u;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),n&&(d._scopeId=n),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,a(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},d._ssrRegister=u):e&&(u=r?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(d.functional){const t=d.render;d.render=function(e,i){return u.call(i),t(e,i)}}else{const t=d.beforeCreate;d.beforeCreate=t?[].concat(t,u):[u]}return i}var a,c=l({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"tooltip",class:t.rootClasses},[i("transition",{attrs:{name:t.newAnimation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.active&&(t.isActive||t.always),expression:"active && (isActive || always)"}],ref:"content",class:["tooltip-content",t.contentClass]},[t.label?[t._v(t._s(t.label))]:t.$slots.content?[t._t("content")]:t._e()],2)]),i("div",{ref:"trigger",staticClass:"tooltip-trigger",style:t.triggerStyle,on:{click:t.onClick,contextmenu:t.onContextMenu,mouseenter:t.onHover,"!focus":function(e){return t.onFocus(e)},"!blur":function(e){return t.close(e)},mouseleave:t.close}},[t._t("default")],2)],1)},staticRenderFns:[]},undefined,{name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return o}},label:String,delay:{type:Number,default:function(){return s}},closeDelay:{type:Number,default:function(){return r}},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},triggers:{type:Array,default:function(){return["hover"]}},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},data:function(){return{isActive:!1,triggerStyle:{},timer:null,_bodyEl:void 0,resizeObserver:void 0,resizeListener:void 0,timeOutID:null}},computed:{rootClasses:function(){return["b-tooltip",this.type,this.position,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation:function(){return this.animated?this.animation:void 0}},watch:{isActive:function(){this.$emit(this.isActive?"open":"close"),this.appendToBody&&this.updateAppendToBody()}},methods:{updateAppendToBody:function(){var t=this.$refs.tooltip,i=this.$refs.trigger;if(t&&i){var n=this.$data._bodyEl.children[0];n.classList.forEach((function(t){return n.classList.remove(t)})),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if("object"===e(t))for(var i in t)t[i]&&n.classList.add(i);else n.classList.add(t)}));var o=i.getBoundingClientRect(),s=o.top+window.scrollY,r=o.left+window.scrollX;switch(n.style.position="absolute",this.position){case"is-top":n.style.width="".concat(i.clientWidth,"px"),n.style.height="0px",n.style.top="0px",n.style.left="0px";break;case"is-bottom":n.style.width="".concat(i.clientWidth,"px"),n.style.height="0px",n.style.top="".concat(i.clientHeight,"px"),n.style.left="0px";break;case"is-left":n.style.width="0px",n.style.height="".concat(i.clientHeight,"px"),n.style.top="0px",n.style.left="0px";break;case"is-right":n.style.width="0px",n.style.height="".concat(i.clientHeight,"px"),n.style.top="0px",n.style.left="".concat(i.clientWidth,"px")}var l=this.$data._bodyEl;l.style.position="absolute",l.style.top="".concat(s,"px"),l.style.left="".concat(r,"px"),l.style.width="0px",l.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick:function(){var t=this;this.triggers.indexOf("click")<0||this.$nextTick((function(){t.timeOutID=setTimeout((function(){return t.open()}))}))},onHover:function(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu:function(t){this.triggers.indexOf("contextmenu")<0||(t.preventDefault(),this.open())},onFocus:function(){this.triggers.indexOf("focus")<0||this.open()},open:function(){var t=this;this.delay?this.timer=setTimeout((function(){t.isActive=!0,t.timer=null}),this.delay):this.isActive=!0},close:function(){var t=this;"boolean"==typeof this.autoClose&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout((function(){t.isActive=!t.autoClose,t.timer=null}),this.closeDelay):this.isActive=!this.autoClose)},clickedOutside:function(t){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(t.target))return void(this.isActive=!1);this.autoClose.includes("inside")&&this.isInWhiteList(t.target)&&(this.isActive=!1)}},keyPress:function(t){var e=t.key;!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList:function(t){if(t===this.$refs.content)return!0;if(void 0!==this.$refs.content){var e,i=n(this.$refs.content.querySelectorAll("*"));try{for(i.s();!(e=i.n()).done;){if(t===e.value)return!0}}catch(t){i.e(t)}finally{i.f()}}return!1}},mounted:function(){var t=this;if(this.controller=new window.AbortController,this.appendToBody&&"undefined"!=typeof window){this.$data._bodyEl=function(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.width="100%";var i=document.createElement("div");return e.appendChild(i),i.appendChild(t),document.body.appendChild(e),e}(this.$refs.content),this.updateAppendToBody();var e=this.$el.closest(".animation-content");if(null!=e){e.addEventListener("transitionend",(function i(){t.updateAppendToBody(),e.removeEventListener("transitionend",i)}),{signal:this.controller.signal})}this.resizeListener=function(){return t.updateAppendToBody()},window.addEventListener("resize",this.resizeListener),this.resizeObserver=new ResizeObserver(this.resizeListener),null!=this.$el.parentNode&&this.$el.parentNode.nodeType===Node.ELEMENT_NODE&&this.resizeObserver.observe(this.$el.parentNode)}},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){var t;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),null!=this.resizeListener&&window.removeEventListener("resize",this.resizeListener),null!=this.resizeObserver&&this.resizeObserver.disconnect(),this.appendToBody&&(void 0!==(t=this.$data._bodyEl).remove?t.remove():void 0!==t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)),this.controller.abort(),clearTimeout(this.timer),clearTimeout(this.timeOutID)}},undefined,false,undefined,!1,void 0,void 0,void 0),d={install:function(t){!function(t,e){t.component(e.name,e)}(t,c)}};a=d,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),t.BTooltip=c,t.default=d,Object.defineProperty(t,"__esModule",{value:!0})}));