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,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
defaultImageResponsive: true,
|
|
164
164
|
defaultImageRatio: null,
|
|
165
165
|
defaultImageSrcsetFormatter: null,
|
|
166
|
+
defaultBreadcrumbTag: 'a',
|
|
167
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
168
|
+
defaultBreadcrumbSeparator: '',
|
|
169
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
166
170
|
customIconPacks: null
|
|
167
171
|
};
|
|
168
172
|
|
|
@@ -671,7 +675,8 @@
|
|
|
671
675
|
hour: this.localeOptions.hour || 'numeric',
|
|
672
676
|
minute: this.localeOptions.minute || 'numeric',
|
|
673
677
|
second: this.enableSeconds ? this.localeOptions.second || 'numeric' : undefined,
|
|
674
|
-
|
|
678
|
+
// Fixes 12 hour display github.com/buefy/buefy/issues/3418
|
|
679
|
+
hourCycle: !this.isHourFormat24 ? 'h12' : 'h23'
|
|
675
680
|
});
|
|
676
681
|
},
|
|
677
682
|
newHourFormat: function newHourFormat() {
|
|
@@ -839,10 +844,10 @@
|
|
|
839
844
|
}
|
|
840
845
|
},
|
|
841
846
|
|
|
842
|
-
/**
|
|
843
|
-
* When v-model is changed:
|
|
844
|
-
* 1. Update internal value.
|
|
845
|
-
* 2. If it's invalid, validate again.
|
|
847
|
+
/**
|
|
848
|
+
* When v-model is changed:
|
|
849
|
+
* 1. Update internal value.
|
|
850
|
+
* 2. If it's invalid, validate again.
|
|
846
851
|
*/
|
|
847
852
|
value: {
|
|
848
853
|
handler: function handler(value) {
|
|
@@ -904,7 +909,7 @@
|
|
|
904
909
|
time.setHours(hours);
|
|
905
910
|
time.setMinutes(minutes);
|
|
906
911
|
time.setSeconds(seconds);
|
|
907
|
-
this.computedValue = new Date(time.getTime());
|
|
912
|
+
if (!isNaN(time.getTime())) this.computedValue = new Date(time.getTime());
|
|
908
913
|
}
|
|
909
914
|
},
|
|
910
915
|
updateInternalState: function updateInternalState(value) {
|
|
@@ -1054,8 +1059,8 @@
|
|
|
1054
1059
|
return disabled;
|
|
1055
1060
|
},
|
|
1056
1061
|
|
|
1057
|
-
/*
|
|
1058
|
-
* Parse string into date
|
|
1062
|
+
/*
|
|
1063
|
+
* Parse string into date
|
|
1059
1064
|
*/
|
|
1060
1065
|
onChange: function onChange(value) {
|
|
1061
1066
|
var date = this.timeParser(value, this);
|
|
@@ -1070,8 +1075,8 @@
|
|
|
1070
1075
|
}
|
|
1071
1076
|
},
|
|
1072
1077
|
|
|
1073
|
-
/*
|
|
1074
|
-
* Toggle timepicker
|
|
1078
|
+
/*
|
|
1079
|
+
* Toggle timepicker
|
|
1075
1080
|
*/
|
|
1076
1081
|
toggle: function toggle(active) {
|
|
1077
1082
|
if (this.$refs.dropdown) {
|
|
@@ -1079,15 +1084,15 @@
|
|
|
1079
1084
|
}
|
|
1080
1085
|
},
|
|
1081
1086
|
|
|
1082
|
-
/*
|
|
1083
|
-
* Close timepicker
|
|
1087
|
+
/*
|
|
1088
|
+
* Close timepicker
|
|
1084
1089
|
*/
|
|
1085
1090
|
close: function close() {
|
|
1086
1091
|
this.toggle(false);
|
|
1087
1092
|
},
|
|
1088
1093
|
|
|
1089
|
-
/*
|
|
1090
|
-
* Call default onFocus method and show timepicker
|
|
1094
|
+
/*
|
|
1095
|
+
* Call default onFocus method and show timepicker
|
|
1091
1096
|
*/
|
|
1092
1097
|
handleOnFocus: function handleOnFocus() {
|
|
1093
1098
|
this.onFocus();
|
|
@@ -1097,8 +1102,8 @@
|
|
|
1097
1102
|
}
|
|
1098
1103
|
},
|
|
1099
1104
|
|
|
1100
|
-
/*
|
|
1101
|
-
* Format date into string 'HH-MM-SS'
|
|
1105
|
+
/*
|
|
1106
|
+
* Format date into string 'HH-MM-SS'
|
|
1102
1107
|
*/
|
|
1103
1108
|
formatHHMMSS: function formatHHMMSS(value) {
|
|
1104
1109
|
var date = new Date(value);
|
|
@@ -1113,8 +1118,8 @@
|
|
|
1113
1118
|
return '';
|
|
1114
1119
|
},
|
|
1115
1120
|
|
|
1116
|
-
/*
|
|
1117
|
-
* Parse time from string
|
|
1121
|
+
/*
|
|
1122
|
+
* Parse time from string
|
|
1118
1123
|
*/
|
|
1119
1124
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
1120
1125
|
var date = event.target.value;
|
|
@@ -1145,8 +1150,8 @@
|
|
|
1145
1150
|
return (value < 10 ? '0' : '') + value;
|
|
1146
1151
|
},
|
|
1147
1152
|
|
|
1148
|
-
/*
|
|
1149
|
-
* Format date into string
|
|
1153
|
+
/*
|
|
1154
|
+
* Format date into string
|
|
1150
1155
|
*/
|
|
1151
1156
|
formatValue: function formatValue(date) {
|
|
1152
1157
|
if (date && !isNaN(date)) {
|
|
@@ -1156,8 +1161,8 @@
|
|
|
1156
1161
|
}
|
|
1157
1162
|
},
|
|
1158
1163
|
|
|
1159
|
-
/**
|
|
1160
|
-
* Keypress event that is bound to the document.
|
|
1164
|
+
/**
|
|
1165
|
+
* Keypress event that is bound to the document.
|
|
1161
1166
|
*/
|
|
1162
1167
|
keyPress: function keyPress(_ref) {
|
|
1163
1168
|
var key = _ref.key;
|
|
@@ -1167,8 +1172,8 @@
|
|
|
1167
1172
|
}
|
|
1168
1173
|
},
|
|
1169
1174
|
|
|
1170
|
-
/**
|
|
1171
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
1175
|
+
/**
|
|
1176
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
1172
1177
|
*/
|
|
1173
1178
|
onActiveChange: function onActiveChange(value) {
|
|
1174
1179
|
if (!value) {
|
|
@@ -2551,12 +2556,12 @@
|
|
|
2551
2556
|
return this.grouped || this.groupMultiline || this.hasAddons();
|
|
2552
2557
|
},
|
|
2553
2558
|
|
|
2554
|
-
/**
|
|
2555
|
-
* Correct Bulma class for the side of the addon or group.
|
|
2556
|
-
*
|
|
2557
|
-
* This is not kept like the others (is-small, etc.),
|
|
2558
|
-
* because since 'has-addons' is set automatically it
|
|
2559
|
-
* doesn't make sense to teach users what addons are exactly.
|
|
2559
|
+
/**
|
|
2560
|
+
* Correct Bulma class for the side of the addon or group.
|
|
2561
|
+
*
|
|
2562
|
+
* This is not kept like the others (is-small, etc.),
|
|
2563
|
+
* because since 'has-addons' is set automatically it
|
|
2564
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
2560
2565
|
*/
|
|
2561
2566
|
newPosition: function newPosition() {
|
|
2562
2567
|
if (this.position === undefined) return;
|
|
@@ -2566,9 +2571,9 @@
|
|
|
2566
2571
|
if (this.position) return prefix + position[1];
|
|
2567
2572
|
},
|
|
2568
2573
|
|
|
2569
|
-
/**
|
|
2570
|
-
* Formatted message in case it's an array
|
|
2571
|
-
* (each element is separated by <br> tag)
|
|
2574
|
+
/**
|
|
2575
|
+
* Formatted message in case it's an array
|
|
2576
|
+
* (each element is separated by <br> tag)
|
|
2572
2577
|
*/
|
|
2573
2578
|
formattedMessage: function formattedMessage() {
|
|
2574
2579
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -2638,22 +2643,22 @@
|
|
|
2638
2643
|
}
|
|
2639
2644
|
},
|
|
2640
2645
|
watch: {
|
|
2641
|
-
/**
|
|
2642
|
-
* Set internal type when prop change.
|
|
2646
|
+
/**
|
|
2647
|
+
* Set internal type when prop change.
|
|
2643
2648
|
*/
|
|
2644
2649
|
type: function type(value) {
|
|
2645
2650
|
this.newType = value;
|
|
2646
2651
|
},
|
|
2647
2652
|
|
|
2648
|
-
/**
|
|
2649
|
-
* Set internal message when prop change.
|
|
2653
|
+
/**
|
|
2654
|
+
* Set internal message when prop change.
|
|
2650
2655
|
*/
|
|
2651
2656
|
message: function message(value) {
|
|
2652
2657
|
this.newMessage = value;
|
|
2653
2658
|
},
|
|
2654
2659
|
|
|
2655
|
-
/**
|
|
2656
|
-
* Set parent message if we use Field in Field.
|
|
2660
|
+
/**
|
|
2661
|
+
* Set parent message if we use Field in Field.
|
|
2657
2662
|
*/
|
|
2658
2663
|
newMessage: function newMessage(value) {
|
|
2659
2664
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -2661,16 +2666,18 @@
|
|
|
2661
2666
|
this.parent.newType = this.newType;
|
|
2662
2667
|
}
|
|
2663
2668
|
|
|
2664
|
-
this.parent.
|
|
2669
|
+
if (!this.parent.message) {
|
|
2670
|
+
this.parent.newMessage = value;
|
|
2671
|
+
}
|
|
2665
2672
|
}
|
|
2666
2673
|
}
|
|
2667
2674
|
},
|
|
2668
2675
|
methods: {
|
|
2669
|
-
/**
|
|
2670
|
-
* Field has addons if there are more than one slot
|
|
2671
|
-
* (element / component) in the Field.
|
|
2672
|
-
* Or is grouped when prop is set.
|
|
2673
|
-
* Is a method to be called when component re-render.
|
|
2676
|
+
/**
|
|
2677
|
+
* Field has addons if there are more than one slot
|
|
2678
|
+
* (element / component) in the Field.
|
|
2679
|
+
* Or is grouped when prop is set.
|
|
2680
|
+
* Is a method to be called when component re-render.
|
|
2674
2681
|
*/
|
|
2675
2682
|
fieldType: function fieldType() {
|
|
2676
2683
|
if (this.grouped) return 'is-grouped';
|
|
@@ -2704,7 +2711,7 @@
|
|
|
2704
2711
|
const __vue_script__$5 = script$5;
|
|
2705
2712
|
|
|
2706
2713
|
/* template */
|
|
2707
|
-
var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false
|
|
2714
|
+
var __vue_render__$4 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
|
|
2708
2715
|
var __vue_staticRenderFns__$4 = [];
|
|
2709
2716
|
|
|
2710
2717
|
/* style */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Timepicker={})}(this,function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){i(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function o(e){return function(e){if(Array.isArray(e))return e}(e)||r(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var l={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,customIconPacks:null};function u(e,t){return(e&t)===t}var c=function(e){return"object"===t(e)&&!Array.isArray(e)},d=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var a=Object.getOwnPropertyNames(n).map(function(s){return i({},s,function(e){return c(n[e])&&null!==t&&t.hasOwnProperty(e)&&c(t[e])}(s)?e(t[s],n[s],o):n[s])}).reduce(function(e,t){return s({},e,{},t)},{});return s({},t,{},a)}return Object.assign(t,n)},h={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return h.Android()||h.BlackBerry()||h.iOS()||h.Opera()||h.Windows()}};var f,p={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return l.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return l.defaultLocale}},statusIcon:{type:Boolean,default:function(){return l.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||l.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){var e=(this.parentField||{}).newType;if(e){if("string"==typeof e)return e;for(var t in e)if(e[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var e=this.getElement();void 0!==e&&this.$nextTick(function(){e&&e.focus()})},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e),this.checkHtml5Validity()},getElement:function(){for(var e,t=this.$refs[this.$data._elementRef];(e=t)&&e._isVue;)t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity:function(e,t){var i=this;this.$nextTick(function(){i.parentField&&(i.parentField.type||(i.parentField.newType=e),i.parentField.message||(i.parentField.newMessage=t))})},checkHtml5Validity:function(){if(this.useHtml5Validation){var e=this.getElement();if(void 0!==e)return e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},m="AM",v="PM",g={mixins:[p],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(e){return"24"===e||"12"===e}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(e,t){return"function"==typeof l.defaultTimeFormatter?l.defaultTimeFormatter(e):function(e,t){return t.dtf.format(e)}(e,t)}},timeParser:{type:Function,default:function(e,t){return"function"==typeof l.defaultTimeParser?l.defaultTimeParser(e):function(e,t){if(e){var i=null;if(t.computedValue&&!isNaN(t.computedValue)?i=new Date(t.computedValue):(i=t.timeCreator()).setMilliseconds(0),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){var n=t.dtf.formatToParts(i).map(function(e){return"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?"((?!=<".concat(e.type,">)(").concat(t.amString,"|").concat(t.pmString,"|").concat(m,"|").concat(v,"|").concat(m.toLowerCase(),"|").concat(v.toLowerCase(),")?)"):"((?!=<".concat(e.type,">)\\d+)")}).join(""),s=(d=n,h=e.match(d),d.toString().match(/<(.+?)>/g).map(function(e){var t=e.match(/<(.+)>/);return!t||t.length<=0?null:e.match(/<(.+)>/)[1]}).reduce(function(e,t,i,n){return h&&h.length>i?e[t]=h[i+1]:e[t]=null,e},{}));if(s.hour=s.hour?parseInt(s.hour,10):null,s.minute=s.minute?parseInt(s.minute,10):null,s.second=s.second?parseInt(s.second,10):null,s.hour&&s.hour>=0&&s.hour<24&&s.minute&&s.minute>=0&&s.minute<59)return s.dayPeriod&&(s.dayPeriod.toLowerCase()===t.pmString.toLowerCase()||s.dayPeriod.toLowerCase()===v.toLowerCase())&&s.hour<12&&(s.hour+=12),i.setHours(s.hour),i.setMinutes(s.minute),i.setSeconds(s.second||0),i}var o=!1;if("12"===t.hourFormat){var a=e.split(" ");e=a[0],o=a[1]===t.amString||a[1]===m}var r=e.split(":"),l=parseInt(r[0],10),u=parseInt(r[1],10),c=t.enableSeconds?parseInt(r[2],10):0;return isNaN(l)||l<0||l>23||"12"===t.hourFormat&&(l<1||l>12)||isNaN(u)||u<0||u>59?null:(i.setSeconds(c),i.setMinutes(u),"12"===t.hourFormat&&(o&&12===l?l=0:o||12===l||(l+=12)),i.setHours(l),new Date(i.getTime()))}var d,h;return null}(e,t)}},mobileNative:{type:Boolean,default:function(){return l.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"==typeof l.defaultTimeCreator?l.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:m,PM:v,HOUR_FORMAT_24:"24",HOUR_FORMAT_12:"12"}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(e){this.dateSelected=e,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hour12:!this.isHourFormat24})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?"12":"24")},sampleTime:function(){var e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"hour"===t[i-1].type});if(i)return i.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"minute"===t[i-1].type});if(i)return i.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"second"===t[i-1].type});if(i)return i.value}},amString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(10);var t=this.dtf.formatToParts(e).find(function(e){return"dayPeriod"===e.type});if(t)return t.value}return m},pmString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(20);var t=this.dtf.formatToParts(e).find(function(e){return"dayPeriod"===e.type});if(t)return t.value}return v},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var e=[],t=this.isHourFormat24?24:12,i=0;i<t;i+=this.incrementHours){var n=i,s=n;this.isHourFormat24||(s=n=i+1,this.meridienSelected===this.amString?12===n&&(n=0):this.meridienSelected===this.pmString&&12!==n&&(n+=12)),e.push({label:this.formatNumber(s),value:n})}return e},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens:function(){return[this.amString,this.pmString]},isMobile:function(){return this.mobileNative&&h.any()},isHourFormat24:function(){return"24"===this.newHourFormat}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange:function(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(e,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(e,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(e,10),this.meridienSelected)},updateDateSelected:function(e,t,i,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){var s=null;this.computedValue&&!isNaN(this.computedValue)?s=new Date(this.computedValue):(s=this.timeCreator()).setMilliseconds(0),s.setHours(e),s.setMinutes(t),s.setSeconds(i),this.computedValue=new Date(s.getTime())}},updateInternalState:function(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled:function(e){var t=this,i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minutes.every(function(i){return t.isMinuteDisabledForHour(e,i.value)});i=e<n||s}if(this.maxTime&&!i){var o=this.maxTime.getHours();i=e>o}this.unselectableTimes&&(i||(i=this.unselectableTimes.filter(function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===e&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===t.secondsSelected:null!==t.minutesSelected&&(i.getHours()===e&&i.getMinutes()===t.minutesSelected)}).length>0||this.minutes.every(function(i){return t.unselectableTimes.filter(function(t){return t.getHours()===e&&t.getMinutes()===i.value}).length>0})));return i},isMinuteDisabledForHour:function(e,t){var i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){var o=this.maxTime.getHours(),a=this.maxTime.getMinutes();i=e===o&&t>a}return i},isMinuteDisabled:function(e){var t=this,i=!1;null!==this.hoursSelected&&(i=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&(i||(i=this.unselectableTimes.filter(function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===t.hoursSelected&&i.getMinutes()===e&&i.getSeconds()===t.secondsSelected:i.getHours()===t.hoursSelected&&i.getMinutes()===e}).length>0)));return i},isSecondDisabled:function(e){var t=this,i=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))i=!0;else{if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes(),o=this.minTime.getSeconds();i=this.hoursSelected===n&&this.minutesSelected===s&&e<o}if(this.maxTime&&!i){var a=this.maxTime.getHours(),r=this.maxTime.getMinutes(),l=this.maxTime.getSeconds();i=this.hoursSelected===a&&this.minutesSelected===r&&e>l}}if(this.unselectableTimes)if(!i)i=this.unselectableTimes.filter(function(i){return i.getHours()===t.hoursSelected&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===e}).length>0}return i},onChange:function(e){var t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t)?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(e){var t=new Date(e);if(e&&!isNaN(t)){var i=t.getHours(),n=t.getMinutes(),s=t.getSeconds();return this.formatNumber(i,!0)+":"+this.formatNumber(n,!0)+":"+this.formatNumber(s,!0)}return""},onChangeNativePicker:function(e){var t=e.target.value;if(t){var i=null;this.computedValue&&!isNaN(this.computedValue)?i=new Date(this.computedValue):(i=new Date).setMilliseconds(0);var n=t.split(":");i.setHours(parseInt(n[0],10)),i.setMinutes(parseInt(n[1],10)),i.setSeconds(n[2]?parseInt(n[2],10):0),this.computedValue=new Date(i.getTime())}else this.computedValue=null},formatNumber:function(e,t){return this.isHourFormat24||t?this.pad(e):e},pad:function(e){return(e<10?"0":"")+e},formatValue:function(e){return e&&!isNaN(e)?this.timeFormatter(e,this):null},keyPress:function(e){var t=e.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===t||"Esc"===t)&&this.toggle(!1)},onActiveChange:function(e){e||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},y=["escape","outside"];var S=function(e,t,i,n,s,o,a,r,l,u){"boolean"!=typeof a&&(l=r,r=a,a=!1);var c,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):t&&(c=a?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var h=d.render;d.render=function(e,t){return c.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return i};var w=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses},[e.inline?e._e():i("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button",tabindex:!e.disabled&&0,"aria-haspopup":"true"},on:{click:e.onClick,contextmenu:function(t){return t.preventDefault(),e.onContextMenu(t)},mouseenter:e.onHover,"!focus":function(t){return e.onFocus(t)}}},[e._t("trigger",null,{active:e.isActive})],2),i("transition",{attrs:{name:e.animation}},[e.isMobileModal?i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),i("transition",{attrs:{name:e.animation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[i("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole}},[e._t("default")],2)])])],1)},staticRenderFns:[]},void 0,{name:"BDropdown",directives:{trapFocus:{bind:function(e,t){var i=t.value;if(void 0===i||i){var n=b(e),s=b(e,!0);n&&n.length>0&&(f=function(t){n=b(e),s=b(e,!0);var i=n[0],o=n[n.length-1];t.target===i&&t.shiftKey&&"Tab"===t.key?(t.preventDefault(),o.focus()):(t.target===o||Array.from(s).indexOf(t.target)>=0)&&!t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i.focus())},e.addEventListener("keydown",f))}},unbind:function(e){e.removeEventListener("keydown",f)}}},mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return i({},"b"+e,this)}};return u(t,1)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter(function(t){return t!==e})}},u(t,3)&&(n.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,i=0;!function n(s){var o=!0,a=!1,r=void 0;try{for(var l,u=function(){var s=l.value;if(s.tag===t){var o=e.find(function(e){return e.$vnode===s});o&&(o.index=i++)}else if(s.tag){var a=s.componentInstance?s.componentInstance.$scopedSlots.default?s.componentInstance.$scopedSlots.default():s.componentInstance.$children:s.children;Array.isArray(a)&&a.length>0&&n(a.map(function(e){return e.$vnode}))}},c=s[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)u()}catch(e){a=!0,r=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw r}}return!1}(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort(function(e,t){return e.index-t.index})}})),n}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return l.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(e){return["menu","list","dialog"].indexOf(e)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return l.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?y:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?(e=this.maxHeight,void 0===e?null:isNaN(e)?e:e+"px"):null,overflow:this.scrollable?"auto":null};var e},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(e){this.selected=e},isActive:function(e){var t=this;this.$emit("active-change",e),this.appendToBody&&this.$nextTick(function(){t.updateAppendToBody()})}},methods:{selectItem:function(e){this.multiple?(this.selected?-1===this.selected.indexOf(e)?this.selected=[].concat(a(this.selected),[e]):this.selected=this.selected.filter(function(t){return t!==e}):this.selected=[e],this.$emit("change",this.selected)):this.selected!==e&&(this.selected=e,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t=this.$refs.dropdownMenu.querySelectorAll("*"),i=!0,n=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){if(e===o.value)return!0}}catch(e){n=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(n)throw s}}}if(void 0!==this.$refs.trigger){var r=this.$refs.trigger.querySelectorAll("*"),l=!0,u=!1,c=void 0;try{for(var d,h=r[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){if(e===d.value)return!0}}catch(e){u=!0,c=e}finally{try{l||null==h.return||h.return()}finally{if(u)throw c}}}return!1},clickedOutside:function(e){if(!(this.cancelOptions.indexOf("outside")<0||this.inline)){var t="shadowRoot"in this.$root.$options?e.composedPath()[0]:e.target;this.isInWhiteList(t)||(this.isActive=!1)}},keyPress:function(e){var t=e.key;if(this.isActive&&("Escape"===t||"Esc"===t)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick(function(){var t=!e.isActive;e.isActive=t,setTimeout(function(){return e.isActive=t})}))},updateAppendToBody:function(){var e=this.$refs.dropdown,i=this.$refs.dropdownMenu,n=this.$refs.trigger;if(i&&n){var s=this.$data._bodyEl.children[0];if(s.classList.forEach(function(e){return s.classList.remove(e)}),s.classList.add("dropdown"),s.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&s.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach(function(e){if(e&&"object"===t(e))for(var i in e)e[i]&&s.classList.add(i)}),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,a=this.$data._bodyEl;a.classList.forEach(function(e){return a.classList.remove(e)}),o.classList.forEach(function(e){a.classList.add(e)})}var r=n.getBoundingClientRect(),l=r.top+window.scrollY,u=r.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?l+=n.clientHeight:l-=i.clientHeight,this.position&&this.position.indexOf("left")>=0&&(u-=i.clientWidth-n.clientWidth),this.style={position:"absolute",top:"".concat(l,"px"),left:"".concat(u,"px"),zIndex:"99",width:this.expanded?"".concat(e.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e))}},void 0,!1,void 0,void 0,void 0);var C=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.separator?i("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?i("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):i("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"BDropdownItem",mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.data=function(){return{index:null}}),i}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}},void 0,!1,void 0,void 0,void 0),k={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},T=function(){var e=l&&l.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var x=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?i(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):i("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var e;return(e={mdi:k,fa:T(),fas:T(),far:T(),fad:T(),fab:T(),fal:T()},l&&l.customIconPacks&&(e=d(e,l.customIconPacks,!0)),e)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||l.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1)){var i=o(e).slice(1);return"has-text-".concat(i.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||l.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},void 0,!1,void 0,void 0,void 0);var _=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:e.rootClasses},["textarea"!==e.type?i("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):i("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e.icon?i("b-icon",{staticClass:"is-left",class:{"is-clickable":e.iconClickable},attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize},nativeOn:{click:function(t){return e.iconClick("icon-click",t)}}}):e._e(),!e.loading&&e.hasIconRight?i("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal||e.iconRightClickable},attrs:{icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:""},nativeOn:{click:function(t){return e.rightIconClick(t)}}}):e._e(),e.maxlength&&e.hasCounter&&"number"!==e.type?i("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v(" "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+" ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:i({},x.name,x),mixins:[p],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return l.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||l.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(e){this.newValue=e}},methods:{togglePasswordVisibility:function(){var e=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){e.focus()})},iconClick:function(e,t){var i=this;this.$emit(e,t),this.$nextTick(function(){i.focus()})},rightIconClick:function(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput:function(e){if(!this.lazy){var t=e.target.value;this.updateValue(t)}},onChange:function(e){if(this.lazy){var t=e.target.value;this.updateValue(t)}},updateValue:function(e){this.computedValue=e,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var M=S({},void 0,{name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(e){var t=this,i=!0;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map(function(n){return n.tag?(i&&(s=t.message,i=!1),e("b-field",{attrs:{type:t.type,message:s}},[n])):n;var s}))}},void 0,void 0,void 0,void 0,void 0);var I=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"field",class:e.rootClasses},[e.horizontal?i("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e.horizontal?i("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):e.hasInnerField?i("div",{staticClass:"field-body"},[i("b-field",{class:e.innerFieldClasses,attrs:{addons:!1,type:e.newType}},[e._t("default")],2)],1):[e._t("default")],e.hasMessage&&!e.horizontal?i("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message"):[e._l(e.formattedMessage,function(t,n){return[e._v(" "+e._s(t)+" "),n+1<e.formattedMessage.length?i("br",{key:n}):e._e()]})]],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"BField",components:i({},M.name,M),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return l.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach(function(t){if("string"==typeof t)e.push(t);else for(var i in t)t[i]&&e.push(i)});else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter(function(e){if(e)return e})},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter(function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0})[0];if(e){var t=["has-numberinput"],i=e.componentOptions.propsData.controlsPosition,n=e.componentOptions.propsData.size;return i&&t.push("has-numberinput-".concat(i)),n&&t.push("has-numberinput-".concat(n)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e},newMessage:function(e){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.newMessage=e)}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var e=0;return this.$slots.default&&(e=this.$slots.default.reduce(function(e,t){return t.tag?e+1:e},0)),e>1&&this.addons&&!this.horizontal}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},void 0,!1,void 0,void 0,void 0);var P,F=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[i("span",{staticClass:"select",class:e.spanClasses},[i("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:e.multiple,size:e.nativeSize},on:{blur:function(t){e.$emit("blur",t)&&e.checkHtml5Validity()},focus:function(t){return e.$emit("focus",t)},change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.computedValue=t.target.multiple?i:i[0]}}},"select",e.$attrs,!1),[e.placeholder?[null==e.computedValue?i("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v(" "+e._s(e.placeholder)+" ")]):e._e()]:e._e(),e._t("default")],2)]),e.icon?i("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},void 0,{name:"BSelect",components:i({},x.name,x),mixins:[p],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(e){this.selected=e,this.$emit("input",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var O,$=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"timepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?i("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[i("b-input",e._b({ref:"input",attrs:{autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggle(!0)},change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[i("b-dropdown-item",{attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[i("b-field",{attrs:{grouped:"",position:"is-centered"}},[i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onHoursChange(t.target.value)}},model:{value:e.hoursSelected,callback:function(t){e.hoursSelected=t},expression:"hoursSelected"}},e._l(e.hours,function(t){return i("option",{key:t.value,attrs:{disabled:e.isHourDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.hourLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onMinutesChange(t.target.value)}},model:{value:e.minutesSelected,callback:function(t){e.minutesSelected=t},expression:"minutesSelected"}},e._l(e.minutes,function(t){return i("option",{key:t.value,attrs:{disabled:e.isMinuteDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),e.enableSeconds?[i("span",{staticClass:"control is-colon"},[e._v(e._s(e.minuteLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onSecondsChange(t.target.value)}},model:{value:e.secondsSelected,callback:function(t){e.secondsSelected=t},expression:"secondsSelected"}},e._l(e.seconds,function(t){return i("option",{key:t.value,attrs:{disabled:e.isSecondDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.secondLiteral))])]:e._e(),e.isHourFormat24?e._e():i("b-select",{attrs:{disabled:e.disabled},nativeOn:{change:function(t){return e.onMeridienChange(t.target.value)}},model:{value:e.meridienSelected,callback:function(t){e.meridienSelected=t},expression:"meridienSelected"}},e._l(e.meridiens,function(t){return i("option",{key:t,domProps:{value:t}},[e._v(" "+e._s(t)+" ")])}),0)],2),void 0!==e.$slots.default&&e.$slots.default.length?i("footer",{staticClass:"timepicker-footer"},[e._t("default")],2):e._e()],1)],1):i("b-input",e._b({ref:"input",attrs:{type:"time",step:e.nativeStep,autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BTimepicker",components:(P={},i(P,_.name,_),i(P,I.name,I),i(P,F.name,F),i(P,x.name,x),i(P,w.name,w),i(P,C.name,C),P),mixins:[g],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},void 0,!1,void 0,void 0,void 0),A={install:function(e){!function(e,t){e.component(t.name,t)}(e,$)}};O=A,"undefined"!=typeof window&&window.Vue&&window.Vue.use(O),e.BTimepicker=$,e.default=A,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Timepicker={})}(this,function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){i(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function o(e){return function(e){if(Array.isArray(e))return e}(e)||r(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var l={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};function u(e,t){return(e&t)===t}var c=function(e){return"object"===t(e)&&!Array.isArray(e)},d=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var a=Object.getOwnPropertyNames(n).map(function(s){return i({},s,function(e){return c(n[e])&&null!==t&&t.hasOwnProperty(e)&&c(t[e])}(s)?e(t[s],n[s],o):n[s])}).reduce(function(e,t){return s({},e,{},t)},{});return s({},t,{},a)}return Object.assign(t,n)},h={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return h.Android()||h.BlackBerry()||h.iOS()||h.Opera()||h.Windows()}};var f,p={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return l.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return l.defaultLocale}},statusIcon:{type:Boolean,default:function(){return l.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||l.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){var e=(this.parentField||{}).newType;if(e){if("string"==typeof e)return e;for(var t in e)if(e[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var e=this.getElement();void 0!==e&&this.$nextTick(function(){e&&e.focus()})},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e),this.checkHtml5Validity()},getElement:function(){for(var e,t=this.$refs[this.$data._elementRef];(e=t)&&e._isVue;)t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity:function(e,t){var i=this;this.$nextTick(function(){i.parentField&&(i.parentField.type||(i.parentField.newType=e),i.parentField.message||(i.parentField.newMessage=t))})},checkHtml5Validity:function(){if(this.useHtml5Validation){var e=this.getElement();if(void 0!==e)return e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},m="AM",v="PM",g={mixins:[p],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(e){return"24"===e||"12"===e}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(e,t){return"function"==typeof l.defaultTimeFormatter?l.defaultTimeFormatter(e):function(e,t){return t.dtf.format(e)}(e,t)}},timeParser:{type:Function,default:function(e,t){return"function"==typeof l.defaultTimeParser?l.defaultTimeParser(e):function(e,t){if(e){var i=null;if(t.computedValue&&!isNaN(t.computedValue)?i=new Date(t.computedValue):(i=t.timeCreator()).setMilliseconds(0),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){var n=t.dtf.formatToParts(i).map(function(e){return"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?"((?!=<".concat(e.type,">)(").concat(t.amString,"|").concat(t.pmString,"|").concat(m,"|").concat(v,"|").concat(m.toLowerCase(),"|").concat(v.toLowerCase(),")?)"):"((?!=<".concat(e.type,">)\\d+)")}).join(""),s=(d=n,h=e.match(d),d.toString().match(/<(.+?)>/g).map(function(e){var t=e.match(/<(.+)>/);return!t||t.length<=0?null:e.match(/<(.+)>/)[1]}).reduce(function(e,t,i,n){return h&&h.length>i?e[t]=h[i+1]:e[t]=null,e},{}));if(s.hour=s.hour?parseInt(s.hour,10):null,s.minute=s.minute?parseInt(s.minute,10):null,s.second=s.second?parseInt(s.second,10):null,s.hour&&s.hour>=0&&s.hour<24&&s.minute&&s.minute>=0&&s.minute<59)return s.dayPeriod&&(s.dayPeriod.toLowerCase()===t.pmString.toLowerCase()||s.dayPeriod.toLowerCase()===v.toLowerCase())&&s.hour<12&&(s.hour+=12),i.setHours(s.hour),i.setMinutes(s.minute),i.setSeconds(s.second||0),i}var o=!1;if("12"===t.hourFormat){var a=e.split(" ");e=a[0],o=a[1]===t.amString||a[1]===m}var r=e.split(":"),l=parseInt(r[0],10),u=parseInt(r[1],10),c=t.enableSeconds?parseInt(r[2],10):0;return isNaN(l)||l<0||l>23||"12"===t.hourFormat&&(l<1||l>12)||isNaN(u)||u<0||u>59?null:(i.setSeconds(c),i.setMinutes(u),"12"===t.hourFormat&&(o&&12===l?l=0:o||12===l||(l+=12)),i.setHours(l),new Date(i.getTime()))}var d,h;return null}(e,t)}},mobileNative:{type:Boolean,default:function(){return l.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"==typeof l.defaultTimeCreator?l.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:m,PM:v,HOUR_FORMAT_24:"24",HOUR_FORMAT_12:"12"}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(e){this.dateSelected=e,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?"12":"24")},sampleTime:function(){var e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"hour"===t[i-1].type});if(i)return i.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"minute"===t[i-1].type});if(i)return i.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(function(e,i){return i>0&&"second"===t[i-1].type});if(i)return i.value}},amString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(10);var t=this.dtf.formatToParts(e).find(function(e){return"dayPeriod"===e.type});if(t)return t.value}return m},pmString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(20);var t=this.dtf.formatToParts(e).find(function(e){return"dayPeriod"===e.type});if(t)return t.value}return v},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var e=[],t=this.isHourFormat24?24:12,i=0;i<t;i+=this.incrementHours){var n=i,s=n;this.isHourFormat24||(s=n=i+1,this.meridienSelected===this.amString?12===n&&(n=0):this.meridienSelected===this.pmString&&12!==n&&(n+=12)),e.push({label:this.formatNumber(s),value:n})}return e},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens:function(){return[this.amString,this.pmString]},isMobile:function(){return this.mobileNative&&h.any()},isHourFormat24:function(){return"24"===this.newHourFormat}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange:function(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(e,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(e,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(e,10),this.meridienSelected)},updateDateSelected:function(e,t,i,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){var s=null;this.computedValue&&!isNaN(this.computedValue)?s=new Date(this.computedValue):(s=this.timeCreator()).setMilliseconds(0),s.setHours(e),s.setMinutes(t),s.setSeconds(i),isNaN(s.getTime())||(this.computedValue=new Date(s.getTime()))}},updateInternalState:function(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled:function(e){var t=this,i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minutes.every(function(i){return t.isMinuteDisabledForHour(e,i.value)});i=e<n||s}if(this.maxTime&&!i){var o=this.maxTime.getHours();i=e>o}this.unselectableTimes&&(i||(i=this.unselectableTimes.filter(function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===e&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===t.secondsSelected:null!==t.minutesSelected&&(i.getHours()===e&&i.getMinutes()===t.minutesSelected)}).length>0||this.minutes.every(function(i){return t.unselectableTimes.filter(function(t){return t.getHours()===e&&t.getMinutes()===i.value}).length>0})));return i},isMinuteDisabledForHour:function(e,t){var i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){var o=this.maxTime.getHours(),a=this.maxTime.getMinutes();i=e===o&&t>a}return i},isMinuteDisabled:function(e){var t=this,i=!1;null!==this.hoursSelected&&(i=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&(i||(i=this.unselectableTimes.filter(function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===t.hoursSelected&&i.getMinutes()===e&&i.getSeconds()===t.secondsSelected:i.getHours()===t.hoursSelected&&i.getMinutes()===e}).length>0)));return i},isSecondDisabled:function(e){var t=this,i=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))i=!0;else{if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes(),o=this.minTime.getSeconds();i=this.hoursSelected===n&&this.minutesSelected===s&&e<o}if(this.maxTime&&!i){var a=this.maxTime.getHours(),r=this.maxTime.getMinutes(),l=this.maxTime.getSeconds();i=this.hoursSelected===a&&this.minutesSelected===r&&e>l}}if(this.unselectableTimes)if(!i)i=this.unselectableTimes.filter(function(i){return i.getHours()===t.hoursSelected&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===e}).length>0}return i},onChange:function(e){var t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t)?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(e){var t=new Date(e);if(e&&!isNaN(t)){var i=t.getHours(),n=t.getMinutes(),s=t.getSeconds();return this.formatNumber(i,!0)+":"+this.formatNumber(n,!0)+":"+this.formatNumber(s,!0)}return""},onChangeNativePicker:function(e){var t=e.target.value;if(t){var i=null;this.computedValue&&!isNaN(this.computedValue)?i=new Date(this.computedValue):(i=new Date).setMilliseconds(0);var n=t.split(":");i.setHours(parseInt(n[0],10)),i.setMinutes(parseInt(n[1],10)),i.setSeconds(n[2]?parseInt(n[2],10):0),this.computedValue=new Date(i.getTime())}else this.computedValue=null},formatNumber:function(e,t){return this.isHourFormat24||t?this.pad(e):e},pad:function(e){return(e<10?"0":"")+e},formatValue:function(e){return e&&!isNaN(e)?this.timeFormatter(e,this):null},keyPress:function(e){var t=e.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===t||"Esc"===t)&&this.toggle(!1)},onActiveChange:function(e){e||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},y=["escape","outside"];var S=function(e,t,i,n,s,o,a,r,l,u){"boolean"!=typeof a&&(l=r,r=a,a=!1);var c,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):t&&(c=a?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var h=d.render;d.render=function(e,t){return c.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return i};var w=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses},[e.inline?e._e():i("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button",tabindex:!e.disabled&&0,"aria-haspopup":"true"},on:{click:e.onClick,contextmenu:function(t){return t.preventDefault(),e.onContextMenu(t)},mouseenter:e.onHover,"!focus":function(t){return e.onFocus(t)}}},[e._t("trigger",null,{active:e.isActive})],2),i("transition",{attrs:{name:e.animation}},[e.isMobileModal?i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),i("transition",{attrs:{name:e.animation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[i("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole}},[e._t("default")],2)])])],1)},staticRenderFns:[]},void 0,{name:"BDropdown",directives:{trapFocus:{bind:function(e,t){var i=t.value;if(void 0===i||i){var n=b(e),s=b(e,!0);n&&n.length>0&&(f=function(t){n=b(e),s=b(e,!0);var i=n[0],o=n[n.length-1];t.target===i&&t.shiftKey&&"Tab"===t.key?(t.preventDefault(),o.focus()):(t.target===o||Array.from(s).indexOf(t.target)>=0)&&!t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i.focus())},e.addEventListener("keydown",f))}},unbind:function(e){e.removeEventListener("keydown",f)}}},mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return i({},"b"+e,this)}};return u(t,1)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter(function(t){return t!==e})}},u(t,3)&&(n.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,i=0;!function n(s){var o=!0,a=!1,r=void 0;try{for(var l,u=function(){var s=l.value;if(s.tag===t){var o=e.find(function(e){return e.$vnode===s});o&&(o.index=i++)}else if(s.tag){var a=s.componentInstance?s.componentInstance.$scopedSlots.default?s.componentInstance.$scopedSlots.default():s.componentInstance.$children:s.children;Array.isArray(a)&&a.length>0&&n(a.map(function(e){return e.$vnode}))}},c=s[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)u()}catch(e){a=!0,r=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw r}}return!1}(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort(function(e,t){return e.index-t.index})}})),n}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return l.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(e){return["menu","list","dialog"].indexOf(e)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return l.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?y:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?(e=this.maxHeight,void 0===e?null:isNaN(e)?e:e+"px"):null,overflow:this.scrollable?"auto":null};var e},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(e){this.selected=e},isActive:function(e){var t=this;this.$emit("active-change",e),this.appendToBody&&this.$nextTick(function(){t.updateAppendToBody()})}},methods:{selectItem:function(e){this.multiple?(this.selected?-1===this.selected.indexOf(e)?this.selected=[].concat(a(this.selected),[e]):this.selected=this.selected.filter(function(t){return t!==e}):this.selected=[e],this.$emit("change",this.selected)):this.selected!==e&&(this.selected=e,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t=this.$refs.dropdownMenu.querySelectorAll("*"),i=!0,n=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){if(e===o.value)return!0}}catch(e){n=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(n)throw s}}}if(void 0!==this.$refs.trigger){var r=this.$refs.trigger.querySelectorAll("*"),l=!0,u=!1,c=void 0;try{for(var d,h=r[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){if(e===d.value)return!0}}catch(e){u=!0,c=e}finally{try{l||null==h.return||h.return()}finally{if(u)throw c}}}return!1},clickedOutside:function(e){if(!(this.cancelOptions.indexOf("outside")<0||this.inline)){var t="shadowRoot"in this.$root.$options?e.composedPath()[0]:e.target;this.isInWhiteList(t)||(this.isActive=!1)}},keyPress:function(e){var t=e.key;if(this.isActive&&("Escape"===t||"Esc"===t)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){this.triggers.indexOf("click")<0||this.toggle()},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||(this.isHoverable=!0)},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick(function(){var t=!e.isActive;e.isActive=t,setTimeout(function(){return e.isActive=t})}))},updateAppendToBody:function(){var e=this.$refs.dropdown,i=this.$refs.dropdownMenu,n=this.$refs.trigger;if(i&&n){var s=this.$data._bodyEl.children[0];if(s.classList.forEach(function(e){return s.classList.remove(e)}),s.classList.add("dropdown"),s.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&s.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach(function(e){if(e&&"object"===t(e))for(var i in e)e[i]&&s.classList.add(i)}),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,a=this.$data._bodyEl;a.classList.forEach(function(e){return a.classList.remove(e)}),o.classList.forEach(function(e){a.classList.add(e)})}var r=n.getBoundingClientRect(),l=r.top+window.scrollY,u=r.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?l+=n.clientHeight:l-=i.clientHeight,this.position&&this.position.indexOf("left")>=0&&(u-=i.clientWidth-n.clientWidth),this.style={position:"absolute",top:"".concat(l,"px"),left:"".concat(u,"px"),zIndex:"99",width:this.expanded?"".concat(e.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e))}},void 0,!1,void 0,void 0,void 0);var C=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.separator?i("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?i("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):i("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"BDropdownItem",mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.data=function(){return{index:null}}),i}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}},void 0,!1,void 0,void 0,void 0),k={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},T=function(){var e=l&&l.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var x=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?i(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):i("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var e;return(e={mdi:k,fa:T(),fas:T(),far:T(),fad:T(),fab:T(),fal:T()},l&&l.customIconPacks&&(e=d(e,l.customIconPacks,!0)),e)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||l.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1)){var i=o(e).slice(1);return"has-text-".concat(i.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||l.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},void 0,!1,void 0,void 0,void 0);var _=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:e.rootClasses},["textarea"!==e.type?i("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):i("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e.icon?i("b-icon",{staticClass:"is-left",class:{"is-clickable":e.iconClickable},attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize},nativeOn:{click:function(t){return e.iconClick("icon-click",t)}}}):e._e(),!e.loading&&e.hasIconRight?i("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal||e.iconRightClickable},attrs:{icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:""},nativeOn:{click:function(t){return e.rightIconClick(t)}}}):e._e(),e.maxlength&&e.hasCounter&&"number"!==e.type?i("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v(" "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+" ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:i({},x.name,x),mixins:[p],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return l.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||l.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(e){this.newValue=e}},methods:{togglePasswordVisibility:function(){var e=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){e.focus()})},iconClick:function(e,t){var i=this;this.$emit(e,t),this.$nextTick(function(){i.focus()})},rightIconClick:function(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput:function(e){if(!this.lazy){var t=e.target.value;this.updateValue(t)}},onChange:function(e){if(this.lazy){var t=e.target.value;this.updateValue(t)}},updateValue:function(e){this.computedValue=e,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var M=S({},void 0,{name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(e){var t=this,i=!0;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map(function(n){return n.tag?(i&&(s=t.message,i=!1),e("b-field",{attrs:{type:t.type,message:s}},[n])):n;var s}))}},void 0,void 0,void 0,void 0,void 0);var I=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"field",class:e.rootClasses},[e.horizontal?i("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e.horizontal?i("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):e.hasInnerField?i("div",{staticClass:"field-body"},[i("b-field",{class:e.innerFieldClasses,attrs:{addons:!1}},[e._t("default")],2)],1):[e._t("default")],e.hasMessage&&!e.horizontal?i("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message"):[e._l(e.formattedMessage,function(t,n){return[e._v(" "+e._s(t)+" "),n+1<e.formattedMessage.length?i("br",{key:n}):e._e()]})]],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"BField",components:i({},M.name,M),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return l.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach(function(t){if("string"==typeof t)e.push(t);else for(var i in t)t[i]&&e.push(i)});else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter(function(e){if(e)return e})},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter(function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0})[0];if(e){var t=["has-numberinput"],i=e.componentOptions.propsData.controlsPosition,n=e.componentOptions.propsData.size;return i&&t.push("has-numberinput-".concat(i)),n&&t.push("has-numberinput-".concat(n)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e},newMessage:function(e){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=e))}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var e=0;return this.$slots.default&&(e=this.$slots.default.reduce(function(e,t){return t.tag?e+1:e},0)),e>1&&this.addons&&!this.horizontal}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},void 0,!1,void 0,void 0,void 0);var P,F=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[i("span",{staticClass:"select",class:e.spanClasses},[i("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:e.multiple,size:e.nativeSize},on:{blur:function(t){e.$emit("blur",t)&&e.checkHtml5Validity()},focus:function(t){return e.$emit("focus",t)},change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.computedValue=t.target.multiple?i:i[0]}}},"select",e.$attrs,!1),[e.placeholder?[null==e.computedValue?i("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v(" "+e._s(e.placeholder)+" ")]):e._e()]:e._e(),e._t("default")],2)]),e.icon?i("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},void 0,{name:"BSelect",components:i({},x.name,x),mixins:[p],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(e){this.selected=e,this.$emit("input",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var O,$=S({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"timepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?i("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[i("b-input",e._b({ref:"input",attrs:{autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggle(!0)},change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[i("b-dropdown-item",{attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[i("b-field",{attrs:{grouped:"",position:"is-centered"}},[i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onHoursChange(t.target.value)}},model:{value:e.hoursSelected,callback:function(t){e.hoursSelected=t},expression:"hoursSelected"}},e._l(e.hours,function(t){return i("option",{key:t.value,attrs:{disabled:e.isHourDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.hourLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onMinutesChange(t.target.value)}},model:{value:e.minutesSelected,callback:function(t){e.minutesSelected=t},expression:"minutesSelected"}},e._l(e.minutes,function(t){return i("option",{key:t.value,attrs:{disabled:e.isMinuteDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),e.enableSeconds?[i("span",{staticClass:"control is-colon"},[e._v(e._s(e.minuteLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onSecondsChange(t.target.value)}},model:{value:e.secondsSelected,callback:function(t){e.secondsSelected=t},expression:"secondsSelected"}},e._l(e.seconds,function(t){return i("option",{key:t.value,attrs:{disabled:e.isSecondDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])}),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.secondLiteral))])]:e._e(),e.isHourFormat24?e._e():i("b-select",{attrs:{disabled:e.disabled},nativeOn:{change:function(t){return e.onMeridienChange(t.target.value)}},model:{value:e.meridienSelected,callback:function(t){e.meridienSelected=t},expression:"meridienSelected"}},e._l(e.meridiens,function(t){return i("option",{key:t,domProps:{value:t}},[e._v(" "+e._s(t)+" ")])}),0)],2),void 0!==e.$slots.default&&e.$slots.default.length?i("footer",{staticClass:"timepicker-footer"},[e._t("default")],2):e._e()],1)],1):i("b-input",e._b({ref:"input",attrs:{type:"time",step:e.nativeStep,autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},void 0,{name:"BTimepicker",components:(P={},i(P,_.name,_),i(P,I.name,I),i(P,F.name,F),i(P,x.name,x),i(P,w.name,w),i(P,C.name,C),P),mixins:[g],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},void 0,!1,void 0,void 0,void 0),B={install:function(e){!function(e,t){e.component(t.name,t)}(e,$)}};O=B,"undefined"!=typeof window&&window.Vue&&window.Vue.use(O),e.BTimepicker=$,e.default=B,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
defaultImageResponsive: true,
|
|
67
67
|
defaultImageRatio: null,
|
|
68
68
|
defaultImageSrcsetFormatter: null,
|
|
69
|
+
defaultBreadcrumbTag: 'a',
|
|
70
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
71
|
+
defaultBreadcrumbSeparator: '',
|
|
72
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
69
73
|
customIconPacks: null
|
|
70
74
|
};
|
|
71
75
|
var VueInstance;
|
|
@@ -247,6 +251,7 @@
|
|
|
247
251
|
pause: function pause() {
|
|
248
252
|
if (this.pauseOnHover && !this.indefinite) {
|
|
249
253
|
this.isPaused = true;
|
|
254
|
+
clearInterval(this.$buefy.globalNoticeInterval);
|
|
250
255
|
}
|
|
251
256
|
},
|
|
252
257
|
removePause: function removePause() {
|
|
@@ -434,7 +439,7 @@
|
|
|
434
439
|
const __vue_script__ = script;
|
|
435
440
|
|
|
436
441
|
/* template */
|
|
437
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"enter-active-class":_vm.transition.enter,"leave-active-class":_vm.transition.leave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"toast",class:[_vm.type, _vm.position],attrs:{"aria-hidden":!_vm.isActive,"role":"alert"},on:{"
|
|
442
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"enter-active-class":_vm.transition.enter,"leave-active-class":_vm.transition.leave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"toast",class:[_vm.type, _vm.position],attrs:{"aria-hidden":!_vm.isActive,"role":"alert"},on:{"mouseenter":_vm.pause,"mouseleave":_vm.removePause}},[(_vm.$slots.default)?[_vm._t("default")]:[_c('div',{domProps:{"innerHTML":_vm._s(_vm.message)}})]],2)])};
|
|
438
443
|
var __vue_staticRenderFns__ = [];
|
|
439
444
|
|
|
440
445
|
/* style */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Toast={})}(this,function(t){"use strict";var e=null,n=2e3,o=null,i=!0;function r(t){return(r="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})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=function(t){return"object"===r(t)&&!Array.isArray(t)},p=function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var i=Object.getOwnPropertyNames(n).map(function(i){return s({},i,function(t){return c(n[t])&&null!==e&&e.hasOwnProperty(t)&&c(e[t])}(i)?t(e[i],n[i],o):n[i])}).reduce(function(t,e){return u({},t,{},e)},{});return u({},e,{},i)}return Object.assign(e,n)};var d,l,f=function(t,e,n,o,i,r,s,a,u,c){"boolean"!=typeof s&&(u=a,a=s,s=!1);var p,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),o&&(d._scopeId=o),r?(p=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,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=p):e&&(p=s?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(d.functional){var l=d.render;d.render=function(t,e){return p.call(e),l(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,p):[p]}return n}({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"},on:{
|
|
1
|
+
/*! Buefy v0.9.13 | 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=t||self).Toast={})}(this,function(t){"use strict";var e=null,n=2e3,o=null,i=!0;function r(t){return(r="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})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=function(t){return"object"===r(t)&&!Array.isArray(t)},p=function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var i=Object.getOwnPropertyNames(n).map(function(i){return s({},i,function(t){return c(n[t])&&null!==e&&e.hasOwnProperty(t)&&c(e[t])}(i)?t(e[i],n[i],o):n[i])}).reduce(function(t,e){return u({},t,{},e)},{});return u({},e,{},i)}return Object.assign(e,n)};var d,l,f=function(t,e,n,o,i,r,s,a,u,c){"boolean"!=typeof s&&(u=a,a=s,s=!1);var p,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),o&&(d._scopeId=o),r?(p=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,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=p):e&&(p=s?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(d.functional){var l=d.render;d.render=function(t,e){return p.call(e),l(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,p):[p]}return n}({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2)])},staticRenderFns:[]},void 0,{name:"BToast",mixins:[{props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},indefinite:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!1},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||e}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{pause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue:function(){return!!(void 0!==this.queue?this.queue:i)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click:function(){this.$emit("click")},close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout(function(){var e;t.$destroy(),void 0!==(e=t.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)},150))},timeoutCallback:function(){return this.close()},showNotice:function(){var t=this;this.shouldQueue()?setTimeout(function(){return t.showNotice()},250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout(function(){return t.timeoutCallback()},this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}}],data:function(){return{newDuration:this.duration||n}}},void 0,!1,void 0,void 0,void 0),h={open:function(t){var e;"string"==typeof t&&(t={message:t});var n,i={position:o||"is-top"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=p(i,t),s=new(("undefined"!=typeof window&&window.Vue?window.Vue:d||void 0).extend(f))({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},m={install:function(t){d=t,function(t,e,n){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[e]=n}(t,"toast",h)}};l=m,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l),t.BToast=f,t.ToastProgrammatic=h,t.default=m,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -82,6 +82,10 @@
|
|
|
82
82
|
defaultImageResponsive: true,
|
|
83
83
|
defaultImageRatio: null,
|
|
84
84
|
defaultImageSrcsetFormatter: null,
|
|
85
|
+
defaultBreadcrumbTag: 'a',
|
|
86
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
87
|
+
defaultBreadcrumbSeparator: '',
|
|
88
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
85
89
|
customIconPacks: null
|
|
86
90
|
};
|
|
87
91
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=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})(t)}var i="is-primary",n=null;var o,s=function(t,e,i,n,o,s,r,a,d,l){"boolean"!=typeof r&&(d=a,a=r,r=!1);var c,u="function"==typeof i?i.options:i;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,o&&(u.functional=!0)),n&&(u._scopeId=n),s?(c=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,d(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):e&&(c=r?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),c)if(u.functional){var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return i}({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{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:[]},void 0,{name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:function(){return i}},label:String,delay:{type:Number,default:function(){return n}},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}},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(t){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)}),n.style.width="".concat(i.clientWidth,"px"),n.style.height="".concat(i.clientHeight,"px");var o=i.getBoundingClientRect(),s=o.top+window.scrollY,r=o.left+window.scrollX,a=this.$data._bodyEl;a.style.position="absolute",a.style.top="".concat(s,"px"),a.style.left="".concat(r,"px"),a.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(){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(){"boolean"==typeof this.autoClose&&(this.isActive=!this.autoClose,this.autoClose&&this.timer&&clearTimeout(this.timer))},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=this.$refs.content.querySelectorAll("*"),i=!0,n=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(i=(s=r.next()).done);i=!0){if(t===s.value)return!0}}catch(t){n=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(n)throw o}}}return!1}},mounted:function(){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())},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)),this.appendToBody&&(void 0!==(t=this.$data._bodyEl).remove?t.remove():void 0!==t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t))}},void 0,!1,void 0,void 0,void 0),r={install:function(t){!function(t,e){t.component(e.name,e)}(t,s)}};o=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),t.BTooltip=s,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
defaultImageResponsive: true,
|
|
67
67
|
defaultImageRatio: null,
|
|
68
68
|
defaultImageSrcsetFormatter: null,
|
|
69
|
+
defaultBreadcrumbTag: 'a',
|
|
70
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
71
|
+
defaultBreadcrumbSeparator: '',
|
|
72
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
69
73
|
customIconPacks: null
|
|
70
74
|
};
|
|
71
75
|
|