buefy 0.9.9 → 0.9.13
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.
- package/CHANGELOG.md +1639 -1609
- package/dist/buefy.css +20 -2
- package/dist/buefy.esm.js +2227 -1869
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +2266 -1907
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +6 -6
- package/dist/cjs/breadcrumb.js +127 -0
- package/dist/cjs/button.js +6 -107
- package/dist/cjs/carousel.js +9 -7
- package/dist/cjs/checkbox.js +5 -5
- package/dist/cjs/{chunk-d33a8a78.js → chunk-114191ae.js} +3 -3
- package/dist/cjs/{chunk-dafdb70c.js → chunk-2062216d.js} +39 -3
- package/dist/cjs/{chunk-64efc596.js → chunk-2911aa4b.js} +20 -16
- package/dist/cjs/{chunk-96ab31c1.js → chunk-2ae50815.js} +7 -7
- package/dist/cjs/{chunk-c3032504.js → chunk-2c7de785.js} +3 -3
- package/dist/cjs/{chunk-50ff3a78.js → chunk-30670fac.js} +96 -15
- package/dist/cjs/{chunk-e57b3891.js → chunk-34949503.js} +2 -2
- package/dist/cjs/{chunk-0abd2223.js → chunk-3b43d77a.js} +2 -2
- package/dist/cjs/{chunk-dcdbe2e8.js → chunk-3cc5d9a6.js} +1 -1
- package/dist/cjs/{chunk-0b57168e.js → chunk-61023b09.js} +3 -3
- package/dist/cjs/chunk-6cb902f8.js +314 -0
- package/dist/cjs/{chunk-adb01a93.js → chunk-7da0c017.js} +26 -24
- package/dist/cjs/{chunk-60255743.js → chunk-9103eeda.js} +4 -0
- package/dist/cjs/{chunk-14c82365.js → chunk-92621ff7.js} +37 -0
- package/dist/cjs/{chunk-816cba7a.js → chunk-9e4cf4c5.js} +1 -1
- package/dist/cjs/{chunk-33b9d1cf.js → chunk-a11294f9.js} +27 -26
- package/dist/cjs/{chunk-430b5370.js → chunk-bfcad370.js} +25 -2
- package/dist/cjs/{chunk-cc470e7c.js → chunk-c6fbc7b4.js} +7 -7
- package/dist/cjs/{chunk-993f89de.js → chunk-c7b2aa4b.js} +5 -4
- package/dist/cjs/{chunk-6474e963.js → chunk-d0f8ea39.js} +9 -9
- package/dist/cjs/{chunk-3acb500b.js → chunk-d120e215.js} +2 -2
- package/dist/cjs/{chunk-f5baaa70.js → chunk-d54e40f6.js} +2 -1
- package/dist/cjs/{chunk-916a2858.js → chunk-f5106717.js} +4 -4
- package/dist/cjs/chunk-fe2f57ee.js +110 -0
- package/dist/cjs/{chunk-2571dc7c.js → chunk-fefd7b77.js} +0 -0
- package/dist/cjs/clockpicker.js +11 -11
- package/dist/cjs/config.js +2 -2
- package/dist/cjs/datepicker.js +12 -12
- package/dist/cjs/datetimepicker.js +22 -15
- package/dist/cjs/dialog.js +13 -11
- package/dist/cjs/dropdown.js +8 -8
- package/dist/cjs/field.js +5 -5
- package/dist/cjs/helpers.js +2 -3
- package/dist/cjs/icon.js +3 -3
- package/dist/cjs/image.js +6 -311
- package/dist/cjs/index.js +29 -23
- package/dist/cjs/input.js +5 -5
- package/dist/cjs/loading.js +6 -6
- package/dist/cjs/menu.js +3 -3
- package/dist/cjs/message.js +6 -6
- package/dist/cjs/modal.js +6 -6
- package/dist/cjs/navbar.js +16 -4
- package/dist/cjs/notification.js +23 -11
- package/dist/cjs/numberinput.js +9 -7
- package/dist/cjs/pagination.js +8 -8
- package/dist/cjs/progress.js +10 -6
- package/dist/cjs/radio.js +3 -3
- package/dist/cjs/rate.js +3 -3
- package/dist/cjs/select.js +7 -7
- package/dist/cjs/sidebar.js +2 -2
- package/dist/cjs/slider.js +4 -4
- package/dist/cjs/snackbar.js +5 -5
- package/dist/cjs/steps.js +8 -8
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +13 -13
- package/dist/cjs/tabs.js +8 -8
- package/dist/cjs/tag.js +3 -3
- package/dist/cjs/taginput.js +34 -22
- package/dist/cjs/timepicker.js +13 -13
- package/dist/cjs/toast.js +5 -5
- package/dist/cjs/tooltip.js +5 -5
- package/dist/cjs/upload.js +5 -5
- package/dist/components/autocomplete/index.js +98 -13
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +293 -0
- package/dist/components/breadcrumb/index.min.js +2 -0
- package/dist/components/button/index.js +5 -1
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +348 -15
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +54 -47
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/datepicker/index.js +41 -32
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +75 -58
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +126 -18
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +5 -1
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +29 -23
- package/dist/components/field/index.min.js +2 -2
- package/dist/components/icon/index.js +5 -1
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +463 -444
- package/dist/components/image/index.min.js +2 -2
- package/dist/components/input/index.js +5 -1
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +2 -2
- package/dist/components/loading/index.min.js +2 -2
- package/dist/components/menu/index.js +5 -1
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +43 -3
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +7 -2
- package/dist/components/modal/index.min.js +2 -2
- package/dist/components/navbar/index.js +16 -4
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +59 -6
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +9 -3
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +5 -1
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +10 -2
- package/dist/components/progress/index.min.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +5 -1
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +5 -1
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +5 -1
- package/dist/components/sidebar/index.min.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +5 -1
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +7 -2
- package/dist/components/snackbar/index.min.js +2 -2
- package/dist/components/steps/index.js +5 -1
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +5 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +6 -2
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +5 -1
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +26 -3
- package/dist/components/tag/index.min.js +2 -2
- package/dist/components/taginput/index.js +185 -29
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +54 -47
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +7 -2
- package/dist/components/toast/index.min.js +2 -2
- package/dist/components/tooltip/index.js +5 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +5 -1
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +7 -7
- package/dist/esm/breadcrumb.js +122 -0
- package/dist/esm/button.js +6 -107
- package/dist/esm/carousel.js +7 -5
- package/dist/esm/{chunk-56040896.js → chunk-18e8b067.js} +3 -3
- package/dist/esm/{chunk-fa404a2c.js → chunk-21fc0948.js} +7 -7
- package/dist/esm/{chunk-f9299099.js → chunk-22e9f916.js} +19 -15
- package/dist/esm/{chunk-1fafdf15.js → chunk-2452e3d3.js} +37 -1
- package/dist/esm/{chunk-1297c2c9.js → chunk-29ca0df8.js} +1 -1
- package/dist/esm/{chunk-3c2169d7.js → chunk-2f2f0a74.js} +25 -2
- package/dist/esm/{chunk-cf72ce36.js → chunk-3773c62d.js} +2 -2
- package/dist/esm/{chunk-2c957994.js → chunk-4b67a181.js} +3 -3
- package/dist/esm/{chunk-45740cdc.js → chunk-6019fd7a.js} +96 -15
- package/dist/esm/chunk-71a547bc.js +312 -0
- package/dist/esm/{chunk-516e4877.js → chunk-75a5af93.js} +1 -1
- package/dist/esm/{chunk-4e380ee2.js → chunk-799e084d.js} +2 -1
- package/dist/esm/{chunk-37678809.js → chunk-83eb0d37.js} +3 -3
- package/dist/esm/{chunk-34c74085.js → chunk-8d0f95b8.js} +4 -4
- package/dist/esm/{chunk-652f2dad.js → chunk-8ed29c41.js} +4 -0
- package/dist/esm/{chunk-742a9694.js → chunk-9f7f7441.js} +3 -2
- package/dist/esm/{chunk-f160efb9.js → chunk-ae8ab23a.js} +4 -4
- package/dist/esm/{chunk-c3b09672.js → chunk-b07e3182.js} +26 -24
- package/dist/esm/{chunk-e36a4f2c.js → chunk-b0c0c6b0.js} +0 -0
- package/dist/esm/{chunk-ee935ae6.js → chunk-c9c58d0c.js} +1 -1
- package/dist/esm/{chunk-1d62828e.js → chunk-d7f92d97.js} +39 -3
- package/dist/esm/{chunk-7fd02ffe.js → chunk-d92f0cd9.js} +2 -2
- package/dist/esm/chunk-e7c9b2cb.js +108 -0
- package/dist/esm/{chunk-0e22ae0a.js → chunk-ece062a7.js} +27 -26
- package/dist/esm/clockpicker.js +9 -9
- package/dist/esm/config.js +2 -2
- package/dist/esm/datepicker.js +11 -11
- package/dist/esm/datetimepicker.js +21 -14
- package/dist/esm/dialog.js +10 -8
- package/dist/esm/dropdown.js +5 -5
- package/dist/esm/field.js +4 -4
- package/dist/esm/helpers.js +2 -3
- package/dist/esm/icon.js +4 -4
- package/dist/esm/image.js +6 -311
- package/dist/esm/index.js +106 -100
- package/dist/esm/input.js +6 -6
- package/dist/esm/loading.js +4 -4
- package/dist/esm/menu.js +3 -3
- package/dist/esm/message.js +5 -5
- package/dist/esm/modal.js +4 -4
- package/dist/esm/navbar.js +16 -4
- package/dist/esm/notification.js +22 -10
- package/dist/esm/numberinput.js +9 -7
- package/dist/esm/pagination.js +5 -5
- package/dist/esm/progress.js +8 -4
- package/dist/esm/rate.js +3 -3
- package/dist/esm/select.js +6 -6
- package/dist/esm/sidebar.js +2 -2
- package/dist/esm/slider.js +3 -3
- package/dist/esm/snackbar.js +4 -4
- package/dist/esm/steps.js +6 -6
- package/dist/esm/switch.js +1 -1
- package/dist/esm/table.js +9 -9
- package/dist/esm/tabs.js +6 -6
- package/dist/esm/tag.js +2 -2
- package/dist/esm/taginput.js +33 -21
- package/dist/esm/timepicker.js +12 -12
- package/dist/esm/toast.js +4 -4
- package/dist/esm/tooltip.js +4 -4
- package/dist/esm/upload.js +3 -3
- package/dist/vetur/attributes.json +95 -19
- package/dist/vetur/tags.json +37 -4
- package/package.json +2 -2
- package/src/components/autocomplete/Autocomplete.spec.js +70 -0
- package/src/components/autocomplete/Autocomplete.vue +93 -18
- package/src/components/breadcrumb/Breadcrumb.spec.js +63 -0
- package/src/components/breadcrumb/Breadcrumb.vue +43 -0
- package/src/components/breadcrumb/BreadcrumbItem.spec.js +25 -0
- package/src/components/breadcrumb/BreadcrumbItem.vue +33 -0
- package/src/components/breadcrumb/__snapshots__/Breadcrumb.spec.js.snap +7 -0
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +7 -0
- package/src/components/breadcrumb/index.js +20 -0
- package/src/components/carousel/CarouselList.vue +3 -1
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +128 -8
- package/src/components/clockpicker/Clockpicker.vue +259 -259
- package/src/components/datepicker/Datepicker.vue +10 -6
- package/src/components/datetimepicker/Datetimepicker.vue +8 -1
- package/src/components/dialog/Dialog.vue +10 -10
- package/src/components/field/Field.vue +271 -270
- package/src/components/image/Image.spec.js +197 -183
- package/src/components/image/Image.vue +4 -2
- package/src/components/index.js +2 -0
- package/src/components/loading/Loading.vue +1 -1
- package/src/components/loading/__snapshots__/Loading.spec.js.snap +1 -1
- package/src/components/message/Message.vue +7 -1
- package/src/components/message/__snapshots__/Message.spec.js.snap +1 -0
- package/src/components/modal/Modal.vue +2 -0
- package/src/components/navbar/Navbar.vue +5 -1
- package/src/components/navbar/NavbarBurger.vue +1 -0
- package/src/components/navbar/NavbarDropdown.vue +8 -2
- package/src/components/navbar/__snapshots__/NavBar.spec.js.snap +11 -11
- package/src/components/navbar/__snapshots__/NavBarBurger.spec.js.snap +3 -0
- package/src/components/navbar/__snapshots__/NavbarDropdown.spec.js.snap +1 -1
- package/src/components/notification/Notification.vue +6 -0
- package/src/components/notification/NotificationNotice.vue +16 -3
- package/src/components/notification/__snapshots__/Notification.spec.js.snap +1 -0
- package/src/components/numberinput/Numberinput.spec.js +10 -0
- package/src/components/numberinput/Numberinput.vue +4 -2
- package/src/components/progress/Progress.vue +6 -2
- package/src/components/snackbar/Snackbar.vue +2 -0
- package/src/components/tag/Tag.vue +25 -2
- package/src/components/tag/__snapshots__/Tag.spec.js.snap +1 -1
- package/src/components/taginput/Taginput.spec.js +57 -1
- package/src/components/taginput/Taginput.vue +373 -364
- package/src/components/toast/Toast.vue +1 -1
- package/src/index.js +2 -0
- package/src/scss/buefy.scss +1 -0
- package/src/scss/components/_loading.scss +2 -1
- package/src/scss/components/_message.scss +3 -0
- package/src/scss/components/_notification.scss +8 -0
- package/src/scss/components/_progress.scss +8 -0
- package/src/utils/MessageMixin.js +32 -1
- package/src/utils/NoticeMixin.js +1 -0
- package/src/utils/TimepickerMixin.js +718 -716
- package/src/utils/config.js +4 -0
- package/src/utils/helpers.js +1 -2
- package/types/components.d.ts +5 -0
- package/src/components/navbar/__snapshots__/NavbarBurger.spec.js.snap +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty, b as _typeof, d as _toConsumableArray } from './chunk-
|
|
1
|
+
import { _ as _defineProperty, b as _typeof, d as _toConsumableArray } from './chunk-2452e3d3.js';
|
|
2
2
|
import { getValueByPath, toCssWidth, isCustomElement, createAbsoluteElement, removeElement } from './helpers.js';
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
3
|
+
import { F as FormElementMixin } from './chunk-75a5af93.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
|
-
import { I as Input } from './chunk-
|
|
5
|
+
import { I as Input } from './chunk-ae8ab23a.js';
|
|
6
6
|
|
|
7
7
|
var script = {
|
|
8
8
|
name: 'BAutocomplete',
|
|
@@ -48,12 +48,16 @@ var script = {
|
|
|
48
48
|
default: function _default() {
|
|
49
49
|
return ['Tab', 'Enter'];
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
},
|
|
52
|
+
selectableHeader: Boolean,
|
|
53
|
+
selectableFooter: Boolean
|
|
52
54
|
},
|
|
53
55
|
data: function data() {
|
|
54
56
|
return {
|
|
55
57
|
selected: null,
|
|
56
58
|
hovered: null,
|
|
59
|
+
headerHovered: null,
|
|
60
|
+
footerHovered: null,
|
|
57
61
|
isActive: false,
|
|
58
62
|
newValue: this.value,
|
|
59
63
|
newAutocomplete: this.autocomplete || 'off',
|
|
@@ -271,9 +275,9 @@ var script = {
|
|
|
271
275
|
newValue: function newValue(value) {
|
|
272
276
|
this.$emit('input', value); // Check if selected is invalid
|
|
273
277
|
|
|
274
|
-
var currentValue = this.getValue(this.selected);
|
|
278
|
+
var currentValue = this.getValue(this.selected);
|
|
275
279
|
|
|
276
|
-
if (
|
|
280
|
+
if (currentValue && currentValue !== value) {
|
|
277
281
|
this.setSelected(null, false);
|
|
278
282
|
} // Close dropdown if input is clear or else open it
|
|
279
283
|
|
|
@@ -333,7 +337,14 @@ var script = {
|
|
|
333
337
|
this.$emit('select', this.selected, event);
|
|
334
338
|
|
|
335
339
|
if (this.selected !== null) {
|
|
336
|
-
|
|
340
|
+
if (this.clearOnSelect) {
|
|
341
|
+
var input = this.$refs.input;
|
|
342
|
+
input.newValue = '';
|
|
343
|
+
input.$refs.input.value = '';
|
|
344
|
+
} else {
|
|
345
|
+
this.newValue = this.getValue(this.selected);
|
|
346
|
+
}
|
|
347
|
+
|
|
337
348
|
this.setHovered(null);
|
|
338
349
|
}
|
|
339
350
|
|
|
@@ -370,20 +381,51 @@ var script = {
|
|
|
370
381
|
if (key === 'Enter') event.preventDefault(); // Close dropdown on Tab & no hovered
|
|
371
382
|
|
|
372
383
|
if (key === 'Escape' || key === 'Tab') {
|
|
373
|
-
event.preventDefault();
|
|
374
384
|
this.isActive = false;
|
|
375
385
|
}
|
|
376
386
|
|
|
377
|
-
if (this.hovered === null) return;
|
|
378
|
-
|
|
379
387
|
if (this.confirmKeys.indexOf(key) >= 0) {
|
|
380
388
|
// If adding by comma, don't add the comma to the input
|
|
381
389
|
if (key === ',') event.preventDefault(); // Close dropdown on select by Tab
|
|
382
390
|
|
|
383
391
|
var closeDropdown = !this.keepOpen || key === 'Tab';
|
|
392
|
+
|
|
393
|
+
if (this.hovered === null) {
|
|
394
|
+
// header and footer uses headerHovered && footerHovered. If header or footer
|
|
395
|
+
// was selected then fire event otherwise just return so a value isn't selected
|
|
396
|
+
this.checkIfHeaderOrFooterSelected(event, null, closeDropdown);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
|
|
384
400
|
this.setSelected(this.hovered, closeDropdown, event);
|
|
385
401
|
}
|
|
386
402
|
},
|
|
403
|
+
selectHeaderOrFoterByClick: function selectHeaderOrFoterByClick(event, origin) {
|
|
404
|
+
this.checkIfHeaderOrFooterSelected(event, {
|
|
405
|
+
origin: origin
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Check if header or footer was selected.
|
|
411
|
+
*/
|
|
412
|
+
checkIfHeaderOrFooterSelected: function checkIfHeaderOrFooterSelected(event, triggerClick) {
|
|
413
|
+
var closeDropdown = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
414
|
+
|
|
415
|
+
if (this.selectableHeader && (this.headerHovered || triggerClick && triggerClick.origin === 'header')) {
|
|
416
|
+
this.$emit('select-header', event);
|
|
417
|
+
this.headerHovered = false;
|
|
418
|
+
if (triggerClick) this.setHovered(null);
|
|
419
|
+
if (closeDropdown) this.isActive = false;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (this.selectableFooter && (this.footerHovered || triggerClick && triggerClick.origin === 'footer')) {
|
|
423
|
+
this.$emit('select-footer', event);
|
|
424
|
+
this.footerHovered = false;
|
|
425
|
+
if (triggerClick) this.setHovered(null);
|
|
426
|
+
if (closeDropdown) this.isActive = false;
|
|
427
|
+
}
|
|
428
|
+
},
|
|
387
429
|
|
|
388
430
|
/**
|
|
389
431
|
* Close dropdown if clicked outside.
|
|
@@ -461,12 +503,51 @@ var script = {
|
|
|
461
503
|
}).reduce(function (a, b) {
|
|
462
504
|
return [].concat(_toConsumableArray(a), _toConsumableArray(b));
|
|
463
505
|
}, []);
|
|
464
|
-
|
|
506
|
+
|
|
507
|
+
if (this.hasHeaderSlot && this.selectableHeader) {
|
|
508
|
+
data.unshift(undefined);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
if (this.hasFooterSlot && this.selectableFooter) {
|
|
512
|
+
data.push(undefined);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
var index;
|
|
516
|
+
|
|
517
|
+
if (this.headerHovered) {
|
|
518
|
+
index = 0 + sum;
|
|
519
|
+
} else if (this.footerHovered) {
|
|
520
|
+
index = data.length - 1 + sum;
|
|
521
|
+
} else {
|
|
522
|
+
index = data.indexOf(this.hovered) + sum;
|
|
523
|
+
}
|
|
524
|
+
|
|
465
525
|
index = index > data.length - 1 ? data.length - 1 : index;
|
|
466
526
|
index = index < 0 ? 0 : index;
|
|
467
|
-
this.
|
|
527
|
+
this.footerHovered = false;
|
|
528
|
+
this.headerHovered = false;
|
|
529
|
+
this.setHovered(data[index] !== undefined ? data[index] : null);
|
|
530
|
+
|
|
531
|
+
if (this.hasFooterSlot && this.selectableFooter && index === data.length - 1) {
|
|
532
|
+
this.footerHovered = true;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (this.hasHeaderSlot && this.selectableHeader && index === 0) {
|
|
536
|
+
this.headerHovered = true;
|
|
537
|
+
}
|
|
538
|
+
|
|
468
539
|
var list = this.$refs.dropdown.querySelector('.dropdown-content');
|
|
469
|
-
var
|
|
540
|
+
var querySelectorText = 'a.dropdown-item:not(.is-disabled)';
|
|
541
|
+
|
|
542
|
+
if (this.hasHeaderSlot && this.selectableHeader) {
|
|
543
|
+
querySelectorText += ',div.dropdown-header';
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (this.hasFooterSlot && this.selectableFooter) {
|
|
547
|
+
querySelectorText += ',div.dropdown-footer';
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
var element = list.querySelectorAll(querySelectorText)[index];
|
|
470
551
|
if (!element) return;
|
|
471
552
|
var visMin = list.scrollTop;
|
|
472
553
|
var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
|
|
@@ -510,7 +591,7 @@ var script = {
|
|
|
510
591
|
this.hasFocus = false;
|
|
511
592
|
this.$emit('blur', event);
|
|
512
593
|
},
|
|
513
|
-
onInput: function onInput(
|
|
594
|
+
onInput: function onInput() {
|
|
514
595
|
var currentValue = this.getValue(this.selected);
|
|
515
596
|
if (currentValue && currentValue === this.newValue) return;
|
|
516
597
|
this.$emit('typing', this.newValue);
|
|
@@ -623,7 +704,7 @@ var script = {
|
|
|
623
704
|
const __vue_script__ = script;
|
|
624
705
|
|
|
625
706
|
/* template */
|
|
626
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{ 'is-expanded': _vm.expanded }},[_c('b-input',_vm._b({ref:"input",attrs:{"type":_vm.type,"size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-right":_vm.newIconRight,"icon-right-clickable":_vm.newIconRightClickable,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":false,"aria-autocomplete":_vm.ariaAutocomplete},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur,"icon-right-click":_vm.rightIconClick,"icon-click":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{"keydown":[function($event){return _vm.keydown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.keyArrows('up')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.keyArrows('down')}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (!_vm.isEmpty || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item"},[_vm._t("header")],2):_vm._e(),_vm._l((_vm.computedData),function(element,groupindex){return [(element.group)?_c('div',{key:groupindex + 'group',staticClass:"dropdown-item"},[(_vm.hasGroupSlot)?_vm._t("group",null,{"group":element.group,"index":groupindex}):_c('span',{staticClass:"has-text-weight-bold"},[_vm._v(" "+_vm._s(element.group)+" ")])],2):_vm._e(),_vm._l((element.items),function(option,index){return _c('a',{key:groupindex + ':' + index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.setSelected(option,
|
|
707
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"autocomplete control",class:{ 'is-expanded': _vm.expanded }},[_c('b-input',_vm._b({ref:"input",attrs:{"type":_vm.type,"size":_vm.size,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-right":_vm.newIconRight,"icon-right-clickable":_vm.newIconRightClickable,"icon-pack":_vm.iconPack,"maxlength":_vm.maxlength,"autocomplete":_vm.newAutocomplete,"use-html5-validation":false,"aria-autocomplete":_vm.ariaAutocomplete},on:{"input":_vm.onInput,"focus":_vm.focused,"blur":_vm.onBlur,"icon-right-click":_vm.rightIconClick,"icon-click":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{"keydown":[function($event){return _vm.keydown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.keyArrows('up')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.keyArrows('down')}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:"newValue"}},'b-input',_vm.$attrs,false)),_c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive && (!_vm.isEmpty || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:"isActive && (!isEmpty || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"dropdown-content",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:"dropdown-item dropdown-header",class:{ 'is-hovered': _vm.headerHovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.selectHeaderOrFoterByClick($event, 'header')}}},[_vm._t("header")],2):_vm._e(),_vm._l((_vm.computedData),function(element,groupindex){return [(element.group)?_c('div',{key:groupindex + 'group',staticClass:"dropdown-item"},[(_vm.hasGroupSlot)?_vm._t("group",null,{"group":element.group,"index":groupindex}):_c('span',{staticClass:"has-text-weight-bold"},[_vm._v(" "+_vm._s(element.group)+" ")])],2):_vm._e(),_vm._l((element.items),function(option,index){return _c('a',{key:groupindex + ':' + index,staticClass:"dropdown-item",class:{ 'is-hovered': option === _vm.hovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){$event.stopPropagation();return _vm.setSelected(option, !_vm.keepOpen, $event)}}},[(_vm.hasDefaultSlot)?_vm._t("default",null,{"option":option,"index":index}):_c('span',[_vm._v(" "+_vm._s(_vm.getValue(option, true))+" ")])],2)})]}),(_vm.isEmpty && _vm.hasEmptySlot)?_c('div',{staticClass:"dropdown-item is-disabled"},[_vm._t("empty")],2):_vm._e(),(_vm.hasFooterSlot)?_c('div',{staticClass:"dropdown-item dropdown-footer",class:{ 'is-hovered': _vm.footerHovered },attrs:{"role":"button","tabindex":"0"},on:{"click":function($event){return _vm.selectHeaderOrFoterByClick($event, 'footer')}}},[_vm._t("footer")],2):_vm._e()],2)])])],1)};
|
|
627
708
|
var __vue_staticRenderFns__ = [];
|
|
628
709
|
|
|
629
710
|
/* style */
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { isWebpSupported } from './helpers.js';
|
|
3
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
4
|
+
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
|
+
|
|
6
|
+
var script = {
|
|
7
|
+
name: 'BImage',
|
|
8
|
+
props: {
|
|
9
|
+
src: String,
|
|
10
|
+
alt: String,
|
|
11
|
+
srcFallback: String,
|
|
12
|
+
webpFallback: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: function _default() {
|
|
15
|
+
return config.defaultImageWebpFallback;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
lazy: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: function _default() {
|
|
21
|
+
return config.defaultImageLazy;
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
responsive: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: function _default() {
|
|
27
|
+
return config.defaultImageResponsive;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
ratio: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: function _default() {
|
|
33
|
+
return config.defaultImageRatio;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
placeholder: String,
|
|
37
|
+
srcset: String,
|
|
38
|
+
srcsetSizes: Array,
|
|
39
|
+
srcsetFormatter: {
|
|
40
|
+
type: Function,
|
|
41
|
+
default: function _default(src, size, vm) {
|
|
42
|
+
if (typeof config.defaultImageSrcsetFormatter === 'function') {
|
|
43
|
+
return config.defaultImageSrcsetFormatter(src, size);
|
|
44
|
+
} else {
|
|
45
|
+
return vm.formatSrcset(src, size);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
rounded: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false
|
|
52
|
+
},
|
|
53
|
+
captionFirst: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
customClass: String
|
|
58
|
+
},
|
|
59
|
+
data: function data() {
|
|
60
|
+
return {
|
|
61
|
+
clientWidth: 0,
|
|
62
|
+
webpSupportVerified: false,
|
|
63
|
+
webpSupported: false,
|
|
64
|
+
useNativeLazy: false,
|
|
65
|
+
observer: null,
|
|
66
|
+
inViewPort: false,
|
|
67
|
+
bulmaKnownRatio: ['square', '1by1', '5by4', '4by3', '3by2', '5by3', '16by9', 'b2y1', '3by1', '4by5', '3by4', '2by3', '3by5', '9by16', '1by2', '1by3'],
|
|
68
|
+
loaded: false,
|
|
69
|
+
failed: false
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
computed: {
|
|
73
|
+
ratioPattern: function ratioPattern() {
|
|
74
|
+
return new RegExp(/([0-9]+)by([0-9]+)/);
|
|
75
|
+
},
|
|
76
|
+
hasRatio: function hasRatio() {
|
|
77
|
+
return this.ratio && this.ratioPattern.test(this.ratio);
|
|
78
|
+
},
|
|
79
|
+
figureClasses: function figureClasses() {
|
|
80
|
+
var classes = {
|
|
81
|
+
image: this.responsive
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) >= 0) {
|
|
85
|
+
classes["is-".concat(this.ratio)] = true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return classes;
|
|
89
|
+
},
|
|
90
|
+
figureStyles: function figureStyles() {
|
|
91
|
+
if (this.hasRatio && this.bulmaKnownRatio.indexOf(this.ratio) < 0) {
|
|
92
|
+
var ratioValues = this.ratioPattern.exec(this.ratio);
|
|
93
|
+
return {
|
|
94
|
+
paddingTop: "".concat(ratioValues[2] / ratioValues[1] * 100, "%")
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
imgClasses: function imgClasses() {
|
|
99
|
+
return _defineProperty({
|
|
100
|
+
'is-rounded': this.rounded,
|
|
101
|
+
'has-ratio': this.hasRatio
|
|
102
|
+
}, this.customClass, !!this.customClass);
|
|
103
|
+
},
|
|
104
|
+
srcExt: function srcExt() {
|
|
105
|
+
return this.getExt(this.src);
|
|
106
|
+
},
|
|
107
|
+
isWepb: function isWepb() {
|
|
108
|
+
return this.srcExt === 'webp';
|
|
109
|
+
},
|
|
110
|
+
computedSrc: function computedSrc() {
|
|
111
|
+
var src = this.src;
|
|
112
|
+
|
|
113
|
+
if (this.failed && this.srcFallback) {
|
|
114
|
+
src = this.srcFallback;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (!this.webpSupported && this.isWepb && this.webpFallback) {
|
|
118
|
+
if (this.webpFallback.startsWith('.')) {
|
|
119
|
+
return src.replace(/\.webp/gi, "".concat(this.webpFallback));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return this.webpFallback;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return src;
|
|
126
|
+
},
|
|
127
|
+
computedWidth: function computedWidth() {
|
|
128
|
+
if (this.responsive && this.clientWidth > 0) {
|
|
129
|
+
return this.clientWidth;
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
computedNativeLazy: function computedNativeLazy() {
|
|
133
|
+
if (this.lazy && this.useNativeLazy) {
|
|
134
|
+
return 'lazy';
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
isDisplayed: function isDisplayed() {
|
|
138
|
+
return (this.webpSupportVerified || !this.isWepb) && (!this.lazy || this.useNativeLazy || this.inViewPort);
|
|
139
|
+
},
|
|
140
|
+
placeholderExt: function placeholderExt() {
|
|
141
|
+
if (this.placeholder) {
|
|
142
|
+
return this.getExt(this.placeholder);
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
isPlaceholderWepb: function isPlaceholderWepb() {
|
|
146
|
+
if (this.placeholder) {
|
|
147
|
+
return this.placeholderExt === 'webp';
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
computedPlaceholder: function computedPlaceholder() {
|
|
151
|
+
if (!this.webpSupported && this.isPlaceholderWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
|
|
152
|
+
return this.placeholder.replace(/\.webp/gi, "".concat(this.webpFallback));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return this.placeholder;
|
|
156
|
+
},
|
|
157
|
+
isPlaceholderDisplayed: function isPlaceholderDisplayed() {
|
|
158
|
+
return !this.loaded && (this.$slots.placeholder || this.placeholder && (this.webpSupportVerified || !this.isPlaceholderWepb));
|
|
159
|
+
},
|
|
160
|
+
computedSrcset: function computedSrcset() {
|
|
161
|
+
var _this = this;
|
|
162
|
+
|
|
163
|
+
if (this.srcset) {
|
|
164
|
+
if (!this.webpSupported && this.isWepb && this.webpFallback && this.webpFallback.startsWith('.')) {
|
|
165
|
+
return this.srcset.replace(/\.webp/gi, "".concat(this.webpFallback));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return this.srcset;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (this.srcsetSizes && Array.isArray(this.srcsetSizes) && this.srcsetSizes.length > 0) {
|
|
172
|
+
return this.srcsetSizes.map(function (size) {
|
|
173
|
+
return "".concat(_this.srcsetFormatter(_this.computedSrc, size, _this), " ").concat(size, "w");
|
|
174
|
+
}).join(',');
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
computedSizes: function computedSizes() {
|
|
178
|
+
if (this.computedSrcset && this.computedWidth) {
|
|
179
|
+
return "".concat(this.computedWidth, "px");
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
isCaptionFirst: function isCaptionFirst() {
|
|
183
|
+
return this.$slots.caption && this.captionFirst;
|
|
184
|
+
},
|
|
185
|
+
isCaptionLast: function isCaptionLast() {
|
|
186
|
+
return this.$slots.caption && !this.captionFirst;
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
getExt: function getExt(filename) {
|
|
191
|
+
var clean = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
192
|
+
|
|
193
|
+
if (filename) {
|
|
194
|
+
var noParam = clean ? filename.split('?')[0] : filename;
|
|
195
|
+
return noParam.split('.').pop();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return '';
|
|
199
|
+
},
|
|
200
|
+
setWidth: function setWidth() {
|
|
201
|
+
this.clientWidth = this.$el.clientWidth;
|
|
202
|
+
},
|
|
203
|
+
formatSrcset: function formatSrcset(src, size) {
|
|
204
|
+
var ext = this.getExt(src, false);
|
|
205
|
+
var name = src.split('.').slice(0, -1).join('.');
|
|
206
|
+
return "".concat(name, "-").concat(size, ".").concat(ext);
|
|
207
|
+
},
|
|
208
|
+
onLoad: function onLoad(event) {
|
|
209
|
+
this.loaded = true;
|
|
210
|
+
this.emit('load', event);
|
|
211
|
+
},
|
|
212
|
+
onError: function onError(event) {
|
|
213
|
+
this.emit('error', event);
|
|
214
|
+
|
|
215
|
+
if (!this.failed) {
|
|
216
|
+
this.failed = true;
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
emit: function emit(eventName, event) {
|
|
220
|
+
var target = event.target;
|
|
221
|
+
this.$emit(eventName, event, target.currentSrc || target.src || this.computedSrc);
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
created: function created() {
|
|
225
|
+
var _this2 = this;
|
|
226
|
+
|
|
227
|
+
if (this.isWepb) {
|
|
228
|
+
isWebpSupported().then(function (supported) {
|
|
229
|
+
_this2.webpSupportVerified = true;
|
|
230
|
+
_this2.webpSupported = supported;
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (this.lazy) {
|
|
235
|
+
// We use native lazy loading if supported
|
|
236
|
+
// We try to use Intersection Observer if native lazy loading is not supported
|
|
237
|
+
// We use the lazy attribute anyway if we cannot detect support (SSR for example).
|
|
238
|
+
var nativeLazySupported = typeof window !== 'undefined' && 'HTMLImageElement' in window && 'loading' in HTMLImageElement.prototype;
|
|
239
|
+
var intersectionObserverSupported = typeof window !== 'undefined' && 'IntersectionObserver' in window;
|
|
240
|
+
|
|
241
|
+
if (!nativeLazySupported && intersectionObserverSupported) {
|
|
242
|
+
this.observer = new IntersectionObserver(function (events) {
|
|
243
|
+
var _events$ = events[0],
|
|
244
|
+
target = _events$.target,
|
|
245
|
+
isIntersecting = _events$.isIntersecting;
|
|
246
|
+
|
|
247
|
+
if (isIntersecting && !_this2.inViewPort) {
|
|
248
|
+
_this2.inViewPort = true;
|
|
249
|
+
|
|
250
|
+
_this2.observer.unobserve(target);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
} else {
|
|
254
|
+
this.useNativeLazy = true;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
mounted: function mounted() {
|
|
259
|
+
if (this.lazy && this.observer) {
|
|
260
|
+
this.observer.observe(this.$el);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
this.setWidth();
|
|
264
|
+
|
|
265
|
+
if (typeof window !== 'undefined') {
|
|
266
|
+
window.addEventListener('resize', this.setWidth);
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
beforeDestroy: function beforeDestroy() {
|
|
270
|
+
if (this.observer) {
|
|
271
|
+
this.observer.disconnect();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (typeof window !== 'undefined') {
|
|
275
|
+
window.removeEventListener('resize', this.setWidth);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/* script */
|
|
281
|
+
const __vue_script__ = script;
|
|
282
|
+
|
|
283
|
+
/* template */
|
|
284
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('figure',{staticClass:"b-image-wrapper",class:_vm.figureClasses,style:(_vm.figureStyles)},[(_vm.isCaptionFirst)?_c('figcaption',[_vm._t("caption")],2):_vm._e(),_c('transition',{attrs:{"name":"fade"}},[(_vm.isDisplayed)?_c('img',{class:_vm.imgClasses,attrs:{"srcset":_vm.computedSrcset,"src":_vm.computedSrc,"alt":_vm.alt,"width":_vm.computedWidth,"sizes":_vm.computedSizes,"loading":_vm.computedNativeLazy},on:{"load":_vm.onLoad,"error":_vm.onError}}):_vm._e()]),_c('transition',{attrs:{"name":"fade"}},[(_vm.isPlaceholderDisplayed)?_vm._t("placeholder",[_c('img',{staticClass:"placeholder",class:_vm.imgClasses,attrs:{"src":_vm.computedPlaceholder,"alt":_vm.alt}})]):_vm._e()],2),(_vm.isCaptionLast)?_c('figcaption',[_vm._t("caption")],2):_vm._e()],1)};
|
|
285
|
+
var __vue_staticRenderFns__ = [];
|
|
286
|
+
|
|
287
|
+
/* style */
|
|
288
|
+
const __vue_inject_styles__ = undefined;
|
|
289
|
+
/* scoped */
|
|
290
|
+
const __vue_scope_id__ = undefined;
|
|
291
|
+
/* module identifier */
|
|
292
|
+
const __vue_module_identifier__ = undefined;
|
|
293
|
+
/* functional template */
|
|
294
|
+
const __vue_is_functional_template__ = false;
|
|
295
|
+
/* style inject */
|
|
296
|
+
|
|
297
|
+
/* style inject SSR */
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
var Image = __vue_normalize__(
|
|
302
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
303
|
+
__vue_inject_styles__,
|
|
304
|
+
__vue_script__,
|
|
305
|
+
__vue_scope_id__,
|
|
306
|
+
__vue_is_functional_template__,
|
|
307
|
+
__vue_module_identifier__,
|
|
308
|
+
undefined,
|
|
309
|
+
undefined
|
|
310
|
+
);
|
|
311
|
+
|
|
312
|
+
export { Image as I };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeElement } from './helpers.js';
|
|
2
|
-
import { c as config } from './chunk-
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
3
|
|
|
4
4
|
var NoticeMixin = {
|
|
5
5
|
props: {
|
|
@@ -77,6 +77,7 @@ var NoticeMixin = {
|
|
|
77
77
|
pause: function pause() {
|
|
78
78
|
if (this.pauseOnHover && !this.indefinite) {
|
|
79
79
|
this.isPaused = true;
|
|
80
|
+
clearInterval(this.$buefy.globalNoticeInterval);
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
83
|
removePause: function removePause() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { F as FormElementMixin } from './chunk-
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { F as FormElementMixin } from './chunk-75a5af93.js';
|
|
3
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
5
|
|
|
6
6
|
var script = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
2
|
import { bound } from './helpers.js';
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
4
|
-
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-
|
|
5
|
-
import { S as SlotComponent } from './chunk-
|
|
3
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
4
|
+
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-29ca0df8.js';
|
|
5
|
+
import { S as SlotComponent } from './chunk-b0c0c6b0.js';
|
|
6
6
|
|
|
7
7
|
var TabbedMixin = (function (cmp) {
|
|
8
8
|
var _components;
|
|
@@ -59,6 +59,10 @@ var config = {
|
|
|
59
59
|
defaultImageResponsive: true,
|
|
60
60
|
defaultImageRatio: null,
|
|
61
61
|
defaultImageSrcsetFormatter: null,
|
|
62
|
+
defaultBreadcrumbTag: 'a',
|
|
63
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
64
|
+
defaultBreadcrumbSeparator: '',
|
|
65
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
62
66
|
customIconPacks: null
|
|
63
67
|
};
|
|
64
68
|
var setOptions = function setOptions(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeElement } from './helpers.js';
|
|
2
|
-
import { c as config } from './chunk-
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
3
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
4
4
|
import { t as trapFocus } from './chunk-42f463e6.js';
|
|
5
5
|
|
|
@@ -76,6 +76,7 @@ var script = {
|
|
|
76
76
|
return Boolean(value);
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
+
closeButtonAriaLabel: String,
|
|
79
80
|
destroyOnHide: {
|
|
80
81
|
type: Boolean,
|
|
81
82
|
default: true
|
|
@@ -249,7 +250,7 @@ var script = {
|
|
|
249
250
|
const __vue_script__ = script;
|
|
250
251
|
|
|
251
252
|
/* template */
|
|
252
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation},on:{"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"after-leave":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{"tabindex":"-1","role":_vm.ariaRole,"aria-label":_vm.ariaLabel,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"animation-content",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",attrs:{"can-cancel":_vm.canCancel},on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}})]:_vm._t("default",null,{"canCancel":_vm.canCancel,"close":_vm.close}),(_vm.showX)?_c('button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.animating),expression:"!animating"}],staticClass:"modal-close is-large",attrs:{"type":"button"},on:{"click":function($event){return _vm.cancel('x')}}}):_vm._e()],2)]):_vm._e()])};
|
|
253
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation},on:{"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"after-leave":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{"tabindex":"-1","role":_vm.ariaRole,"aria-label":_vm.ariaLabel,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"animation-content",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",attrs:{"can-cancel":_vm.canCancel},on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}})]:_vm._t("default",null,{"canCancel":_vm.canCancel,"close":_vm.close}),(_vm.showX)?_c('button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.animating),expression:"!animating"}],staticClass:"modal-close is-large",attrs:{"type":"button","aria-label":_vm.closeButtonAriaLabel},on:{"click":function($event){return _vm.cancel('x')}}}):_vm._e()],2)]):_vm._e()])};
|
|
253
254
|
var __vue_staticRenderFns__ = [];
|
|
254
255
|
|
|
255
256
|
/* style */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { c as config } from './chunk-
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
4
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
|
+
import { F as FormElementMixin } from './chunk-75a5af93.js';
|
|
4
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
5
5
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
6
6
|
|
|
7
7
|
var script = {
|