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) :
|
|
@@ -62,6 +62,81 @@
|
|
|
62
62
|
return icons;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
const defaultIconAliases = {
|
|
66
|
+
checkboxOn: {
|
|
67
|
+
type: "svg",
|
|
68
|
+
viewBox: "0 0 1 1",
|
|
69
|
+
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"
|
|
70
|
+
},
|
|
71
|
+
checkboxIndeterminate: {
|
|
72
|
+
type: "svg",
|
|
73
|
+
viewBox: "0 0 1 1",
|
|
74
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
75
|
+
},
|
|
76
|
+
chevronLeft: {
|
|
77
|
+
type: "svg",
|
|
78
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
79
|
+
},
|
|
80
|
+
chevronRight: {
|
|
81
|
+
type: "svg",
|
|
82
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
83
|
+
},
|
|
84
|
+
chevronDown: {
|
|
85
|
+
type: "svg",
|
|
86
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
87
|
+
},
|
|
88
|
+
chevronUp: {
|
|
89
|
+
type: "svg",
|
|
90
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
91
|
+
},
|
|
92
|
+
menuDown: {
|
|
93
|
+
type: "svg",
|
|
94
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
95
|
+
},
|
|
96
|
+
menuUp: {
|
|
97
|
+
type: "svg",
|
|
98
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
99
|
+
},
|
|
100
|
+
check: {
|
|
101
|
+
type: "svg",
|
|
102
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
103
|
+
},
|
|
104
|
+
alertCircle: {
|
|
105
|
+
type: "svg",
|
|
106
|
+
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"
|
|
107
|
+
},
|
|
108
|
+
alert: {
|
|
109
|
+
type: "svg",
|
|
110
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
111
|
+
},
|
|
112
|
+
information: {
|
|
113
|
+
type: "svg",
|
|
114
|
+
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"
|
|
115
|
+
},
|
|
116
|
+
close: {
|
|
117
|
+
type: "svg",
|
|
118
|
+
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"
|
|
119
|
+
},
|
|
120
|
+
closeCircle: {
|
|
121
|
+
type: "svg",
|
|
122
|
+
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"
|
|
123
|
+
},
|
|
124
|
+
eye: {
|
|
125
|
+
type: "svg",
|
|
126
|
+
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"
|
|
127
|
+
},
|
|
128
|
+
eyeOff: {
|
|
129
|
+
type: "svg",
|
|
130
|
+
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"
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
function getIconAliases() {
|
|
134
|
+
return defaultIconAliases;
|
|
135
|
+
}
|
|
136
|
+
function resolveAlias(name) {
|
|
137
|
+
return getIconAliases()[name];
|
|
138
|
+
}
|
|
139
|
+
|
|
65
140
|
var _sfc_main = vue.defineComponent({
|
|
66
141
|
name: "BIcon",
|
|
67
142
|
props: {
|
|
@@ -70,8 +145,11 @@
|
|
|
70
145
|
pack: String,
|
|
71
146
|
icon: {
|
|
72
147
|
type: String,
|
|
73
|
-
required:
|
|
148
|
+
required: false,
|
|
149
|
+
default: void 0
|
|
74
150
|
},
|
|
151
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
152
|
+
alias: String,
|
|
75
153
|
size: String,
|
|
76
154
|
customSize: String,
|
|
77
155
|
customClass: String,
|
|
@@ -79,6 +157,26 @@
|
|
|
79
157
|
// This is used internally to show both MDI and FA icon
|
|
80
158
|
},
|
|
81
159
|
computed: {
|
|
160
|
+
resolvedAlias() {
|
|
161
|
+
var _a;
|
|
162
|
+
if (!this.alias) return null;
|
|
163
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
164
|
+
},
|
|
165
|
+
isSvgAlias() {
|
|
166
|
+
var _a;
|
|
167
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
168
|
+
},
|
|
169
|
+
isComponentAlias() {
|
|
170
|
+
var _a;
|
|
171
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
172
|
+
},
|
|
173
|
+
// Typed accessors used in the template
|
|
174
|
+
resolvedAliasSvg() {
|
|
175
|
+
return this.resolvedAlias;
|
|
176
|
+
},
|
|
177
|
+
resolvedAliasComponent() {
|
|
178
|
+
return this.resolvedAlias;
|
|
179
|
+
},
|
|
82
180
|
iconConfig() {
|
|
83
181
|
const allIcons = getIcons();
|
|
84
182
|
return allIcons[this.newPack];
|
|
@@ -95,7 +193,8 @@
|
|
|
95
193
|
* internal icons are always MDI.
|
|
96
194
|
*/
|
|
97
195
|
newIcon() {
|
|
98
|
-
|
|
196
|
+
var _a;
|
|
197
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
99
198
|
},
|
|
100
199
|
newPack() {
|
|
101
200
|
return this.pack || config.defaultIconPack;
|
|
@@ -162,6 +261,8 @@
|
|
|
162
261
|
return target;
|
|
163
262
|
};
|
|
164
263
|
|
|
264
|
+
const _hoisted_1$1 = ["viewBox"];
|
|
265
|
+
const _hoisted_2$1 = ["d"];
|
|
165
266
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
166
267
|
return vue.openBlock(), vue.createElementBlock(
|
|
167
268
|
"span",
|
|
@@ -169,17 +270,32 @@
|
|
|
169
270
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
170
271
|
},
|
|
171
272
|
[
|
|
172
|
-
|
|
273
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
274
|
+
key: 0,
|
|
275
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
276
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
277
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
278
|
+
"aria-hidden": "true"
|
|
279
|
+
}, [
|
|
280
|
+
vue.createElementVNode("path", {
|
|
281
|
+
fill: "currentColor",
|
|
282
|
+
d: _ctx.resolvedAliasSvg.path
|
|
283
|
+
}, null, 8, _hoisted_2$1)
|
|
284
|
+
], 10, _hoisted_1$1)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
285
|
+
key: 1,
|
|
286
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
287
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
288
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
173
289
|
"i",
|
|
174
290
|
{
|
|
175
|
-
key:
|
|
291
|
+
key: 2,
|
|
176
292
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
177
293
|
},
|
|
178
294
|
null,
|
|
179
295
|
2
|
|
180
296
|
/* CLASS */
|
|
181
297
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
182
|
-
key:
|
|
298
|
+
key: 3,
|
|
183
299
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
184
300
|
size: _ctx.newCustomSize,
|
|
185
301
|
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).Rate={},e.Vue)}(this,(function(e,t){"use strict";let n,
|
|
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).Rate={},e.Vue)}(this,(function(e,t){"use strict";let n,o="mdi",i=null;const s={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},l=()=>{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"}}},a={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 r(e){return a[e]}var c=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=r(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:s,fa:l(),fas:l(),far:l(),fad:l(),fab:l(),fal:l(),"fa-solid":l(),"fa-regular":l(),"fa-light":l(),"fa-thin":l(),"fa-duotone":l(),"fa-brands":l()}[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||i}},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}}}),u=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const h=["viewBox"],m=["d"];var p=u(c,[["render",function(e,n,o,i,s,l){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,m)],10,h)):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 d=t.defineComponent({name:"BRate",components:{BIcon:p},props:{modelValue:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:()=>n}},emits:{change:e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,hoverValue:0}},computed:{halfStyle(){return`width:${this.valueDecimal}%`},showMe(){let e="";return this.showScore?(e=this.disabled?this.modelValue.toString():this.newValue.toString(),e=0===Number(e)?"":new Intl.NumberFormat(this.locale).format(this.modelValue)):this.showText&&this.texts&&(e=this.texts[Math.ceil(this.newValue)-1]),e},valueDecimal(){return 100*this.modelValue-100*Math.floor(this.modelValue)}},watch:{modelValue(e){this.newValue=e}},methods:{resetNewValue(){this.disabled||(this.hoverValue=0)},previewRate(e,t){this.disabled||(this.hoverValue=e,t.stopPropagation())},confirmValue(e){this.disabled||(this.newValue=e,this.$emit("change",this.newValue),this.$emit("update:modelValue",this.newValue))},checkHalf(e){return this.disabled&&this.valueDecimal>0&&e-1<this.modelValue&&e>this.modelValue},rateClass(e){let t="";return e<=(0!==this.hoverValue?this.hoverValue:this.newValue)?t="set-on":this.disabled&&Math.ceil(this.modelValue)===e&&(t="set-half"),t}}}),f=["onMousemove","onClick"],v={key:0};var g=u(d,[["render",function(e,n,o,i,s,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["rate",{"is-disabled":e.disabled,"is-spaced":e.spaced,"is-rtl":e.rtl}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.max,((o,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["rate-item",e.rateClass(o)]),key:i,onMousemove:t=>e.previewRate(o,t),onMouseleave:n[0]||(n[0]=(...t)=>e.resetNewValue&&e.resetNewValue(...t)),onClick:t.withModifiers((t=>e.confirmValue(o)),["prevent"])},[t.createVNode(a,{pack:e.iconPack,icon:e.icon,size:e.size},null,8,["pack","icon","size"]),e.checkHalf(o)?(t.openBlock(),t.createBlock(a,{key:0,class:"is-half",pack:e.iconPack,icon:e.icon,size:e.size,style:t.normalizeStyle(e.halfStyle)},null,8,["pack","icon","size","style"])):t.createCommentVNode("v-if",!0)],42,f)))),128)),e.showText||e.showScore||e.customText?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rate-text",e.size])},[t.createElementVNode("span",null,t.toDisplayString(e.showMe),1),e.customText&&!e.showText?(t.openBlock(),t.createElementBlock("span",v,t.toDisplayString(e.customText),1)):t.createCommentVNode("v-if",!0)],2)):t.createCommentVNode("v-if",!0)],2)}]]);const L={install(e){((e,t)=>{const n=t.name;if(null==n)throw new Error("Buefy.registerComponent: missing component name");e.component(n,t)})(e,g)}};e.BRate=g,e.default=L,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) :
|
|
@@ -65,6 +65,81 @@
|
|
|
65
65
|
return icons;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
const defaultIconAliases = {
|
|
69
|
+
checkboxOn: {
|
|
70
|
+
type: "svg",
|
|
71
|
+
viewBox: "0 0 1 1",
|
|
72
|
+
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"
|
|
73
|
+
},
|
|
74
|
+
checkboxIndeterminate: {
|
|
75
|
+
type: "svg",
|
|
76
|
+
viewBox: "0 0 1 1",
|
|
77
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
78
|
+
},
|
|
79
|
+
chevronLeft: {
|
|
80
|
+
type: "svg",
|
|
81
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
82
|
+
},
|
|
83
|
+
chevronRight: {
|
|
84
|
+
type: "svg",
|
|
85
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
86
|
+
},
|
|
87
|
+
chevronDown: {
|
|
88
|
+
type: "svg",
|
|
89
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
90
|
+
},
|
|
91
|
+
chevronUp: {
|
|
92
|
+
type: "svg",
|
|
93
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
94
|
+
},
|
|
95
|
+
menuDown: {
|
|
96
|
+
type: "svg",
|
|
97
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
98
|
+
},
|
|
99
|
+
menuUp: {
|
|
100
|
+
type: "svg",
|
|
101
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
102
|
+
},
|
|
103
|
+
check: {
|
|
104
|
+
type: "svg",
|
|
105
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
106
|
+
},
|
|
107
|
+
alertCircle: {
|
|
108
|
+
type: "svg",
|
|
109
|
+
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"
|
|
110
|
+
},
|
|
111
|
+
alert: {
|
|
112
|
+
type: "svg",
|
|
113
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
114
|
+
},
|
|
115
|
+
information: {
|
|
116
|
+
type: "svg",
|
|
117
|
+
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"
|
|
118
|
+
},
|
|
119
|
+
close: {
|
|
120
|
+
type: "svg",
|
|
121
|
+
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"
|
|
122
|
+
},
|
|
123
|
+
closeCircle: {
|
|
124
|
+
type: "svg",
|
|
125
|
+
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"
|
|
126
|
+
},
|
|
127
|
+
eye: {
|
|
128
|
+
type: "svg",
|
|
129
|
+
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"
|
|
130
|
+
},
|
|
131
|
+
eyeOff: {
|
|
132
|
+
type: "svg",
|
|
133
|
+
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"
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
function getIconAliases() {
|
|
137
|
+
return defaultIconAliases;
|
|
138
|
+
}
|
|
139
|
+
function resolveAlias(name) {
|
|
140
|
+
return getIconAliases()[name];
|
|
141
|
+
}
|
|
142
|
+
|
|
68
143
|
var _sfc_main$1 = vue.defineComponent({
|
|
69
144
|
name: "BIcon",
|
|
70
145
|
props: {
|
|
@@ -73,8 +148,11 @@
|
|
|
73
148
|
pack: String,
|
|
74
149
|
icon: {
|
|
75
150
|
type: String,
|
|
76
|
-
required:
|
|
151
|
+
required: false,
|
|
152
|
+
default: void 0
|
|
77
153
|
},
|
|
154
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
155
|
+
alias: String,
|
|
78
156
|
size: String,
|
|
79
157
|
customSize: String,
|
|
80
158
|
customClass: String,
|
|
@@ -82,6 +160,26 @@
|
|
|
82
160
|
// This is used internally to show both MDI and FA icon
|
|
83
161
|
},
|
|
84
162
|
computed: {
|
|
163
|
+
resolvedAlias() {
|
|
164
|
+
var _a;
|
|
165
|
+
if (!this.alias) return null;
|
|
166
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
167
|
+
},
|
|
168
|
+
isSvgAlias() {
|
|
169
|
+
var _a;
|
|
170
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
171
|
+
},
|
|
172
|
+
isComponentAlias() {
|
|
173
|
+
var _a;
|
|
174
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
175
|
+
},
|
|
176
|
+
// Typed accessors used in the template
|
|
177
|
+
resolvedAliasSvg() {
|
|
178
|
+
return this.resolvedAlias;
|
|
179
|
+
},
|
|
180
|
+
resolvedAliasComponent() {
|
|
181
|
+
return this.resolvedAlias;
|
|
182
|
+
},
|
|
85
183
|
iconConfig() {
|
|
86
184
|
const allIcons = getIcons();
|
|
87
185
|
return allIcons[this.newPack];
|
|
@@ -98,7 +196,8 @@
|
|
|
98
196
|
* internal icons are always MDI.
|
|
99
197
|
*/
|
|
100
198
|
newIcon() {
|
|
101
|
-
|
|
199
|
+
var _a;
|
|
200
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
102
201
|
},
|
|
103
202
|
newPack() {
|
|
104
203
|
return this.pack || config.defaultIconPack;
|
|
@@ -165,6 +264,8 @@
|
|
|
165
264
|
return target;
|
|
166
265
|
};
|
|
167
266
|
|
|
267
|
+
const _hoisted_1$1 = ["viewBox"];
|
|
268
|
+
const _hoisted_2$1 = ["d"];
|
|
168
269
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
169
270
|
return vue.openBlock(), vue.createElementBlock(
|
|
170
271
|
"span",
|
|
@@ -172,17 +273,32 @@
|
|
|
172
273
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
173
274
|
},
|
|
174
275
|
[
|
|
175
|
-
|
|
276
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
277
|
+
key: 0,
|
|
278
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
279
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
280
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
281
|
+
"aria-hidden": "true"
|
|
282
|
+
}, [
|
|
283
|
+
vue.createElementVNode("path", {
|
|
284
|
+
fill: "currentColor",
|
|
285
|
+
d: _ctx.resolvedAliasSvg.path
|
|
286
|
+
}, null, 8, _hoisted_2$1)
|
|
287
|
+
], 10, _hoisted_1$1)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
288
|
+
key: 1,
|
|
289
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
290
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
291
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
176
292
|
"i",
|
|
177
293
|
{
|
|
178
|
-
key:
|
|
294
|
+
key: 2,
|
|
179
295
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
180
296
|
},
|
|
181
297
|
null,
|
|
182
298
|
2
|
|
183
299
|
/* CLASS */
|
|
184
300
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
185
|
-
key:
|
|
301
|
+
key: 3,
|
|
186
302
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
187
303
|
size: _ctx.newCustomSize,
|
|
188
304
|
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).Select={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o=!0,l=!0,r=!0;const a={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=()=>{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 u=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};var d=u(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:a,fa:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c(),"fa-solid":c(),"fa-regular":c(),"fa-light":c(),"fa-thin":c(),"fa-duotone":c(),"fa-brands":c()}[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||s}},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,n,s,o,l){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)}]]),m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>o}},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:i,id:n}=e;return((e,t)=>{var i={};for(var n in e)h.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&m)for(var n of m(e))t.indexOf(n)<0&&p.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const g=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>l},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>r}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||n,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var y=t.defineComponent({name:"BSelect",components:{BIcon:d},mixins:[f,g],props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date,null],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(e){this.selected=e,this.$emit("update:modelValue",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{modelValue(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}});const k=["multiple","size"],z={key:0,value:null,disabled:"",hidden:""};var C=u(y,[["render",function(e,i,n,s,o,l){const r=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",{"is-expanded":e.expanded,"has-icons-left":e.icon}]},e.rootAttrs),[t.createElementVNode("span",{class:t.normalizeClass(["select",e.spanClasses])},[t.withDirectives(t.createElementVNode("select",t.mergeProps({"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t),ref:"select",multiple:e.multiple,size:e.nativeSize},e.fallthroughAttrs,{onBlur:i[1]||(i[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[2]||(i[2]=t=>e.$emit("focus",t))}),[e.placeholder?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[null==e.computedValue?(t.openBlock(),t.createElementBlock("option",z,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,k),[[t.vModelSelect,e.computedValue]])],2),e.icon?(t.openBlock(),t.createBlock(r,{key:0,class:"is-left",icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0)],16)}]]);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,C)}};e.BSelect=C,e.default=v,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).Select={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o=!0,l=!0,a=!0;const r={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=()=>{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"}}},u={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 p(e){return u[e]}var d=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=p(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:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c(),"fa-solid":c(),"fa-regular":c(),"fa-light":c(),"fa-thin":c(),"fa-duotone":c(),"fa-brands":c()}[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||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||s}},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}}}),h=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const m=["viewBox"],f=["d"];var g=h(d,[["render",function(e,i,n,s,o,l){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,f)],10,m)):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)}]]),v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,C=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>o}},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:i,id:n}=e;return((e,t)=>{var i={};for(var n in e)y.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&v)for(var n of v(e))t.indexOf(n)<0&&L.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const k=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>l},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>a}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||n,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var B=t.defineComponent({name:"BSelect",components:{BIcon:g},mixins:[C,k],props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date,null],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(e){this.selected=e,this.$emit("update:modelValue",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{modelValue(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}});const A=["multiple","size"],w={key:0,value:null,disabled:"",hidden:""};var z=h(B,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",{"is-expanded":e.expanded,"has-icons-left":e.icon}]},e.rootAttrs),[t.createElementVNode("span",{class:t.normalizeClass(["select",e.spanClasses])},[t.withDirectives(t.createElementVNode("select",t.mergeProps({"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t),ref:"select",multiple:e.multiple,size:e.nativeSize},e.fallthroughAttrs,{onBlur:i[1]||(i[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[2]||(i[2]=t=>e.$emit("focus",t))}),[e.placeholder?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[null==e.computedValue?(t.openBlock(),t.createElementBlock("option",w,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,A),[[t.vModelSelect,e.computedValue]])],2),e.icon?(t.openBlock(),t.createBlock(a,{key:0,class:"is-left",icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0)],16)}]]);const S={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.BSelect=z,e.default=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).Sidebar={},e.Vue)}(this,(function(e,t){"use strict";let i=null;const o=["fixed","absolute","static"],s=["clip","keep"];var n=t.defineComponent({name:"BSidebar",props:{modelValue:Boolean,type:[String,Object],overlay:Boolean,position:{type:String,default:"fixed",validator:e=>o.indexOf(e)>=0},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,delay:{type:[Number,null],default:()=>i},canCancel:{type:[Array,Boolean],default:()=>["escape","outside"]},onCancel:{type:Function,default:()=>{}},scroll:{type:String,default:()=>"clip",validator:e=>s.indexOf(e)>=0}},emits:{close:()=>!0,"update:modelValue":e=>!0},data(){return{isOpen:this.modelValue,isDelayOver:!1,transitionName:void 0,animating:!0,savedScrollTop:null,hasLeaved:!1,timer:void 0}},computed:{rootClasses(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce&&!this.isDelayOver,"is-mini-expand":this.expandOnHover||this.isDelayOver,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed||this.isDelayOver,"is-mini-delayed":null!==this.delay,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions(){return"boolean"==typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic(){return"static"===this.position},isFixed(){return"fixed"===this.position},isAbsolute(){return"absolute"===this.position}},watch:{modelValue:{handler(e){this.isOpen=e,this.overlay&&this.handleScroll();const t=this.right?!e:e;this.transitionName=t?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress({key:e}){this.isFixed&&(!this.isOpen||"Escape"!==e&&"Esc"!==e||this.cancel("escape"))},cancel(e,...t){this.cancelOptions.indexOf(e)<0||this.isStatic||(this.onCancel.call(null,e,...t),this.close())},close(){this.isOpen=!1,this.$emit("close"),this.$emit("update:modelValue",!1)},clickedOutside(e){this.isFixed&&this.isOpen&&!this.animating&&(e.composedPath().includes(this.$refs.sidebarContent)||this.cancel("outside"))},beforeEnter(){this.animating=!0},afterEnter(){this.animating=!1},handleScroll(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.modelValue?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.modelValue?document.body.style.top=`-${this.savedScrollTop}px`:(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top="",this.savedScrollTop=null)):this.modelValue?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},onHover(){this.delay?(this.hasLeaved=!1,this.timer=setTimeout((()=>{this.hasLeaved||(this.isDelayOver=!0),this.timer=void 0}),this.delay)):this.isDelayOver=!1},onHoverLeave(){this.hasLeaved=!0,this.timer=void 0,this.isDelayOver=!1},clickedCloseButton(){this.isFixed&&this.isOpen&&this.fullwidth&&this.cancel("outside")}},created(){"undefined"!=typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted(){"undefined"!=typeof window&&this.isFixed&&document.body.appendChild(this.$el),this.overlay&&this.modelValue&&this.handleScroll()},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside),this.overlay)){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=""}var e;this.isFixed&&(void 0!==(e=this.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timer)}});const l={class:"b-sidebar"},d={key:0,class:"sidebar-background"};var a=((e,t)=>{const i=e.__vccOpts||e;for(const[e,o]of t)i[e]=o;return i})(n,[["render",function(e,i,o,s,n,a){return t.openBlock(),t.createElementBlock("div",l,[e.overlay&&e.isOpen?(t.openBlock(),t.createElementBlock("div",d)):t.createCommentVNode("v-if",!0),t.createVNode(t.Transition,{name:e.transitionName,onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref:"sidebarContent",class:t.normalizeClass(["sidebar-content navbar",e.rootClasses]),onMouseenter:i[1]||(i[1]=(...t)=>e.onHover&&e.onHover(...t)),onMouseleave:i[2]||(i[2]=(...t)=>e.onHoverLeave&&e.onHoverLeave(...t))},[e.fullwidth?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",onClick:i[0]||(i[0]=(...t)=>e.clickedCloseButton&&e.clickedCloseButton(...t)),class:"modal-close is-large sidebar-close","aria-label":"Close"})):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],34),[[t.vShow,e.isOpen]])])),_:3},8,["name","onBeforeEnter","onAfterEnter"])])}]]);const r={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,a)}};e.BSidebar=a,e.default=r,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).Skeleton={},e.Vue)}(this,(function(e,t){"use strict";const i=["","is-centered","is-right"],n=e=>{if(!e.active)return;const i=[],n=e.width,o=e.height;for(let d=0;d<e.count;d++)i.push(t.h("div",{class:["b-skeleton-item",{"is-rounded":e.rounded}],key:d,style:{height:void 0===o?null:isNaN(+o)?o:o+"px",width:void 0===n?null:isNaN(+n)?n:n+"px",borderRadius:e.circle?"50%":null}}));return t.h("div",{class:["b-skeleton",e.size,e.position,{"is-animated":e.animated}]},i)};n.props={active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:e=>i.indexOf(e)>-1},size:String};const o={install(e){((e,t,i)=>{const n=i;e.component(n,t)})(e,n,"BSkeleton")}};e.BSkeleton=n,e.default=o,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).Slider={},e.Vue)}(this,(function(e,t){"use strict";let i,s="is-primary",o=null,n=null,a=!0;function r(e,t,i){return Math.max(t,Math.min(i,e))}const l=["is-auto","is-top","is-bottom","is-left","is-right"];var d=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var h=d(t.defineComponent({name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:()=>s},label:String,delay:{type:Number,default:()=>o},closeDelay:{type:Number,default:()=>n},position:{type:String,default:"is-auto",validator:e=>l.indexOf(e)>-1},triggers:{type:Array,default:()=>["hover"]},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},emits:{close:()=>!0,open:()=>!0},data:()=>({isActive:!1,triggerStyle:{},timer:void 0,_bodyEl:void 0,resizeObserver:void 0,resizeListener:void 0,timeOutID:void 0,controller:void 0,dynamicPosition:void 0}),computed:{rootClasses(){return["b-tooltip",this.type,this.dynamicPosition,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation(){return this.animated?this.animation:void 0}},watch:{isActive(){this.isActive?this.$emit("open"):this.$emit("close"),this.appendToBody&&this.updateAppendToBody()}},methods:{computePosition(){if("is-auto"!==this.position)return this.position;const e=this.$refs.trigger.getBoundingClientRect(),t=e.top,i=window.innerHeight-e.bottom,s=e.left,o=window.innerWidth-e.right,n=Math.min(t,i,s,o);return n===t?"is-bottom":n===i?"is-top":n===s?"is-right":"is-left"},updateAppendToBody(){const e=this.$refs.tooltip,t=this.$refs.trigger;if(e&&t){const e=this.$data._bodyEl.children[0];e.classList.forEach((t=>e.classList.remove(t))),this.rootClasses.forEach((t=>{if("object"==typeof t){const i=t;for(const t in i)i[t]&&e.classList.add(t)}else e.classList.add(t)}));const i=t.getBoundingClientRect(),s=i.top+window.scrollY,o=i.left+window.scrollX;switch(e.style.position="absolute",this.dynamicPosition=this.computePosition(),this.dynamicPosition){case"is-top":e.style.width=`${t.clientWidth}px`,e.style.height="0px",e.style.top="0px",e.style.left="0px";break;case"is-bottom":e.style.width=`${t.clientWidth}px`,e.style.height="0px",e.style.top=`${t.clientHeight}px`,e.style.left="0px";break;case"is-left":e.style.width="0px",e.style.height=`${t.clientHeight}px`,e.style.top="0px",e.style.left="0px";break;case"is-right":e.style.width="0px",e.style.height=`${t.clientHeight}px`,e.style.top="0px",e.style.left=`${t.clientWidth}px`}const n=this.$data._bodyEl;n.style.position="absolute",n.style.top=`${s}px`,n.style.left=`${o}px`,n.style.width="0px",n.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick(){this.triggers.indexOf("click")<0||this.$nextTick((()=>{this.timeOutID=setTimeout((()=>this.open()))}))},onHover(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu(e){this.triggers.indexOf("contextmenu")<0||(e.preventDefault(),this.open())},onFocus(){this.triggers.indexOf("focus")<0||this.open()},open(){this.dynamicPosition=this.computePosition(),this.delay?this.timer=setTimeout((()=>{this.isActive=!0,this.timer=void 0}),this.delay):this.isActive=!0},close(){"boolean"==typeof this.autoClose&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout((()=>{this.isActive=!this.autoClose,this.timer=void 0}),this.closeDelay):this.isActive=!this.autoClose)},clickedOutside(e){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(e.target))return void(this.isActive=!1);this.autoClose.includes("inside")&&this.isInWhiteList(e.target)&&(this.isActive=!1)}},keyPress({key:e}){!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList(e){if(e===this.$refs.content)return!0;if(null!=this.$refs.content){const t=this.$refs.content.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1}},mounted(){if(this.appendToBody&&"undefined"!=typeof window){this.controller=new window.AbortController,this.$data._bodyEl=function(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.content),this.updateAppendToBody();const e=this.$el.closest(".animation-content");if(null!=e){const t=()=>{this.updateAppendToBody(),e.removeEventListener("transitionend",t)};e.addEventListener("transitionend",t,{signal:this.controller.signal})}this.resizeListener=()=>this.updateAppendToBody(),window.addEventListener("resize",this.resizeListener),this.resizeObserver=new ResizeObserver(this.resizeListener),null!=this.$el.parentNode&&this.$el.parentNode.nodeType===Node.ELEMENT_NODE&&this.resizeObserver.observe(this.$el.parentNode)}this.always&&(this.dynamicPosition=this.computePosition())},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeUnmount(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),null!=this.resizeListener&&window.removeEventListener("resize",this.resizeListener),null!=this.resizeObserver&&this.resizeObserver.disconnect(),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),null!=this.controller&&this.controller.abort(),clearTimeout(this.timer),clearTimeout(this.timeOutID)}}),[["render",function(e,i,s,o,n,a){return t.openBlock(),t.createElementBlock("div",{ref:"tooltip",class:t.normalizeClass(e.rootClasses)},[t.createVNode(t.Transition,{name:e.newAnimation,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["tooltip-content",e.contentClass])},[e.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64)):e.$slots.content?t.renderSlot(e.$slots,"content",{key:1}):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.active&&(e.isActive||e.always)]])])),_:3},8,["name"]),t.createElementVNode("div",{ref:"trigger",class:"tooltip-trigger",style:t.normalizeStyle(e.triggerStyle),onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=(...t)=>e.onContextMenu&&e.onContextMenu(...t)),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlurCapture:i[4]||(i[4]=(...t)=>e.close&&e.close(...t)),onMouseleave:i[5]||(i[5]=(...t)=>e.close&&e.close(...t))},[t.renderSlot(e.$slots,"default",{ref:"slot"})],36)],2)}]]),u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>a}},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:i,id:s}=e;return((e,t)=>{var i={};for(var s in e)c.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&u)for(var s of u(e))t.indexOf(s)<0&&m.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}});const y=["raw","percent"];var g=t.defineComponent({name:"BSliderThumb",components:{BTooltip:h},mixins:[p],props:{modelValue:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:e=>y.indexOf(e)>=0},locale:{type:[String,Array],default:()=>i},tooltipAlways:{type:Boolean,default:!1}},emits:{dragend:()=>!0,dragstart:()=>!0,"update:modelValue":e=>!0},data(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.modelValue}},computed:{parent(){return this.$parent},disabled(){return this.parent.disabled},max(){return this.parent.max},min(){return this.parent.min},step(){return this.parent.step},precision(){return this.parent.precision},currentPosition(){return(this.modelValue-this.min)/(this.max-this.min)*100+"%"},wrapperStyle(){return{left:this.currentPosition}},formattedValue(){return void 0!==this.customFormatter?this.customFormatter(this.modelValue):"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.modelValue-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.modelValue)}},methods:{onFocus(){this.isFocused=!0},onBlur(){this.isFocused=!1},onButtonDown(e){this.disabled||(e.preventDefault(),this.onDragStart(e),"undefined"!=typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown(){this.disabled||this.modelValue===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onRightKeyDown(){this.disabled||this.modelValue===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onHomeKeyDown(){this.disabled||this.modelValue===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onEndKeyDown(){this.disabled||this.modelValue===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onDragStart(e){this.dragging=!0,this.$emit("dragstart"),this.startX="touchstart"===e.type?e.touches[0].clientX:e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging(e){if(this.dragging){const t=(("touchmove"===e.type?e.touches[0].clientX:e.clientX)-this.startX)/this.parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd(){this.dragging=!1,this.$emit("dragend"),this.modelValue!==this.oldValue&&this.parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!=typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition(e){if(null===e||isNaN(e))return;e<0?e=0:e>100&&(e=100);const t=100/((this.max-this.min)/this.step);let i=Math.round(e/t)*t/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("update:modelValue",i),this.dragging||i===this.oldValue||(this.oldValue=i)}},beforeUnmount(){document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd)}});const f=["tabindex"],v={key:0};var w=d(g,[["render",function(e,i,s,o,n,a){const r=t.resolveComponent("b-tooltip");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-slider-thumb-wrapper",{"is-dragging":e.dragging,"has-indicator":e.indicator}],style:e.wrapperStyle},e.rootAttrs),[t.createVNode(r,{label:e.formattedValue,type:e.type,always:e.dragging||e.isFocused||e.tooltipAlways,active:!e.disabled&&e.tooltip},{default:t.withCtx((()=>[t.createElementVNode("div",t.mergeProps({class:"b-slider-thumb",tabindex:e.disabled?void 0:0},e.fallthroughAttrs,{onMousedown:i[0]||(i[0]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onTouchstart:i[1]||(i[1]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onFocus:i[2]||(i[2]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onKeydown:[i[4]||(i[4]=t.withKeys(t.withModifiers(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["prevent"]),["left"])),i[5]||(i[5]=t.withKeys(t.withModifiers(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["prevent"]),["right"])),i[6]||(i[6]=t.withKeys(t.withModifiers(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["prevent"]),["down"])),i[7]||(i[7]=t.withKeys(t.withModifiers(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["prevent"]),["up"])),i[8]||(i[8]=t.withKeys(t.withModifiers(((...t)=>e.onHomeKeyDown&&e.onHomeKeyDown(...t)),["prevent"]),["home"])),i[9]||(i[9]=t.withKeys(t.withModifiers(((...t)=>e.onEndKeyDown&&e.onEndKeyDown(...t)),["prevent"]),["end"]))]}),[e.indicator?(t.openBlock(),t.createElementBlock("span",v,t.toDisplayString(e.formattedValue),1)):t.createCommentVNode("v-if",!0)],16,f)])),_:1},8,["label","type","always","active"])],16)}]]),b=t.defineComponent({name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{parent(){return this.$parent},position(){const e=(this.value-this.parent.min)/(this.parent.max-this.parent.min)*100;return e>=0&&e<=100?e:0},hidden(){return this.value===this.parent.min||this.value===this.parent.max}},methods:{getTickStyle:e=>({left:e+"%"})},created(){if(!this.parent.$data._isSlider)throw new Error("You should wrap bSliderTick on a bSlider")}});const x={key:0,class:"b-slider-tick-label"};var k=d(b,[["render",function(e,i,s,o,n,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["b-slider-tick",{"is-tick-hidden":e.hidden}]),style:t.normalizeStyle(e.getTickStyle(e.position))},[e.$slots.default?(t.openBlock(),t.createElementBlock("span",x,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)],6)}]]),V=t.defineComponent({name:"BSlider",components:{BSliderThumb:w,BSliderTick:k},props:{modelValue:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>y.indexOf(e)>=0},locale:{type:[String,Array],default:()=>i},tooltipAlways:{type:Boolean,default:!1}},emits:{change:e=>!0,dragend:()=>!0,dragging:e=>!0,dragstart:()=>!0,"update:modelValue":e=>!0},data:()=>({value1:void 0,value2:void 0,internal:{value1:void 0,value2:void 0},dragging:!1,isRange:!1,isThumbReversed:!1,isTrackClickDisabled:!1,_isSlider:!0,timeOutID:void 0}),computed:{newTooltipType(){return this.tooltipType?this.tooltipType:this.type},tickValues(){if(!this.ticks||this.min>this.max||0===this.step)return[];const e=[];for(let t=this.min+this.step;t<this.max;t+=this.step)e.push(t);return e},minValue(){return Math.min(this.value1,this.value2)},maxValue(){return Math.max(this.value1,this.value2)},barSize(){return this.isRange?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.value1-this.min)/(this.max-this.min)+"%"},barStart(){return this.isRange?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision(){const e=[this.min,this.max,this.step].map((e=>{const t=(""+e).split(".")[1];return t?t.length:0}));return Math.max(...e)},barStyle(){return{width:this.barSize,left:this.barStart}},rootClasses(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{modelValue(e){this.setValues(e)},internal({value1:e,value2:t}){this.value1=e,this.value2=t},value1(e){this.internal.value1!==e&&this.onInternalValueUpdate()},value2(e){this.internal.value2!==e&&this.onInternalValueUpdate()},min(){this.setValues(this.modelValue)},max(){this.setValues(this.modelValue)}},methods:{setValues(e){if(!(this.min>this.max))if(Array.isArray(e)){this.isRange=!0;const t="number"!=typeof e[0]||isNaN(e[0])?this.min:r(e[0],this.min,this.max),i="number"!=typeof e[1]||isNaN(e[1])?this.max:r(e[1],this.min,this.max);this.internal={value1:this.isThumbReversed?i:t,value2:this.isThumbReversed?t:i}}else this.isRange=!1,this.internal={value1:isNaN(e)?this.min:r(e,this.min,this.max),value2:void 0}},onInternalValueUpdate(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("update:modelValue"),this.dragging&&this.emitValue("dragging")},sliderSize(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick(e){if(this.disabled||this.isTrackClickDisabled)return;const t=this.$refs.slider.getBoundingClientRect().left,i=(e.clientX-t)/this.sliderSize()*100,s=this.min+i*(this.max-this.min)/100,o=Math.abs(s-this.value1);if(this.isRange){const e=Math.abs(s-this.value2);if(o<=e){if(o<this.step/2)return;this.$refs.button1.setPosition(i)}else{if(e<this.step/2)return;this.$refs.button2.setPosition(i)}}else{if(o<this.step/2)return;this.$refs.button1.setPosition(i)}this.emitValue("change")},onDragStart(){this.dragging=!0,this.$emit("dragstart")},onDragEnd(){this.isTrackClickDisabled=!0,this.timeOutID=setTimeout((()=>{this.isTrackClickDisabled=!1}),0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("update:modelValue")},emitValue(e){const t=this.isRange?[this.minValue,this.maxValue]:this.value1;switch(e){case"change":case"dragging":case"update:modelValue":this.$emit(e,t)}}},created(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.modelValue)},beforeUnmount(){clearTimeout(this.timeOutID)}});const D={class:"b-slider-track",ref:"slider"};var B=d(V,[["render",function(e,i,s,o,n,a){const r=t.resolveComponent("b-slider-tick"),l=t.resolveComponent("b-slider-thumb");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["b-slider",[e.size,e.type,e.rootClasses]]),onClick:i[2]||(i[2]=(...t)=>e.onSliderClick&&e.onSliderClick(...t))},[t.createElementVNode("div",D,[t.createElementVNode("div",{class:"b-slider-fill",style:t.normalizeStyle(e.barStyle)},null,4),e.ticks?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.tickValues,((e,i)=>(t.openBlock(),t.createBlock(r,{key:i,value:e},null,8,["value"])))),128)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default"),t.createVNode(l,{"tooltip-always":e.tooltipAlways,modelValue:e.value1,"onUpdate:modelValue":i[0]||(i[0]=t=>e.value1=t),type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,indicator:e.indicator,format:e.format,locale:e.locale,ref:"button1",role:"slider","aria-valuenow":e.value1,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[0]:e.ariaLabel,"aria-disabled":e.disabled||void 0,onDragstart:e.onDragStart,onDragend:e.onDragEnd},null,8,["tooltip-always","modelValue","type","tooltip","custom-formatter","indicator","format","locale","aria-valuenow","aria-valuemin","aria-valuemax","aria-label","aria-disabled","onDragstart","onDragend"]),e.isRange?(t.openBlock(),t.createBlock(l,{key:1,"tooltip-always":e.tooltipAlways,modelValue:e.value2,"onUpdate:modelValue":i[1]||(i[1]=t=>e.value2=t),type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,indicator:e.indicator,format:e.format,locale:e.locale,ref:"button2",role:"slider","aria-valuenow":e.value2,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[1]:"","aria-disabled":e.disabled||void 0,onDragstart:e.onDragStart,onDragend:e.onDragEnd},null,8,["tooltip-always","modelValue","type","tooltip","custom-formatter","indicator","format","locale","aria-valuenow","aria-valuemin","aria-valuemax","aria-label","aria-disabled","onDragstart","onDragend"])):t.createCommentVNode("v-if",!0)],512)],2)}]]);const E=(e,t,i)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},C={install(e){E(e,B),E(e,k)}};e.BSlider=B,e.BSliderTick=k,e.default=C,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).Snackbar={},e.Vue)}(this,(function(e,t){"use strict";const o=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let i=null,n=3500,s=!0;var a=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=>o.indexOf(e)>-1},container:String},emits:{click:()=>!0,close:()=>!0},data(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||i,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:s)&&(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((()=>{var e;void 0!==(e=this.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}),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()}});const r=t.defineComponent({name:"BSnackbar",mixins:[a],props:{actionText:{type:String,default:"OK"},onAction:{type:Function,default:()=>{}},cancelText:{type:String,default:null}},data(){return{newDuration:this.duration||n}},methods:{action(){this.onAction(),this.close()}}});const c=["role"],l=["innerHTML"],p={class:"button"},u={class:"button"};var d=((e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o})(r,[["render",function(e,o,i,n,s,a){return t.openBlock(),t.createBlock(t.Transition,{"enter-active-class":e.transition.enter,"leave-active-class":e.transition.leave,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["snackbar",[e.type,e.position]]),onMouseenter:o[2]||(o[2]=(...t)=>e.pause&&e.pause(...t)),onMouseleave:o[3]||(o[3]=(...t)=>e.removePause&&e.removePause(...t)),role:e.actionText?"alertdialog":"alert"},[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("div",{class:"text",innerHTML:e.message},null,8,l)],64)),e.cancelText?(t.openBlock(),t.createElementBlock("div",{key:2,class:"action is-light is-cancel",onClick:o[0]||(o[0]=(...t)=>e.close&&e.close(...t))},[t.createElementVNode("button",p,t.toDisplayString(e.cancelText),1)])):t.createCommentVNode("v-if",!0),e.actionText?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["action",e.type]),onClick:o[1]||(o[1]=(...t)=>e.action&&e.action(...t))},[t.createElementVNode("button",u,t.toDisplayString(e.actionText),1)],2)):t.createCommentVNode("v-if",!0)],42,c),[[t.vShow,e.isActive]])])),_:3},8,["enter-active-class","leave-active-class"])}]]);var h=Object.defineProperty,m=Object.defineProperties,f=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,g=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,C=(e,t)=>{for(var o in t||(t={}))b.call(t,o)&&g(e,o,t[o]);if(v)for(var o of v(t))y.call(t,o)&&g(e,o,t[o]);return e};class k{constructor(e){var t;g(this,"app"+"",t),this.app=e}open(e){let o;"string"==typeof e&&(e={message:e});let i=e,{message:n}=i,s=((e,t)=>{var o={};for(var i in e)b.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&v)for(var i of v(e))t.indexOf(i)<0&&y.call(e,i)&&(o[i]=e[i]);return o})(i,["message"]);"string"!=typeof n&&(o=n,n=void 0);const a=C({type:"is-success",position:"is-bottom-right",queue:!0,message:n},s),r=document.createElement("div"),c=t.createApp({data:()=>({snackbarVNode: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.snackbarVNode);e&&e.close()}},render(){var e;return this.snackbarVNode=t.h(d,(e=C({},a),m(e,f({onClose(){"function"==typeof a.onClose&&a.onClose(),setTimeout((()=>{c.unmount()}),150)}}))),null!=o?{default:()=>o}:void 0),this.snackbarVNode}});return this.app?function(e,t){const{_context:o}=e,{_context:i}=t;i.config=o.config,i.mixins=o.mixins,i.components=o.components,i.directives=o.directives,i.provides=o.provides,i.optionsCache=o.optionsCache,i.propsCache=o.propsCache,i.emitsCache=o.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(this.app,c):c.config.globalProperties.$buefy={},c.mount(r)}}const w=Symbol("Buefy Snackbar");const B={install(e){((e,t,o,i)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=o,e.provide(i,o)})(e,"snackbar",new k(e),w)}};e.BSnackbar=d,e.SnackbarProgrammatic=k,e.default=B,e.useSnackbar=function(){return t.inject(w)},Object.defineProperty(e,"__esModule",{value:!0})}));
|