buefy 0.9.13 → 0.9.14
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/dist/buefy.css +1 -1
- package/dist/buefy.esm.js +167 -117
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +168 -116
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +5 -5
- package/dist/cjs/breadcrumb.js +1 -1
- package/dist/cjs/button.js +3 -3
- package/dist/cjs/carousel.js +4 -4
- package/dist/cjs/{chunk-c6fbc7b4.js → chunk-02406b6a.js} +2 -2
- package/dist/cjs/{chunk-d0f8ea39.js → chunk-0cc2e136.js} +6 -6
- package/dist/cjs/{chunk-114191ae.js → chunk-0d901f36.js} +2 -2
- package/dist/cjs/{chunk-9e4cf4c5.js → chunk-1061ac68.js} +1 -1
- package/dist/cjs/{chunk-2c7de785.js → chunk-1d2f05e0.js} +0 -0
- package/dist/cjs/{chunk-30670fac.js → chunk-2a2403f9.js} +78 -62
- package/dist/cjs/{chunk-d54e40f6.js → chunk-2cdb1a89.js} +2 -9
- package/dist/cjs/{chunk-34949503.js → chunk-4a3a5cf7.js} +1 -1
- package/dist/cjs/{chunk-fe2f57ee.js → chunk-4ebee779.js} +2 -2
- package/dist/cjs/{chunk-2062216d.js → chunk-5a7e385c.js} +1 -1
- package/dist/cjs/{chunk-f5106717.js → chunk-74fb31db.js} +3 -3
- package/dist/cjs/{chunk-7da0c017.js → chunk-a267720d.js} +21 -21
- package/dist/cjs/{chunk-a11294f9.js → chunk-a268cb3d.js} +2 -2
- package/dist/cjs/{chunk-c7b2aa4b.js → chunk-bb7da16a.js} +1 -1
- package/dist/cjs/{chunk-2ae50815.js → chunk-bebdaf0b.js} +3 -3
- package/dist/cjs/{chunk-9103eeda.js → chunk-c0adb618.js} +1 -1
- package/dist/cjs/{chunk-d120e215.js → chunk-d7d30e52.js} +1 -1
- package/dist/cjs/{chunk-fefd7b77.js → chunk-ddd15f05.js} +0 -0
- package/dist/cjs/{chunk-2911aa4b.js → chunk-e8dc6270.js} +14 -11
- package/dist/cjs/{chunk-3cc5d9a6.js → chunk-eb8d954b.js} +0 -0
- package/dist/cjs/{chunk-6cb902f8.js → chunk-f536c03f.js} +1 -1
- package/dist/cjs/{chunk-61023b09.js → chunk-fbf3566e.js} +2 -2
- package/dist/cjs/clockpicker.js +8 -8
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +9 -9
- package/dist/cjs/datetimepicker.js +11 -11
- package/dist/cjs/dialog.js +4 -4
- package/dist/cjs/dropdown.js +3 -3
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/helpers.js +20 -0
- package/dist/cjs/icon.js +2 -2
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/index.js +24 -22
- package/dist/cjs/input.js +4 -4
- package/dist/cjs/loading.js +2 -2
- package/dist/cjs/menu.js +2 -2
- package/dist/cjs/message.js +3 -3
- package/dist/cjs/modal.js +2 -2
- package/dist/cjs/navbar.js +3 -0
- package/dist/cjs/notification.js +4 -4
- package/dist/cjs/numberinput.js +4 -4
- package/dist/cjs/pagination.js +3 -3
- package/dist/cjs/progress.js +2 -2
- package/dist/cjs/rate.js +2 -2
- package/dist/cjs/select.js +4 -4
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +2 -2
- package/dist/cjs/snackbar.js +4 -3
- package/dist/cjs/steps.js +5 -5
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +24 -22
- package/dist/cjs/tabs.js +7 -7
- package/dist/cjs/taginput.js +5 -5
- package/dist/cjs/timepicker.js +10 -10
- package/dist/cjs/toast.js +2 -2
- package/dist/cjs/tooltip.js +2 -2
- package/dist/cjs/upload.js +21 -7
- package/dist/components/autocomplete/index.js +78 -62
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +2 -2
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +2 -2
- 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 +22 -22
- 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 +29 -26
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +29 -26
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +2 -2
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +2 -2
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +22 -22
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +2 -2
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +2 -2
- package/dist/components/image/index.min.js +2 -2
- package/dist/components/input/index.js +2 -2
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +2 -2
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +2 -2
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/index.min.js +2 -2
- package/dist/components/navbar/index.js +4 -1
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +3 -10
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +2 -2
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +2 -2
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +2 -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 +2 -2
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +2 -2
- 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 +2 -2
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +5 -11
- package/dist/components/snackbar/index.min.js +2 -2
- package/dist/components/steps/index.js +2 -2
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +36 -16
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +4 -4
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +78 -62
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +22 -22
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +3 -10
- package/dist/components/toast/index.min.js +2 -2
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +21 -7
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +6 -6
- package/dist/esm/breadcrumb.js +1 -1
- package/dist/esm/button.js +4 -4
- package/dist/esm/carousel.js +4 -4
- package/dist/esm/{chunk-21fc0948.js → chunk-03f0ac1a.js} +6 -6
- package/dist/esm/{chunk-b0c0c6b0.js → chunk-0c4e4e90.js} +0 -0
- package/dist/esm/{chunk-ae8ab23a.js → chunk-113685dc.js} +3 -3
- package/dist/esm/{chunk-71a547bc.js → chunk-1b63211c.js} +1 -1
- package/dist/esm/{chunk-d7f92d97.js → chunk-1f41edb4.js} +1 -1
- package/dist/esm/{chunk-3773c62d.js → chunk-2229e354.js} +1 -1
- package/dist/esm/{chunk-83eb0d37.js → chunk-40f06d9c.js} +2 -2
- package/dist/esm/{chunk-75a5af93.js → chunk-590a6902.js} +1 -1
- package/dist/esm/{chunk-22e9f916.js → chunk-5f0c3fc4.js} +14 -11
- package/dist/esm/{chunk-6019fd7a.js → chunk-79ac4d01.js} +79 -63
- package/dist/esm/{chunk-8ed29c41.js → chunk-8cad1844.js} +1 -1
- package/dist/esm/{chunk-29ca0df8.js → chunk-91404fa9.js} +0 -0
- package/dist/esm/{chunk-b07e3182.js → chunk-97f201e0.js} +21 -21
- package/dist/esm/{chunk-c9c58d0c.js → chunk-9e0ae963.js} +0 -0
- package/dist/esm/{chunk-ece062a7.js → chunk-a8516afd.js} +2 -2
- package/dist/esm/{chunk-4b67a181.js → chunk-b66a83ce.js} +2 -2
- package/dist/esm/{chunk-9f7f7441.js → chunk-b99e83bd.js} +1 -1
- package/dist/esm/{chunk-18e8b067.js → chunk-bbf5d78a.js} +2 -2
- package/dist/esm/{chunk-8d0f95b8.js → chunk-e01e9ef0.js} +3 -3
- package/dist/esm/{chunk-799e084d.js → chunk-e7eb83d8.js} +2 -9
- package/dist/esm/{chunk-d92f0cd9.js → chunk-ea9bc877.js} +1 -1
- package/dist/esm/{chunk-e7c9b2cb.js → chunk-efec59b6.js} +2 -2
- package/dist/esm/clockpicker.js +8 -8
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +10 -10
- package/dist/esm/datetimepicker.js +11 -11
- package/dist/esm/dialog.js +4 -4
- package/dist/esm/dropdown.js +4 -4
- package/dist/esm/field.js +3 -3
- package/dist/esm/helpers.js +19 -1
- package/dist/esm/icon.js +3 -3
- package/dist/esm/image.js +3 -3
- package/dist/esm/index.js +23 -23
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +3 -3
- package/dist/esm/menu.js +2 -2
- package/dist/esm/message.js +3 -3
- package/dist/esm/modal.js +3 -3
- package/dist/esm/navbar.js +3 -0
- package/dist/esm/notification.js +4 -4
- package/dist/esm/numberinput.js +4 -4
- package/dist/esm/pagination.js +4 -4
- package/dist/esm/progress.js +2 -2
- package/dist/esm/rate.js +2 -2
- package/dist/esm/select.js +5 -5
- package/dist/esm/sidebar.js +1 -1
- package/dist/esm/slider.js +2 -2
- package/dist/esm/snackbar.js +4 -3
- package/dist/esm/steps.js +5 -5
- package/dist/esm/switch.js +1 -1
- package/dist/esm/table.js +25 -23
- package/dist/esm/tabs.js +7 -7
- package/dist/esm/taginput.js +5 -5
- package/dist/esm/timepicker.js +11 -11
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +3 -3
- package/dist/esm/upload.js +21 -7
- package/dist/vetur/attributes.json +4 -0
- package/dist/vetur/tags.json +1 -0
- package/package.json +1 -1
- package/src/components/autocomplete/Autocomplete.vue +711 -701
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +1 -5
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +48 -48
- package/src/components/datepicker/DatepickerTableRow.spec.js +26 -0
- package/src/components/datepicker/DatepickerTableRow.vue +4 -5
- package/src/components/field/Field.vue +271 -271
- package/src/components/navbar/NavbarDropdown.vue +4 -0
- package/src/components/snackbar/index.js +2 -1
- package/src/components/table/Table.spec.js +17 -3
- package/src/components/table/Table.vue +8 -9
- package/src/components/tabs/Tabs.vue +185 -183
- package/src/components/timepicker/__snapshots__/Timepicker.spec.js.snap +18 -47
- package/src/components/upload/Upload.vue +19 -7
- package/src/utils/NoticeMixin.js +1 -5
- package/src/utils/config.js +1 -1
- package/src/utils/helpers.js +16 -0
- package/types/components.d.ts +5 -0
package/dist/buefy.css
CHANGED
package/dist/buefy.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.14 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
function _typeof(obj) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
|
|
@@ -284,6 +284,15 @@ function escapeRegExpChars(value) {
|
|
|
284
284
|
|
|
285
285
|
return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
286
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Remove accents/diacritics in a string in JavaScript
|
|
289
|
+
* https://stackoverflow.com/a/37511463
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
function removeDiacriticsFromString(value) {
|
|
293
|
+
if (!value) return value;
|
|
294
|
+
return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
295
|
+
}
|
|
287
296
|
function multiColumnSort(inputArray, sortingPriority) {
|
|
288
297
|
// clone it to prevent the any watchers from triggering every sorting iteration
|
|
289
298
|
var array = JSON.parse(JSON.stringify(inputArray));
|
|
@@ -432,6 +441,15 @@ function isCustomElement(vm) {
|
|
|
432
441
|
var isDefined = function isDefined(d) {
|
|
433
442
|
return d !== undefined;
|
|
434
443
|
};
|
|
444
|
+
/**
|
|
445
|
+
* Checks if a value is null or undefined.
|
|
446
|
+
* Based on
|
|
447
|
+
* https://github.com/lodash/lodash/blob/master/isNil.js
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
var isNil = function isNil(value) {
|
|
451
|
+
return value !== null || value !== undefined;
|
|
452
|
+
};
|
|
435
453
|
|
|
436
454
|
var config = {
|
|
437
455
|
defaultContainerElement: null,
|
|
@@ -466,7 +484,7 @@ var config = {
|
|
|
466
484
|
defaultModalScroll: null,
|
|
467
485
|
defaultDatepickerMobileNative: true,
|
|
468
486
|
defaultTimepickerMobileNative: true,
|
|
469
|
-
defaultNoticeQueue:
|
|
487
|
+
defaultNoticeQueue: false,
|
|
470
488
|
defaultInputHasCounter: true,
|
|
471
489
|
defaultTaginputHasCounter: true,
|
|
472
490
|
defaultUseHtml5Validation: true,
|
|
@@ -1297,9 +1315,9 @@ var script$2 = {
|
|
|
1297
1315
|
});
|
|
1298
1316
|
},
|
|
1299
1317
|
|
|
1300
|
-
/**
|
|
1301
|
-
* White-listed items to not close when clicked.
|
|
1302
|
-
* Add input, dropdown and all children.
|
|
1318
|
+
/**
|
|
1319
|
+
* White-listed items to not close when clicked.
|
|
1320
|
+
* Add input, dropdown and all children.
|
|
1303
1321
|
*/
|
|
1304
1322
|
whiteList: function whiteList() {
|
|
1305
1323
|
var whiteList = [];
|
|
@@ -1366,43 +1384,43 @@ var script$2 = {
|
|
|
1366
1384
|
return whiteList;
|
|
1367
1385
|
},
|
|
1368
1386
|
|
|
1369
|
-
/**
|
|
1370
|
-
* Check if exists default slot
|
|
1387
|
+
/**
|
|
1388
|
+
* Check if exists default slot
|
|
1371
1389
|
*/
|
|
1372
1390
|
hasDefaultSlot: function hasDefaultSlot() {
|
|
1373
1391
|
return !!this.$scopedSlots.default;
|
|
1374
1392
|
},
|
|
1375
1393
|
|
|
1376
|
-
/**
|
|
1377
|
-
* Check if exists group slot
|
|
1394
|
+
/**
|
|
1395
|
+
* Check if exists group slot
|
|
1378
1396
|
*/
|
|
1379
1397
|
hasGroupSlot: function hasGroupSlot() {
|
|
1380
1398
|
return !!this.$scopedSlots.group;
|
|
1381
1399
|
},
|
|
1382
1400
|
|
|
1383
|
-
/**
|
|
1384
|
-
* Check if exists "empty" slot
|
|
1401
|
+
/**
|
|
1402
|
+
* Check if exists "empty" slot
|
|
1385
1403
|
*/
|
|
1386
1404
|
hasEmptySlot: function hasEmptySlot() {
|
|
1387
1405
|
return !!this.$slots.empty;
|
|
1388
1406
|
},
|
|
1389
1407
|
|
|
1390
|
-
/**
|
|
1391
|
-
* Check if exists "header" slot
|
|
1408
|
+
/**
|
|
1409
|
+
* Check if exists "header" slot
|
|
1392
1410
|
*/
|
|
1393
1411
|
hasHeaderSlot: function hasHeaderSlot() {
|
|
1394
1412
|
return !!this.$slots.header;
|
|
1395
1413
|
},
|
|
1396
1414
|
|
|
1397
|
-
/**
|
|
1398
|
-
* Check if exists "footer" slot
|
|
1415
|
+
/**
|
|
1416
|
+
* Check if exists "footer" slot
|
|
1399
1417
|
*/
|
|
1400
1418
|
hasFooterSlot: function hasFooterSlot() {
|
|
1401
1419
|
return !!this.$slots.footer;
|
|
1402
1420
|
},
|
|
1403
1421
|
|
|
1404
|
-
/**
|
|
1405
|
-
* Apply dropdownPosition property
|
|
1422
|
+
/**
|
|
1423
|
+
* Apply dropdownPosition property
|
|
1406
1424
|
*/
|
|
1407
1425
|
isOpenedTop: function isOpenedTop() {
|
|
1408
1426
|
return this.dropdownPosition === 'top' || this.dropdownPosition === 'auto' && !this.isListInViewportVertically;
|
|
@@ -1428,9 +1446,9 @@ var script$2 = {
|
|
|
1428
1446
|
}
|
|
1429
1447
|
},
|
|
1430
1448
|
watch: {
|
|
1431
|
-
/**
|
|
1432
|
-
* When dropdown is toggled, check the visibility to know when
|
|
1433
|
-
* to open upwards.
|
|
1449
|
+
/**
|
|
1450
|
+
* When dropdown is toggled, check the visibility to know when
|
|
1451
|
+
* to open upwards.
|
|
1434
1452
|
*/
|
|
1435
1453
|
isActive: function isActive(active) {
|
|
1436
1454
|
var _this2 = this;
|
|
@@ -1447,11 +1465,11 @@ var script$2 = {
|
|
|
1447
1465
|
}
|
|
1448
1466
|
},
|
|
1449
1467
|
|
|
1450
|
-
/**
|
|
1451
|
-
* When updating input's value
|
|
1452
|
-
* 1. Emit changes
|
|
1453
|
-
* 2. If value isn't the same as selected, set null
|
|
1454
|
-
* 3. Close dropdown if value is clear or else open it
|
|
1468
|
+
/**
|
|
1469
|
+
* When updating input's value
|
|
1470
|
+
* 1. Emit changes
|
|
1471
|
+
* 2. If value isn't the same as selected, set null
|
|
1472
|
+
* 3. Close dropdown if value is clear or else open it
|
|
1455
1473
|
*/
|
|
1456
1474
|
newValue: function newValue(value) {
|
|
1457
1475
|
this.$emit('input', value); // Check if selected is invalid
|
|
@@ -1468,17 +1486,17 @@ var script$2 = {
|
|
|
1468
1486
|
}
|
|
1469
1487
|
},
|
|
1470
1488
|
|
|
1471
|
-
/**
|
|
1472
|
-
* When v-model is changed:
|
|
1473
|
-
* 1. Update internal value.
|
|
1474
|
-
* 2. If it's invalid, validate again.
|
|
1489
|
+
/**
|
|
1490
|
+
* When v-model is changed:
|
|
1491
|
+
* 1. Update internal value.
|
|
1492
|
+
* 2. If it's invalid, validate again.
|
|
1475
1493
|
*/
|
|
1476
1494
|
value: function value(_value) {
|
|
1477
1495
|
this.newValue = _value;
|
|
1478
1496
|
},
|
|
1479
1497
|
|
|
1480
|
-
/**
|
|
1481
|
-
* Select first option if "keep-first
|
|
1498
|
+
/**
|
|
1499
|
+
* Select first option if "keep-first
|
|
1482
1500
|
*/
|
|
1483
1501
|
data: function data() {
|
|
1484
1502
|
var _this3 = this;
|
|
@@ -1492,21 +1510,37 @@ var script$2 = {
|
|
|
1492
1510
|
_this3.setHovered(null);
|
|
1493
1511
|
}
|
|
1494
1512
|
});
|
|
1513
|
+
} else {
|
|
1514
|
+
if (this.hovered) {
|
|
1515
|
+
// reset hovered if list doesn't contain it
|
|
1516
|
+
var hoveredValue = this.getValue(this.hovered);
|
|
1517
|
+
var data = this.computedData.map(function (d) {
|
|
1518
|
+
return d.items;
|
|
1519
|
+
}).reduce(function (a, b) {
|
|
1520
|
+
return [].concat(_toConsumableArray(a), _toConsumableArray(b));
|
|
1521
|
+
}, []);
|
|
1522
|
+
|
|
1523
|
+
if (!data.some(function (d) {
|
|
1524
|
+
return _this3.getValue(d) === hoveredValue;
|
|
1525
|
+
})) {
|
|
1526
|
+
this.setHovered(null);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1495
1529
|
}
|
|
1496
1530
|
}
|
|
1497
1531
|
},
|
|
1498
1532
|
methods: {
|
|
1499
|
-
/**
|
|
1500
|
-
* Set which option is currently hovered.
|
|
1533
|
+
/**
|
|
1534
|
+
* Set which option is currently hovered.
|
|
1501
1535
|
*/
|
|
1502
1536
|
setHovered: function setHovered(option) {
|
|
1503
1537
|
if (option === undefined) return;
|
|
1504
1538
|
this.hovered = option;
|
|
1505
1539
|
},
|
|
1506
1540
|
|
|
1507
|
-
/**
|
|
1508
|
-
* Set which option is currently selected, update v-model,
|
|
1509
|
-
* update input value and close dropdown.
|
|
1541
|
+
/**
|
|
1542
|
+
* Set which option is currently selected, update v-model,
|
|
1543
|
+
* update input value and close dropdown.
|
|
1510
1544
|
*/
|
|
1511
1545
|
setSelected: function setSelected(option) {
|
|
1512
1546
|
var _this4 = this;
|
|
@@ -1535,8 +1569,8 @@ var script$2 = {
|
|
|
1535
1569
|
this.checkValidity();
|
|
1536
1570
|
},
|
|
1537
1571
|
|
|
1538
|
-
/**
|
|
1539
|
-
* Select first option
|
|
1572
|
+
/**
|
|
1573
|
+
* Select first option
|
|
1540
1574
|
*/
|
|
1541
1575
|
selectFirstOption: function selectFirstOption(computedData) {
|
|
1542
1576
|
var _this5 = this;
|
|
@@ -1587,8 +1621,8 @@ var script$2 = {
|
|
|
1587
1621
|
});
|
|
1588
1622
|
},
|
|
1589
1623
|
|
|
1590
|
-
/**
|
|
1591
|
-
* Check if header or footer was selected.
|
|
1624
|
+
/**
|
|
1625
|
+
* Check if header or footer was selected.
|
|
1592
1626
|
*/
|
|
1593
1627
|
checkIfHeaderOrFooterSelected: function checkIfHeaderOrFooterSelected(event, triggerClick) {
|
|
1594
1628
|
var closeDropdown = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -1608,8 +1642,8 @@ var script$2 = {
|
|
|
1608
1642
|
}
|
|
1609
1643
|
},
|
|
1610
1644
|
|
|
1611
|
-
/**
|
|
1612
|
-
* Close dropdown if clicked outside.
|
|
1645
|
+
/**
|
|
1646
|
+
* Close dropdown if clicked outside.
|
|
1613
1647
|
*/
|
|
1614
1648
|
clickedOutside: function clickedOutside(event) {
|
|
1615
1649
|
var target = isCustomElement(this) ? event.composedPath()[0] : event.target;
|
|
@@ -1623,9 +1657,9 @@ var script$2 = {
|
|
|
1623
1657
|
}
|
|
1624
1658
|
},
|
|
1625
1659
|
|
|
1626
|
-
/**
|
|
1627
|
-
* Return display text for the input.
|
|
1628
|
-
* If object, get value from path, or else just the value.
|
|
1660
|
+
/**
|
|
1661
|
+
* Return display text for the input.
|
|
1662
|
+
* If object, get value from path, or else just the value.
|
|
1629
1663
|
*/
|
|
1630
1664
|
getValue: function getValue(option) {
|
|
1631
1665
|
if (option === null) return;
|
|
@@ -1637,9 +1671,9 @@ var script$2 = {
|
|
|
1637
1671
|
return _typeof(option) === 'object' ? getValueByPath(option, this.field) : option;
|
|
1638
1672
|
},
|
|
1639
1673
|
|
|
1640
|
-
/**
|
|
1641
|
-
* Check if the scroll list inside the dropdown
|
|
1642
|
-
* reached it's end.
|
|
1674
|
+
/**
|
|
1675
|
+
* Check if the scroll list inside the dropdown
|
|
1676
|
+
* reached it's end.
|
|
1643
1677
|
*/
|
|
1644
1678
|
checkIfReachedTheEndOfScroll: function checkIfReachedTheEndOfScroll(list) {
|
|
1645
1679
|
if (list.clientHeight !== list.scrollHeight && list.scrollTop + list.clientHeight >= list.scrollHeight) {
|
|
@@ -1647,17 +1681,17 @@ var script$2 = {
|
|
|
1647
1681
|
}
|
|
1648
1682
|
},
|
|
1649
1683
|
|
|
1650
|
-
/**
|
|
1651
|
-
* Calculate if the dropdown is vertically visible when activated,
|
|
1652
|
-
* otherwise it is openened upwards.
|
|
1684
|
+
/**
|
|
1685
|
+
* Calculate if the dropdown is vertically visible when activated,
|
|
1686
|
+
* otherwise it is openened upwards.
|
|
1653
1687
|
*/
|
|
1654
1688
|
calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {
|
|
1655
1689
|
var _this6 = this;
|
|
1656
1690
|
|
|
1657
1691
|
this.$nextTick(function () {
|
|
1658
|
-
/**
|
|
1659
|
-
* this.$refs.dropdown may be undefined
|
|
1660
|
-
* when Autocomplete is conditional rendered
|
|
1692
|
+
/**
|
|
1693
|
+
* this.$refs.dropdown may be undefined
|
|
1694
|
+
* when Autocomplete is conditional rendered
|
|
1661
1695
|
*/
|
|
1662
1696
|
if (_this6.$refs.dropdown === undefined) return;
|
|
1663
1697
|
|
|
@@ -1671,9 +1705,9 @@ var script$2 = {
|
|
|
1671
1705
|
});
|
|
1672
1706
|
},
|
|
1673
1707
|
|
|
1674
|
-
/**
|
|
1675
|
-
* Arrows keys listener.
|
|
1676
|
-
* If dropdown is active, set hovered option, or else just open.
|
|
1708
|
+
/**
|
|
1709
|
+
* Arrows keys listener.
|
|
1710
|
+
* If dropdown is active, set hovered option, or else just open.
|
|
1677
1711
|
*/
|
|
1678
1712
|
keyArrows: function keyArrows(direction) {
|
|
1679
1713
|
var sum = direction === 'down' ? 1 : -1;
|
|
@@ -1743,9 +1777,9 @@ var script$2 = {
|
|
|
1743
1777
|
}
|
|
1744
1778
|
},
|
|
1745
1779
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Focus listener.
|
|
1748
|
-
* If value is the same as selected, select all text.
|
|
1780
|
+
/**
|
|
1781
|
+
* Focus listener.
|
|
1782
|
+
* If value is the same as selected, select all text.
|
|
1749
1783
|
*/
|
|
1750
1784
|
focused: function focused(event) {
|
|
1751
1785
|
if (this.getValue(this.selected) === this.newValue) {
|
|
@@ -1765,8 +1799,8 @@ var script$2 = {
|
|
|
1765
1799
|
this.$emit('focus', event);
|
|
1766
1800
|
},
|
|
1767
1801
|
|
|
1768
|
-
/**
|
|
1769
|
-
* Blur listener.
|
|
1802
|
+
/**
|
|
1803
|
+
* Blur listener.
|
|
1770
1804
|
*/
|
|
1771
1805
|
onBlur: function onBlur(event) {
|
|
1772
1806
|
this.hasFocus = false;
|
|
@@ -4988,12 +5022,12 @@ var script$g = {
|
|
|
4988
5022
|
return this.grouped || this.groupMultiline || this.hasAddons();
|
|
4989
5023
|
},
|
|
4990
5024
|
|
|
4991
|
-
/**
|
|
4992
|
-
* Correct Bulma class for the side of the addon or group.
|
|
4993
|
-
*
|
|
4994
|
-
* This is not kept like the others (is-small, etc.),
|
|
4995
|
-
* because since 'has-addons' is set automatically it
|
|
4996
|
-
* doesn't make sense to teach users what addons are exactly.
|
|
5025
|
+
/**
|
|
5026
|
+
* Correct Bulma class for the side of the addon or group.
|
|
5027
|
+
*
|
|
5028
|
+
* This is not kept like the others (is-small, etc.),
|
|
5029
|
+
* because since 'has-addons' is set automatically it
|
|
5030
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
4997
5031
|
*/
|
|
4998
5032
|
newPosition: function newPosition() {
|
|
4999
5033
|
if (this.position === undefined) return;
|
|
@@ -5003,9 +5037,9 @@ var script$g = {
|
|
|
5003
5037
|
if (this.position) return prefix + position[1];
|
|
5004
5038
|
},
|
|
5005
5039
|
|
|
5006
|
-
/**
|
|
5007
|
-
* Formatted message in case it's an array
|
|
5008
|
-
* (each element is separated by <br> tag)
|
|
5040
|
+
/**
|
|
5041
|
+
* Formatted message in case it's an array
|
|
5042
|
+
* (each element is separated by <br> tag)
|
|
5009
5043
|
*/
|
|
5010
5044
|
formattedMessage: function formattedMessage() {
|
|
5011
5045
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -5075,22 +5109,22 @@ var script$g = {
|
|
|
5075
5109
|
}
|
|
5076
5110
|
},
|
|
5077
5111
|
watch: {
|
|
5078
|
-
/**
|
|
5079
|
-
* Set internal type when prop change.
|
|
5112
|
+
/**
|
|
5113
|
+
* Set internal type when prop change.
|
|
5080
5114
|
*/
|
|
5081
5115
|
type: function type(value) {
|
|
5082
5116
|
this.newType = value;
|
|
5083
5117
|
},
|
|
5084
5118
|
|
|
5085
|
-
/**
|
|
5086
|
-
* Set internal message when prop change.
|
|
5119
|
+
/**
|
|
5120
|
+
* Set internal message when prop change.
|
|
5087
5121
|
*/
|
|
5088
5122
|
message: function message(value) {
|
|
5089
5123
|
this.newMessage = value;
|
|
5090
5124
|
},
|
|
5091
5125
|
|
|
5092
|
-
/**
|
|
5093
|
-
* Set parent message if we use Field in Field.
|
|
5126
|
+
/**
|
|
5127
|
+
* Set parent message if we use Field in Field.
|
|
5094
5128
|
*/
|
|
5095
5129
|
newMessage: function newMessage(value) {
|
|
5096
5130
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -5105,11 +5139,11 @@ var script$g = {
|
|
|
5105
5139
|
}
|
|
5106
5140
|
},
|
|
5107
5141
|
methods: {
|
|
5108
|
-
/**
|
|
5109
|
-
* Field has addons if there are more than one slot
|
|
5110
|
-
* (element / component) in the Field.
|
|
5111
|
-
* Or is grouped when prop is set.
|
|
5112
|
-
* Is a method to be called when component re-render.
|
|
5142
|
+
/**
|
|
5143
|
+
* Field has addons if there are more than one slot
|
|
5144
|
+
* (element / component) in the Field.
|
|
5145
|
+
* Or is grouped when prop is set.
|
|
5146
|
+
* Is a method to be called when component re-render.
|
|
5113
5147
|
*/
|
|
5114
5148
|
fieldType: function fieldType() {
|
|
5115
5149
|
if (this.grouped) return 'is-grouped';
|
|
@@ -5854,11 +5888,14 @@ var script$k = {
|
|
|
5854
5888
|
resWeek = week;
|
|
5855
5889
|
}
|
|
5856
5890
|
|
|
5857
|
-
return
|
|
5891
|
+
return {
|
|
5892
|
+
week: resWeek,
|
|
5893
|
+
year: resYear
|
|
5894
|
+
};
|
|
5858
5895
|
},
|
|
5859
|
-
clickWeekNumber: function clickWeekNumber(
|
|
5896
|
+
clickWeekNumber: function clickWeekNumber(weekData) {
|
|
5860
5897
|
if (this.weekNumberClickable) {
|
|
5861
|
-
this.$datepicker.$emit('week-number-click', week);
|
|
5898
|
+
this.$datepicker.$emit('week-number-click', weekData.week, weekData.year);
|
|
5862
5899
|
}
|
|
5863
5900
|
},
|
|
5864
5901
|
|
|
@@ -6071,7 +6108,7 @@ var script$k = {
|
|
|
6071
6108
|
const __vue_script__$k = script$k;
|
|
6072
6109
|
|
|
6073
6110
|
/* template */
|
|
6074
|
-
var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker-row"},[(_vm.showWeekNumber)?_c('a',{staticClass:"datepicker-cell is-week-number",class:{'is-clickable': _vm.weekNumberClickable },on:{"click":function($event){$event.preventDefault();_vm.clickWeekNumber(_vm.getWeekNumber(_vm.week[6]));}}},[_c('span',[_vm._v(_vm._s(_vm.getWeekNumber(_vm.week[6])))])]):_vm._e(),_vm._l((_vm.week),function(weekDay,index){return [(_vm.selectableDate(weekDay) && !_vm.disabled)?_c('a',{key:index,ref:("day-" + (weekDay.getMonth()) + "-" + (weekDay.getDate())),refInFor:true,staticClass:"datepicker-cell",class:_vm.classObject(weekDay),attrs:{"role":"button","href":"#","disabled":_vm.disabled,"tabindex":_vm.day === weekDay.getDate() && _vm.month === weekDay.getMonth() ? null : -1},on:{"click":function($event){$event.preventDefault();return _vm.emitChosenDate(weekDay)},"mouseenter":function($event){return _vm.setRangeHoverEndDate(weekDay)},"keydown":function($event){return _vm.manageKeydown($event, weekDay)}}},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()]):_c('div',{key:index,staticClass:"datepicker-cell",class:_vm.classObject(weekDay)},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()])]})],2)};
|
|
6111
|
+
var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker-row"},[(_vm.showWeekNumber)?_c('a',{staticClass:"datepicker-cell is-week-number",class:{'is-clickable': _vm.weekNumberClickable },on:{"click":function($event){$event.preventDefault();_vm.clickWeekNumber(_vm.getWeekNumber(_vm.week[6]));}}},[_c('span',[_vm._v(_vm._s(_vm.getWeekNumber(_vm.week[6]).week))])]):_vm._e(),_vm._l((_vm.week),function(weekDay,index){return [(_vm.selectableDate(weekDay) && !_vm.disabled)?_c('a',{key:index,ref:("day-" + (weekDay.getMonth()) + "-" + (weekDay.getDate())),refInFor:true,staticClass:"datepicker-cell",class:_vm.classObject(weekDay),attrs:{"role":"button","href":"#","disabled":_vm.disabled,"tabindex":_vm.day === weekDay.getDate() && _vm.month === weekDay.getMonth() ? null : -1},on:{"click":function($event){$event.preventDefault();return _vm.emitChosenDate(weekDay)},"mouseenter":function($event){return _vm.setRangeHoverEndDate(weekDay)},"keydown":function($event){return _vm.manageKeydown($event, weekDay)}}},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()]):_c('div',{key:index,staticClass:"datepicker-cell",class:_vm.classObject(weekDay)},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:"events"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:"event",class:event.type})}),0):_vm._e()])]})],2)};
|
|
6075
6112
|
var __vue_staticRenderFns__$i = [];
|
|
6076
6113
|
|
|
6077
6114
|
/* style */
|
|
@@ -9393,14 +9430,7 @@ var NoticeMixin = {
|
|
|
9393
9430
|
showNotice: function showNotice() {
|
|
9394
9431
|
var _this2 = this;
|
|
9395
9432
|
|
|
9396
|
-
if (this.shouldQueue())
|
|
9397
|
-
// Call recursively if should queue
|
|
9398
|
-
setTimeout(function () {
|
|
9399
|
-
return _this2.showNotice();
|
|
9400
|
-
}, 250);
|
|
9401
|
-
return;
|
|
9402
|
-
}
|
|
9403
|
-
|
|
9433
|
+
if (this.shouldQueue()) this.correctParent.innerHTML = '';
|
|
9404
9434
|
this.correctParent.insertAdjacentElement('afterbegin', this.$el);
|
|
9405
9435
|
this.isActive = true;
|
|
9406
9436
|
|
|
@@ -10155,6 +10185,9 @@ var script$C = {
|
|
|
10155
10185
|
watch: {
|
|
10156
10186
|
active: function active(value) {
|
|
10157
10187
|
this.newActive = value;
|
|
10188
|
+
},
|
|
10189
|
+
newActive: function newActive(value) {
|
|
10190
|
+
this.$emit('active-change', value);
|
|
10158
10191
|
}
|
|
10159
10192
|
},
|
|
10160
10193
|
methods: {
|
|
@@ -12707,7 +12740,8 @@ var SnackbarProgrammatic = {
|
|
|
12707
12740
|
|
|
12708
12741
|
var defaultParam = {
|
|
12709
12742
|
type: 'is-success',
|
|
12710
|
-
position: config.defaultSnackbarPosition || 'is-bottom-right'
|
|
12743
|
+
position: config.defaultSnackbarPosition || 'is-bottom-right',
|
|
12744
|
+
queue: true
|
|
12711
12745
|
};
|
|
12712
12746
|
|
|
12713
12747
|
if (params.parent) {
|
|
@@ -14346,10 +14380,12 @@ var script$Y = {
|
|
|
14346
14380
|
|
|
14347
14381
|
if (typeof newA === 'boolean' && typeof newB === 'boolean') {
|
|
14348
14382
|
return isAsc ? newA - newB : newB - newA;
|
|
14349
|
-
}
|
|
14383
|
+
} // sort null values to the bottom when in asc order
|
|
14384
|
+
// and to the top when in desc order
|
|
14350
14385
|
|
|
14351
|
-
|
|
14352
|
-
if (!newB &&
|
|
14386
|
+
|
|
14387
|
+
if (!isNil(newB) && isNil(newA)) return isAsc ? 1 : -1;
|
|
14388
|
+
if (!isNil(newA) && isNil(newB)) return isAsc ? -1 : 1;
|
|
14353
14389
|
if (newA === newB) return 0;
|
|
14354
14390
|
newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
|
|
14355
14391
|
newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
|
|
@@ -14580,14 +14616,7 @@ var script$Y = {
|
|
|
14580
14616
|
var _this8 = this;
|
|
14581
14617
|
|
|
14582
14618
|
var _loop = function _loop(key) {
|
|
14583
|
-
|
|
14584
|
-
if (!_this8.filters[key]) {
|
|
14585
|
-
delete _this8.filters[key];
|
|
14586
|
-
return {
|
|
14587
|
-
v: true
|
|
14588
|
-
};
|
|
14589
|
-
}
|
|
14590
|
-
|
|
14619
|
+
if (!_this8.filters[key]) return "continue";
|
|
14591
14620
|
var input = _this8.filters[key];
|
|
14592
14621
|
|
|
14593
14622
|
var column = _this8.newColumns.filter(function (c) {
|
|
@@ -14611,8 +14640,9 @@ var script$Y = {
|
|
|
14611
14640
|
};
|
|
14612
14641
|
} else {
|
|
14613
14642
|
var re = new RegExp(escapeRegExpChars(input), 'i');
|
|
14614
|
-
|
|
14615
|
-
|
|
14643
|
+
var valueWithoutDiacritics = removeDiacriticsFromString(value);
|
|
14644
|
+
return {
|
|
14645
|
+
v: re.test(valueWithoutDiacritics) || re.test(value)
|
|
14616
14646
|
};
|
|
14617
14647
|
}
|
|
14618
14648
|
}
|
|
@@ -14621,7 +14651,13 @@ var script$Y = {
|
|
|
14621
14651
|
for (var key in this.filters) {
|
|
14622
14652
|
var _ret = _loop(key);
|
|
14623
14653
|
|
|
14624
|
-
|
|
14654
|
+
switch (_ret) {
|
|
14655
|
+
case "continue":
|
|
14656
|
+
continue;
|
|
14657
|
+
|
|
14658
|
+
default:
|
|
14659
|
+
if (_typeof(_ret) === "object") return _ret.v;
|
|
14660
|
+
}
|
|
14625
14661
|
}
|
|
14626
14662
|
|
|
14627
14663
|
return true;
|
|
@@ -15072,8 +15108,8 @@ var script$Z = {
|
|
|
15072
15108
|
const __vue_script__$Z = script$Z;
|
|
15073
15109
|
|
|
15074
15110
|
/* template */
|
|
15075
|
-
var __vue_render__$S = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-tabs",class:_vm.mainClasses},[_c('nav',{staticClass:"tabs",class:_vm.navClasses,attrs:{"role":"tablist","aria-orientation":_vm.vertical ? 'vertical' : 'horizontal'},on:{"keydown":_vm.manageTablistKeydown}},[_c('ul',_vm._l((_vm.items),function(childItem,childIdx){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,class:[ childItem.headerClass, { 'is-active': childItem.isActive,
|
|
15076
|
-
'is-disabled': childItem.disabled }],attrs:{"role":"presentation"}},[(childItem.$scopedSlots.header)?_c('b-slot-component',{ref:"tabLink",refInFor:true,attrs:{"component":childItem,"name":"header","tag":"a","role":"tab","id":((childItem.value) + "-label"),"aria-controls":((childItem.value) + "-content"),"aria-selected":("" + (childItem.isActive)),"tabindex":childItem.isActive ? 0 : -1},on:{"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}},nativeOn:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)}}}):_c('a',{ref:"tabLink",refInFor:true,attrs:{"role":"tab","id":((childItem.value) + "-tab"),"aria-controls":((childItem.value) + "-content"),"aria-selected":("" + (childItem.isActive)),"tabindex":childItem.isActive ? 0 : -1},on:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)},"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}}},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):_vm._e(),_c('span',[_vm._v(_vm._s(childItem.label))])],1)],1)}),0)]),_c('section',{staticClass:"tab-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2)])};
|
|
15111
|
+
var __vue_render__$S = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-tabs",class:_vm.mainClasses},[_c('nav',{staticClass:"tabs",class:_vm.navClasses,attrs:{"role":"tablist","aria-orientation":_vm.vertical ? 'vertical' : 'horizontal'},on:{"keydown":_vm.manageTablistKeydown}},[_vm._t("start"),_c('ul',_vm._l((_vm.items),function(childItem,childIdx){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(childItem.visible),expression:"childItem.visible"}],key:childItem.value,class:[ childItem.headerClass, { 'is-active': childItem.isActive,
|
|
15112
|
+
'is-disabled': childItem.disabled }],attrs:{"role":"presentation"}},[(childItem.$scopedSlots.header)?_c('b-slot-component',{ref:"tabLink",refInFor:true,attrs:{"component":childItem,"name":"header","tag":"a","role":"tab","id":((childItem.value) + "-label"),"aria-controls":((childItem.value) + "-content"),"aria-selected":("" + (childItem.isActive)),"tabindex":childItem.isActive ? 0 : -1},on:{"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}},nativeOn:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)}}}):_c('a',{ref:"tabLink",refInFor:true,attrs:{"role":"tab","id":((childItem.value) + "-tab"),"aria-controls":((childItem.value) + "-content"),"aria-selected":("" + (childItem.isActive)),"tabindex":childItem.isActive ? 0 : -1},on:{"focus":function($event){_vm.currentFocus = childIdx;},"click":function($event){return _vm.childClick(childItem)},"keydown":function($event){return _vm.manageTabKeydown($event, childItem)}}},[(childItem.icon)?_c('b-icon',{attrs:{"icon":childItem.icon,"pack":childItem.iconPack,"size":_vm.size}}):_vm._e(),_c('span',[_vm._v(_vm._s(childItem.label))])],1)],1)}),0),_vm._t("end")],2),_c('section',{staticClass:"tab-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2)])};
|
|
15077
15113
|
var __vue_staticRenderFns__$S = [];
|
|
15078
15114
|
|
|
15079
15115
|
/* style */
|
|
@@ -15817,7 +15853,7 @@ var script$13 = {
|
|
|
15817
15853
|
/**
|
|
15818
15854
|
* When v-model is changed:
|
|
15819
15855
|
* 1. Set internal value.
|
|
15820
|
-
* 2. Reset
|
|
15856
|
+
* 2. Reset internal input file value
|
|
15821
15857
|
* 3. If it's invalid, validate again.
|
|
15822
15858
|
*/
|
|
15823
15859
|
value: function value(_value) {
|
|
@@ -15847,7 +15883,15 @@ var script$13 = {
|
|
|
15847
15883
|
// only one element in case drag drop mode and isn't multiple
|
|
15848
15884
|
if (this.dragDrop && value.length !== 1) return;else {
|
|
15849
15885
|
var file = value[0];
|
|
15850
|
-
if (this.checkType(file)) this.newValue = file;else if (this.newValue)
|
|
15886
|
+
if (this.checkType(file)) this.newValue = file;else if (this.newValue) {
|
|
15887
|
+
this.newValue = null;
|
|
15888
|
+
this.clearInput();
|
|
15889
|
+
} else {
|
|
15890
|
+
// Force input back to empty state and recheck validity
|
|
15891
|
+
this.clearInput();
|
|
15892
|
+
this.checkHtml5Validity();
|
|
15893
|
+
return;
|
|
15894
|
+
}
|
|
15851
15895
|
}
|
|
15852
15896
|
} else {
|
|
15853
15897
|
// always new values if native or undefined local
|
|
@@ -15874,6 +15918,13 @@ var script$13 = {
|
|
|
15874
15918
|
!this.dragDrop && this.checkHtml5Validity();
|
|
15875
15919
|
},
|
|
15876
15920
|
|
|
15921
|
+
/*
|
|
15922
|
+
* Reset file input value
|
|
15923
|
+
*/
|
|
15924
|
+
clearInput: function clearInput() {
|
|
15925
|
+
this.$refs.input.value = null;
|
|
15926
|
+
},
|
|
15927
|
+
|
|
15877
15928
|
/**
|
|
15878
15929
|
* Listen drag-drop to update internal variable
|
|
15879
15930
|
*/
|
|
@@ -15898,10 +15949,9 @@ var script$13 = {
|
|
|
15898
15949
|
if (type) {
|
|
15899
15950
|
if (type.substring(0, 1) === '.') {
|
|
15900
15951
|
// check extension
|
|
15901
|
-
var
|
|
15902
|
-
var extension = extIndex >= 0 ? file.name.substring(extIndex) : '';
|
|
15952
|
+
var extension = file.name.toLowerCase().slice(-type.length);
|
|
15903
15953
|
|
|
15904
|
-
if (extension
|
|
15954
|
+
if (extension === type.toLowerCase()) {
|
|
15905
15955
|
valid = true;
|
|
15906
15956
|
}
|
|
15907
15957
|
} else {
|
|
@@ -16037,4 +16087,4 @@ var Buefy = {
|
|
|
16037
16087
|
use(Buefy);
|
|
16038
16088
|
|
|
16039
16089
|
export default Buefy;
|
|
16040
|
-
export { Plugin as Autocomplete, Plugin$1 as Breadcrumb, Plugin$2 as Button, Plugin$3 as Carousel, Plugin$4 as Checkbox, Plugin$6 as Clockpicker, Plugin$5 as Collapse, ConfigComponent as ConfigProgrammatic, Plugin$7 as Datepicker, Plugin$8 as Datetimepicker, Plugin$9 as Dialog, DialogProgrammatic, Plugin$a as Dropdown, Plugin$b as Field, Plugin$c as Icon, Plugin$d as Image, Plugin$e as Input, Plugin$f as Loading, LoadingProgrammatic, Plugin$g as Menu, Plugin$h as Message, Plugin$i as Modal, ModalProgrammatic, Plugin$k as Navbar, Plugin$j as Notification, NotificationProgrammatic, Plugin$l as Numberinput, Plugin$m as Pagination, Plugin$n as Progress, Plugin$o as Radio, Plugin$p as Rate, Plugin$q as Select, Plugin$s as Sidebar, Plugin$r as Skeleton, Plugin$t as Slider, Plugin$u as Snackbar, SnackbarProgrammatic, Plugin$v as Steps, Plugin$w as Switch, Plugin$x as Table, Plugin$y as Tabs, Plugin$z as Tag, Plugin$A as Taginput, Plugin$B as Timepicker, Plugin$C as Toast, ToastProgrammatic, Plugin$D as Tooltip, Plugin$E as Upload, bound, createAbsoluteElement, createNewEvent, escapeRegExpChars, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isMobile, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeElement, sign, toCssWidth };
|
|
16090
|
+
export { Plugin as Autocomplete, Plugin$1 as Breadcrumb, Plugin$2 as Button, Plugin$3 as Carousel, Plugin$4 as Checkbox, Plugin$6 as Clockpicker, Plugin$5 as Collapse, ConfigComponent as ConfigProgrammatic, Plugin$7 as Datepicker, Plugin$8 as Datetimepicker, Plugin$9 as Dialog, DialogProgrammatic, Plugin$a as Dropdown, Plugin$b as Field, Plugin$c as Icon, Plugin$d as Image, Plugin$e as Input, Plugin$f as Loading, LoadingProgrammatic, Plugin$g as Menu, Plugin$h as Message, Plugin$i as Modal, ModalProgrammatic, Plugin$k as Navbar, Plugin$j as Notification, NotificationProgrammatic, Plugin$l as Numberinput, Plugin$m as Pagination, Plugin$n as Progress, Plugin$o as Radio, Plugin$p as Rate, Plugin$q as Select, Plugin$s as Sidebar, Plugin$r as Skeleton, Plugin$t as Slider, Plugin$u as Snackbar, SnackbarProgrammatic, Plugin$v as Steps, Plugin$w as Switch, Plugin$x as Table, Plugin$y as Tabs, Plugin$z as Tag, Plugin$A as Taginput, Plugin$B as Timepicker, Plugin$C as Toast, ToastProgrammatic, Plugin$D as Tooltip, Plugin$E as Upload, bound, createAbsoluteElement, createNewEvent, escapeRegExpChars, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isMobile, isNil, isVueComponent, isWebpSupported, matchWithGroups, merge, mod, multiColumnSort, removeDiacriticsFromString, removeElement, sign, toCssWidth };
|