buefy 3.0.5 → 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 +63 -3
- package/dist/buefy.esm.js +209 -46
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +209 -44
- 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-DhsJpauU.js → Datepicker-DVB975q3.js} +9 -9
- package/dist/cjs/{Dropdown-BAXMPUCZ.js → Dropdown-CFh_lLvm.js} +1 -1
- package/dist/cjs/{DropdownItem-BOAAPdrW.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-DDYkLeNV.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 +4 -3
- 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-BkFyTNWp.js → index-N35FRTpu.js} +8 -8
- 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 +122 -6
- 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 +126 -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 +126 -10
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +134 -18
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +126 -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 +1 -1
- package/dist/components/dropdown/index.min.js +1 -1
- 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 +134 -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-HsHD-6pc.js → Autocomplete-BsBIH0Mj.js} +3 -3
- package/dist/esm/{Button-Bvib75up.js → Button-BTP__-p5.js} +2 -2
- package/dist/esm/{Checkbox-u861Rije.js → Checkbox-C6pO3IzG.js} +31 -3
- package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
- package/dist/esm/{Datepicker-BZ5ORu0F.js → Datepicker-CrVKrZBF.js} +9 -9
- package/dist/esm/{Dropdown-BLadix4L.js → Dropdown-GHauDDcD.js} +1 -1
- package/dist/esm/{DropdownItem-Crhb4RQp.js → DropdownItem-By3tSZk2.js} +1 -1
- package/dist/esm/{Field-DZCOQuRO.js → Field-CU8ZBgMh.js} +1 -1
- package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
- package/dist/esm/{Icon-iqPKMem5.js → Icon-pQAdaqZb.js} +49 -7
- package/dist/esm/{Image-By9o7ryD.js → Image-COmzg-EK.js} +1 -1
- package/dist/esm/{Input-JL4LWKyL.js → Input-CErQ1Jyw.js} +4 -4
- package/dist/esm/{Modal-BF2kchNd.js → Modal-C13NJijf.js} +1 -1
- package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
- package/dist/esm/{Pagination-BWFVCGiz.js → Pagination-DvgzxH87.js} +2 -2
- package/dist/esm/{Progress-BxT2PFEw.js → Progress-AeKn1Ttq.js} +1 -1
- package/dist/esm/{Select-dYTVc9W4.js → Select-CbkuxvSQ.js} +3 -3
- package/dist/esm/{TabbedChildMixin-BsuDQmWE.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
- package/dist/esm/{Tag-BFgiw0Ac.js → Tag-Dx_-Tavp.js} +1 -1
- package/dist/esm/{Timepicker-CYqyLHE9.js → Timepicker-0ojuPkqd.js} +6 -6
- package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
- package/dist/esm/{Tooltip-Ds5fe3ZP.js → Tooltip-BnzQFdnQ.js} +1 -1
- package/dist/esm/autocomplete.js +7 -6
- package/dist/esm/breadcrumb.js +2 -2
- package/dist/esm/button.js +4 -3
- package/dist/esm/carousel.js +4 -3
- package/dist/esm/checkbox.js +3 -1
- package/dist/esm/clockpicker.js +8 -7
- 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 +13 -12
- package/dist/esm/dialog.js +5 -4
- 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-mnzTDKh9.js → index-BYVep8cv.js} +8 -8
- package/dist/esm/index.js +26 -25
- package/dist/esm/input.js +6 -5
- package/dist/esm/menu.js +4 -3
- package/dist/esm/message.js +4 -3
- package/dist/esm/modal.js +2 -2
- package/dist/esm/navbar.js +2 -2
- package/dist/esm/notification.js +5 -4
- package/dist/esm/numberinput.js +6 -5
- package/dist/esm/pagination.js +4 -3
- package/dist/esm/progress.js +2 -2
- package/dist/esm/rate.js +3 -2
- package/dist/esm/select.js +6 -5
- package/dist/esm/sidebar.js +1 -1
- package/dist/esm/slider.js +3 -3
- package/dist/esm/snackbar.js +2 -2
- package/dist/esm/steps.js +4 -3
- package/dist/esm/switch.js +1 -1
- package/dist/esm/table.js +9 -8
- package/dist/esm/tabs.js +4 -3
- package/dist/esm/tag.js +4 -3
- package/dist/esm/taginput.js +8 -7
- package/dist/esm/timepicker.js +12 -11
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +2 -2
- package/dist/esm/upload.js +3 -3
- package/package.json +1 -1
- package/src/components/checkbox/Checkbox.spec.ts +56 -26
- 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/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 -15
- 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) :
|
|
@@ -58,6 +58,81 @@
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
const defaultIconAliases = {
|
|
62
|
+
checkboxOn: {
|
|
63
|
+
type: "svg",
|
|
64
|
+
viewBox: "0 0 1 1",
|
|
65
|
+
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"
|
|
66
|
+
},
|
|
67
|
+
checkboxIndeterminate: {
|
|
68
|
+
type: "svg",
|
|
69
|
+
viewBox: "0 0 1 1",
|
|
70
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
71
|
+
},
|
|
72
|
+
chevronLeft: {
|
|
73
|
+
type: "svg",
|
|
74
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
75
|
+
},
|
|
76
|
+
chevronRight: {
|
|
77
|
+
type: "svg",
|
|
78
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
79
|
+
},
|
|
80
|
+
chevronDown: {
|
|
81
|
+
type: "svg",
|
|
82
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
83
|
+
},
|
|
84
|
+
chevronUp: {
|
|
85
|
+
type: "svg",
|
|
86
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
87
|
+
},
|
|
88
|
+
menuDown: {
|
|
89
|
+
type: "svg",
|
|
90
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
91
|
+
},
|
|
92
|
+
menuUp: {
|
|
93
|
+
type: "svg",
|
|
94
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
95
|
+
},
|
|
96
|
+
check: {
|
|
97
|
+
type: "svg",
|
|
98
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
99
|
+
},
|
|
100
|
+
alertCircle: {
|
|
101
|
+
type: "svg",
|
|
102
|
+
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"
|
|
103
|
+
},
|
|
104
|
+
alert: {
|
|
105
|
+
type: "svg",
|
|
106
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
107
|
+
},
|
|
108
|
+
information: {
|
|
109
|
+
type: "svg",
|
|
110
|
+
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"
|
|
111
|
+
},
|
|
112
|
+
close: {
|
|
113
|
+
type: "svg",
|
|
114
|
+
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"
|
|
115
|
+
},
|
|
116
|
+
closeCircle: {
|
|
117
|
+
type: "svg",
|
|
118
|
+
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"
|
|
119
|
+
},
|
|
120
|
+
eye: {
|
|
121
|
+
type: "svg",
|
|
122
|
+
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"
|
|
123
|
+
},
|
|
124
|
+
eyeOff: {
|
|
125
|
+
type: "svg",
|
|
126
|
+
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"
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
function getIconAliases() {
|
|
130
|
+
return defaultIconAliases;
|
|
131
|
+
}
|
|
132
|
+
function resolveAlias(name) {
|
|
133
|
+
return getIconAliases()[name];
|
|
134
|
+
}
|
|
135
|
+
|
|
61
136
|
var _sfc_main$1 = vue.defineComponent({
|
|
62
137
|
name: "BCheckbox",
|
|
63
138
|
mixins: [CheckRadioMixin],
|
|
@@ -80,6 +155,19 @@
|
|
|
80
155
|
type: String,
|
|
81
156
|
default: ""
|
|
82
157
|
}
|
|
158
|
+
},
|
|
159
|
+
computed: {
|
|
160
|
+
isChecked() {
|
|
161
|
+
const val = this.computedValue;
|
|
162
|
+
if (Array.isArray(val)) {
|
|
163
|
+
return val.includes(this.nativeValue);
|
|
164
|
+
}
|
|
165
|
+
return val === this.trueValue;
|
|
166
|
+
},
|
|
167
|
+
checkmarkAlias() {
|
|
168
|
+
const key = this.indeterminate ? "checkboxIndeterminate" : "checkboxOn";
|
|
169
|
+
return resolveAlias(key);
|
|
170
|
+
}
|
|
83
171
|
}
|
|
84
172
|
});
|
|
85
173
|
|
|
@@ -93,7 +181,9 @@
|
|
|
93
181
|
|
|
94
182
|
const _hoisted_1$1 = ["disabled"];
|
|
95
183
|
const _hoisted_2$1 = ["id", ".indeterminate", "autocomplete", "disabled", "required", "name", "value", "true-value", "false-value", "aria-labelledby"];
|
|
96
|
-
const _hoisted_3 = ["
|
|
184
|
+
const _hoisted_3 = ["viewBox"];
|
|
185
|
+
const _hoisted_4 = ["d"];
|
|
186
|
+
const _hoisted_5 = ["id"];
|
|
97
187
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
188
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
99
189
|
class: vue.normalizeClass(["b-checkbox checkbox", [_ctx.size, { "is-disabled": _ctx.disabled }]]),
|
|
@@ -130,7 +220,19 @@
|
|
|
130
220
|
{
|
|
131
221
|
class: vue.normalizeClass(["check", _ctx.type])
|
|
132
222
|
},
|
|
133
|
-
|
|
223
|
+
[
|
|
224
|
+
_ctx.isChecked || _ctx.indeterminate ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
225
|
+
key: 0,
|
|
226
|
+
viewBox: _ctx.checkmarkAlias.viewBox || "0 0 1 1",
|
|
227
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
228
|
+
"aria-hidden": "true"
|
|
229
|
+
}, [
|
|
230
|
+
vue.createElementVNode("path", {
|
|
231
|
+
fill: "currentColor",
|
|
232
|
+
d: _ctx.checkmarkAlias.path
|
|
233
|
+
}, null, 8, _hoisted_4)
|
|
234
|
+
], 8, _hoisted_3)) : vue.createCommentVNode("v-if", true)
|
|
235
|
+
],
|
|
134
236
|
2
|
|
135
237
|
/* CLASS */
|
|
136
238
|
),
|
|
@@ -139,7 +241,7 @@
|
|
|
139
241
|
class: "control-label"
|
|
140
242
|
}, [
|
|
141
243
|
vue.renderSlot(_ctx.$slots, "default")
|
|
142
|
-
], 8,
|
|
244
|
+
], 8, _hoisted_5)
|
|
143
245
|
], 42, _hoisted_1$1);
|
|
144
246
|
}
|
|
145
247
|
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
@@ -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).Checkbox={},e.Vue)}(this,(function(e,t){"use strict";var n=t.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()}}}),a=t.defineComponent({name:"BCheckbox",mixins:[n],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"},inputId:{type:String,default:""}}}),
|
|
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).Checkbox={},e.Vue)}(this,(function(e,t){"use strict";var n=t.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 a={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function i(e){return a[e]}var o=t.defineComponent({name:"BCheckbox",mixins:[n],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"},inputId:{type:String,default:""}},computed:{isChecked(){const e=this.computedValue;return Array.isArray(e)?e.includes(this.nativeValue):e===this.trueValue},checkmarkAlias(){return i(this.indeterminate?"checkboxIndeterminate":"checkboxOn")}}}),l=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};const r=["disabled"],d=["id",".indeterminate","autocomplete","disabled","required","name","value","true-value","false-value","aria-labelledby"],s=["viewBox"],c=["d"],u=["id"];var p=l(o,[["render",function(e,n,a,i,o,l){return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(["b-checkbox checkbox",[e.size,{"is-disabled":e.disabled}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[2]||(n[2]=(...t)=>e.focus&&e.focus(...t)),onKeydown:[n[3]||(n[3]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"])),n[4]||(n[4]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["space"]))]},[t.createCommentVNode(" Checkbox needs to listen for a space event instead of a just a\n click and enter event so that that using the keyboard spacebar will also\n trigger the checkbox change in the b-table "),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.computedValue=t),id:e.inputId,".indeterminate":e.indeterminate,type:"checkbox",ref:"input",onClick:n[1]||(n[1]=t.withModifiers((()=>{}),["stop"])),autocomplete:e.autocomplete,disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},null,40,d),[[t.vModelCheckbox,e.computedValue]]),t.createElementVNode("span",{class:t.normalizeClass(["check",e.type])},[e.isChecked||e.indeterminate?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.checkmarkAlias.viewBox||"0 0 1 1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.checkmarkAlias.path},null,8,c)],8,s)):t.createCommentVNode("v-if",!0)],2),t.createElementVNode("span",{id:e.ariaLabelledby,class:"control-label"},[t.renderSlot(e.$slots,"default")],8,u)],42,r)}]]),h=t.defineComponent({name:"BCheckboxButton",mixins:[n],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:()=>({isFocused:!1}),computed:{checked(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}});const m=["disabled"],L=["disabled","required","name","value"];var b=l(h,[["render",function(e,n,a,i,o,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["control",{"is-expanded":e.expanded}])},[t.createElementVNode("label",{class:t.normalizeClass(["b-checkbox checkbox button",[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[4]||(n[4]=(...t)=>e.focus&&e.focus(...t)),onKeydown:n[5]||(n[5]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"]))},[t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.computedValue=t),type:"checkbox",ref:"input",onClick:n[1]||(n[1]=t.withModifiers((()=>{}),["stop"])),disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue,onFocus:n[2]||(n[2]=t=>e.isFocused=!0),onBlur:n[3]||(n[3]=t=>e.isFocused=!1)},null,40,L),[[t.vModelCheckbox,e.computedValue]])],42,m)],2)}]]);const f=(e,t,n)=>{const a=t.name;if(null==a)throw new Error("Buefy.registerComponent: missing component name");e.component(a,t)},v={install(e){f(e,p),f(e,b)}};e.BCheckbox=p,e.BCheckboxButton=b,e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
@@ -731,8 +731,8 @@
|
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
|
|
734
|
-
const _hoisted_1$
|
|
735
|
-
const _hoisted_2$
|
|
734
|
+
const _hoisted_1$4 = ["tabindex"];
|
|
735
|
+
const _hoisted_2$3 = ["aria-hidden"];
|
|
736
736
|
const _hoisted_3$2 = ["aria-hidden"];
|
|
737
737
|
const _hoisted_4$2 = ["role", "aria-modal"];
|
|
738
738
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -760,14 +760,14 @@
|
|
|
760
760
|
"aria-haspopup": "true"
|
|
761
761
|
}, [
|
|
762
762
|
vue.renderSlot(_ctx.$slots, "trigger", { active: _ctx.isActive })
|
|
763
|
-
], 40, _hoisted_1$
|
|
763
|
+
], 40, _hoisted_1$4)) : vue.createCommentVNode("v-if", true),
|
|
764
764
|
vue.createVNode(vue.Transition, { name: _ctx.animation }, {
|
|
765
765
|
default: vue.withCtx(() => [
|
|
766
766
|
_ctx.isMobileModal ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
767
767
|
key: 0,
|
|
768
768
|
class: "background",
|
|
769
769
|
"aria-hidden": !_ctx.isActive
|
|
770
|
-
}, null, 8, _hoisted_2$
|
|
770
|
+
}, null, 8, _hoisted_2$3)), [
|
|
771
771
|
[vue.vShow, _ctx.isActive]
|
|
772
772
|
]) : vue.createCommentVNode("v-if", true)
|
|
773
773
|
]),
|
|
@@ -868,6 +868,81 @@
|
|
|
868
868
|
return icons;
|
|
869
869
|
};
|
|
870
870
|
|
|
871
|
+
const defaultIconAliases = {
|
|
872
|
+
checkboxOn: {
|
|
873
|
+
type: "svg",
|
|
874
|
+
viewBox: "0 0 1 1",
|
|
875
|
+
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"
|
|
876
|
+
},
|
|
877
|
+
checkboxIndeterminate: {
|
|
878
|
+
type: "svg",
|
|
879
|
+
viewBox: "0 0 1 1",
|
|
880
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
881
|
+
},
|
|
882
|
+
chevronLeft: {
|
|
883
|
+
type: "svg",
|
|
884
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
885
|
+
},
|
|
886
|
+
chevronRight: {
|
|
887
|
+
type: "svg",
|
|
888
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
889
|
+
},
|
|
890
|
+
chevronDown: {
|
|
891
|
+
type: "svg",
|
|
892
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
893
|
+
},
|
|
894
|
+
chevronUp: {
|
|
895
|
+
type: "svg",
|
|
896
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
897
|
+
},
|
|
898
|
+
menuDown: {
|
|
899
|
+
type: "svg",
|
|
900
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
901
|
+
},
|
|
902
|
+
menuUp: {
|
|
903
|
+
type: "svg",
|
|
904
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
905
|
+
},
|
|
906
|
+
check: {
|
|
907
|
+
type: "svg",
|
|
908
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
909
|
+
},
|
|
910
|
+
alertCircle: {
|
|
911
|
+
type: "svg",
|
|
912
|
+
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"
|
|
913
|
+
},
|
|
914
|
+
alert: {
|
|
915
|
+
type: "svg",
|
|
916
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
917
|
+
},
|
|
918
|
+
information: {
|
|
919
|
+
type: "svg",
|
|
920
|
+
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"
|
|
921
|
+
},
|
|
922
|
+
close: {
|
|
923
|
+
type: "svg",
|
|
924
|
+
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"
|
|
925
|
+
},
|
|
926
|
+
closeCircle: {
|
|
927
|
+
type: "svg",
|
|
928
|
+
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"
|
|
929
|
+
},
|
|
930
|
+
eye: {
|
|
931
|
+
type: "svg",
|
|
932
|
+
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"
|
|
933
|
+
},
|
|
934
|
+
eyeOff: {
|
|
935
|
+
type: "svg",
|
|
936
|
+
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"
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
function getIconAliases() {
|
|
940
|
+
return defaultIconAliases;
|
|
941
|
+
}
|
|
942
|
+
function resolveAlias(name) {
|
|
943
|
+
return getIconAliases()[name];
|
|
944
|
+
}
|
|
945
|
+
|
|
871
946
|
var _sfc_main$3 = vue.defineComponent({
|
|
872
947
|
name: "BIcon",
|
|
873
948
|
props: {
|
|
@@ -876,8 +951,11 @@
|
|
|
876
951
|
pack: String,
|
|
877
952
|
icon: {
|
|
878
953
|
type: String,
|
|
879
|
-
required:
|
|
954
|
+
required: false,
|
|
955
|
+
default: void 0
|
|
880
956
|
},
|
|
957
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
958
|
+
alias: String,
|
|
881
959
|
size: String,
|
|
882
960
|
customSize: String,
|
|
883
961
|
customClass: String,
|
|
@@ -885,6 +963,26 @@
|
|
|
885
963
|
// This is used internally to show both MDI and FA icon
|
|
886
964
|
},
|
|
887
965
|
computed: {
|
|
966
|
+
resolvedAlias() {
|
|
967
|
+
var _a;
|
|
968
|
+
if (!this.alias) return null;
|
|
969
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
970
|
+
},
|
|
971
|
+
isSvgAlias() {
|
|
972
|
+
var _a;
|
|
973
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
974
|
+
},
|
|
975
|
+
isComponentAlias() {
|
|
976
|
+
var _a;
|
|
977
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
978
|
+
},
|
|
979
|
+
// Typed accessors used in the template
|
|
980
|
+
resolvedAliasSvg() {
|
|
981
|
+
return this.resolvedAlias;
|
|
982
|
+
},
|
|
983
|
+
resolvedAliasComponent() {
|
|
984
|
+
return this.resolvedAlias;
|
|
985
|
+
},
|
|
888
986
|
iconConfig() {
|
|
889
987
|
const allIcons = getIcons();
|
|
890
988
|
return allIcons[this.newPack];
|
|
@@ -901,7 +999,8 @@
|
|
|
901
999
|
* internal icons are always MDI.
|
|
902
1000
|
*/
|
|
903
1001
|
newIcon() {
|
|
904
|
-
|
|
1002
|
+
var _a;
|
|
1003
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
905
1004
|
},
|
|
906
1005
|
newPack() {
|
|
907
1006
|
return this.pack || config.defaultIconPack;
|
|
@@ -960,6 +1059,8 @@
|
|
|
960
1059
|
}
|
|
961
1060
|
});
|
|
962
1061
|
|
|
1062
|
+
const _hoisted_1$3 = ["viewBox"];
|
|
1063
|
+
const _hoisted_2$2 = ["d"];
|
|
963
1064
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
964
1065
|
return vue.openBlock(), vue.createElementBlock(
|
|
965
1066
|
"span",
|
|
@@ -967,17 +1068,32 @@
|
|
|
967
1068
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
968
1069
|
},
|
|
969
1070
|
[
|
|
970
|
-
|
|
1071
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
1072
|
+
key: 0,
|
|
1073
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
1074
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1075
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
1076
|
+
"aria-hidden": "true"
|
|
1077
|
+
}, [
|
|
1078
|
+
vue.createElementVNode("path", {
|
|
1079
|
+
fill: "currentColor",
|
|
1080
|
+
d: _ctx.resolvedAliasSvg.path
|
|
1081
|
+
}, null, 8, _hoisted_2$2)
|
|
1082
|
+
], 10, _hoisted_1$3)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
1083
|
+
key: 1,
|
|
1084
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
1085
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
1086
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
971
1087
|
"i",
|
|
972
1088
|
{
|
|
973
|
-
key:
|
|
1089
|
+
key: 2,
|
|
974
1090
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
975
1091
|
},
|
|
976
1092
|
null,
|
|
977
1093
|
2
|
|
978
1094
|
/* CLASS */
|
|
979
1095
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
980
|
-
key:
|
|
1096
|
+
key: 3,
|
|
981
1097
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
982
1098
|
size: _ctx.newCustomSize,
|
|
983
1099
|
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).Clockpicker={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,r=!0,a=!0,c=!0,u=!0,d=!0,h=!0,m=!0;var p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>c}},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&&p)for(var n of p(e))t.indexOf(n)<0&&f.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const S={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return S.Android()||S.BlackBerry()||S.iOS()||S.Opera()||S.Windows()}};var v=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const b=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>u},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>m}},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)}}}),k=(e,t=!1)=>e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null;let C;const w={beforeMount:(e,{value:t=!0})=>{if(t){let t=k(e),i=k(e,!0);t&&t.length>0&&(C=n=>{t=k(e),i=k(e,!0);const s=t[0],o=t[t.length-1];n.target===s&&n.shiftKey&&"Tab"===n.key?(n.preventDefault(),o.focus()):(n.target===o||Array.from(i).indexOf(n.target)>=0)&&!n.shiftKey&&"Tab"===n.key&&(n.preventDefault(),s.focus())},e.addEventListener("keydown",C))}},unmounted:e=>{e.removeEventListener("keydown",C)}},M=["escape","outside"],V=Symbol("bdropdown");var x=t.defineComponent({name:"BDropdown",directives:{trapFocus:w},provide(){return{[V]:this}},props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:e=>["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1},triggers:{type:Array,default:()=>["click"]},mobileModal:{type:Boolean,default:()=>d},ariaRole:{type:String,validator:e=>["menu","list","dialog"].indexOf(e)>-1,default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:()=>h},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},emits:{"active-change":e=>!0,change:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:void 0,timeOutID2:void 0}},computed:{rootClasses(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal(){return this.mobileModal&&!this.inline},cancelOptions(){return"boolean"==typeof this.canClose?this.canClose?M:[]:this.canClose},contentStyle(){var e,t;return{maxHeight:this.scrollable&&null!=(t=this.maxHeight,e=void 0===t?null:isNaN(+t)?`${t}`:t+"px")?e:void 0,overflow:this.scrollable?"auto":void 0}},hoverable(){return this.triggers.indexOf("hover")>=0}},watch:{modelValue(e){this.selected=e},isActive(e){this.$emit("active-change",e),e||(this.timeOutID=setTimeout((()=>{this.isActive||(this.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((()=>{this.updateAppendToBody()}))},isHoverable(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem(e){if(this.multiple){if(this.selected){const t=this.selected;-1===t.indexOf(e)?this.selected=[...t,e]:this.selected=t.filter((t=>t!==e))}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("update:modelValue",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(null!=this.$refs.dropdownMenu){const t=this.$refs.dropdownMenu.querySelectorAll("*");for(const i of t)if(e===i)return!0}if(null!=this.$refs.trigger){const t=this.$refs.trigger.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1},clickedOutside(e){if(this.cancelOptions.indexOf("outside")<0)return;if(this.inline)return;const t=null!=(i=this).$root&&"shadowRoot"in i.$root.$options?e.composedPath()[0]:e.target;var i;this.isInWhiteList(t)||(this.isActive=!1)},keyPress({key:e}){if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart(){this.maybeTap=!0},onTouchMove(){this.maybeTap=!1},onTouchEnd(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus(){this.triggers.indexOf("focus")<0||this.toggle()},toggle(){this.disabled||(this.isActive?this.isActive=!this.isActive:this.timeOutID2=setTimeout((()=>{const e=!this.isActive;this.isActive=e})))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$refs.dropdownMenu,i=this.$refs.trigger;if(t&&i){const n=this.$data._bodyEl.children[0];if(n.classList.forEach((e=>n.classList.remove(e))),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((e=>{if(e&&"object"==typeof e)for(const t in e)e[t]&&n.classList.add(t)})),this.appendToBodyCopyParent){const e=this.$refs.dropdown.parentNode,t=this.$data._bodyEl;t.classList.forEach((e=>t.classList.remove(e))),e.classList.forEach((e=>{t.classList.add(e)}))}const s=i.getBoundingClientRect();let o=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?o+=i.clientHeight:o-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:`${o}px`,left:`${l}px`,zIndex:"99",width:this.expanded?`${e.offsetWidth}px`:void 0}}}},mounted(){this.appendToBody&&(this.$data._bodyEl=function(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeUnmount(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped-touch")),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}});const T=["tabindex"],B=["aria-hidden"],H=["aria-hidden"],F=["role","aria-modal"];var P=v(x,[["render",function(e,i,n,s,o,l){const r=t.resolveDirective("trap-focus");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown dropdown-menu-animation",e.rootClasses]),ref:"dropdown",onMouseleave:i[7]||(i[7]=t=>e.isHoverable=!1)},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",{key:0,tabindex:e.disabled?void 0:e.triggerTabindex,ref:"trigger",class:"dropdown-trigger",onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=t.withModifiers(((...t)=>e.onContextMenu&&e.onContextMenu(...t)),["prevent"])),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onTouchstart:i[4]||(i[4]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:i[6]||(i[6]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),"aria-haspopup":"true"},[t.renderSlot(e.$slots,"trigger",{active:e.isActive})],40,T)),t.createVNode(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isMobileModal?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"background","aria-hidden":!e.isActive},null,8,B)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:1},8,["name"]),t.createVNode(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"dropdownMenu",class:"dropdown-menu",style:t.normalizeStyle(e.style),"aria-hidden":!e.isActive},[t.createElementVNode("div",{class:"dropdown-content",role:e.ariaRole,"aria-modal":!e.inline,style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],12,F)],12,H)),[[t.vShow,!e.disabled&&(e.isActive||e.isHoverable)||e.inline],[r,e.trapFocus]])])),_:3},8,["name"])],34)}]]);const D={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},I=()=>{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 N=v(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:D,fa:I(),fas:I(),far:I(),fad:I(),fab:I(),fal:I(),"fa-solid":I(),"fa-regular":I(),"fa-light":I(),"fa-thin":I(),"fa-duotone":I(),"fa-brands":I()}[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)}]]),$=t.defineComponent({name:"BInput",components:{BIcon:N},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:()=>a},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 E=["type","autocomplete","maxlength"],A=["maxlength"],z=["type","autocomplete","maxlength"],O=["maxlength"];var R=v($,[["render",function(e,i,n,s,o,l){const r=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,E)),[[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,A)),[[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,z)),[[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,O)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(r,{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(r,{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 L="AM",U="PM",_="24",j="12",q=(e,t)=>{if(e){let i=null;if(t.computedValue&&!isNaN(t.computedValue.valueOf())?i=new Date(t.computedValue):(i=t.timeCreator(),i.setMilliseconds(0)),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){const n=function(e,t){const i=t.match(e),n=e.toString().match(/<(.+?)>/g);if(null==n)throw new RangeError("pattern must contain at least one group");return n.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,n)=>(i&&i.length>n?e[t]=i[n+1]:e[t]=null,e)),{})}(t.dtf.formatToParts(i).map((e=>"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?`((?!=<${e.type}>)(${t.amString}|${t.pmString}|${L}|${U}|${L.toLowerCase()}|${U.toLowerCase()})?)`:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(n.hour=n.hour?parseInt(n.hour+"",10):null,n.minute=n.minute?parseInt(n.minute+"",10):null,n.second=n.second?parseInt(n.second+"",10):null,n.hour&&n.hour>=0&&n.hour<24&&n.minute&&n.minute>=0&&n.minute<59){const e=n.dayPeriod;return e&&(e.toLowerCase()===t.pmString.toLowerCase()||e.toLowerCase()===U.toLowerCase())&&n.hour<12&&(n.hour+=12),i.setHours(n.hour),i.setMinutes(n.minute),i.setSeconds(n.second||0),i}}let n=!1;if(t.hourFormat===j){const i=e.split(" ");e=i[0],n=i[1]===t.amString||i[1]===L}const s=e.split(":");let o=parseInt(s[0],10);const l=parseInt(s[1],10),r=t.enableSeconds?parseInt(s[2],10):0;return isNaN(o)||o<0||o>23||t.hourFormat===j&&(o<1||o>12)||isNaN(l)||l<0||l>59?null:(i.setSeconds(r),i.setMinutes(l),t.hourFormat===j&&(n&&12===o?o=0:n||12===o||(o+=12)),i.setHours(o),new Date(i.getTime()))}return null};var W=t.defineComponent({mixins:[y,b],props:{modelValue:[Date,null],inline:Boolean,minTime:[Date,null],maxTime:[Date,null],placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:e=>e===_||e===j},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:(e,t)=>((e,t)=>t.dtf.format(e))(e,t)},timeParser:{type:Function,default:(e,t)=>q(e,t)},mobileNative:{type:Boolean,default:()=>l},mobileModal:{type:Boolean,default:()=>r},timeCreator:{type:Function,default:()=>new Date},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0},data(){return{dateSelected:this.modelValue,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:L,PM:U,HOUR_FORMAT_24:_,HOUR_FORMAT_12:j}},computed:{computedValue:{get(){return this.dateSelected},set(e){this.dateSelected=e,this.$emit("update:modelValue",this.dateSelected)}},localeOptions(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat(){return this.hourFormat||(this.localeOptions.hour12?j:_)},sampleTime(){const e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"hour"===t[i-1].type));if(i)return i.value}return":"},minuteLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"minute"===t[i-1].type));if(i)return i.value}return":"},secondLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"second"===t[i-1].type));if(i)return i.value}},amString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(10);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return L},pmString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(20);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return U},hours(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");const e=[],t=this.isHourFormat24?24:12;for(let i=0;i<t;i+=this.incrementHours){let t=i,n=t;this.isHourFormat24||(t=i+1,n=t,this.meridienSelected===this.amString?12===t&&(t=0):this.meridienSelected===this.pmString&&12!==t&&(t+=12)),e.push({label:this.formatNumber(n),value:t})}return e},minutes(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens(){return[this.amString,this.pmString]},isMobile(){return this.mobileNative&&S.any()},isHourFormat24(){return this.newHourFormat===_},disabledOrUndefined(){return this.disabled||void 0}},watch:{hourFormat(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale(){this.modelValue||(this.meridienSelected=this.amString)},modelValue:{handler(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(`${e}`,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(`${e}`,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(`${e}`,10),this.meridienSelected)},updateDateSelected(e,t,i,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){let n=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?n=new Date(this.computedValue):(n=this.timeCreator(),n.setMilliseconds(0)),n.setHours(e),n.setMinutes(t),n.setSeconds(i),isNaN(n.getTime())||(this.computedValue=new Date(n.getTime()))}},updateInternalState(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled(e){let t=!1;if(this.minTime){const i=this.minTime.getHours(),n=this.minutes.every((t=>this.isMinuteDisabledForHour(e,t.value)));t=e<i||n}if(this.maxTime&&!t){const i=this.maxTime.getHours();t=e>i}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===e&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===this.secondsSelected:null!==this.minutesSelected&&(t.getHours()===e&&t.getMinutes()===this.minutesSelected))).length>0||this.minutes.every((t=>this.unselectableTimes.filter((i=>i.getHours()===e&&i.getMinutes()===t.value)).length>0))}return t},isMinuteDisabledForHour(e,t){let i=!1;if(this.minTime){const n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){const n=this.maxTime.getHours(),s=this.maxTime.getMinutes();i=e===n&&t>s}return i},isMinuteDisabled(e){let t=!1;if(null!==this.hoursSelected&&(t=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&!t)){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===this.hoursSelected&&t.getMinutes()===e&&t.getSeconds()===this.secondsSelected:t.getHours()===this.hoursSelected&&t.getMinutes()===e)).length>0}return t},isSecondDisabled(e){let t=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))t=!0;else{if(this.minTime){const i=this.minTime.getHours(),n=this.minTime.getMinutes(),s=this.minTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e<s}if(this.maxTime&&!t){const i=this.maxTime.getHours(),n=this.maxTime.getMinutes(),s=this.maxTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e>s}}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>t.getHours()===this.hoursSelected&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===e)).length>0}}return t},onChange(e){const t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t.valueOf())?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close(){this.toggle(!1)},handleOnFocus(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getHours(),i=t.getMinutes(),n=t.getSeconds();return this.formatNumber(e,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(n,!0)}return""},onChangeNativePicker(e){const t=e.target.value;if(t){let e=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?e=new Date(this.computedValue):(e=new Date,e.setMilliseconds(0));const i=t.split(":");e.setHours(parseInt(i[0],10)),e.setMinutes(parseInt(i[1],10)),e.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(e.getTime())}else this.computedValue=null},formatNumber(e,t){return this.isHourFormat24||t?this.pad(e):`${e}`},pad:e=>(e<10?"0":"")+e,formatValue(e){return e&&!isNaN(e.valueOf())?this.timeFormatter(e,this):null},keyPress({key:e}){this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange(e){e||this.onBlur()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeUnmounted(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}});var K=t.defineComponent({name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},emits:{change:e=>!0,input:e=>!0},data(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count(){return this.max-this.min+1},countPerRing(){return this.double?this.count/2:this.count},radius(){return this.pickerSize/2},outerRadius(){return this.radius-5-20},innerRadius(){return Math.max(.6*this.outerRadius,this.outerRadius-5-40)},degreesPerUnit(){return 360/this.countPerRing},degrees(){return this.degreesPerUnit*Math.PI/180},handRotateAngle(){let e=this.prevAngle;for(;e<0;)e+=360;const t=this.calcHandAngle(this.displayedValue),i=this.shortestDistanceDegrees(e,t);return this.prevAngle+i},handScale(){return this.calcHandScale(this.displayedValue)},handStyle(){return{transform:`rotate(${this.handRotateAngle}deg) scaleY(${this.handScale})`,transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue(){return null==this.inputValue?this.min:this.inputValue}},watch:{value(e){e!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=e}},methods:{isDisabled(e){return this.disabledValues&&this.disabledValues(e)},euclidean(e,t){const i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},shortestDistanceDegrees(e,t){const i=(t-e)%360,n=180-Math.abs(Math.abs(i)-180);return(i+360)%360<180?1*n:-1*n},coordToAngle(e,t){const i=2*Math.atan2(t.y-e.y-this.euclidean(e,t),t.x-e.x);return Math.abs(180*i/Math.PI)},getNumberTranslate(e){const{x:t,y:i}=this.getNumberCoords(e);return`translate(${t}px, ${i}px)`},getNumberCoords(e){const t=this.isInnerRing(e)?this.innerRadius:this.outerRadius;return{x:Math.round(t*Math.sin((e-this.min)*this.degrees)),y:Math.round(-t*Math.cos((e-this.min)*this.degrees))}},getFaceNumberClasses(e){return{active:e.value===this.displayedValue,disabled:this.isDisabled(e.value)}},isInnerRing(e){return this.double&&e-this.min>=this.countPerRing},calcHandAngle(e){let t=this.degreesPerUnit*(e-this.min);return this.isInnerRing(e)&&(t-=360),t},calcHandScale(e){return this.isInnerRing(e)?this.innerRadius/this.outerRadius:1},onMouseDown(e){e.preventDefault(),this.isDragging=!0,this.onDragMove(e)},onMouseUp(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove(e){if(e.preventDefault(),!this.isDragging&&"click"!==e.type)return;const{width:t,top:i,left:n}=this.$refs.clock.getBoundingClientRect(),{clientX:s,clientY:o}="touches"in e?e.touches[0]:e,l={x:t/2,y:-t/2},r={x:s-n,y:i-o},a=Math.round(this.coordToAngle(l,r)+360)%360,c=this.double&&this.euclidean(l,r)<(this.outerRadius+this.innerRadius)/2-16;let u=Math.round(a/this.degreesPerUnit)+this.min+(c?this.countPerRing:0);a>=360-this.degreesPerUnit/2&&(u=c?this.max:this.min),this.update(u)},update(e){this.inputValue===e||this.isDisabled(e)||(this.prevAngle=this.handRotateAngle,this.inputValue=e,this.$emit("input",e))}}});const Y={class:"b-clockpicker-face-outer-ring",ref:"clock"};var X=v(K,[["render",function(e,i,n,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:"b-clockpicker-face",onMousedown:i[0]||(i[0]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onMousemove:i[2]||(i[2]=(...t)=>e.onDragMove&&e.onDragMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onTouchend:i[4]||(i[4]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onDragMove&&e.onDragMove(...t))},[t.createElementVNode("div",Y,[t.createElementVNode("div",{class:"b-clockpicker-face-hand",style:t.normalizeStyle(e.handStyle)},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.faceNumbers,((i,n)=>(t.openBlock(),t.createElementBlock("span",{key:n,class:t.normalizeClass(["b-clockpicker-face-number",e.getFaceNumberClasses(i)]),style:t.normalizeStyle({transform:e.getNumberTranslate(i.value)})},[t.createElementVNode("span",null,t.toDisplayString(i.label),1)],6)))),128))],512)],32)}]]);var G=t.defineComponent({name:"BClockpicker",components:{BClockpickerFace:X,BInput:R,BDropdown:P},mixins:[W],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:()=>"Hours"},minutesLabel:{type:String,default:()=>"Min"}},data:()=>({isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}),computed:{hoursDisplay(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);let e=this.hoursSelected;return this.meridienSelected===this.pmString&&(e-=12),0===e&&(e=12),e},minutesDisplay(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString?23:11:59},faceSize(){return this.pickerSize-24},faceDisabledValues(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput(e){this.isSelectingHour?(this.hoursSelected=e,this.onHoursChange(e)):(this.minutesSelected=e,this.onMinutesChange(e))},onClockChange(){this.isSelectingHour?this.isSelectingHour=!this.isSelectingHour:this.toggle(!1)},toggle(e){if(this.$refs.dropdown){const t=this.$refs.dropdown;t.isActive=null!=e?e:!t.isActive,t.isActive&&(this.isSelectingHour=!0)}},onMeridienClick(e){this.meridienSelected!==e&&(this.meridienSelected=e,this.onMeridienChange(e))},onInputClick(e){this.$refs.dropdown.isActive&&e.stopPropagation()}}});const J=["disabled"],Q={key:0,class:"card-header"},Z={class:"b-clockpicker-header card-header-title"},ee={class:"b-clockpicker-time"},te={key:0,class:"b-clockpicker-period"},ie={class:"card-content"},ne={key:0,class:"b-clockpicker-time"},se={key:1,class:"b-clockpicker-period"},oe={key:1,class:"b-clockpicker-footer card-footer"};var le=v(G,[["render",function(e,i,n,s,o,l){const r=t.resolveComponent("b-input"),a=t.resolveComponent("b-clockpicker-face"),c=t.resolveComponent("b-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-clockpicker control",[e.size,e.type,{"is-expanded":e.expanded}]]},e.rootAttrs),[!e.isMobile||e.inline?(t.openBlock(),t.createBlock(c,{key:0,ref:"dropdown",position:e.position,disabled:e.disabledOrUndefined,inline:e.inline,"mobile-modal":e.mobileModal,"append-to-body":e.appendToBody,"append-to-body-copy-parent":"",onActiveChange:e.onActiveChange},t.createSlots({default:t.withCtx((()=>[t.createElementVNode("div",{class:"card",disabled:e.disabledOrUndefined,custom:""},[e.inline?(t.openBlock(),t.createElementBlock("header",Q,[t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[3]||(i[3]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursDisplay),3),t.createElementVNode("span",null,t.toDisplayString(e.hourLiteral),1),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[4]||(i[4]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesDisplay),3)]),e.isHourFormat24?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[5]||(i[5]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[6]||(i[6]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)]))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ie,[t.createElementVNode("div",{class:"b-clockpicker-body",style:t.normalizeStyle({width:e.faceSize+"px",height:e.faceSize+"px"})},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",ne,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[7]||(i[7]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursLabel),3),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[8]||(i[8]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesLabel),3)])),e.isHourFormat24||e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[9]||(i[9]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[10]||(i[10]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)])),t.createVNode(a,{ref:"clockpickerFace","picker-size":e.faceSize,min:e.minFaceValue,max:e.maxFaceValue,"face-numbers":e.isSelectingHour?e.hours:e.minutes,"disabled-values":e.faceDisabledValues,double:e.isSelectingHour&&e.isHourFormat24,value:e.isSelectingHour?e.hoursSelected??void 0:e.minutesSelected??void 0,onInput:e.onClockInput,onChange:e.onClockChange},null,8,["picker-size","min","max","face-numbers","disabled-values","double","value","onInput","onChange"])],4)]),void 0!==e.$slots.default&&e.$slots.default([]).length?(t.openBlock(),t.createElementBlock("footer",oe,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)],8,J)])),_:2},[e.inline?void 0:{name:"trigger",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"trigger",{},(()=>[t.createVNode(r,t.mergeProps({ref:"input",autocomplete:"off","model-value":e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabledOrUndefined,readonly:!e.editable,rounded:e.rounded},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onClick:e.onInputClick,onKeyup:i[0]||(i[0]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:i[1]||(i[1]=t=>e.onChange(t.target.value)),onFocus:e.handleOnFocus,onBlur:i[2]||(i[2]=t=>e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","disabled","readonly","rounded","use-html5-validation","onClick","onFocus"])]))])),key:"0"}]),1032,["position","disabled","inline","mobile-modal","append-to-body","onActiveChange"])):(t.openBlock(),t.createBlock(r,t.mergeProps({key:1,ref:"input",type:"time",autocomplete:"off","model-value":e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabledOrUndefined,readonly:!1},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onClick:i[11]||(i[11]=t.withModifiers((t=>e.toggle(!0)),["stop"])),onKeyup:i[12]||(i[12]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:e.onChangeNativePicker,onFocus:e.handleOnFocus,onBlur:i[13]||(i[13]=t=>e.onBlur()&&e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","max","min","disabled","use-html5-validation","onChange","onFocus"]))],16)}]]);const re={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,le)}};e.BClockpicker=le,e.default=re,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).Clockpicker={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,a=!0,r=!0,c=!0,u=!0,d=!0,h=!0,m=!0;var p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,v=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>c}},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&&p)for(var n of p(e))t.indexOf(n)<0&&f.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const y={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return y.Android()||y.BlackBerry()||y.iOS()||y.Opera()||y.Windows()}};var S=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const b=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>u},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>m}},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)}}}),k=(e,t=!1)=>e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null;let C;const w={beforeMount:(e,{value:t=!0})=>{if(t){let t=k(e),i=k(e,!0);t&&t.length>0&&(C=n=>{t=k(e),i=k(e,!0);const s=t[0],o=t[t.length-1];n.target===s&&n.shiftKey&&"Tab"===n.key?(n.preventDefault(),o.focus()):(n.target===o||Array.from(i).indexOf(n.target)>=0)&&!n.shiftKey&&"Tab"===n.key&&(n.preventDefault(),s.focus())},e.addEventListener("keydown",C))}},unmounted:e=>{e.removeEventListener("keydown",C)}},M=["escape","outside"],V=Symbol("bdropdown");var x=t.defineComponent({name:"BDropdown",directives:{trapFocus:w},provide(){return{[V]:this}},props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:e=>["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1},triggers:{type:Array,default:()=>["click"]},mobileModal:{type:Boolean,default:()=>d},ariaRole:{type:String,validator:e=>["menu","list","dialog"].indexOf(e)>-1,default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:()=>h},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},emits:{"active-change":e=>!0,change:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:void 0,timeOutID2:void 0}},computed:{rootClasses(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal(){return this.mobileModal&&!this.inline},cancelOptions(){return"boolean"==typeof this.canClose?this.canClose?M:[]:this.canClose},contentStyle(){var e,t;return{maxHeight:this.scrollable&&null!=(t=this.maxHeight,e=void 0===t?null:isNaN(+t)?`${t}`:t+"px")?e:void 0,overflow:this.scrollable?"auto":void 0}},hoverable(){return this.triggers.indexOf("hover")>=0}},watch:{modelValue(e){this.selected=e},isActive(e){this.$emit("active-change",e),e||(this.timeOutID=setTimeout((()=>{this.isActive||(this.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((()=>{this.updateAppendToBody()}))},isHoverable(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem(e){if(this.multiple){if(this.selected){const t=this.selected;-1===t.indexOf(e)?this.selected=[...t,e]:this.selected=t.filter((t=>t!==e))}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("update:modelValue",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(null!=this.$refs.dropdownMenu){const t=this.$refs.dropdownMenu.querySelectorAll("*");for(const i of t)if(e===i)return!0}if(null!=this.$refs.trigger){const t=this.$refs.trigger.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1},clickedOutside(e){if(this.cancelOptions.indexOf("outside")<0)return;if(this.inline)return;const t=null!=(i=this).$root&&"shadowRoot"in i.$root.$options?e.composedPath()[0]:e.target;var i;this.isInWhiteList(t)||(this.isActive=!1)},keyPress({key:e}){if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart(){this.maybeTap=!0},onTouchMove(){this.maybeTap=!1},onTouchEnd(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus(){this.triggers.indexOf("focus")<0||this.toggle()},toggle(){this.disabled||(this.isActive?this.isActive=!this.isActive:this.timeOutID2=setTimeout((()=>{const e=!this.isActive;this.isActive=e})))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$refs.dropdownMenu,i=this.$refs.trigger;if(t&&i){const n=this.$data._bodyEl.children[0];if(n.classList.forEach((e=>n.classList.remove(e))),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((e=>{if(e&&"object"==typeof e)for(const t in e)e[t]&&n.classList.add(t)})),this.appendToBodyCopyParent){const e=this.$refs.dropdown.parentNode,t=this.$data._bodyEl;t.classList.forEach((e=>t.classList.remove(e))),e.classList.forEach((e=>{t.classList.add(e)}))}const s=i.getBoundingClientRect();let o=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?o+=i.clientHeight:o-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:`${o}px`,left:`${l}px`,zIndex:"99",width:this.expanded?`${e.offsetWidth}px`:void 0}}}},mounted(){this.appendToBody&&(this.$data._bodyEl=function(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeUnmount(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped-touch")),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}});const B=["tabindex"],T=["aria-hidden"],H=["aria-hidden"],A=["role","aria-modal"];var L=S(x,[["render",function(e,i,n,s,o,l){const a=t.resolveDirective("trap-focus");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown dropdown-menu-animation",e.rootClasses]),ref:"dropdown",onMouseleave:i[7]||(i[7]=t=>e.isHoverable=!1)},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",{key:0,tabindex:e.disabled?void 0:e.triggerTabindex,ref:"trigger",class:"dropdown-trigger",onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=t.withModifiers(((...t)=>e.onContextMenu&&e.onContextMenu(...t)),["prevent"])),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onTouchstart:i[4]||(i[4]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:i[6]||(i[6]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),"aria-haspopup":"true"},[t.renderSlot(e.$slots,"trigger",{active:e.isActive})],40,B)),t.createVNode(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isMobileModal?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"background","aria-hidden":!e.isActive},null,8,T)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:1},8,["name"]),t.createVNode(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"dropdownMenu",class:"dropdown-menu",style:t.normalizeStyle(e.style),"aria-hidden":!e.isActive},[t.createElementVNode("div",{class:"dropdown-content",role:e.ariaRole,"aria-modal":!e.inline,style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],12,A)],12,H)),[[t.vShow,!e.disabled&&(e.isActive||e.isHoverable)||e.inline],[a,e.trapFocus]])])),_:3},8,["name"])],34)}]]);const D={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},F=()=>{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"}}},P={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 I(e){return P[e]}var N=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=I(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:D,fa:F(),fas:F(),far:F(),fad:F(),fab:F(),fal:F(),"fa-solid":F(),"fa-regular":F(),"fa-light":F(),"fa-thin":F(),"fa-duotone":F(),"fa-brands":F()}[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 E=["viewBox"],$=["d"];var z=S(N,[["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,$)],10,E)):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)}]]),O=t.defineComponent({name:"BInput",components:{BIcon:z},mixins:[v,b],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>r},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 R=["type","autocomplete","maxlength"],U=["maxlength"],_=["type","autocomplete","maxlength"],Z=["maxlength"];var j=S(O,[["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,R)),[[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,U)),[[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,_)),[[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,Z)),[[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 q="AM",W="PM",K="24",Y="12",X=(e,t)=>{if(e){let i=null;if(t.computedValue&&!isNaN(t.computedValue.valueOf())?i=new Date(t.computedValue):(i=t.timeCreator(),i.setMilliseconds(0)),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){const n=function(e,t){const i=t.match(e),n=e.toString().match(/<(.+?)>/g);if(null==n)throw new RangeError("pattern must contain at least one group");return n.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,n)=>(i&&i.length>n?e[t]=i[n+1]:e[t]=null,e)),{})}(t.dtf.formatToParts(i).map((e=>"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?`((?!=<${e.type}>)(${t.amString}|${t.pmString}|${q}|${W}|${q.toLowerCase()}|${W.toLowerCase()})?)`:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(n.hour=n.hour?parseInt(n.hour+"",10):null,n.minute=n.minute?parseInt(n.minute+"",10):null,n.second=n.second?parseInt(n.second+"",10):null,n.hour&&n.hour>=0&&n.hour<24&&n.minute&&n.minute>=0&&n.minute<59){const e=n.dayPeriod;return e&&(e.toLowerCase()===t.pmString.toLowerCase()||e.toLowerCase()===W.toLowerCase())&&n.hour<12&&(n.hour+=12),i.setHours(n.hour),i.setMinutes(n.minute),i.setSeconds(n.second||0),i}}let n=!1;if(t.hourFormat===Y){const i=e.split(" ");e=i[0],n=i[1]===t.amString||i[1]===q}const s=e.split(":");let o=parseInt(s[0],10);const l=parseInt(s[1],10),a=t.enableSeconds?parseInt(s[2],10):0;return isNaN(o)||o<0||o>23||t.hourFormat===Y&&(o<1||o>12)||isNaN(l)||l<0||l>59?null:(i.setSeconds(a),i.setMinutes(l),t.hourFormat===Y&&(n&&12===o?o=0:n||12===o||(o+=12)),i.setHours(o),new Date(i.getTime()))}return null};var G=t.defineComponent({mixins:[v,b],props:{modelValue:[Date,null],inline:Boolean,minTime:[Date,null],maxTime:[Date,null],placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:e=>e===K||e===Y},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:(e,t)=>((e,t)=>t.dtf.format(e))(e,t)},timeParser:{type:Function,default:(e,t)=>X(e,t)},mobileNative:{type:Boolean,default:()=>l},mobileModal:{type:Boolean,default:()=>a},timeCreator:{type:Function,default:()=>new Date},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0},data(){return{dateSelected:this.modelValue,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:q,PM:W,HOUR_FORMAT_24:K,HOUR_FORMAT_12:Y}},computed:{computedValue:{get(){return this.dateSelected},set(e){this.dateSelected=e,this.$emit("update:modelValue",this.dateSelected)}},localeOptions(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat(){return this.hourFormat||(this.localeOptions.hour12?Y:K)},sampleTime(){const e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"hour"===t[i-1].type));if(i)return i.value}return":"},minuteLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"minute"===t[i-1].type));if(i)return i.value}return":"},secondLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"second"===t[i-1].type));if(i)return i.value}},amString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(10);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return q},pmString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(20);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return W},hours(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");const e=[],t=this.isHourFormat24?24:12;for(let i=0;i<t;i+=this.incrementHours){let t=i,n=t;this.isHourFormat24||(t=i+1,n=t,this.meridienSelected===this.amString?12===t&&(t=0):this.meridienSelected===this.pmString&&12!==t&&(t+=12)),e.push({label:this.formatNumber(n),value:t})}return e},minutes(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens(){return[this.amString,this.pmString]},isMobile(){return this.mobileNative&&y.any()},isHourFormat24(){return this.newHourFormat===K},disabledOrUndefined(){return this.disabled||void 0}},watch:{hourFormat(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale(){this.modelValue||(this.meridienSelected=this.amString)},modelValue:{handler(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(`${e}`,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(`${e}`,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(`${e}`,10),this.meridienSelected)},updateDateSelected(e,t,i,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){let n=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?n=new Date(this.computedValue):(n=this.timeCreator(),n.setMilliseconds(0)),n.setHours(e),n.setMinutes(t),n.setSeconds(i),isNaN(n.getTime())||(this.computedValue=new Date(n.getTime()))}},updateInternalState(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled(e){let t=!1;if(this.minTime){const i=this.minTime.getHours(),n=this.minutes.every((t=>this.isMinuteDisabledForHour(e,t.value)));t=e<i||n}if(this.maxTime&&!t){const i=this.maxTime.getHours();t=e>i}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===e&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===this.secondsSelected:null!==this.minutesSelected&&(t.getHours()===e&&t.getMinutes()===this.minutesSelected))).length>0||this.minutes.every((t=>this.unselectableTimes.filter((i=>i.getHours()===e&&i.getMinutes()===t.value)).length>0))}return t},isMinuteDisabledForHour(e,t){let i=!1;if(this.minTime){const n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){const n=this.maxTime.getHours(),s=this.maxTime.getMinutes();i=e===n&&t>s}return i},isMinuteDisabled(e){let t=!1;if(null!==this.hoursSelected&&(t=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&!t)){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===this.hoursSelected&&t.getMinutes()===e&&t.getSeconds()===this.secondsSelected:t.getHours()===this.hoursSelected&&t.getMinutes()===e)).length>0}return t},isSecondDisabled(e){let t=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))t=!0;else{if(this.minTime){const i=this.minTime.getHours(),n=this.minTime.getMinutes(),s=this.minTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e<s}if(this.maxTime&&!t){const i=this.maxTime.getHours(),n=this.maxTime.getMinutes(),s=this.maxTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e>s}}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>t.getHours()===this.hoursSelected&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===e)).length>0}}return t},onChange(e){const t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t.valueOf())?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close(){this.toggle(!1)},handleOnFocus(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getHours(),i=t.getMinutes(),n=t.getSeconds();return this.formatNumber(e,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(n,!0)}return""},onChangeNativePicker(e){const t=e.target.value;if(t){let e=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?e=new Date(this.computedValue):(e=new Date,e.setMilliseconds(0));const i=t.split(":");e.setHours(parseInt(i[0],10)),e.setMinutes(parseInt(i[1],10)),e.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(e.getTime())}else this.computedValue=null},formatNumber(e,t){return this.isHourFormat24||t?this.pad(e):`${e}`},pad:e=>(e<10?"0":"")+e,formatValue(e){return e&&!isNaN(e.valueOf())?this.timeFormatter(e,this):null},keyPress({key:e}){this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange(e){e||this.onBlur()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeUnmounted(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}});var J=t.defineComponent({name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},emits:{change:e=>!0,input:e=>!0},data(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count(){return this.max-this.min+1},countPerRing(){return this.double?this.count/2:this.count},radius(){return this.pickerSize/2},outerRadius(){return this.radius-5-20},innerRadius(){return Math.max(.6*this.outerRadius,this.outerRadius-5-40)},degreesPerUnit(){return 360/this.countPerRing},degrees(){return this.degreesPerUnit*Math.PI/180},handRotateAngle(){let e=this.prevAngle;for(;e<0;)e+=360;const t=this.calcHandAngle(this.displayedValue),i=this.shortestDistanceDegrees(e,t);return this.prevAngle+i},handScale(){return this.calcHandScale(this.displayedValue)},handStyle(){return{transform:`rotate(${this.handRotateAngle}deg) scaleY(${this.handScale})`,transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue(){return null==this.inputValue?this.min:this.inputValue}},watch:{value(e){e!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=e}},methods:{isDisabled(e){return this.disabledValues&&this.disabledValues(e)},euclidean(e,t){const i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},shortestDistanceDegrees(e,t){const i=(t-e)%360,n=180-Math.abs(Math.abs(i)-180);return(i+360)%360<180?1*n:-1*n},coordToAngle(e,t){const i=2*Math.atan2(t.y-e.y-this.euclidean(e,t),t.x-e.x);return Math.abs(180*i/Math.PI)},getNumberTranslate(e){const{x:t,y:i}=this.getNumberCoords(e);return`translate(${t}px, ${i}px)`},getNumberCoords(e){const t=this.isInnerRing(e)?this.innerRadius:this.outerRadius;return{x:Math.round(t*Math.sin((e-this.min)*this.degrees)),y:Math.round(-t*Math.cos((e-this.min)*this.degrees))}},getFaceNumberClasses(e){return{active:e.value===this.displayedValue,disabled:this.isDisabled(e.value)}},isInnerRing(e){return this.double&&e-this.min>=this.countPerRing},calcHandAngle(e){let t=this.degreesPerUnit*(e-this.min);return this.isInnerRing(e)&&(t-=360),t},calcHandScale(e){return this.isInnerRing(e)?this.innerRadius/this.outerRadius:1},onMouseDown(e){e.preventDefault(),this.isDragging=!0,this.onDragMove(e)},onMouseUp(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove(e){if(e.preventDefault(),!this.isDragging&&"click"!==e.type)return;const{width:t,top:i,left:n}=this.$refs.clock.getBoundingClientRect(),{clientX:s,clientY:o}="touches"in e?e.touches[0]:e,l={x:t/2,y:-t/2},a={x:s-n,y:i-o},r=Math.round(this.coordToAngle(l,a)+360)%360,c=this.double&&this.euclidean(l,a)<(this.outerRadius+this.innerRadius)/2-16;let u=Math.round(r/this.degreesPerUnit)+this.min+(c?this.countPerRing:0);r>=360-this.degreesPerUnit/2&&(u=c?this.max:this.min),this.update(u)},update(e){this.inputValue===e||this.isDisabled(e)||(this.prevAngle=this.handRotateAngle,this.inputValue=e,this.$emit("input",e))}}});const Q={class:"b-clockpicker-face-outer-ring",ref:"clock"};var ee=S(J,[["render",function(e,i,n,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:"b-clockpicker-face",onMousedown:i[0]||(i[0]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onMousemove:i[2]||(i[2]=(...t)=>e.onDragMove&&e.onDragMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onTouchend:i[4]||(i[4]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onDragMove&&e.onDragMove(...t))},[t.createElementVNode("div",Q,[t.createElementVNode("div",{class:"b-clockpicker-face-hand",style:t.normalizeStyle(e.handStyle)},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.faceNumbers,((i,n)=>(t.openBlock(),t.createElementBlock("span",{key:n,class:t.normalizeClass(["b-clockpicker-face-number",e.getFaceNumberClasses(i)]),style:t.normalizeStyle({transform:e.getNumberTranslate(i.value)})},[t.createElementVNode("span",null,t.toDisplayString(i.label),1)],6)))),128))],512)],32)}]]);var te=t.defineComponent({name:"BClockpicker",components:{BClockpickerFace:ee,BInput:j,BDropdown:L},mixins:[G],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:()=>"Hours"},minutesLabel:{type:String,default:()=>"Min"}},data:()=>({isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}),computed:{hoursDisplay(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);let e=this.hoursSelected;return this.meridienSelected===this.pmString&&(e-=12),0===e&&(e=12),e},minutesDisplay(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString?23:11:59},faceSize(){return this.pickerSize-24},faceDisabledValues(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput(e){this.isSelectingHour?(this.hoursSelected=e,this.onHoursChange(e)):(this.minutesSelected=e,this.onMinutesChange(e))},onClockChange(){this.isSelectingHour?this.isSelectingHour=!this.isSelectingHour:this.toggle(!1)},toggle(e){if(this.$refs.dropdown){const t=this.$refs.dropdown;t.isActive=null!=e?e:!t.isActive,t.isActive&&(this.isSelectingHour=!0)}},onMeridienClick(e){this.meridienSelected!==e&&(this.meridienSelected=e,this.onMeridienChange(e))},onInputClick(e){this.$refs.dropdown.isActive&&e.stopPropagation()}}});const ie=["disabled"],ne={key:0,class:"card-header"},se={class:"b-clockpicker-header card-header-title"},oe={class:"b-clockpicker-time"},le={key:0,class:"b-clockpicker-period"},ae={class:"card-content"},re={key:0,class:"b-clockpicker-time"},ce={key:1,class:"b-clockpicker-period"},ue={key:1,class:"b-clockpicker-footer card-footer"};var de=S(te,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-input"),r=t.resolveComponent("b-clockpicker-face"),c=t.resolveComponent("b-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-clockpicker control",[e.size,e.type,{"is-expanded":e.expanded}]]},e.rootAttrs),[!e.isMobile||e.inline?(t.openBlock(),t.createBlock(c,{key:0,ref:"dropdown",position:e.position,disabled:e.disabledOrUndefined,inline:e.inline,"mobile-modal":e.mobileModal,"append-to-body":e.appendToBody,"append-to-body-copy-parent":"",onActiveChange:e.onActiveChange},t.createSlots({default:t.withCtx((()=>[t.createElementVNode("div",{class:"card",disabled:e.disabledOrUndefined,custom:""},[e.inline?(t.openBlock(),t.createElementBlock("header",ne,[t.createElementVNode("div",se,[t.createElementVNode("div",oe,[t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[3]||(i[3]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursDisplay),3),t.createElementVNode("span",null,t.toDisplayString(e.hourLiteral),1),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[4]||(i[4]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesDisplay),3)]),e.isHourFormat24?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",le,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[5]||(i[5]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[6]||(i[6]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)]))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ae,[t.createElementVNode("div",{class:"b-clockpicker-body",style:t.normalizeStyle({width:e.faceSize+"px",height:e.faceSize+"px"})},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[7]||(i[7]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursLabel),3),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[8]||(i[8]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesLabel),3)])),e.isHourFormat24||e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",ce,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[9]||(i[9]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[10]||(i[10]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)])),t.createVNode(r,{ref:"clockpickerFace","picker-size":e.faceSize,min:e.minFaceValue,max:e.maxFaceValue,"face-numbers":e.isSelectingHour?e.hours:e.minutes,"disabled-values":e.faceDisabledValues,double:e.isSelectingHour&&e.isHourFormat24,value:e.isSelectingHour?e.hoursSelected??void 0:e.minutesSelected??void 0,onInput:e.onClockInput,onChange:e.onClockChange},null,8,["picker-size","min","max","face-numbers","disabled-values","double","value","onInput","onChange"])],4)]),void 0!==e.$slots.default&&e.$slots.default([]).length?(t.openBlock(),t.createElementBlock("footer",ue,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)],8,ie)])),_:2},[e.inline?void 0:{name:"trigger",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"trigger",{},(()=>[t.createVNode(a,t.mergeProps({ref:"input",autocomplete:"off","model-value":e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabledOrUndefined,readonly:!e.editable,rounded:e.rounded},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onClick:e.onInputClick,onKeyup:i[0]||(i[0]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:i[1]||(i[1]=t=>e.onChange(t.target.value)),onFocus:e.handleOnFocus,onBlur:i[2]||(i[2]=t=>e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","disabled","readonly","rounded","use-html5-validation","onClick","onFocus"])]))])),key:"0"}]),1032,["position","disabled","inline","mobile-modal","append-to-body","onActiveChange"])):(t.openBlock(),t.createBlock(a,t.mergeProps({key:1,ref:"input",type:"time",autocomplete:"off","model-value":e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabledOrUndefined,readonly:!1},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onClick:i[11]||(i[11]=t.withModifiers((t=>e.toggle(!0)),["stop"])),onKeyup:i[12]||(i[12]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:e.onChangeNativePicker,onFocus:e.handleOnFocus,onBlur:i[13]||(i[13]=t=>e.onBlur()&&e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","max","min","disabled","use-html5-validation","onChange","onFocus"]))],16)}]]);const he={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,de)}};e.BClockpicker=de,e.default=he,Object.defineProperty(e,"__esModule",{value:!0})}));
|