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) :
|
|
@@ -75,6 +75,81 @@
|
|
|
75
75
|
return icons;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
const defaultIconAliases = {
|
|
79
|
+
checkboxOn: {
|
|
80
|
+
type: "svg",
|
|
81
|
+
viewBox: "0 0 1 1",
|
|
82
|
+
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"
|
|
83
|
+
},
|
|
84
|
+
checkboxIndeterminate: {
|
|
85
|
+
type: "svg",
|
|
86
|
+
viewBox: "0 0 1 1",
|
|
87
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
88
|
+
},
|
|
89
|
+
chevronLeft: {
|
|
90
|
+
type: "svg",
|
|
91
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
92
|
+
},
|
|
93
|
+
chevronRight: {
|
|
94
|
+
type: "svg",
|
|
95
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
96
|
+
},
|
|
97
|
+
chevronDown: {
|
|
98
|
+
type: "svg",
|
|
99
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
100
|
+
},
|
|
101
|
+
chevronUp: {
|
|
102
|
+
type: "svg",
|
|
103
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
104
|
+
},
|
|
105
|
+
menuDown: {
|
|
106
|
+
type: "svg",
|
|
107
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
108
|
+
},
|
|
109
|
+
menuUp: {
|
|
110
|
+
type: "svg",
|
|
111
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
112
|
+
},
|
|
113
|
+
check: {
|
|
114
|
+
type: "svg",
|
|
115
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
116
|
+
},
|
|
117
|
+
alertCircle: {
|
|
118
|
+
type: "svg",
|
|
119
|
+
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"
|
|
120
|
+
},
|
|
121
|
+
alert: {
|
|
122
|
+
type: "svg",
|
|
123
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
124
|
+
},
|
|
125
|
+
information: {
|
|
126
|
+
type: "svg",
|
|
127
|
+
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"
|
|
128
|
+
},
|
|
129
|
+
close: {
|
|
130
|
+
type: "svg",
|
|
131
|
+
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"
|
|
132
|
+
},
|
|
133
|
+
closeCircle: {
|
|
134
|
+
type: "svg",
|
|
135
|
+
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"
|
|
136
|
+
},
|
|
137
|
+
eye: {
|
|
138
|
+
type: "svg",
|
|
139
|
+
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"
|
|
140
|
+
},
|
|
141
|
+
eyeOff: {
|
|
142
|
+
type: "svg",
|
|
143
|
+
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"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
function getIconAliases() {
|
|
147
|
+
return defaultIconAliases;
|
|
148
|
+
}
|
|
149
|
+
function resolveAlias(name) {
|
|
150
|
+
return getIconAliases()[name];
|
|
151
|
+
}
|
|
152
|
+
|
|
78
153
|
var _sfc_main$2 = vue.defineComponent({
|
|
79
154
|
name: "BIcon",
|
|
80
155
|
props: {
|
|
@@ -83,8 +158,11 @@
|
|
|
83
158
|
pack: String,
|
|
84
159
|
icon: {
|
|
85
160
|
type: String,
|
|
86
|
-
required:
|
|
161
|
+
required: false,
|
|
162
|
+
default: void 0
|
|
87
163
|
},
|
|
164
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
165
|
+
alias: String,
|
|
88
166
|
size: String,
|
|
89
167
|
customSize: String,
|
|
90
168
|
customClass: String,
|
|
@@ -92,6 +170,26 @@
|
|
|
92
170
|
// This is used internally to show both MDI and FA icon
|
|
93
171
|
},
|
|
94
172
|
computed: {
|
|
173
|
+
resolvedAlias() {
|
|
174
|
+
var _a;
|
|
175
|
+
if (!this.alias) return null;
|
|
176
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
177
|
+
},
|
|
178
|
+
isSvgAlias() {
|
|
179
|
+
var _a;
|
|
180
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
181
|
+
},
|
|
182
|
+
isComponentAlias() {
|
|
183
|
+
var _a;
|
|
184
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
185
|
+
},
|
|
186
|
+
// Typed accessors used in the template
|
|
187
|
+
resolvedAliasSvg() {
|
|
188
|
+
return this.resolvedAlias;
|
|
189
|
+
},
|
|
190
|
+
resolvedAliasComponent() {
|
|
191
|
+
return this.resolvedAlias;
|
|
192
|
+
},
|
|
95
193
|
iconConfig() {
|
|
96
194
|
const allIcons = getIcons();
|
|
97
195
|
return allIcons[this.newPack];
|
|
@@ -108,7 +206,8 @@
|
|
|
108
206
|
* internal icons are always MDI.
|
|
109
207
|
*/
|
|
110
208
|
newIcon() {
|
|
111
|
-
|
|
209
|
+
var _a;
|
|
210
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
112
211
|
},
|
|
113
212
|
newPack() {
|
|
114
213
|
return this.pack || config.defaultIconPack;
|
|
@@ -167,6 +266,8 @@
|
|
|
167
266
|
}
|
|
168
267
|
});
|
|
169
268
|
|
|
269
|
+
const _hoisted_1$2 = ["viewBox"];
|
|
270
|
+
const _hoisted_2$2 = ["d"];
|
|
170
271
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
272
|
return vue.openBlock(), vue.createElementBlock(
|
|
172
273
|
"span",
|
|
@@ -174,17 +275,32 @@
|
|
|
174
275
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
175
276
|
},
|
|
176
277
|
[
|
|
177
|
-
|
|
278
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
279
|
+
key: 0,
|
|
280
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
281
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
282
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
283
|
+
"aria-hidden": "true"
|
|
284
|
+
}, [
|
|
285
|
+
vue.createElementVNode("path", {
|
|
286
|
+
fill: "currentColor",
|
|
287
|
+
d: _ctx.resolvedAliasSvg.path
|
|
288
|
+
}, null, 8, _hoisted_2$2)
|
|
289
|
+
], 10, _hoisted_1$2)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
290
|
+
key: 1,
|
|
291
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
292
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
293
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
178
294
|
"i",
|
|
179
295
|
{
|
|
180
|
-
key:
|
|
296
|
+
key: 2,
|
|
181
297
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
182
298
|
},
|
|
183
299
|
null,
|
|
184
300
|
2
|
|
185
301
|
/* CLASS */
|
|
186
302
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
187
|
-
key:
|
|
303
|
+
key: 3,
|
|
188
304
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
189
305
|
size: _ctx.newCustomSize,
|
|
190
306
|
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).Numberinput={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,a=!0,r=!0,c=!0;var u=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const p={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},h=()=>{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 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:p,fa:h(),fas:h(),far:h(),fad:h(),fab:h(),fal:h(),"fa-solid":h(),"fa-regular":h(),"fa-light":h(),"fa-thin":h(),"fa-duotone":h(),"fa-brands":h()}[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,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=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:n}=e;return((e,t)=>{var i={};for(var n in e)g.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&&f.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const b=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>r},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>c}},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 k=t.defineComponent({name:"BInput",components:{BIcon:d},mixins:[y,b],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>l},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||o,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const C=["type","autocomplete","maxlength"],V=["maxlength"],S=["type","autocomplete","maxlength"],w=["maxlength"];var x=u(k,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[1]||(i[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[2]||(i[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[4]||(i[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,C)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[5]||(i[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[6]||(i[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[7]||(i[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[8]||(i[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[9]||(i[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,V)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[10]||(i[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[11]||(i[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[12]||(i[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[13]||(i[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[14]||(i[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,S)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[15]||(i[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[16]||(i[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[17]||(i[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[18]||(i[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[19]||(i[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,w)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:i[20]||(i[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]);const v=["left","right","center"];var B=t.defineComponent({name:"BNumberinput",components:{BIcon:d,BInput:x},mixins:[y,b],inject:{field:{from:"BField",default:!1}},props:{modelValue:[Number,null],min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:e=>v.indexOf(e)>=0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String,longPress:{type:Boolean,default:!0},autocomplete:String},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input",_$intervalRef:void 0}},computed:{computedValue:{get(){return this.newValue},set(e){let t=0===Number(e)?0:Number(e)||null;""!==e&&null!=e||(t=null),this.newValue=t,null===t?this.$emit("update:modelValue",t):isNaN(t)||this.$emit("update:modelValue",Number(t)),this.$nextTick((()=>{this.$refs.input&&this.$refs.input.checkHtml5Validity()}))}},controlsLeft(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber(){return"any"===this.newStep?1:"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},minStepNumber(){if("any"===this.newStep&&void 0===this.newMinStep)return"any";const e=void 0!==this.newMinStep?this.newMinStep:this.newStep;return"string"==typeof e?parseFloat(e):e},disabledMin(){return+this.computedValue-this.stepNumber<this.minNumber},disabledMax(){return+this.computedValue+this.stepNumber>this.maxNumber},stepDecimals(){const e=this.minStepNumber.toString(),t=e.indexOf(".");return t>=0?e.substring(t+1).length:0},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue:{immediate:!0,handler(e){this.newValue=e}},step(e){this.newStep=e},minStep(e){this.newMinStep=e}},methods:{isDisabled(e){return this.disabled||("plus"===e?this.disabledMax:this.disabledMin)},decrement(){if(null===this.computedValue||void 0===this.computedValue){if(null!==this.maxNumber&&void 0!==this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}if(void 0===this.minNumber||+this.computedValue-this.stepNumber>=this.minNumber){const e=+this.computedValue-this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},increment(){if(null===this.computedValue||void 0===this.computedValue||+this.computedValue<this.minNumber){if(null!==this.minNumber&&void 0!==this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}if(void 0===this.maxNumber||+this.computedValue+this.stepNumber<=this.maxNumber){const e=+this.computedValue+this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},onControlClick(e,t){0===e.detail&&"click"===e.type&&(t?this.increment():this.decrement())},longPressTick(e){e?this.increment():this.decrement(),this.longPress&&(this._$intervalRef=setTimeout((()=>{this.longPressTick(e)}),this.exponential?250/(+this.exponential*this.timesPressed++):250))},onStartLongPress(e,t){0!==e.button&&"touchstart"!==e.type||(clearTimeout(this._$intervalRef),this.longPressTick(t))},onStopLongPress(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=void 0)}},mounted(){this.field===this.$parent&&this.$parent.wrapNumberinput({controlsPosition:this.controlsPosition,size:this.size})},beforeUnmount(){clearTimeout(this._$intervalRef)}});const P=["disabled","aria-label","onMousedown","onTouchstart","onClick"],z=["disabled","aria-label","onMousedown","onTouchstart","onClick"];var I=u(B,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon"),r=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-numberinput field",e.fieldClasses]},e.rootAttrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.controlsLeft,(n=>(t.openBlock(),t.createElementBlock("p",{key:n,class:t.normalizeClass(["control",n]),onMouseup:i[0]||(i[0]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onMouseleave:i[1]||(i[1]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchend:i[2]||(i[2]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchcancel:i[3]||(i[3]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t))},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["button",e.buttonClasses]),disabled:e.isDisabled(n)||void 0,"aria-label":"plus"===n?e.ariaPlusLabel:e.ariaMinusLabel,onMousedown:t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n),onTouchstart:t.withModifiers((t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n)),["prevent"]),onClick:t=>!e.isDisabled(n)&&e.onControlClick(t,"plus"===n)},[t.createVNode(a,{both:"",icon:n,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])],42,P)],34)))),128)),t.createVNode(r,t.mergeProps({type:"number",ref:"input",modelValue:e.computedValue,"onUpdate:modelValue":i[4]||(i[4]=t=>e.computedValue=t)},e.fallthroughAttrs,{step:e.minStepNumber,max:e.max,min:e.min,size:e.size,disabled:e.disabledOrUndefined,readonly:!e.editable,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-pack":e.iconPack,autocomplete:e.autocomplete,expanded:e.expanded,placeholder:e.placeholder,"use-html5-validation":e.useHtml5Validation,onFocus:i[5]||(i[5]=t=>e.$emit("focus",t)),onBlur:i[6]||(i[6]=t=>e.$emit("blur",t))}),null,16,["modelValue","step","max","min","size","disabled","readonly","loading","rounded","icon","icon-pack","autocomplete","expanded","placeholder","use-html5-validation"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.controlsRight,(n=>(t.openBlock(),t.createElementBlock("p",{key:n,class:t.normalizeClass(["control",n]),onMouseup:i[7]||(i[7]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onMouseleave:i[8]||(i[8]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchend:i[9]||(i[9]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchcancel:i[10]||(i[10]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t))},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["button",e.buttonClasses]),disabled:e.isDisabled(n)||void 0,"aria-label":"plus"===n?e.ariaPlusLabel:e.ariaMinusLabel,onMousedown:t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n),onTouchstart:t.withModifiers((t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n)),["prevent"]),onClick:t=>!e.isDisabled(n)&&e.onControlClick(t,"plus"===n)},[t.createVNode(a,{both:"",icon:n,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])],42,z)],34)))),128))],16)}]]);const N={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,I)}};e.BNumberinput=I,e.default=N,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).Numberinput={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,a=!0,r=!0,c=!0;var u=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const p={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},h=()=>{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"}}},d={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 m(e){return d[e]}var g=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=m(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:p,fa:h(),fas:h(),far:h(),fad:h(),fab:h(),fal:h(),"fa-solid":h(),"fa-regular":h(),"fa-light":h(),"fa-thin":h(),"fa-duotone":h(),"fa-brands":h()}[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}}});const f=["viewBox"],y=["d"];var b=u(g,[["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,y)],10,f)):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,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,L=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:n}=e;return((e,t)=>{var i={};for(var n in e)C.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&&k.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const V=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>r},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>c}},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 w=t.defineComponent({name:"BInput",components:{BIcon:b},mixins:[L,V],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>l},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||o,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const x=["type","autocomplete","maxlength"],S=["maxlength"],B=["type","autocomplete","maxlength"],P=["maxlength"];var z=u(w,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[1]||(i[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[2]||(i[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[4]||(i[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,x)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[5]||(i[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[6]||(i[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[7]||(i[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[8]||(i[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[9]||(i[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,S)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[10]||(i[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[11]||(i[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[12]||(i[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[13]||(i[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[14]||(i[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,B)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[15]||(i[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[16]||(i[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[17]||(i[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[18]||(i[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[19]||(i[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,P)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:i[20]||(i[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]);const M=["left","right","center"];var A=t.defineComponent({name:"BNumberinput",components:{BIcon:b,BInput:z},mixins:[L,V],inject:{field:{from:"BField",default:!1}},props:{modelValue:[Number,null],min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:e=>M.indexOf(e)>=0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String,longPress:{type:Boolean,default:!0},autocomplete:String},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input",_$intervalRef:void 0}},computed:{computedValue:{get(){return this.newValue},set(e){let t=0===Number(e)?0:Number(e)||null;""!==e&&null!=e||(t=null),this.newValue=t,null===t?this.$emit("update:modelValue",t):isNaN(t)||this.$emit("update:modelValue",Number(t)),this.$nextTick((()=>{this.$refs.input&&this.$refs.input.checkHtml5Validity()}))}},controlsLeft(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber(){return"any"===this.newStep?1:"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},minStepNumber(){if("any"===this.newStep&&void 0===this.newMinStep)return"any";const e=void 0!==this.newMinStep?this.newMinStep:this.newStep;return"string"==typeof e?parseFloat(e):e},disabledMin(){return+this.computedValue-this.stepNumber<this.minNumber},disabledMax(){return+this.computedValue+this.stepNumber>this.maxNumber},stepDecimals(){const e=this.minStepNumber.toString(),t=e.indexOf(".");return t>=0?e.substring(t+1).length:0},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue:{immediate:!0,handler(e){this.newValue=e}},step(e){this.newStep=e},minStep(e){this.newMinStep=e}},methods:{isDisabled(e){return this.disabled||("plus"===e?this.disabledMax:this.disabledMin)},decrement(){if(null===this.computedValue||void 0===this.computedValue){if(null!==this.maxNumber&&void 0!==this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}if(void 0===this.minNumber||+this.computedValue-this.stepNumber>=this.minNumber){const e=+this.computedValue-this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},increment(){if(null===this.computedValue||void 0===this.computedValue||+this.computedValue<this.minNumber){if(null!==this.minNumber&&void 0!==this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}if(void 0===this.maxNumber||+this.computedValue+this.stepNumber<=this.maxNumber){const e=+this.computedValue+this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},onControlClick(e,t){0===e.detail&&"click"===e.type&&(t?this.increment():this.decrement())},longPressTick(e){e?this.increment():this.decrement(),this.longPress&&(this._$intervalRef=setTimeout((()=>{this.longPressTick(e)}),this.exponential?250/(+this.exponential*this.timesPressed++):250))},onStartLongPress(e,t){0!==e.button&&"touchstart"!==e.type||(clearTimeout(this._$intervalRef),this.longPressTick(t))},onStopLongPress(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=void 0)}},mounted(){this.field===this.$parent&&this.$parent.wrapNumberinput({controlsPosition:this.controlsPosition,size:this.size})},beforeUnmount(){clearTimeout(this._$intervalRef)}});const I=["disabled","aria-label","onMousedown","onTouchstart","onClick"],N=["disabled","aria-label","onMousedown","onTouchstart","onClick"];var F=u(A,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon"),r=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-numberinput field",e.fieldClasses]},e.rootAttrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.controlsLeft,(n=>(t.openBlock(),t.createElementBlock("p",{key:n,class:t.normalizeClass(["control",n]),onMouseup:i[0]||(i[0]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onMouseleave:i[1]||(i[1]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchend:i[2]||(i[2]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchcancel:i[3]||(i[3]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t))},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["button",e.buttonClasses]),disabled:e.isDisabled(n)||void 0,"aria-label":"plus"===n?e.ariaPlusLabel:e.ariaMinusLabel,onMousedown:t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n),onTouchstart:t.withModifiers((t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n)),["prevent"]),onClick:t=>!e.isDisabled(n)&&e.onControlClick(t,"plus"===n)},[t.createVNode(a,{both:"",icon:n,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])],42,I)],34)))),128)),t.createVNode(r,t.mergeProps({type:"number",ref:"input",modelValue:e.computedValue,"onUpdate:modelValue":i[4]||(i[4]=t=>e.computedValue=t)},e.fallthroughAttrs,{step:e.minStepNumber,max:e.max,min:e.min,size:e.size,disabled:e.disabledOrUndefined,readonly:!e.editable,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-pack":e.iconPack,autocomplete:e.autocomplete,expanded:e.expanded,placeholder:e.placeholder,"use-html5-validation":e.useHtml5Validation,onFocus:i[5]||(i[5]=t=>e.$emit("focus",t)),onBlur:i[6]||(i[6]=t=>e.$emit("blur",t))}),null,16,["modelValue","step","max","min","size","disabled","readonly","loading","rounded","icon","icon-pack","autocomplete","expanded","placeholder","use-html5-validation"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.controlsRight,(n=>(t.openBlock(),t.createElementBlock("p",{key:n,class:t.normalizeClass(["control",n]),onMouseup:i[7]||(i[7]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onMouseleave:i[8]||(i[8]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchend:i[9]||(i[9]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t)),onTouchcancel:i[10]||(i[10]=(...t)=>e.onStopLongPress&&e.onStopLongPress(...t))},[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["button",e.buttonClasses]),disabled:e.isDisabled(n)||void 0,"aria-label":"plus"===n?e.ariaPlusLabel:e.ariaMinusLabel,onMousedown:t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n),onTouchstart:t.withModifiers((t=>!e.isDisabled(n)&&e.onStartLongPress(t,"plus"===n)),["prevent"]),onClick:t=>!e.isDisabled(n)&&e.onControlClick(t,"plus"===n)},[t.createVNode(a,{both:"",icon:n,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])],42,N)],34)))),128))],16)}]]);const T={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,F)}};e.BNumberinput=F,e.default=T,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) :
|
|
@@ -144,6 +144,81 @@
|
|
|
144
144
|
return icons;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
+
const defaultIconAliases = {
|
|
148
|
+
checkboxOn: {
|
|
149
|
+
type: "svg",
|
|
150
|
+
viewBox: "0 0 1 1",
|
|
151
|
+
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"
|
|
152
|
+
},
|
|
153
|
+
checkboxIndeterminate: {
|
|
154
|
+
type: "svg",
|
|
155
|
+
viewBox: "0 0 1 1",
|
|
156
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
157
|
+
},
|
|
158
|
+
chevronLeft: {
|
|
159
|
+
type: "svg",
|
|
160
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
161
|
+
},
|
|
162
|
+
chevronRight: {
|
|
163
|
+
type: "svg",
|
|
164
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
165
|
+
},
|
|
166
|
+
chevronDown: {
|
|
167
|
+
type: "svg",
|
|
168
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
169
|
+
},
|
|
170
|
+
chevronUp: {
|
|
171
|
+
type: "svg",
|
|
172
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
173
|
+
},
|
|
174
|
+
menuDown: {
|
|
175
|
+
type: "svg",
|
|
176
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
177
|
+
},
|
|
178
|
+
menuUp: {
|
|
179
|
+
type: "svg",
|
|
180
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
181
|
+
},
|
|
182
|
+
check: {
|
|
183
|
+
type: "svg",
|
|
184
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
185
|
+
},
|
|
186
|
+
alertCircle: {
|
|
187
|
+
type: "svg",
|
|
188
|
+
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"
|
|
189
|
+
},
|
|
190
|
+
alert: {
|
|
191
|
+
type: "svg",
|
|
192
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
193
|
+
},
|
|
194
|
+
information: {
|
|
195
|
+
type: "svg",
|
|
196
|
+
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"
|
|
197
|
+
},
|
|
198
|
+
close: {
|
|
199
|
+
type: "svg",
|
|
200
|
+
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"
|
|
201
|
+
},
|
|
202
|
+
closeCircle: {
|
|
203
|
+
type: "svg",
|
|
204
|
+
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"
|
|
205
|
+
},
|
|
206
|
+
eye: {
|
|
207
|
+
type: "svg",
|
|
208
|
+
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"
|
|
209
|
+
},
|
|
210
|
+
eyeOff: {
|
|
211
|
+
type: "svg",
|
|
212
|
+
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"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
function getIconAliases() {
|
|
216
|
+
return defaultIconAliases;
|
|
217
|
+
}
|
|
218
|
+
function resolveAlias(name) {
|
|
219
|
+
return getIconAliases()[name];
|
|
220
|
+
}
|
|
221
|
+
|
|
147
222
|
var _sfc_main$1 = vue.defineComponent({
|
|
148
223
|
name: "BIcon",
|
|
149
224
|
props: {
|
|
@@ -152,8 +227,11 @@
|
|
|
152
227
|
pack: String,
|
|
153
228
|
icon: {
|
|
154
229
|
type: String,
|
|
155
|
-
required:
|
|
230
|
+
required: false,
|
|
231
|
+
default: void 0
|
|
156
232
|
},
|
|
233
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
234
|
+
alias: String,
|
|
157
235
|
size: String,
|
|
158
236
|
customSize: String,
|
|
159
237
|
customClass: String,
|
|
@@ -161,6 +239,26 @@
|
|
|
161
239
|
// This is used internally to show both MDI and FA icon
|
|
162
240
|
},
|
|
163
241
|
computed: {
|
|
242
|
+
resolvedAlias() {
|
|
243
|
+
var _a;
|
|
244
|
+
if (!this.alias) return null;
|
|
245
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
246
|
+
},
|
|
247
|
+
isSvgAlias() {
|
|
248
|
+
var _a;
|
|
249
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
250
|
+
},
|
|
251
|
+
isComponentAlias() {
|
|
252
|
+
var _a;
|
|
253
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
254
|
+
},
|
|
255
|
+
// Typed accessors used in the template
|
|
256
|
+
resolvedAliasSvg() {
|
|
257
|
+
return this.resolvedAlias;
|
|
258
|
+
},
|
|
259
|
+
resolvedAliasComponent() {
|
|
260
|
+
return this.resolvedAlias;
|
|
261
|
+
},
|
|
164
262
|
iconConfig() {
|
|
165
263
|
const allIcons = getIcons();
|
|
166
264
|
return allIcons[this.newPack];
|
|
@@ -177,7 +275,8 @@
|
|
|
177
275
|
* internal icons are always MDI.
|
|
178
276
|
*/
|
|
179
277
|
newIcon() {
|
|
180
|
-
|
|
278
|
+
var _a;
|
|
279
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
181
280
|
},
|
|
182
281
|
newPack() {
|
|
183
282
|
return this.pack || config.defaultIconPack;
|
|
@@ -236,6 +335,8 @@
|
|
|
236
335
|
}
|
|
237
336
|
});
|
|
238
337
|
|
|
338
|
+
const _hoisted_1$1 = ["viewBox"];
|
|
339
|
+
const _hoisted_2$1 = ["d"];
|
|
239
340
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
240
341
|
return vue.openBlock(), vue.createElementBlock(
|
|
241
342
|
"span",
|
|
@@ -243,17 +344,32 @@
|
|
|
243
344
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
244
345
|
},
|
|
245
346
|
[
|
|
246
|
-
|
|
347
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
348
|
+
key: 0,
|
|
349
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
350
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
351
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
352
|
+
"aria-hidden": "true"
|
|
353
|
+
}, [
|
|
354
|
+
vue.createElementVNode("path", {
|
|
355
|
+
fill: "currentColor",
|
|
356
|
+
d: _ctx.resolvedAliasSvg.path
|
|
357
|
+
}, null, 8, _hoisted_2$1)
|
|
358
|
+
], 10, _hoisted_1$1)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
359
|
+
key: 1,
|
|
360
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
361
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
362
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
247
363
|
"i",
|
|
248
364
|
{
|
|
249
|
-
key:
|
|
365
|
+
key: 2,
|
|
250
366
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
251
367
|
},
|
|
252
368
|
null,
|
|
253
369
|
2
|
|
254
370
|
/* CLASS */
|
|
255
371
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
256
|
-
key:
|
|
372
|
+
key: 3,
|
|
257
373
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
258
374
|
size: _ctx.newCustomSize,
|
|
259
375
|
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).Pagination={},e.Vue)}(this,(function(e,t){"use strict";let n={defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};var a=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};var i=a(t.defineComponent({name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:[String,Object],default:"a",validator:e=>"object"==typeof e||n.defaultLinkTags.indexOf(e)>=0},disabled:{type:Boolean,default:!1}},computed:{href(){return"a"===this.tag?"#":void 0},isDisabled(){return this.disabled||this.page.disabled},disabledOrUndefined(){return this.isDisabled||void 0}}}),[["render",function(e,n,a,i,o,l){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({role:"button",href:e.href,disabled:e.disabledOrUndefined,class:["pagination-link",{"is-current":e.page.isCurrent,[e.page.class]:!0}]},e.$attrs,{onClick:t.withModifiers(e.page.click,["prevent"]),"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent||void 0}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.page.number),1)]))])),_:3},16,["href","disabled","class","onClick","aria-label","aria-current"])}]]);const o={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"}}};var r=a(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:o,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(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||n.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||n.defaultIconComponent}},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,n,a,i,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)}]]);var s=t.defineComponent({name:"BPagination",components:{BIcon:r,BPaginationButton:i},props:{total:[Number,String],perPage:{type:[Number,String],default:20},modelValue:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:()=>n.defaultIconPrev},iconNext:{type:String,default:()=>n.defaultIconNext},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data(){return{inputValue:this.modelValue,debounceHandlePageInput:void 0}},emits:{change:e=>!0,"update:modelValue":e=>!0},computed:{rootClasses(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent(){return parseInt(this.rangeBefore+"")},afterCurrent(){return parseInt(this.rangeAfter+"")},pageCount(){return Math.ceil(+this.total/+this.perPage)},firstItem(){const e=+this.modelValue*+this.perPage-+this.perPage+1;return e>=0?e:0},hasPrev(){return+this.modelValue>1},hasFirst(){return+this.modelValue>=2+this.beforeCurrent},hasFirstEllipsis(){return+this.modelValue>=this.beforeCurrent+4},hasLast(){return+this.modelValue<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis(){return+this.modelValue<this.pageCount-(2+this.afterCurrent)},hasNext(){return+this.modelValue<this.pageCount},pagesInRange(){if(this.simple)return;let e=Math.max(1,+this.modelValue-this.beforeCurrent);e-1==2&&e--;let t=Math.min(+this.modelValue+this.afterCurrent,this.pageCount);this.pageCount-t===2&&t++;const n=[];for(let a=e;a<=t;a++)n.push(this.getPage(a));return n}},watch:{pageCount(e){this.modelValue>e&&this.last()},modelValue(e){this.inputValue=e},debouncePageInput:{handler(e){this.debounceHandlePageInput=function(e,t){let n;return function(...a){const i=this;clearTimeout(n),n=setTimeout((function(){n=void 0,e.apply(i,a)}),t)}}(this.handleOnInputPageChange,e)},immediate:!0}},methods:{prev(e){this.changePage(+this.modelValue-1,e)},next(e){this.changePage(+this.modelValue+1,e)},first(e){this.changePage(1,e)},last(e){this.changePage(this.pageCount,e)},changePage(e,t){this.modelValue===e||e<1||e>this.pageCount||(this.$emit("update:modelValue",e),this.$emit("change",e),t&&t.target&&this.$nextTick((()=>t.target.focus())))},getPage(e,t={}){return{number:e,isCurrent:this.modelValue===e,click:t=>this.changePage(e,t),input:(e,t)=>this.changePage(+t,e),disabled:t.disabled||!1,class:t.class||"","aria-label":t["aria-label"]||this.getAriaPageLabel(e,this.modelValue===e)}},getAriaPageLabel(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."},handleOnInputPageChange(e){this.getPage(+this.inputValue).input(e,this.inputValue)},handleOnInputDebounce(e){this.debouncePageInput?this.debounceHandlePageInput(e):this.handleOnInputPageChange(e)},handleOnKeyPress(e){const t=e.which||e.keyCode;return t>=48&&t<=57||e.preventDefault()},handleAllowableInputPageRange(e){const t=e.target;+t.value>0&&+t.value<=this.pageCount?this.handleOnInputValue(e):(this.inputValue=1,this.inputValue="")},handleOnInputValue(e){const t=+e.target.value;this.inputValue=t,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(e):this.inputValue=this.modelValue}}});const u={class:"control pagination-input"},c=["value","size","maxlength"],p={key:4,class:"info"},g={key:5,class:"pagination-list"},d={key:0},h={key:1},m=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],f={key:2},k=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],b={key:3};var P=a(s,[["render",function(e,n,a,i,o,l){const r=t.resolveComponent("b-icon"),s=t.resolveComponent("BPaginationButton");return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["pagination",e.rootClasses])},[e.$slots.previous?t.renderSlot(e.$slots,"previous",{key:0,page:e.getPage(+e.modelValue-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})},(()=>[t.createVNode(r,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(s,{key:1,class:"pagination-previous",disabled:!e.hasPrev,page:e.getPage(+e.modelValue-1),"aria-label":e.ariaPreviousLabel},{default:t.withCtx((()=>[t.createVNode(r,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),e.$slots.next?t.renderSlot(e.$slots,"next",{key:2,page:e.getPage(+e.modelValue+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})},(()=>[t.createVNode(r,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(s,{key:3,class:"pagination-next",disabled:!e.hasNext,page:e.getPage(+e.modelValue+1),"aria-label":e.ariaNextLabel},{default:t.withCtx((()=>[t.createVNode(r,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),t.createElementVNode("div",u,[e.pageInput?(t.openBlock(),t.createElementBlock("input",{key:0,class:"input",value:e.inputValue,onInput:n[0]||(n[0]=(...t)=>e.handleAllowableInputPageRange&&e.handleAllowableInputPageRange(...t)),onKeypress:n[1]||(n[1]=(...t)=>e.handleOnKeyPress&&e.handleOnKeyPress(...t)),size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},null,40,c)):t.createCommentVNode("v-if",!0)]),e.simple?(t.openBlock(),t.createElementBlock("small",p,[1==e.perPage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.firstItem)+" / "+t.toDisplayString(e.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.firstItem)+"-"+t.toDisplayString(Math.min(+e.modelValue*+e.perPage,+e.total))+" / "+t.toDisplayString(e.total),1)],64))])):(t.openBlock(),t.createElementBlock("ul",g,[t.createCommentVNode("First"),e.hasFirst?(t.openBlock(),t.createElementBlock("li",d,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(1)}):(t.openBlock(),t.createBlock(s,{key:1,page:e.getPage(1)},null,8,["page"]))])):t.createCommentVNode("v-if",!0),e.hasFirstEllipsis?(t.openBlock(),t.createElementBlock("li",h,[...m])):t.createCommentVNode("v-if",!0),t.createCommentVNode("Pages"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pagesInRange,(n=>(t.openBlock(),t.createElementBlock("li",{key:n.number},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:n}):(t.openBlock(),t.createBlock(s,{key:1,page:n},null,8,["page"]))])))),128)),t.createCommentVNode("Last"),e.hasLastEllipsis?(t.openBlock(),t.createElementBlock("li",f,[...k])):t.createCommentVNode("v-if",!0),e.hasLast?(t.openBlock(),t.createElementBlock("li",b,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(e.pageCount)}):(t.openBlock(),t.createBlock(s,{key:1,page:e.getPage(e.pageCount)},null,8,["page"]))])):t.createCommentVNode("v-if",!0)]))],2)}]]);const C=(e,t,n)=>{const a=t.name;if(null==a)throw new Error("Buefy.registerComponent: missing component name");e.component(a,t)},y={install(e){C(e,P),C(e,i)}};e.BPagination=P,e.BPaginationButton=i,e.default=y,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).Pagination={},e.Vue)}(this,(function(e,t){"use strict";let n={defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};var a=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};var i=a(t.defineComponent({name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:[String,Object],default:"a",validator:e=>"object"==typeof e||n.defaultLinkTags.indexOf(e)>=0},disabled:{type:Boolean,default:!1}},computed:{href(){return"a"===this.tag?"#":void 0},isDisabled(){return this.disabled||this.page.disabled},disabledOrUndefined(){return this.isDisabled||void 0}}}),[["render",function(e,n,a,i,o,l){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({role:"button",href:e.href,disabled:e.disabledOrUndefined,class:["pagination-link",{"is-current":e.page.isCurrent,[e.page.class]:!0}]},e.$attrs,{onClick:t.withModifiers(e.page.click,["prevent"]),"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent||void 0}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.page.number),1)]))])),_:3},16,["href","disabled","class","onClick","aria-label","aria-current"])}]]);const o={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"}}},s={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 s[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:o,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||n.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||n.defaultIconComponent}},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}}});const u=["viewBox"],p=["d"];var g=a(c,[["render",function(e,n,a,i,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,p)],10,u)):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)}]]);var d=t.defineComponent({name:"BPagination",components:{BIcon:g,BPaginationButton:i},props:{total:[Number,String],perPage:{type:[Number,String],default:20},modelValue:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:()=>n.defaultIconPrev},iconNext:{type:String,default:()=>n.defaultIconNext},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data(){return{inputValue:this.modelValue,debounceHandlePageInput:void 0}},emits:{change:e=>!0,"update:modelValue":e=>!0},computed:{rootClasses(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent(){return parseInt(this.rangeBefore+"")},afterCurrent(){return parseInt(this.rangeAfter+"")},pageCount(){return Math.ceil(+this.total/+this.perPage)},firstItem(){const e=+this.modelValue*+this.perPage-+this.perPage+1;return e>=0?e:0},hasPrev(){return+this.modelValue>1},hasFirst(){return+this.modelValue>=2+this.beforeCurrent},hasFirstEllipsis(){return+this.modelValue>=this.beforeCurrent+4},hasLast(){return+this.modelValue<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis(){return+this.modelValue<this.pageCount-(2+this.afterCurrent)},hasNext(){return+this.modelValue<this.pageCount},pagesInRange(){if(this.simple)return;let e=Math.max(1,+this.modelValue-this.beforeCurrent);e-1==2&&e--;let t=Math.min(+this.modelValue+this.afterCurrent,this.pageCount);this.pageCount-t===2&&t++;const n=[];for(let a=e;a<=t;a++)n.push(this.getPage(a));return n}},watch:{pageCount(e){this.modelValue>e&&this.last()},modelValue(e){this.inputValue=e},debouncePageInput:{handler(e){this.debounceHandlePageInput=function(e,t){let n;return function(...a){const i=this;clearTimeout(n),n=setTimeout((function(){n=void 0,e.apply(i,a)}),t)}}(this.handleOnInputPageChange,e)},immediate:!0}},methods:{prev(e){this.changePage(+this.modelValue-1,e)},next(e){this.changePage(+this.modelValue+1,e)},first(e){this.changePage(1,e)},last(e){this.changePage(this.pageCount,e)},changePage(e,t){this.modelValue===e||e<1||e>this.pageCount||(this.$emit("update:modelValue",e),this.$emit("change",e),t&&t.target&&this.$nextTick((()=>t.target.focus())))},getPage(e,t={}){return{number:e,isCurrent:this.modelValue===e,click:t=>this.changePage(e,t),input:(e,t)=>this.changePage(+t,e),disabled:t.disabled||!1,class:t.class||"","aria-label":t["aria-label"]||this.getAriaPageLabel(e,this.modelValue===e)}},getAriaPageLabel(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."},handleOnInputPageChange(e){this.getPage(+this.inputValue).input(e,this.inputValue)},handleOnInputDebounce(e){this.debouncePageInput?this.debounceHandlePageInput(e):this.handleOnInputPageChange(e)},handleOnKeyPress(e){const t=e.which||e.keyCode;return t>=48&&t<=57||e.preventDefault()},handleAllowableInputPageRange(e){const t=e.target;+t.value>0&&+t.value<=this.pageCount?this.handleOnInputValue(e):(this.inputValue=1,this.inputValue="")},handleOnInputValue(e){const t=+e.target.value;this.inputValue=t,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(e):this.inputValue=this.modelValue}}});const h={class:"control pagination-input"},m=["value","size","maxlength"],f={key:4,class:"info"},C={key:5,class:"pagination-list"},k={key:0},v={key:1},L=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],b={key:2},y=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],P={key:3};var B=a(d,[["render",function(e,n,a,i,o,l){const s=t.resolveComponent("b-icon"),r=t.resolveComponent("BPaginationButton");return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["pagination",e.rootClasses])},[e.$slots.previous?t.renderSlot(e.$slots,"previous",{key:0,page:e.getPage(+e.modelValue-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})},(()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:1,class:"pagination-previous",disabled:!e.hasPrev,page:e.getPage(+e.modelValue-1),"aria-label":e.ariaPreviousLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),e.$slots.next?t.renderSlot(e.$slots,"next",{key:2,page:e.getPage(+e.modelValue+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})},(()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:3,class:"pagination-next",disabled:!e.hasNext,page:e.getPage(+e.modelValue+1),"aria-label":e.ariaNextLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),t.createElementVNode("div",h,[e.pageInput?(t.openBlock(),t.createElementBlock("input",{key:0,class:"input",value:e.inputValue,onInput:n[0]||(n[0]=(...t)=>e.handleAllowableInputPageRange&&e.handleAllowableInputPageRange(...t)),onKeypress:n[1]||(n[1]=(...t)=>e.handleOnKeyPress&&e.handleOnKeyPress(...t)),size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},null,40,m)):t.createCommentVNode("v-if",!0)]),e.simple?(t.openBlock(),t.createElementBlock("small",f,[1==e.perPage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.firstItem)+" / "+t.toDisplayString(e.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.firstItem)+"-"+t.toDisplayString(Math.min(+e.modelValue*+e.perPage,+e.total))+" / "+t.toDisplayString(e.total),1)],64))])):(t.openBlock(),t.createElementBlock("ul",C,[t.createCommentVNode("First"),e.hasFirst?(t.openBlock(),t.createElementBlock("li",k,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(1)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(1)},null,8,["page"]))])):t.createCommentVNode("v-if",!0),e.hasFirstEllipsis?(t.openBlock(),t.createElementBlock("li",v,[...L])):t.createCommentVNode("v-if",!0),t.createCommentVNode("Pages"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pagesInRange,(n=>(t.openBlock(),t.createElementBlock("li",{key:n.number},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:n}):(t.openBlock(),t.createBlock(r,{key:1,page:n},null,8,["page"]))])))),128)),t.createCommentVNode("Last"),e.hasLastEllipsis?(t.openBlock(),t.createElementBlock("li",b,[...y])):t.createCommentVNode("v-if",!0),e.hasLast?(t.openBlock(),t.createElementBlock("li",P,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(e.pageCount)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(e.pageCount)},null,8,["page"]))])):t.createCommentVNode("v-if",!0)]))],2)}]]);const V=(e,t,n)=>{const a=t.name;if(null==a)throw new Error("Buefy.registerComponent: missing component name");e.component(a,t)},x={install(e){V(e,B),V(e,i)}};e.BPagination=B,e.BPaginationButton=i,e.default=x,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).Progress={},e.Vue)}(this,(function(e,t){"use strict";let r;const s=Symbol("bprogress"),a=t.defineComponent({name:"BProgress",provide(){return{[s]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>r,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,r=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:r}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:r}).format(e)}}});var i=(e,t)=>{const r=e.__vccOpts||e;for(const[e,s]of t)r[e]=s;return r};const o=["max","value"],n={key:2,class:"progress-value"};var l=i(a,[["render",function(e,r,s,a,i,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,o)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",n,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]);const u=t.defineComponent({name:"BProgressBar",inject:{parent:{from:s,default:void 0}},props:{type:{type:[String],default:void 0},value:{type:Number,default:void 0},showValue:{type:Boolean,default:!1}},computed:{parentProgress(){return this.parent},newType(){return[this.parentProgress.size,this.type||this.parentProgress.type]},newShowValue(){return this.showValue||this.parentProgress.showValue},newValue(){return this.parentProgress.calculateValue(this.value)},barWidth(){return 100*(void 0===this.value?0:this.value)/this.parentProgress.max+"%"}}}),p=["aria-valuenow","aria-valuemax"],c={key:0,class:"progress-value"};var d=i(u,[["render",function(e,r,s,a,i,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-bar",e.newType]),role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.parentProgress.max,"aria-valuemin":"0",style:t.normalizeStyle({width:e.barWidth})},[e.newShowValue?(t.openBlock(),t.createElementBlock("p",c,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],14,p)}]]);const m=(e,t,r)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},h={install(e){m(e,l),m(e,d)}};e.BProgress=l,e.BProgressBar=d,e.default=h,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,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self).Radio={},e.Vue)}(this,(function(e,i){"use strict";var n=i.defineComponent({props:{modelValue:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},emits:{"update:modelValue":e=>!0},data(){return{newValue:this.modelValue}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},disabledOrUndefined(){return this.disabled||void 0},requiredOrUndefined(){return this.required||void 0}},watch:{modelValue(e){this.newValue=e}},methods:{focus(){this.$refs.input.focus()}}});const t=i.defineComponent({name:"BRadio",mixins:[n]});var d=(e,i)=>{const n=e.__vccOpts||e;for(const[e,t]of i)n[e]=t;return n};const l=["disabled"],o=["disabled","required","name","value"],a={class:"control-label"};var s=d(t,[["render",function(e,n,t,d,s,r){return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["b-radio radio",[e.size,{"is-disabled":e.disabled}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),onKeydown:n[3]||(n[3]=i.withKeys(i.withModifiers((i=>e.$refs.label.click()),["prevent"]),["enter"]))},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=i=>e.computedValue=i),type:"radio",ref:"input",onClick:n[1]||(n[1]=i.withModifiers((()=>{}),["stop"])),disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue},null,8,o),[[i.vModelRadio,e.computedValue]]),i.createElementVNode("span",{class:i.normalizeClass(["check",e.type])},null,2),i.createElementVNode("span",a,[i.renderSlot(e.$slots,"default")])],42,l)}]]);const r=i.defineComponent({name:"BRadioButton",mixins:[n],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:()=>({isFocused:!1}),computed:{isSelected(){return this.newValue===this.nativeValue},labelClass(){return[this.isSelected?this.type:null,this.size,{"is-selected":this.isSelected,"is-disabled":this.disabled,"is-focused":this.isFocused}]}}}),u=["disabled"],c=["disabled","required","name","value"];var p=d(r,[["render",function(e,n,t,d,l,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["control",{"is-expanded":e.expanded}])},[i.createElementVNode("label",{class:i.normalizeClass(["b-radio radio button",e.labelClass]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[4]||(n[4]=(...i)=>e.focus&&e.focus(...i)),onKeydown:n[5]||(n[5]=i.withKeys(i.withModifiers((i=>e.$refs.label.click()),["prevent"]),["enter"]))},[i.renderSlot(e.$slots,"default"),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=i=>e.computedValue=i),type:"radio",ref:"input",onClick:n[1]||(n[1]=i.withModifiers((()=>{}),["stop"])),disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue,onFocus:n[2]||(n[2]=i=>e.isFocused=!0),onBlur:n[3]||(n[3]=i=>e.isFocused=!1)},null,40,c),[[i.vModelRadio,e.computedValue]])],42,u)],2)}]]);const f=(e,i,n)=>{const t=i.name;if(null==t)throw new Error("Buefy.registerComponent: missing component name");e.component(t,i)},m={install(e){f(e,s),f(e,p)}};e.BRadio=s,e.BRadioButton=p,e.default=m,Object.defineProperty(e,"__esModule",{value:!0})}));
|