buefy 3.0.4 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buefy.d.ts +257 -136
- package/dist/buefy.esm.js +212 -48
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +212 -46
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/{Autocomplete-DEUs3z7g.js → Autocomplete-b0JUESTO.js} +3 -3
- package/dist/cjs/{Button-Cq7yqI8p.js → Button-Dw6VG6n7.js} +2 -2
- package/dist/cjs/{Checkbox-GPzAMQqM.js → Checkbox-cujzPKDl.js} +31 -3
- package/dist/cjs/{CompatFallthroughMixin-hhK0Gkhr.js → CompatFallthroughMixin-DI5L88ey.js} +1 -1
- package/dist/cjs/{Datepicker-B-9ReBe6.js → Datepicker-DVB975q3.js} +9 -9
- package/dist/cjs/{Dropdown-DtpKU9qf.js → Dropdown-CFh_lLvm.js} +2 -1
- package/dist/cjs/{DropdownItem-IMOKyRGV.js → DropdownItem-D2Ky1QIH.js} +1 -1
- package/dist/cjs/{Field-19ZCJFF8.js → Field-Dy73xhhY.js} +1 -1
- package/dist/cjs/{FormElementMixin-DavX4iOv.js → FormElementMixin-17PQ7TPR.js} +1 -1
- package/dist/cjs/{Icon-lsDKE2wQ.js → Icon-DrFLI3Zg.js} +48 -6
- package/dist/cjs/{Image-CocPwU3n.js → Image-D4AGl_2Z.js} +1 -1
- package/dist/cjs/{Input-BcloGeZ3.js → Input-z4Vlmbj8.js} +4 -4
- package/dist/cjs/{Modal-D1aZUehE.js → Modal-CVyLPawO.js} +1 -1
- package/dist/cjs/{NoticeMixin--3RjH43z.js → NoticeMixin-BlwAiMRV.js} +1 -1
- package/dist/cjs/{Pagination-D1MVdiLp.js → Pagination-54NHaQvi.js} +2 -2
- package/dist/cjs/{Progress-DT9Qc8Id.js → Progress-BlXLJ3zb.js} +1 -1
- package/dist/cjs/{Select-DayPKwCY.js → Select-DRXaEjlP.js} +3 -3
- package/dist/cjs/{TabbedChildMixin-B3JUUwcf.js → TabbedChildMixin-BFHsIyg6.js} +1 -1
- package/dist/cjs/{Tag-BprnwJJ1.js → Tag-BdL2uH8x.js} +1 -1
- package/dist/cjs/{Timepicker-CDZ3V-2J.js → Timepicker-ujQPxzDF.js} +6 -6
- package/dist/cjs/{TimepickerMixin-C9WVvcUL.js → TimepickerMixin-C9OA8jWF.js} +3 -3
- package/dist/cjs/{Tooltip-Cgighv0j.js → Tooltip-j_3eF7QD.js} +1 -1
- package/dist/cjs/autocomplete.js +7 -6
- package/dist/cjs/breadcrumb.js +2 -2
- package/dist/cjs/button.js +4 -3
- package/dist/cjs/carousel.js +5 -4
- package/dist/cjs/checkbox.js +3 -1
- package/dist/cjs/clockpicker.js +8 -7
- package/dist/cjs/colorpicker.js +12 -11
- package/dist/cjs/{config-DR826Ki2.js → config-CXSF5Vky.js} +2 -1
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +11 -10
- package/dist/cjs/datetimepicker.js +13 -12
- package/dist/cjs/dialog.js +5 -4
- package/dist/cjs/dropdown.js +3 -3
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/icon.js +5 -2
- package/dist/cjs/iconAliases-DoayKo0q.js +100 -0
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/{index-SLOXD6k3.js → index-N35FRTpu.js} +9 -9
- package/dist/cjs/index.js +27 -24
- package/dist/cjs/input.js +6 -5
- package/dist/cjs/menu.js +4 -3
- package/dist/cjs/message.js +4 -3
- package/dist/cjs/modal.js +2 -2
- package/dist/cjs/navbar.js +2 -2
- package/dist/cjs/notification.js +5 -4
- package/dist/cjs/numberinput.js +6 -5
- package/dist/cjs/pagination.js +4 -3
- package/dist/cjs/progress.js +2 -2
- package/dist/cjs/rate.js +3 -2
- package/dist/cjs/select.js +6 -5
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +3 -3
- package/dist/cjs/snackbar.js +2 -2
- package/dist/cjs/steps.js +4 -3
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +9 -8
- package/dist/cjs/tabs.js +4 -3
- package/dist/cjs/tag.js +4 -3
- package/dist/cjs/taginput.js +8 -7
- package/dist/cjs/timepicker.js +12 -11
- package/dist/cjs/toast.js +2 -2
- package/dist/cjs/tooltip.js +2 -2
- package/dist/cjs/upload.js +3 -3
- package/dist/components/autocomplete/index.js +122 -6
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +122 -6
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +123 -7
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +106 -4
- package/dist/components/checkbox/index.min.js +2 -2
- package/dist/components/clockpicker/index.js +127 -10
- 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/colorpicker/index.js +128 -11
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +135 -18
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +127 -10
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +122 -6
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +2 -1
- package/dist/components/dropdown/index.min.js +2 -2
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +124 -6
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +122 -6
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +124 -8
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +122 -6
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +1 -1
- package/dist/components/navbar/index.min.js +1 -1
- package/dist/components/notification/index.js +122 -6
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +122 -6
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +122 -6
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.min.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +122 -6
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +122 -6
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +1 -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 +1 -1
- package/dist/components/slider/index.min.js +1 -1
- package/dist/components/snackbar/index.js +1 -1
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +122 -6
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +156 -13
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +122 -6
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +122 -6
- package/dist/components/tag/index.min.js +2 -2
- package/dist/components/taginput/index.js +122 -6
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +135 -18
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/index.min.js +1 -1
- package/dist/css/buefy.css +21 -38
- package/dist/css/buefy.css.map +1 -1
- package/dist/css/buefy.min.css +1 -1
- package/dist/css/versions/buefy-no-reset.css +21 -38
- package/dist/css/versions/buefy-no-reset.css.map +1 -1
- package/dist/css/versions/buefy-no-reset.min.css +1 -1
- package/dist/css/versions/buefy-standalone.css +21 -38
- package/dist/css/versions/buefy-standalone.css.map +1 -1
- package/dist/css/versions/buefy-standalone.min.css +1 -1
- package/dist/esm/{Autocomplete-CZ8DmXsB.js → Autocomplete-BsBIH0Mj.js} +4 -4
- package/dist/esm/{Button-DyUYShTZ.js → Button-BTP__-p5.js} +3 -3
- package/dist/esm/{Checkbox-KUMz0sfA.js → Checkbox-C6pO3IzG.js} +32 -4
- package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
- package/dist/esm/{Datepicker-Bl8Wfdkn.js → Datepicker-CrVKrZBF.js} +10 -10
- package/dist/esm/{Dropdown-CGTYVyoL.js → Dropdown-GHauDDcD.js} +3 -2
- package/dist/esm/{DropdownItem-Cn3nM0A3.js → DropdownItem-By3tSZk2.js} +2 -2
- package/dist/esm/{Field-B7bX_uUg.js → Field-CU8ZBgMh.js} +2 -2
- package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
- package/dist/esm/{Icon-DPyGDeRK.js → Icon-pQAdaqZb.js} +49 -7
- package/dist/esm/{Image-DhX-4hlV.js → Image-COmzg-EK.js} +2 -2
- package/dist/esm/{Input-C4L520az.js → Input-CErQ1Jyw.js} +5 -5
- package/dist/esm/{Loading-tuQoo6TU.js → Loading-BSqhV1Gi.js} +1 -1
- package/dist/esm/{Modal-EiR_KNGZ.js → Modal-C13NJijf.js} +2 -2
- package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
- package/dist/esm/{Pagination-B-LAJQay.js → Pagination-DvgzxH87.js} +3 -3
- package/dist/esm/{Progress-BPGTVZgr.js → Progress-AeKn1Ttq.js} +2 -2
- package/dist/esm/{Select-bl4qUzij.js → Select-CbkuxvSQ.js} +4 -4
- package/dist/esm/{TabbedChildMixin-C4i6WP9j.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
- package/dist/esm/{Tag-jS5Bcj6N.js → Tag-Dx_-Tavp.js} +2 -2
- package/dist/esm/{Timepicker-DnkqnOBT.js → Timepicker-0ojuPkqd.js} +7 -7
- package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
- package/dist/esm/{Tooltip-CtDSXAqa.js → Tooltip-BnzQFdnQ.js} +2 -2
- package/dist/esm/autocomplete.js +7 -6
- package/dist/esm/breadcrumb.js +3 -3
- package/dist/esm/button.js +4 -3
- package/dist/esm/carousel.js +6 -5
- package/dist/esm/checkbox.js +4 -2
- package/dist/esm/clockpicker.js +9 -8
- package/dist/esm/colorpicker.js +12 -11
- package/dist/esm/{config-CKuo-p6e.js → config-f4Dyy8TN.js} +2 -1
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +11 -10
- package/dist/esm/datetimepicker.js +14 -13
- package/dist/esm/dialog.js +6 -5
- package/dist/esm/dropdown.js +3 -3
- package/dist/esm/field.js +2 -2
- package/dist/esm/icon.js +3 -2
- package/dist/esm/iconAliases-B-CydxNj.js +97 -0
- package/dist/esm/image.js +2 -2
- package/dist/esm/{index-BE58-KfV.js → index-BYVep8cv.js} +11 -11
- package/dist/esm/index.js +27 -26
- package/dist/esm/input.js +6 -5
- package/dist/esm/loading.js +1 -1
- package/dist/esm/menu.js +5 -4
- package/dist/esm/message.js +5 -4
- package/dist/esm/modal.js +2 -2
- package/dist/esm/navbar.js +3 -3
- package/dist/esm/notification.js +6 -5
- package/dist/esm/numberinput.js +7 -6
- package/dist/esm/pagination.js +4 -3
- package/dist/esm/progress.js +3 -3
- package/dist/esm/radio.js +1 -1
- package/dist/esm/rate.js +4 -3
- package/dist/esm/select.js +6 -5
- package/dist/esm/sidebar.js +2 -2
- package/dist/esm/slider.js +4 -4
- package/dist/esm/snackbar.js +3 -3
- package/dist/esm/steps.js +5 -4
- package/dist/esm/switch.js +2 -2
- package/dist/esm/table.js +11 -10
- package/dist/esm/tabs.js +5 -4
- package/dist/esm/tag.js +5 -4
- package/dist/esm/taginput.js +9 -8
- package/dist/esm/timepicker.js +12 -11
- package/dist/esm/toast.js +3 -3
- package/dist/esm/tooltip.js +2 -2
- package/dist/esm/upload.js +4 -4
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
- package/src/components/carousel/CarouselList.vue +1 -1
- package/src/components/carousel/__snapshots__/CarouselList.spec.ts.snap +1 -1
- package/src/components/checkbox/Checkbox.spec.ts +66 -2
- package/src/components/checkbox/Checkbox.vue +25 -1
- package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +1 -1
- package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +2 -2
- package/src/components/dropdown/Dropdown.spec.ts +15 -0
- package/src/components/dropdown/Dropdown.vue +5 -0
- package/src/components/icon/Icon.spec.ts +67 -0
- package/src/components/icon/Icon.vue +40 -5
- package/src/components/icon/__snapshots__/Icon.spec.ts.snap +1 -1
- package/src/components/icon/index.ts +10 -0
- package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +1 -1
- package/src/scss/components/_checkbox.scss +13 -16
- package/src/utils/config.ts +104 -2
- package/src/utils/iconAliases.ts +86 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
@@ -193,6 +193,81 @@
|
|
|
193
193
|
return icons;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
+
const defaultIconAliases = {
|
|
197
|
+
checkboxOn: {
|
|
198
|
+
type: "svg",
|
|
199
|
+
viewBox: "0 0 1 1",
|
|
200
|
+
path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
|
|
201
|
+
},
|
|
202
|
+
checkboxIndeterminate: {
|
|
203
|
+
type: "svg",
|
|
204
|
+
viewBox: "0 0 1 1",
|
|
205
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
206
|
+
},
|
|
207
|
+
chevronLeft: {
|
|
208
|
+
type: "svg",
|
|
209
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
210
|
+
},
|
|
211
|
+
chevronRight: {
|
|
212
|
+
type: "svg",
|
|
213
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
214
|
+
},
|
|
215
|
+
chevronDown: {
|
|
216
|
+
type: "svg",
|
|
217
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
218
|
+
},
|
|
219
|
+
chevronUp: {
|
|
220
|
+
type: "svg",
|
|
221
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
222
|
+
},
|
|
223
|
+
menuDown: {
|
|
224
|
+
type: "svg",
|
|
225
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
226
|
+
},
|
|
227
|
+
menuUp: {
|
|
228
|
+
type: "svg",
|
|
229
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
230
|
+
},
|
|
231
|
+
check: {
|
|
232
|
+
type: "svg",
|
|
233
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
234
|
+
},
|
|
235
|
+
alertCircle: {
|
|
236
|
+
type: "svg",
|
|
237
|
+
path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
238
|
+
},
|
|
239
|
+
alert: {
|
|
240
|
+
type: "svg",
|
|
241
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
242
|
+
},
|
|
243
|
+
information: {
|
|
244
|
+
type: "svg",
|
|
245
|
+
path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
246
|
+
},
|
|
247
|
+
close: {
|
|
248
|
+
type: "svg",
|
|
249
|
+
path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
|
|
250
|
+
},
|
|
251
|
+
closeCircle: {
|
|
252
|
+
type: "svg",
|
|
253
|
+
path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
|
|
254
|
+
},
|
|
255
|
+
eye: {
|
|
256
|
+
type: "svg",
|
|
257
|
+
path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
258
|
+
},
|
|
259
|
+
eyeOff: {
|
|
260
|
+
type: "svg",
|
|
261
|
+
path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
function getIconAliases() {
|
|
265
|
+
return defaultIconAliases;
|
|
266
|
+
}
|
|
267
|
+
function resolveAlias(name) {
|
|
268
|
+
return getIconAliases()[name];
|
|
269
|
+
}
|
|
270
|
+
|
|
196
271
|
var _sfc_main = vue.defineComponent({
|
|
197
272
|
name: "BIcon",
|
|
198
273
|
props: {
|
|
@@ -201,8 +276,11 @@
|
|
|
201
276
|
pack: String,
|
|
202
277
|
icon: {
|
|
203
278
|
type: String,
|
|
204
|
-
required:
|
|
279
|
+
required: false,
|
|
280
|
+
default: void 0
|
|
205
281
|
},
|
|
282
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
283
|
+
alias: String,
|
|
206
284
|
size: String,
|
|
207
285
|
customSize: String,
|
|
208
286
|
customClass: String,
|
|
@@ -210,6 +288,26 @@
|
|
|
210
288
|
// This is used internally to show both MDI and FA icon
|
|
211
289
|
},
|
|
212
290
|
computed: {
|
|
291
|
+
resolvedAlias() {
|
|
292
|
+
var _a;
|
|
293
|
+
if (!this.alias) return null;
|
|
294
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
295
|
+
},
|
|
296
|
+
isSvgAlias() {
|
|
297
|
+
var _a;
|
|
298
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
299
|
+
},
|
|
300
|
+
isComponentAlias() {
|
|
301
|
+
var _a;
|
|
302
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
303
|
+
},
|
|
304
|
+
// Typed accessors used in the template
|
|
305
|
+
resolvedAliasSvg() {
|
|
306
|
+
return this.resolvedAlias;
|
|
307
|
+
},
|
|
308
|
+
resolvedAliasComponent() {
|
|
309
|
+
return this.resolvedAlias;
|
|
310
|
+
},
|
|
213
311
|
iconConfig() {
|
|
214
312
|
const allIcons = getIcons();
|
|
215
313
|
return allIcons[this.newPack];
|
|
@@ -226,7 +324,8 @@
|
|
|
226
324
|
* internal icons are always MDI.
|
|
227
325
|
*/
|
|
228
326
|
newIcon() {
|
|
229
|
-
|
|
327
|
+
var _a;
|
|
328
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
230
329
|
},
|
|
231
330
|
newPack() {
|
|
232
331
|
return this.pack || config.defaultIconPack;
|
|
@@ -293,6 +392,8 @@
|
|
|
293
392
|
return target;
|
|
294
393
|
};
|
|
295
394
|
|
|
395
|
+
const _hoisted_1$2 = ["viewBox"];
|
|
396
|
+
const _hoisted_2$2 = ["d"];
|
|
296
397
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
297
398
|
return vue.openBlock(), vue.createElementBlock(
|
|
298
399
|
"span",
|
|
@@ -300,17 +401,32 @@
|
|
|
300
401
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
301
402
|
},
|
|
302
403
|
[
|
|
303
|
-
|
|
404
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
405
|
+
key: 0,
|
|
406
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
407
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
408
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
409
|
+
"aria-hidden": "true"
|
|
410
|
+
}, [
|
|
411
|
+
vue.createElementVNode("path", {
|
|
412
|
+
fill: "currentColor",
|
|
413
|
+
d: _ctx.resolvedAliasSvg.path
|
|
414
|
+
}, null, 8, _hoisted_2$2)
|
|
415
|
+
], 10, _hoisted_1$2)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
416
|
+
key: 1,
|
|
417
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
418
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
419
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
304
420
|
"i",
|
|
305
421
|
{
|
|
306
|
-
key:
|
|
422
|
+
key: 2,
|
|
307
423
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
308
424
|
},
|
|
309
425
|
null,
|
|
310
426
|
2
|
|
311
427
|
/* CLASS */
|
|
312
428
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
313
|
-
key:
|
|
429
|
+
key: 3,
|
|
314
430
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
315
431
|
size: _ctx.newCustomSize,
|
|
316
432
|
class: vue.normalizeClass([_ctx.customClass])
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Message={},e.Vue)}(this,(function(e,t){"use strict";var i=t.defineComponent({props:{modelValue:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},emits:{click:()=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large",timer:void 0}},computed:{computedIcon(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},watch:{modelValue(e){this.isActive=e},isActive(e){e?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},methods:{close(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:modelValue",!1)},click(){this.$emit("click")},setAutoClose(){this.autoClose&&(this.timer=setTimeout((()=>{this.isActive&&this.close()}),this.duration))},setDurationProgress(){(this.progressBar||this.autoClose)&&(this.$buefy.globalNoticeInterval=setInterval((()=>{0!==this.remainingTime?this.remainingTime-=1:this.resetDurationProgress()}),1e3))},resetDurationProgress(){setTimeout((()=>{this.remainingTime=this.duration/1e3,clearInterval(this.$buefy.globalNoticeInterval)}),100)}},mounted(){this.setAutoClose()}});let s,n="mdi",o=null;const r={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},a=()=>{const e="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 l=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var c=l(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:r,fa:a(),fas:a(),far:a(),fad:a(),fab:a(),fal:a(),"fa-solid":a(),"fa-regular":a(),"fa-light":a(),"fa-thin":a(),"fa-duotone":a(),"fa-brands":a()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||n},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){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(){return this.component||o}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,i,s,n,o,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const u=Symbol("bprogress"),m=t.defineComponent({name:"BProgress",provide(){return{[u]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>s,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,i=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:i}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:i}).format(e)}}}),p=["max","value"],d={key:2,class:"progress-value"};var f=l(m,[["render",function(e,i,s,n,o,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,p)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",d,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]);const h=t.defineComponent({name:"BMessage",components:{BIcon:c,BProgress:f},mixins:[i],props:{ariaCloseLabel:String}}),g={key:0,class:"message-header"},y={key:0},v={key:1},k=["aria-label"],C={key:1,class:"message-body"},B={class:"media"},z={key:0,class:"media-left"},w={class:"media-content"};var S=l(h,[["render",function(e,i,s,n,o,r){const a=t.resolveComponent("b-icon"),l=t.resolveComponent("b-progress");return t.openBlock(),t.createBlock(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("article",{class:t.normalizeClass(["message",[e.type,e.size]])},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",g,[e.$slots.header?(t.openBlock(),t.createElementBlock("div",y,[t.renderSlot(e.$slots,"header")])):e.title?(t.openBlock(),t.createElementBlock("p",v,t.toDisplayString(e.title),1)):t.createCommentVNode("v-if",!0),e.closable?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"delete",onClick:i[0]||(i[0]=(...t)=>e.close&&e.close(...t)),"aria-label":e.ariaCloseLabel},null,8,k)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("section",C,[t.createElementVNode("div",B,[e.computedIcon&&e.hasIcon?(t.openBlock(),t.createElementBlock("div",z,[t.createVNode(a,{icon:e.computedIcon,pack:e.iconPack,class:t.normalizeClass(e.type),both:"",size:e.newIconSize},null,8,["icon","pack","class","size"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",w,[t.renderSlot(e.$slots,"default")])])])):t.createCommentVNode("v-if",!0),e.progressBar?(t.openBlock(),t.createBlock(l,{key:2,class:"auto-close-progress",value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1},null,8,["value","max","type"])):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.isActive]])])),_:3})}]]);const b={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,S)}};e.BMessage=S,e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Message={},e.Vue)}(this,(function(e,t){"use strict";var i=t.defineComponent({props:{modelValue:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},emits:{click:()=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large",timer:void 0}},computed:{computedIcon(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},watch:{modelValue(e){this.isActive=e},isActive(e){e?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},methods:{close(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:modelValue",!1)},click(){this.$emit("click")},setAutoClose(){this.autoClose&&(this.timer=setTimeout((()=>{this.isActive&&this.close()}),this.duration))},setDurationProgress(){(this.progressBar||this.autoClose)&&(this.$buefy.globalNoticeInterval=setInterval((()=>{0!==this.remainingTime?this.remainingTime-=1:this.resetDurationProgress()}),1e3))},resetDurationProgress(){setTimeout((()=>{this.remainingTime=this.duration/1e3,clearInterval(this.$buefy.globalNoticeInterval)}),100)}},mounted(){this.setAutoClose()}});let s,o="mdi",n=null;const r={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},a=()=>{const e="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"}}},l={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function c(e){return l[e]}var u=t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=c(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return{mdi:r,fa:a(),fas:a(),far:a(),fad:a(),fab:a(),fal:a(),"fa-solid":a(),"fa-regular":a(),"fa-light":a(),"fa-thin":a(),"fa-duotone":a(),"fa-brands":a()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||o},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){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(){return this.component||n}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),m=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const p=["viewBox"],d=["d"];var h=m(u,[["render",function(e,i,s,o,n,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.isSvgAlias?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass(e.customClass),"aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,d)],10,p)):e.isComponentAlias?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:t.normalizeClass(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const f=Symbol("bprogress"),g=t.defineComponent({name:"BProgress",provide(){return{[f]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>s,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,i=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:i}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:i}).format(e)}}}),v=["max","value"],y={key:2,class:"progress-value"};var C=m(g,[["render",function(e,i,s,o,n,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,v)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",y,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]);const L=t.defineComponent({name:"BMessage",components:{BIcon:h,BProgress:C},mixins:[i],props:{ariaCloseLabel:String}}),k={key:0,class:"message-header"},B={key:0},w={key:1},A=["aria-label"],z={key:1,class:"message-body"},S={class:"media"},b={key:0,class:"media-left"},x={class:"media-content"};var M=m(L,[["render",function(e,i,s,o,n,r){const a=t.resolveComponent("b-icon"),l=t.resolveComponent("b-progress");return t.openBlock(),t.createBlock(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("article",{class:t.normalizeClass(["message",[e.type,e.size]])},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",k,[e.$slots.header?(t.openBlock(),t.createElementBlock("div",B,[t.renderSlot(e.$slots,"header")])):e.title?(t.openBlock(),t.createElementBlock("p",w,t.toDisplayString(e.title),1)):t.createCommentVNode("v-if",!0),e.closable?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"delete",onClick:i[0]||(i[0]=(...t)=>e.close&&e.close(...t)),"aria-label":e.ariaCloseLabel},null,8,A)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("section",z,[t.createElementVNode("div",S,[e.computedIcon&&e.hasIcon?(t.openBlock(),t.createElementBlock("div",b,[t.createVNode(a,{icon:e.computedIcon,pack:e.iconPack,class:t.normalizeClass(e.type),both:"",size:e.newIconSize},null,8,["icon","pack","class","size"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",x,[t.renderSlot(e.$slots,"default")])])])):t.createCommentVNode("v-if",!0),e.progressBar?(t.openBlock(),t.createBlock(l,{key:2,class:"auto-close-progress",value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1},null,8,["value","max","type"])):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.isActive]])])),_:3})}]]);const V={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,M)}};e.BMessage=M,e.default=V,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Modal={},e.Vue)}(this,(function(e,t){"use strict";const o=(e,t=!1)=>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;let n;const a={beforeMount:(e,{value:t=!0})=>{if(t){let t=o(e),a=o(e,!0);t&&t.length>0&&(n=n=>{t=o(e),a=o(e,!0);const l=t[0],i=t[t.length-1];n.target===l&&n.shiftKey&&"Tab"===n.key?(n.preventDefault(),i.focus()):(n.target===i||Array.from(a).indexOf(n.target)>=0)&&!n.shiftKey&&"Tab"===n.key&&(n.preventDefault(),l.focus())},e.addEventListener("keydown",n))}},unmounted:e=>{e.removeEventListener("keydown",n)}};let l={defaultModalCanCancel:["escape","x","outside","button"],defaultTrapFocus:!0,defaultAutoFocus:!0};const i=["clip","keep"],s=["dialog","alertdialog"],c=t.defineComponent({name:"BModal",directives:{trapFocus:a},props:{modelValue:Boolean,component:[Object,Function,String],content:{type:[String,Object,Array]},programmatic:Boolean,props:Object,events:{type:Object,default:()=>({})},width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:()=>l.defaultModalCanCancel},cancelCallback:{type:Function,default:()=>{}},scroll:{type:String,default:()=>"clip",validator:e=>i.indexOf(e)>=0},fullScreen:Boolean,trapFocus:{type:Boolean,default:()=>l.defaultTrapFocus},autoFocus:{type:Boolean,default:()=>l.defaultAutoFocus},customClass:String,customContentClass:[String,Array,Object],ariaRole:{type:String,validator:e=>s.indexOf(e)>=0},ariaModal:Boolean,ariaLabel:{type:String,validator:e=>Boolean(e)},closeButtonAriaLabel:{type:String,default:"close"},destroyOnHide:{type:Boolean,default:!0},renderOnMounted:{type:Boolean,default:!1}},emits:{"after-enter":()=>!0,"after-leave":()=>!0,cancel:e=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width,animating:!this.modelValue,destroyed:!(this.modelValue||this.renderOnMounted)}},computed:{cancelOptions(){return"boolean"==typeof this.canCancel?this.canCancel?l.defaultModalCanCancel:[]:this.canCancel},showX(){return this.cancelOptions.indexOf("x")>=0},customStyle(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{modelValue(e){this.isActive=e},isActive(e){e&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((()=>{e&&this.$el&&this.$el.focus&&this.autoFocus&&this.$el.focus()}))}},methods:{handleScroll(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top=`-${this.savedScrollTop}px`:(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top="",this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel(e){this.cancelOptions.indexOf(e)<0||(this.$emit("cancel",e),this.cancelCallback.apply(null,[e]),this.close())},close(){this.$emit("close"),this.$emit("update:modelValue",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{var e;void 0!==(e=this.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}),150))},keyPress({key:e}){!this.isActive||"Escape"!==e&&"Esc"!==e||this.cancel("escape")},afterEnter(){this.animating=!1,this.$emit("after-enter")},beforeLeave(){this.animating=!0},afterLeave(){this.destroyOnHide&&(this.destroyed=!0),this.$emit("after-leave")}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},mounted(){this.programmatic?(document.body.appendChild(this.$el),this.isActive=!0):this.isActive&&this.handleScroll()},beforeUnmount(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");const e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=""}}});const r=["role","aria-label","aria-modal"],d=["innerHTML"],u=["aria-label"];var m=((e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o})(c,[["render",function(e,o,n,a,l,i){const s=t.resolveDirective("trap-focus");return t.openBlock(),t.createBlock(t.Transition,{name:e.animation,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:t.withCtx((()=>[e.destroyed?t.createCommentVNode("v-if",!0):t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["modal is-active",[{"is-full-screen":e.fullScreen},e.customClass]]),tabindex:"-1",role:e.ariaRole,"aria-label":e.ariaLabel,"aria-modal":e.ariaModal||void 0},[t.createElementVNode("div",{class:"modal-background",onClick:o[0]||(o[0]=t=>e.cancel("outside"))}),t.createElementVNode("div",{class:t.normalizeClass(["animation-content",[{"modal-content":!e.hasModalCard},e.customContentClass]]),style:t.normalizeStyle(e.customStyle)},[e.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps({key:0},e.props,t.toHandlers(e.events),{"can-cancel":e.canCancel,onClose:e.close}),null,16,["can-cancel","onClose"])):e.content?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),t.createElementVNode("div",{innerHTML:e.content},null,8,d)],64)):t.renderSlot(e.$slots,"default",{key:2,canCancel:e.canCancel,close:e.close})],6),e.showX?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:"modal-close is-large","aria-label":e.closeButtonAriaLabel,onClick:o[1]||(o[1]=t=>e.cancel("x"))},null,8,u)),[[t.vShow,!e.animating]]):t.createCommentVNode("v-if",!0)],10,r)),[[t.vShow,e.isActive],[s,e.trapFocus]])])),_:3},8,["name","onAfterEnter","onBeforeLeave","onAfterLeave"])}]]);var p=Object.defineProperty,f=Object.defineProperties,h=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,C=(e,t,o)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class g{constructor(e){var t;C(this,"app"+"",t),this.app=e}open(e){let o;"string"==typeof e&&(e={content:e}),Array.isArray(e.content)&&(o=e.content,delete e.content);const n=e,a=document.createElement("div"),l=t.createApp({data:()=>({modalVNode:null}),methods:{close(){const e=function(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}(this.modalVNode);e&&e.close()}},render(){var e;return this.modalVNode=t.h(m,(e=((e,t)=>{for(var o in t||(t={}))y.call(t,o)&&C(e,o,t[o]);if(v)for(var o of v(t))b.call(t,o)&&C(e,o,t[o]);return e})({},n),f(e,h({programmatic:!0,onClose:()=>{l.unmount()},onCancel:()=>{},cancelCallback:e=>{null!=n.onCancel&&n.onCancel(e)}}))),o?{default:()=>o}:void 0),this.modalVNode}});return this.app&&function(e,t){const{_context:o}=e,{_context:n}=t;n.config=o.config,n.mixins=o.mixins,n.components=o.components,n.directives=o.directives,n.provides=o.provides,n.optionsCache=o.optionsCache,n.propsCache=o.propsCache,n.emitsCache=o.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(this.app,l),l.mount(a)}}const S=Symbol("Buefy Modal");const k={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,m),((e,t,o,n)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=o,e.provide(n,o)})(e,"modal",new g(e),S)}};e.BModal=m,e.ModalProgrammatic=g,e.default=k,e.useModal=function(){return t.inject(S)},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Navbar={},e.Vue)}(this,(function(e,t){"use strict";var s=t.defineComponent({name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}}),o=(e,t)=>{const s=e.__vccOpts||e;for(const[e,o]of t)s[e]=o;return s};const n=["aria-expanded"],i=[t.createElementVNode("span",{"aria-hidden":"true"},null,-1),t.createElementVNode("span",{"aria-hidden":"true"},null,-1),t.createElementVNode("span",{"aria-hidden":"true"},null,-1),t.createElementVNode("span",{"aria-hidden":"true"},null,-1)];var a=o(s,[["render",function(e,s,o,a,r,l){return t.openBlock(),t.createElementBlock("a",t.mergeProps({role:"button",class:["navbar-burger burger",{"is-active":e.isOpened}],"aria-label":"menu","aria-expanded":e.isOpened||void 0},e.$attrs,{tabindex:"0"}),[...i],16,n)}]]);const r="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)?["touchstart","click"]:["click"],l=[];function d(e){const t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error(`v-click-outside: Binding value should be a function or an object, ${typeof e} given`);return{handler:t?e:e.handler,middleware:!t&&e.middleware||(e=>!!e),events:!t&&e.events||r}}function c({el:e,event:t,handler:s,middleware:o}){t.target!==e&&!e.contains(t.target)&&o(t,e)&&s(t,e)}function h({eventHandlers:e},t){e.forEach((({event:e,handler:s})=>{document[`${t}EventListener`](e,s)}))}const u={beforeMount:function(e,{value:t}){const{handler:s,middleware:o,events:n}=d(t),i={el:e,eventHandlers:n.map((t=>({event:t,handler:t=>c({event:t,el:e,handler:s,middleware:o})})))};h(i,"add"),l.push(i)},updated:function(e,{value:t}){const{handler:s,middleware:o,events:n}=d(t),i=l.filter((t=>t.el===e))[0];h(i,"remove"),i.eventHandlers=n.map((t=>({event:t,handler:t=>c({event:t,el:e,handler:s,middleware:o})}))),h(i,"add")},unmounted:function(e){h(l.filter((t=>t.el===e))[0],"remove")}},v="is-fixed-top",p="has-navbar-fixed-top",m="has-spaced-navbar-fixed-top",f="is-fixed-bottom",b="has-navbar-fixed-bottom",g="has-spaced-navbar-fixed-bottom",B="has-navbar-centered";var y=t.defineComponent({name:"BNavbar",components:{NavbarBurger:a},directives:{clickOutside:u},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},wrapperClass:{type:[String,Array,Object]},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},emits:{"update:modelValue":e=>!0},data(){return{internalIsActive:this.modelValue,_isNavBar:!0}},computed:{isOpened(){return this.internalIsActive},computedClasses(){return[this.type,{[v]:this.fixedTop,[f]:this.fixedBottom,[B]:this.centered,"is-spaced":this.spaced,"has-shadow":this.shadow,"is-transparent":this.transparent}]}},watch:{modelValue:{handler(e){this.internalIsActive=e},immediate:!0},fixedTop(e){this.setBodyFixedTopClass(e)},bottomTop(e){this.setBodyFixedBottomClass(e)}},methods:{toggleActive(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu(){this.closeOnClick&&this.internalIsActive&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent(){this.$emit("update:modelValue",this.internalIsActive)},setBodyClass(e){"undefined"!=typeof window&&document.body.classList.add(e)},removeBodyClass(e){"undefined"!=typeof window&&document.body.classList.remove(e)},checkIfFixedPropertiesAreColliding(){if(this.fixedTop&&this.fixedBottom)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar(){const e=[this.genNavbarBrandNode(),this.genNavbarSlotsNode()];if(!this.wrapperClass)return this.genNavbarSlots(e);const s=t.h("div",{class:this.wrapperClass},e);return this.genNavbarSlots([s])},genNavbarSlots(e){const s=t.h("nav",{class:["navbar",this.computedClasses],role:"navigation","aria-label":"main navigation"},e);return t.withDirectives(s,[[t.resolveDirective("click-outside"),this.closeMenu]])},genNavbarBrandNode(){const e=null!=this.$slots.brand?[this.$slots.brand(),this.genBurgerNode()]:this.genBurgerNode();return t.h("div",{class:"navbar-brand"},e)},genBurgerNode(){if(this.mobileBurger){const e=t.h(t.resolveComponent("navbar-burger"),{isOpened:this.isOpened,onClick:this.toggleActive,onKeyup:e=>{13===e.keyCode&&this.toggleActive()}});return!!this.$slots.burger?this.$slots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):e}},genNavbarSlotsNode(){return t.h("div",{class:["navbar-menu",{"is-active":this.isOpened}]},[this.genMenuPosition("start"),this.genMenuPosition("end")])},genMenuPosition(e){return t.h("div",{class:`navbar-${e}`},null!=this.$slots[e]?this.$slots[e]():[])},setBodyFixedTopClass(e){this.checkIfFixedPropertiesAreColliding(),e?(this.setBodyClass(p),this.spaced&&this.setBodyClass(m)):(this.removeBodyClass(p),this.removeBodyClass(m))},setBodyFixedBottomClass(e){this.checkIfFixedPropertiesAreColliding(),e?(this.setBodyClass(b),this.spaced&&this.setBodyClass(g)):(this.removeBodyClass(b),this.removeBodyClass(g))}},beforeMount(){this.fixedTop&&this.setBodyFixedTopClass(!0),this.fixedBottom&&this.setBodyFixedBottomClass(!0)},beforeUnmount(){if(this.fixedTop){const e=this.spaced?m:p;this.removeBodyClass(e)}else if(this.fixedBottom){const e=this.spaced?g:b;this.removeBodyClass(e)}},render(){return this.genNavbar()}});const w=["div","span","input"];var C=o(t.defineComponent({name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:[String,Object],default:"a"},active:Boolean},methods:{keyPress({key:e}){"Escape"!==e&&"Esc"!==e||this.closeMenuRecursive(this,["NavBar"])},handleClickEvent(e){if(!w.some((t=>t===e.target.localName))){const e=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);e&&e.$data._isNavbarDropdown&&this.closeMenuRecursive(e,["NavBar"])}},closeMenuRecursive(e,t){const s=e.$parent;if(!s)return null;return t.reduce(((e,t)=>s.$data[`_is${t}`]?(s.closeMenu(),s):e),null)||this.closeMenuRecursive(s,t)}},mounted(){"undefined"!=typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeUnmount(){"undefined"!=typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}}),[["render",function(e,s,o,n,i,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({class:["navbar-item",{"is-active":e.active}]},e.$attrs),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class"])}]]);let k=!0;var x=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,O=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>k}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:s,id:o}=e;return((e,t)=>{var s={};for(var o in e)N.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(null!=e&&x)for(var o of x(e))t.indexOf(o)<0&&A.call(e,o)&&(s[o]=e[o]);return s})(e,["style","class","id"])}return this.$attrs}}});var $=o(t.defineComponent({name:"BNavbarDropdown",directives:{clickOutside:u},mixins:[O],props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean,tag:{type:[String,Object],default:"a"}},emits:{"active-change":e=>!0},data(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active(e){this.newActive=e},newActive(e){this.$emit("active-change",e)}},methods:{toggleMenu(){this.newActive=!this.newActive},showMenu(){this.newActive=!0},closeMenu(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable(){this.hoverable&&(this.isHoverable=!0)}}}),[["render",function(e,s,o,n,i,a){const r=t.resolveDirective("click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["navbar-item has-dropdown",{"is-hoverable":e.isHoverable,"is-active":e.newActive}],onMouseenter:s[0]||(s[0]=(...t)=>e.checkHoverable&&e.checkHoverable(...t))},e.rootAttrs),[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({class:["navbar-link",{"is-arrowless":e.arrowless,"is-active":e.newActive&&e.collapsible}]},e.fallthroughAttrs,{"aria-haspopup":"true",onClick:t.withModifiers(e.toggleMenu,["prevent"]),onKeyup:t.withKeys(e.toggleMenu,["enter"]),tabindex:"0"}),{default:t.withCtx((()=>[e.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64)):t.renderSlot(e.$slots,"label",{key:1})])),_:3},16,["class","onClick","onKeyup"])),t.createElementVNode("div",{class:t.normalizeClass(["navbar-dropdown",{"is-right":e.right,"is-boxed":e.boxed,"is-hidden-touch":e.collapsible&&!e.newActive}])},[t.renderSlot(e.$slots,"default")],2)],16)),[[r,e.closeMenu]])}]]);const E=(e,t,s)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)},M={install(e){E(e,y),E(e,C),E(e,$)}};e.BNavbar=y,e.BNavbarDropdown=$,e.BNavbarItem=C,e.default=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
@@ -106,6 +106,81 @@
|
|
|
106
106
|
return icons;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
+
const defaultIconAliases = {
|
|
110
|
+
checkboxOn: {
|
|
111
|
+
type: "svg",
|
|
112
|
+
viewBox: "0 0 1 1",
|
|
113
|
+
path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
|
|
114
|
+
},
|
|
115
|
+
checkboxIndeterminate: {
|
|
116
|
+
type: "svg",
|
|
117
|
+
viewBox: "0 0 1 1",
|
|
118
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
119
|
+
},
|
|
120
|
+
chevronLeft: {
|
|
121
|
+
type: "svg",
|
|
122
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
123
|
+
},
|
|
124
|
+
chevronRight: {
|
|
125
|
+
type: "svg",
|
|
126
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
127
|
+
},
|
|
128
|
+
chevronDown: {
|
|
129
|
+
type: "svg",
|
|
130
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
131
|
+
},
|
|
132
|
+
chevronUp: {
|
|
133
|
+
type: "svg",
|
|
134
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
135
|
+
},
|
|
136
|
+
menuDown: {
|
|
137
|
+
type: "svg",
|
|
138
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
139
|
+
},
|
|
140
|
+
menuUp: {
|
|
141
|
+
type: "svg",
|
|
142
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
143
|
+
},
|
|
144
|
+
check: {
|
|
145
|
+
type: "svg",
|
|
146
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
147
|
+
},
|
|
148
|
+
alertCircle: {
|
|
149
|
+
type: "svg",
|
|
150
|
+
path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
151
|
+
},
|
|
152
|
+
alert: {
|
|
153
|
+
type: "svg",
|
|
154
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
155
|
+
},
|
|
156
|
+
information: {
|
|
157
|
+
type: "svg",
|
|
158
|
+
path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
159
|
+
},
|
|
160
|
+
close: {
|
|
161
|
+
type: "svg",
|
|
162
|
+
path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
|
|
163
|
+
},
|
|
164
|
+
closeCircle: {
|
|
165
|
+
type: "svg",
|
|
166
|
+
path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
|
|
167
|
+
},
|
|
168
|
+
eye: {
|
|
169
|
+
type: "svg",
|
|
170
|
+
path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
171
|
+
},
|
|
172
|
+
eyeOff: {
|
|
173
|
+
type: "svg",
|
|
174
|
+
path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
function getIconAliases() {
|
|
178
|
+
return defaultIconAliases;
|
|
179
|
+
}
|
|
180
|
+
function resolveAlias(name) {
|
|
181
|
+
return getIconAliases()[name];
|
|
182
|
+
}
|
|
183
|
+
|
|
109
184
|
var _sfc_main = vue.defineComponent({
|
|
110
185
|
name: "BIcon",
|
|
111
186
|
props: {
|
|
@@ -114,8 +189,11 @@
|
|
|
114
189
|
pack: String,
|
|
115
190
|
icon: {
|
|
116
191
|
type: String,
|
|
117
|
-
required:
|
|
192
|
+
required: false,
|
|
193
|
+
default: void 0
|
|
118
194
|
},
|
|
195
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
196
|
+
alias: String,
|
|
119
197
|
size: String,
|
|
120
198
|
customSize: String,
|
|
121
199
|
customClass: String,
|
|
@@ -123,6 +201,26 @@
|
|
|
123
201
|
// This is used internally to show both MDI and FA icon
|
|
124
202
|
},
|
|
125
203
|
computed: {
|
|
204
|
+
resolvedAlias() {
|
|
205
|
+
var _a;
|
|
206
|
+
if (!this.alias) return null;
|
|
207
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
208
|
+
},
|
|
209
|
+
isSvgAlias() {
|
|
210
|
+
var _a;
|
|
211
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
212
|
+
},
|
|
213
|
+
isComponentAlias() {
|
|
214
|
+
var _a;
|
|
215
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
216
|
+
},
|
|
217
|
+
// Typed accessors used in the template
|
|
218
|
+
resolvedAliasSvg() {
|
|
219
|
+
return this.resolvedAlias;
|
|
220
|
+
},
|
|
221
|
+
resolvedAliasComponent() {
|
|
222
|
+
return this.resolvedAlias;
|
|
223
|
+
},
|
|
126
224
|
iconConfig() {
|
|
127
225
|
const allIcons = getIcons();
|
|
128
226
|
return allIcons[this.newPack];
|
|
@@ -139,7 +237,8 @@
|
|
|
139
237
|
* internal icons are always MDI.
|
|
140
238
|
*/
|
|
141
239
|
newIcon() {
|
|
142
|
-
|
|
240
|
+
var _a;
|
|
241
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
143
242
|
},
|
|
144
243
|
newPack() {
|
|
145
244
|
return this.pack || config.defaultIconPack;
|
|
@@ -206,6 +305,8 @@
|
|
|
206
305
|
return target;
|
|
207
306
|
};
|
|
208
307
|
|
|
308
|
+
const _hoisted_1$2 = ["viewBox"];
|
|
309
|
+
const _hoisted_2$2 = ["d"];
|
|
209
310
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
210
311
|
return vue.openBlock(), vue.createElementBlock(
|
|
211
312
|
"span",
|
|
@@ -213,17 +314,32 @@
|
|
|
213
314
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
214
315
|
},
|
|
215
316
|
[
|
|
216
|
-
|
|
317
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
318
|
+
key: 0,
|
|
319
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
320
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
321
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
322
|
+
"aria-hidden": "true"
|
|
323
|
+
}, [
|
|
324
|
+
vue.createElementVNode("path", {
|
|
325
|
+
fill: "currentColor",
|
|
326
|
+
d: _ctx.resolvedAliasSvg.path
|
|
327
|
+
}, null, 8, _hoisted_2$2)
|
|
328
|
+
], 10, _hoisted_1$2)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
329
|
+
key: 1,
|
|
330
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
331
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
332
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
217
333
|
"i",
|
|
218
334
|
{
|
|
219
|
-
key:
|
|
335
|
+
key: 2,
|
|
220
336
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
221
337
|
},
|
|
222
338
|
null,
|
|
223
339
|
2
|
|
224
340
|
/* CLASS */
|
|
225
341
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
226
|
-
key:
|
|
342
|
+
key: 3,
|
|
227
343
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
228
344
|
size: _ctx.newCustomSize,
|
|
229
345
|
class: vue.normalizeClass([_ctx.customClass])
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Notification={},e.Vue)}(this,(function(e,t){"use strict";const i=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let o,n=null,s="mdi",r=null,a=2e3,l=!0;function c(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}const u={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},p=()=>{const e="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 m=(e,t)=>{const i=e.__vccOpts||e;for(const[e,o]of t)i[e]=o;return i};var d=m(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:u,fa:p(),fas:p(),far:p(),fad:p(),fab:p(),fal:p(),"fa-solid":p(),"fa-regular":p(),"fa-light":p(),"fa-thin":p(),"fa-duotone":p(),"fa-brands":p()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||s},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){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(){return this.component||r}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,i,o,n,s,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const h=Symbol("bprogress"),f=t.defineComponent({name:"BProgress",provide(){return{[h]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>o,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,i=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:i}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:i}).format(e)}}}),g=["max","value"],v={key:2,class:"progress-value"};var y=m(f,[["render",function(e,i,o,n,s,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,g)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",v,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]),C=t.defineComponent({props:{modelValue:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},emits:{click:()=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large",timer:void 0}},computed:{computedIcon(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},watch:{modelValue(e){this.isActive=e},isActive(e){e?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},methods:{close(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:modelValue",!1)},click(){this.$emit("click")},setAutoClose(){this.autoClose&&(this.timer=setTimeout((()=>{this.isActive&&this.close()}),this.duration))},setDurationProgress(){(this.progressBar||this.autoClose)&&(this.$buefy.globalNoticeInterval=setInterval((()=>{0!==this.remainingTime?this.remainingTime-=1:this.resetDurationProgress()}),1e3))},resetDurationProgress(){setTimeout((()=>{this.remainingTime=this.duration/1e3,clearInterval(this.$buefy.globalNoticeInterval)}),100)}},mounted(){this.setAutoClose()}});const b=t.defineComponent({name:"BNotification",components:{BIcon:d,BProgress:y},mixins:[C],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}}),k=["aria-label"],B={key:1,class:"media"},w={key:0,class:"media-left"},S={class:"media-content"},N=["innerHTML"];var x=m(b,[["render",function(e,i,o,n,s,r){const a=t.resolveComponent("b-icon"),l=t.resolveComponent("b-progress");return t.openBlock(),t.createBlock(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("article",{class:t.normalizeClass(["notification",[e.type,e.position]]),onClick:i[1]||(i[1]=(...t)=>e.click&&e.click(...t))},[e.closable?(t.openBlock(),t.createElementBlock("button",{key:0,class:"delete",type:"button",onClick:i[0]||(i[0]=(...t)=>e.close&&e.close(...t)),"aria-label":e.ariaCloseLabel},null,8,k)):t.createCommentVNode("v-if",!0),e.$slots.default||e.message?(t.openBlock(),t.createElementBlock("div",B,[e.computedIcon&&e.hasIcon?(t.openBlock(),t.createElementBlock("div",w,[t.createVNode(a,{icon:e.computedIcon,pack:e.iconPack,size:e.newIconSize,both:"","aria-hidden":""},null,8,["icon","pack","size"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",S,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),t.createElementVNode("p",{class:"text",innerHTML:e.message},null,8,N)],64))])])):t.createCommentVNode("v-if",!0),e.progressBar?(t.openBlock(),t.createBlock(l,{key:2,class:"auto-close-progress",value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1},null,8,["value","max","type"])):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.isActive]])])),_:3},8,["name"])}]]),P=t.defineComponent({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:e=>i.indexOf(e)>-1},container:String},emits:{click:()=>!0,close:()=>!0},data(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||n,timer:void 0,newDuration:this.duration||0}},computed:{correctParent(){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;default:{const e=this.position;throw new RangeError(`invalid position: ${e}`)}}},transition(){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"};default:{const e=this.position;throw new RangeError(`invalid position: ${e}`)}}}},methods:{pause(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue(){return!!(void 0!==this.queue?this.queue:l)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click(){this.$emit("click")},close(){this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((()=>{c(this.$el)}),150))},timeoutCallback(){return this.close()},showNotice(){this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((()=>this.timeoutCallback()),this.newDuration))},setupContainer(){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)return;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");const e=document.querySelector(this.newContainer)||document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}},beforeMount(){this.setupContainer()},mounted(){this.showNotice()}});var z=m(t.defineComponent({name:"BNotificationNotice",components:{BNotification:x},mixins:[P],data(){return{newDuration:this.duration||a}},emits:{close:()=>!0},methods:{close(){this.isPaused||(clearTimeout(this.timer),this.$refs.notification.isActive=!1,this.$emit("close"),setTimeout((()=>{c(this.$el)}),150))}}}),[["render",function(e,i,o,n,s,r){const a=t.resolveComponent("b-notification");return null!=e.$slots.default?(t.openBlock(),t.createBlock(a,t.mergeProps({key:0,ref:"notification",position:e.position,"model-value":e.isActive,type:e.type,message:e.message,duration:e.duration},e.$attrs,{onClick:e.click,onClose:e.close,onMouseenter:e.pause,onMouseleave:e.removePause}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["position","model-value","type","message","duration","onClick","onClose","onMouseenter","onMouseleave"])):(t.openBlock(),t.createBlock(a,t.mergeProps({key:1,ref:"notification",position:e.position,"model-value":e.isActive,type:e.type,message:e.message,duration:e.duration},e.$attrs,{onClick:e.click,onClose:e.close,onMouseenter:e.pause,onMouseleave:e.removePause}),null,16,["position","model-value","type","message","duration","onClick","onClose","onMouseenter","onMouseleave"]))}]]);var T=Object.defineProperty,I=Object.defineProperties,$=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,_=(e,t,i)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,A=(e,t)=>{for(var i in t||(t={}))E.call(t,i)&&_(e,i,t[i]);if(V)for(var i of V(t))O.call(t,i)&&_(e,i,t[i]);return e};class D{constructor(e){var t;_(this,"app"+"",t),this.app=e}open(e){let i;"string"==typeof e&&(e={message:e});let o=e,{message:n}=o,s=((e,t)=>{var i={};for(var o in e)E.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&V)for(var o of V(e))t.indexOf(o)<0&&O.call(e,o)&&(i[o]=e[o]);return i})(o,["message"]);"string"!=typeof n&&(i=n,n=void 0);const r=A({position:"is-top-right",message:n},s),a=document.createElement("div"),l=t.createApp({data:()=>({noticeVNode:null}),methods:{close(){const e=function(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}(this.noticeVNode);e&&e.close()}},render(){var e;return this.noticeVNode=t.h(z,(e=A({},r),I(e,$({onClose:()=>{null!=r.onClose&&r.onClose(),setTimeout((()=>{l.unmount()}),150)}}))),null!=i?{default:()=>i}:void 0),this.noticeVNode}});return this.app?function(e,t){const{_context:i}=e,{_context:o}=t;o.config=i.config,o.mixins=i.mixins,o.components=i.components,o.directives=i.directives,o.provides=i.provides,o.optionsCache=i.optionsCache,o.propsCache=i.propsCache,o.emitsCache=i.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(this.app,l):l.config.globalProperties.$buefy={},l.mount(a)}}const M=Symbol("Buefy Notification");const j={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,x),((e,t,i,o)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=i,e.provide(o,i)})(e,"notification",new D(e),M)}};e.BNotification=x,e.NotificationProgrammatic=D,e.default=j,e.useNotification=function(){return t.inject(M)},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Notification={},e.Vue)}(this,(function(e,t){"use strict";const i=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let o,n=null,s="mdi",r=null,a=2e3,l=!0;function c(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}const u={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},p=()=>{const e="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"}}},m={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function d(e){return m[e]}var h=t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=d(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return{mdi:u,fa:p(),fas:p(),far:p(),fad:p(),fab:p(),fal:p(),"fa-solid":p(),"fa-regular":p(),"fa-light":p(),"fa-thin":p(),"fa-duotone":p(),"fa-brands":p()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||s},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){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(){return this.component||r}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),f=(e,t)=>{const i=e.__vccOpts||e;for(const[e,o]of t)i[e]=o;return i};const v=["viewBox"],g=["d"];var y=f(h,[["render",function(e,i,o,n,s,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.isSvgAlias?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass(e.customClass),"aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,g)],10,v)):e.isComponentAlias?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:t.normalizeClass(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const C=Symbol("bprogress"),k=t.defineComponent({name:"BProgress",provide(){return{[C]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>o,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,i=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:i}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:i}).format(e)}}}),L=["max","value"],b={key:2,class:"progress-value"};var w=f(k,[["render",function(e,i,o,n,s,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,L)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",b,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]),B=t.defineComponent({props:{modelValue:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},emits:{click:()=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large",timer:void 0}},computed:{computedIcon(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},watch:{modelValue(e){this.isActive=e},isActive(e){e?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},methods:{close(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:modelValue",!1)},click(){this.$emit("click")},setAutoClose(){this.autoClose&&(this.timer=setTimeout((()=>{this.isActive&&this.close()}),this.duration))},setDurationProgress(){(this.progressBar||this.autoClose)&&(this.$buefy.globalNoticeInterval=setInterval((()=>{0!==this.remainingTime?this.remainingTime-=1:this.resetDurationProgress()}),1e3))},resetDurationProgress(){setTimeout((()=>{this.remainingTime=this.duration/1e3,clearInterval(this.$buefy.globalNoticeInterval)}),100)}},mounted(){this.setAutoClose()}});const S=t.defineComponent({name:"BNotification",components:{BIcon:y,BProgress:w},mixins:[B],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}}),A=["aria-label"],x={key:1,class:"media"},N={key:0,class:"media-left"},P={class:"media-content"},M=["innerHTML"];var z=f(S,[["render",function(e,i,o,n,s,r){const a=t.resolveComponent("b-icon"),l=t.resolveComponent("b-progress");return t.openBlock(),t.createBlock(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("article",{class:t.normalizeClass(["notification",[e.type,e.position]]),onClick:i[1]||(i[1]=(...t)=>e.click&&e.click(...t))},[e.closable?(t.openBlock(),t.createElementBlock("button",{key:0,class:"delete",type:"button",onClick:i[0]||(i[0]=(...t)=>e.close&&e.close(...t)),"aria-label":e.ariaCloseLabel},null,8,A)):t.createCommentVNode("v-if",!0),e.$slots.default||e.message?(t.openBlock(),t.createElementBlock("div",x,[e.computedIcon&&e.hasIcon?(t.openBlock(),t.createElementBlock("div",N,[t.createVNode(a,{icon:e.computedIcon,pack:e.iconPack,size:e.newIconSize,both:"","aria-hidden":""},null,8,["icon","pack","size"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",P,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),t.createElementVNode("p",{class:"text",innerHTML:e.message},null,8,M)],64))])])):t.createCommentVNode("v-if",!0),e.progressBar?(t.openBlock(),t.createBlock(l,{key:2,class:"auto-close-progress",value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1},null,8,["value","max","type"])):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.isActive]])])),_:3},8,["name"])}]]),I=t.defineComponent({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:e=>i.indexOf(e)>-1},container:String},emits:{click:()=>!0,close:()=>!0},data(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||n,timer:void 0,newDuration:this.duration||0}},computed:{correctParent(){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;default:{const e=this.position;throw new RangeError(`invalid position: ${e}`)}}},transition(){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"};default:{const e=this.position;throw new RangeError(`invalid position: ${e}`)}}}},methods:{pause(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue(){return!!(void 0!==this.queue?this.queue:l)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click(){this.$emit("click")},close(){this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((()=>{c(this.$el)}),150))},timeoutCallback(){return this.close()},showNotice(){this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((()=>this.timeoutCallback()),this.newDuration))},setupContainer(){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)return;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");const e=document.querySelector(this.newContainer)||document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}},beforeMount(){this.setupContainer()},mounted(){this.showNotice()}});var T=f(t.defineComponent({name:"BNotificationNotice",components:{BNotification:z},mixins:[I],data(){return{newDuration:this.duration||a}},emits:{close:()=>!0},methods:{close(){this.isPaused||(clearTimeout(this.timer),this.$refs.notification.isActive=!1,this.$emit("close"),setTimeout((()=>{c(this.$el)}),150))}}}),[["render",function(e,i,o,n,s,r){const a=t.resolveComponent("b-notification");return null!=e.$slots.default?(t.openBlock(),t.createBlock(a,t.mergeProps({key:0,ref:"notification",position:e.position,"model-value":e.isActive,type:e.type,message:e.message,duration:e.duration},e.$attrs,{onClick:e.click,onClose:e.close,onMouseenter:e.pause,onMouseleave:e.removePause}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["position","model-value","type","message","duration","onClick","onClose","onMouseenter","onMouseleave"])):(t.openBlock(),t.createBlock(a,t.mergeProps({key:1,ref:"notification",position:e.position,"model-value":e.isActive,type:e.type,message:e.message,duration:e.duration},e.$attrs,{onClick:e.click,onClose:e.close,onMouseenter:e.pause,onMouseleave:e.removePause}),null,16,["position","model-value","type","message","duration","onClick","onClose","onMouseenter","onMouseleave"]))}]]);var V=Object.defineProperty,$=Object.defineProperties,E=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,H=(e,t,i)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Z=(e,t)=>{for(var i in t||(t={}))_.call(t,i)&&H(e,i,t[i]);if(O)for(var i of O(t))D.call(t,i)&&H(e,i,t[i]);return e};class j{constructor(e){var t;H(this,"app"+"",t),this.app=e}open(e){let i;"string"==typeof e&&(e={message:e});let o=e,{message:n}=o,s=((e,t)=>{var i={};for(var o in e)_.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&O)for(var o of O(e))t.indexOf(o)<0&&D.call(e,o)&&(i[o]=e[o]);return i})(o,["message"]);"string"!=typeof n&&(i=n,n=void 0);const r=Z({position:"is-top-right",message:n},s),a=document.createElement("div"),l=t.createApp({data:()=>({noticeVNode:null}),methods:{close(){const e=function(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}(this.noticeVNode);e&&e.close()}},render(){var e;return this.noticeVNode=t.h(T,(e=Z({},r),$(e,E({onClose:()=>{null!=r.onClose&&r.onClose(),setTimeout((()=>{l.unmount()}),150)}}))),null!=i?{default:()=>i}:void 0),this.noticeVNode}});return this.app?function(e,t){const{_context:i}=e,{_context:o}=t;o.config=i.config,o.mixins=i.mixins,o.components=i.components,o.directives=i.directives,o.provides=i.provides,o.optionsCache=i.optionsCache,o.propsCache=i.propsCache,o.emitsCache=i.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(this.app,l):l.config.globalProperties.$buefy={},l.mount(a)}}const q=Symbol("Buefy Notification");const F={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,z),((e,t,i,o)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=i,e.provide(o,i)})(e,"notification",new j(e),q)}};e.BNotification=z,e.NotificationProgrammatic=j,e.default=F,e.useNotification=function(){return t.inject(q)},Object.defineProperty(e,"__esModule",{value:!0})}));
|