buefy 0.7.9 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/dist/buefy.css +13759 -8263
- package/dist/buefy.js +9073 -14866
- package/dist/buefy.min.css +1 -5
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +22 -0
- package/dist/cjs/button.js +106 -0
- package/dist/cjs/checkbox.js +135 -0
- package/dist/cjs/chunk-07fe6fc0.js +247 -0
- package/dist/cjs/chunk-0af453a7.js +105 -0
- package/dist/cjs/chunk-0e89e51b.js +394 -0
- package/dist/cjs/chunk-13e039f5.js +104 -0
- package/dist/cjs/chunk-143d9e6d.js +404 -0
- package/dist/cjs/chunk-19ebd649.js +114 -0
- package/dist/cjs/chunk-1b1231ce.js +94 -0
- package/dist/cjs/chunk-1e6abfcf.js +94 -0
- package/dist/cjs/chunk-28d164b1.js +172 -0
- package/dist/cjs/chunk-3396605d.js +394 -0
- package/dist/cjs/chunk-364a37a0.js +404 -0
- package/dist/cjs/chunk-3b066933.js +103 -0
- package/dist/cjs/chunk-3dffe6e7.js +54 -0
- package/dist/cjs/chunk-4a03b064.js +199 -0
- package/dist/cjs/chunk-50b06939.js +153 -0
- package/dist/cjs/chunk-52623128.js +105 -0
- package/dist/cjs/chunk-53d4f332.js +94 -0
- package/dist/cjs/chunk-544a95da.js +404 -0
- package/dist/cjs/chunk-545f01b1.js +49 -0
- package/dist/cjs/chunk-59b91990.js +64 -0
- package/dist/cjs/chunk-5b2a3329.js +394 -0
- package/dist/cjs/chunk-60061aa8.js +172 -0
- package/dist/cjs/chunk-67658e54.js +404 -0
- package/dist/cjs/chunk-6963026a.js +86 -0
- package/dist/cjs/chunk-6cece6b7.js +140 -0
- package/dist/cjs/chunk-6d6465c1.js +140 -0
- package/dist/cjs/chunk-6e9c0aca.js +94 -0
- package/dist/cjs/chunk-77f69fca.js +106 -0
- package/dist/cjs/chunk-7a25d736.js +114 -0
- package/dist/cjs/chunk-876befa8.js +247 -0
- package/dist/cjs/chunk-8985ffff.js +105 -0
- package/dist/cjs/chunk-8a05c8c9.js +207 -0
- package/dist/cjs/chunk-90407463.js +258 -0
- package/dist/cjs/chunk-956525c9.js +106 -0
- package/dist/cjs/chunk-96ce35a2.js +114 -0
- package/dist/cjs/chunk-9da1d120.js +86 -0
- package/dist/cjs/chunk-9f6a8079.js +54 -0
- package/dist/cjs/chunk-a60dc21d.js +281 -0
- package/dist/cjs/chunk-b628277d.js +199 -0
- package/dist/cjs/chunk-c146745e.js +153 -0
- package/dist/cjs/chunk-c2aec7a9.js +547 -0
- package/dist/cjs/chunk-c9641331.js +86 -0
- package/dist/cjs/chunk-d492406b.js +172 -0
- package/dist/cjs/chunk-e0aa62a0.js +404 -0
- package/dist/cjs/chunk-e45e0329.js +48 -0
- package/dist/cjs/chunk-e5de6583.js +207 -0
- package/dist/cjs/chunk-e85cceb6.js +258 -0
- package/dist/cjs/chunk-ed5addd6.js +547 -0
- package/dist/cjs/chunk-ef4753d5.js +283 -0
- package/dist/cjs/chunk-f0c597f9.js +199 -0
- package/dist/cjs/chunk-f1df1c63.js +9 -0
- package/dist/cjs/chunk-f1ee2f5c.js +207 -0
- package/dist/cjs/chunk-fbd4d545.js +247 -0
- package/dist/cjs/clockpicker.js +447 -0
- package/dist/cjs/collapse.js +102 -0
- package/dist/cjs/datepicker.js +1281 -0
- package/dist/cjs/dialog.js +237 -0
- package/dist/cjs/dropdown.js +19 -0
- package/dist/cjs/field.js +18 -0
- package/dist/cjs/icon.js +17 -0
- package/dist/cjs/index.js +164 -0
- package/dist/cjs/input.js +20 -0
- package/dist/cjs/loading.js +166 -0
- package/dist/cjs/menu.js +231 -0
- package/dist/cjs/message.js +65 -0
- package/dist/cjs/modal.js +48 -0
- package/dist/cjs/navbar.js +258 -0
- package/dist/cjs/notification.js +142 -0
- package/dist/cjs/numberinput.js +191 -0
- package/dist/cjs/pagination.js +19 -0
- package/dist/cjs/progress.js +151 -0
- package/dist/cjs/radio.js +224 -0
- package/dist/cjs/select.js +20 -0
- package/dist/cjs/slider.js +511 -0
- package/dist/cjs/snackbar.js +114 -0
- package/dist/cjs/steps.js +352 -0
- package/dist/cjs/switch.js +144 -0
- package/dist/cjs/table.js +877 -0
- package/dist/cjs/tabs.js +258 -0
- package/dist/cjs/tag.js +63 -0
- package/dist/cjs/taginput.js +297 -0
- package/dist/cjs/timepicker.js +75 -0
- package/dist/cjs/toast.js +89 -0
- package/dist/cjs/tooltip.js +17 -0
- package/dist/cjs/upload.js +210 -0
- package/dist/components/autocomplete/index.js +1084 -2
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/button/index.js +425 -2
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/checkbox/index.js +342 -2
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +2340 -2
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +201 -2
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/datepicker/index.js +2720 -2
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +768 -2
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +555 -2
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +447 -2
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +322 -2
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/input/index.js +675 -2
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +282 -2
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +550 -2
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +482 -2
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +400 -2
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +371 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +705 -2
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +846 -2
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +577 -2
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +250 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +323 -2
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/select/index.js +571 -2
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/slider/index.js +764 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +397 -2
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +721 -2
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +243 -2
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +1870 -2
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +627 -2
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +262 -2
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +1459 -2
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2053 -2
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +372 -2
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +236 -2
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +501 -2
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/button.js +102 -0
- package/dist/esm/checkbox.js +131 -0
- package/dist/esm/chunk-00e3e67f.js +401 -0
- package/dist/esm/chunk-051f8b06.js +105 -0
- package/dist/esm/chunk-0566c90d.js +152 -0
- package/dist/esm/chunk-07e19446.js +545 -0
- package/dist/esm/chunk-085a700d.js +7 -0
- package/dist/esm/chunk-0ad6938a.js +53 -0
- package/dist/esm/chunk-0e3f4fb5.js +52 -0
- package/dist/esm/chunk-10c85529.js +151 -0
- package/dist/esm/chunk-121b1efa.js +197 -0
- package/dist/esm/chunk-19dad95e.js +256 -0
- package/dist/esm/chunk-231b6066.js +113 -0
- package/dist/esm/chunk-24d1a01f.js +279 -0
- package/dist/esm/chunk-297bff6b.js +393 -0
- package/dist/esm/chunk-2b2ae5c6.js +245 -0
- package/dist/esm/chunk-2cb6f867.js +46 -0
- package/dist/esm/chunk-33717194.js +392 -0
- package/dist/esm/chunk-3b811b77.js +139 -0
- package/dist/esm/chunk-3e47308f.js +104 -0
- package/dist/esm/chunk-411d6eea.js +84 -0
- package/dist/esm/chunk-4535dec5.js +92 -0
- package/dist/esm/chunk-47a5f3a1.js +103 -0
- package/dist/esm/chunk-4a5384da.js +205 -0
- package/dist/esm/chunk-4b663574.js +112 -0
- package/dist/esm/chunk-4d393f09.js +170 -0
- package/dist/esm/chunk-4d695899.js +257 -0
- package/dist/esm/chunk-4f508891.js +171 -0
- package/dist/esm/chunk-531b8274.js +281 -0
- package/dist/esm/chunk-591ee4a2.js +151 -0
- package/dist/esm/chunk-5d3bf82e.js +170 -0
- package/dist/esm/chunk-5e0b0665.js +104 -0
- package/dist/esm/chunk-648b9aa4.js +45 -0
- package/dist/esm/chunk-666940cf.js +546 -0
- package/dist/esm/chunk-67c97e13.js +246 -0
- package/dist/esm/chunk-6844653e.js +401 -0
- package/dist/esm/chunk-699b7cb4.js +245 -0
- package/dist/esm/chunk-6f881e7d.js +51 -0
- package/dist/esm/chunk-7123d158.js +256 -0
- package/dist/esm/chunk-7cf87590.js +60 -0
- package/dist/esm/chunk-823177ac.js +545 -0
- package/dist/esm/chunk-8838757a.js +401 -0
- package/dist/esm/chunk-8ca878c0.js +198 -0
- package/dist/esm/chunk-8fc2e874.js +85 -0
- package/dist/esm/chunk-912ed715.js +92 -0
- package/dist/esm/chunk-92acc21f.js +392 -0
- package/dist/esm/chunk-98e86f40.js +197 -0
- package/dist/esm/chunk-99a1f9df.js +92 -0
- package/dist/esm/chunk-9a776697.js +112 -0
- package/dist/esm/chunk-9e3207cc.js +46 -0
- package/dist/esm/chunk-9ec14e09.js +112 -0
- package/dist/esm/chunk-a5ea70d0.js +205 -0
- package/dist/esm/chunk-ac3f4847.js +138 -0
- package/dist/esm/chunk-b5376f3e.js +92 -0
- package/dist/esm/chunk-b56eb2c8.js +197 -0
- package/dist/esm/chunk-b796d1b2.js +392 -0
- package/dist/esm/chunk-b822a5db.js +205 -0
- package/dist/esm/chunk-b9bdb0e4.js +6 -0
- package/dist/esm/chunk-bfe15983.js +401 -0
- package/dist/esm/chunk-c9039f68.js +104 -0
- package/dist/esm/chunk-cc718c15.js +245 -0
- package/dist/esm/chunk-cca88db8.js +99 -0
- package/dist/esm/chunk-d6200087.js +50 -0
- package/dist/esm/chunk-daeac852.js +138 -0
- package/dist/esm/chunk-db31c548.js +103 -0
- package/dist/esm/chunk-e5568f45.js +84 -0
- package/dist/esm/chunk-e5fce48f.js +59 -0
- package/dist/esm/chunk-e84b4047.js +170 -0
- package/dist/esm/chunk-e8d90b72.js +98 -0
- package/dist/esm/chunk-e932bb68.js +206 -0
- package/dist/esm/chunk-edd8ff91.js +103 -0
- package/dist/esm/chunk-f0465d8d.js +84 -0
- package/dist/esm/chunk-f743d154.js +93 -0
- package/dist/esm/chunk-f8036b32.js +402 -0
- package/dist/esm/chunk-f984748f.js +401 -0
- package/dist/esm/chunk-fd5b0e1e.js +99 -0
- package/dist/esm/clockpicker.js +443 -0
- package/dist/esm/collapse.js +98 -0
- package/dist/esm/datepicker.js +1277 -0
- package/dist/esm/dialog.js +231 -0
- package/dist/esm/dropdown.js +14 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/icon.js +13 -0
- package/dist/esm/index.js +154 -0
- package/dist/esm/input.js +16 -0
- package/dist/esm/loading.js +159 -0
- package/dist/esm/menu.js +225 -0
- package/dist/esm/message.js +61 -0
- package/dist/esm/modal.js +42 -0
- package/dist/esm/navbar.js +253 -0
- package/dist/esm/notification.js +135 -0
- package/dist/esm/numberinput.js +187 -0
- package/dist/esm/pagination.js +15 -0
- package/dist/esm/progress.js +147 -0
- package/dist/esm/radio.js +219 -0
- package/dist/esm/select.js +16 -0
- package/dist/esm/slider.js +506 -0
- package/dist/esm/snackbar.js +108 -0
- package/dist/esm/steps.js +347 -0
- package/dist/esm/switch.js +140 -0
- package/dist/esm/table.js +872 -0
- package/dist/esm/tabs.js +253 -0
- package/dist/esm/tag.js +59 -0
- package/dist/esm/taginput.js +293 -0
- package/dist/esm/timepicker.js +71 -0
- package/dist/esm/toast.js +83 -0
- package/dist/esm/tooltip.js +13 -0
- package/dist/esm/upload.js +206 -0
- package/package.json +26 -4
- package/src/components/checkbox/Checkbox.vue +12 -4
- package/src/components/checkbox/CheckboxButton.vue +10 -2
- package/src/components/clockpicker/Clockpicker.vue +0 -5
- package/src/components/datepicker/Datepicker.spec.js +60 -0
- package/src/components/datepicker/Datepicker.vue +46 -19
- package/src/components/datepicker/DatepickerTable.spec.js +107 -2
- package/src/components/datepicker/DatepickerTable.vue +73 -4
- package/src/components/datepicker/DatepickerTableRow.spec.js +127 -17
- package/src/components/datepicker/DatepickerTableRow.vue +103 -4
- package/src/components/dialog/Dialog.vue +5 -3
- package/src/components/dialog/index.js +2 -2
- package/src/components/dropdown/Dropdown.vue +1 -4
- package/src/components/dropdown/DropdownItem.vue +7 -3
- package/src/components/field/Field.spec.js +18 -0
- package/src/components/field/Field.vue +21 -2
- package/src/components/index.js +6 -0
- package/src/components/input/Input.vue +2 -2
- package/src/components/loading/index.js +1 -1
- package/src/components/modal/index.js +1 -1
- package/src/components/navbar/NavBar.spec.js +76 -0
- package/src/components/navbar/Navbar.vue +127 -0
- package/src/components/navbar/NavbarBurger.vue +25 -0
- package/src/components/navbar/NavbarItem.vue +21 -0
- package/src/components/navbar/index.js +20 -0
- package/src/components/notification/index.js +1 -1
- package/src/components/pagination/Pagination.vue +28 -6
- package/src/components/progress/Progress.spec.js +77 -0
- package/src/components/progress/Progress.vue +108 -0
- package/src/components/progress/__snapshots__/Progress.spec.js.snap +7 -0
- package/src/components/progress/index.js +17 -0
- package/src/components/radio/Radio.spec.js +18 -1
- package/src/components/radio/Radio.vue +11 -5
- package/src/components/radio/RadioButton.spec.js +18 -1
- package/src/components/radio/RadioButton.vue +20 -8
- package/src/components/select/Select.spec.js +22 -1
- package/src/components/select/Select.vue +2 -1
- package/src/components/select/__snapshots__/Select.spec.js.snap +7 -0
- package/src/components/slider/Slider.spec.js +10 -0
- package/src/components/slider/Slider.vue +240 -0
- package/src/components/slider/SliderThumb.vue +188 -0
- package/src/components/slider/SliderTick.vue +43 -0
- package/src/components/slider/index.js +20 -0
- package/src/components/snackbar/index.js +2 -2
- package/src/components/steps/StepItem.vue +2 -3
- package/src/components/steps/Steps.vue +7 -5
- package/src/components/switch/Switch.spec.js +29 -0
- package/src/components/switch/Switch.vue +29 -5
- package/src/components/switch/__snapshots__/Switch.spec.js.snap +3 -0
- package/src/components/table/Table.vue +30 -8
- package/src/components/table/TableColumn.vue +2 -2
- package/src/components/tag/Tag.vue +4 -1
- package/src/components/taginput/Taginput.spec.js +10 -0
- package/src/components/taginput/Taginput.vue +8 -3
- package/src/components/toast/index.js +2 -2
- package/src/components/tooltip/Tooltip.vue +5 -5
- package/src/components/upload/Upload.vue +15 -8
- package/src/index.js +11 -4
- package/src/scss/buefy-build.scss +3 -3
- package/src/scss/buefy.scss +4 -0
- package/src/scss/components/_datepicker.scss +40 -1
- package/src/scss/components/_form.scss +52 -1
- package/src/scss/components/_progress.scss +45 -0
- package/src/scss/components/_radio.scss +14 -14
- package/src/scss/components/_slider.scss +138 -0
- package/src/scss/components/_steps.scss +4 -4
- package/src/scss/components/_switch.scss +54 -2
- package/src/scss/components/_taginput.scss +3 -0
- package/src/scss/components/_upload.scss +1 -3
- package/src/utils/SlotComponent.js +9 -2
- package/src/utils/TimepickerMixin.js +17 -6
- package/src/utils/config.js +4 -1
- package/src/utils/helpers.spec.js +67 -0
- package/src/utils/plugins.js +2 -1
- package/types/components.d.ts +3 -3
- package/types/index.d.ts +24 -11
- package/dist/components/index.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.8.2 | 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=e||self).Dialog={},e.Vue)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var i=function(e,t,n,i,o,a,s,c,l,r){"boolean"!=typeof s&&(l=c,c=s,s=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=s?function(){t.call(this,r(this.$root.$options.shadowRoot))}:function(e){t.call(this,c(e))}),u)if(d.functional){var f=d.render;d.render=function(e,t){return u.call(t),f(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n};var o=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?n(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):n("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{newIcon:function(){return"mdi"===this.newPack?"".concat(this.newPack,"-").concat(this.icon):this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||n.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1))return"has-text-".concat(e[1])}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var e="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),t="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),n="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return t;case"is-large":return n;default:return e}},useIconComponent:function(){return n.defaultIconComponent}},methods:{addFAPrefix:function(e){return this.useIconComponent?e:"fa-".concat(e)},getEquivalentIconOf:function(e){if(!this.both)return e;switch(e){case"check":return"check";case"information":return"info-circle";case"check-circle":return"check-circle";case"alert":return"exclamation-triangle";case"alert-circle":return"exclamation-circle";case"arrow-up":return"arrow-up";case"chevron-right":return"angle-right";case"chevron-left":return"angle-left";case"chevron-down":return"angle-down";case"eye":return"eye";case"eye-off":return"eye-slash";case"menu-down":return"caret-down";case"menu-up":return"caret-up";default:return e}}}},void 0,!1,void 0,void 0,void 0);function a(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&e.parentNode.removeChild(e)}var s,c,l,r=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{staticClass:"modal is-active",class:[{"is-full-screen":e.fullScreen},e.customClass]},[n("div",{staticClass:"modal-background",on:{click:function(t){e.cancel("outside")}}}),e._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!e.hasModalCard},style:e.customStyle},[e.component?n(e.component,e._g(e._b({tag:"component",on:{close:e.close}},"component",e.props,!1),e.events)):e.content?n("div",{domProps:{innerHTML:e._s(e.content)}}):e._t("default")],2),e._v(" "),e.showX?n("button",{staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(t){e.cancel("x")}}}):e._e()]):e._e()])},staticRenderFns:[]},void 0,{name:"BModal",props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return n.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return n.defaultModalScroll?n.defaultModalScroll:"clip"},validator:function(e){return["clip","keep"].indexOf(e)>=0}},fullScreen:Boolean,customClass:String},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?n.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(e){this.isActive=e},isActive:function(){this.handleScroll()}},methods:{handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(e){this.cancelOptions.indexOf(e)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var e=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(function(){e.$destroy(),a(e.$el)},150))},keyPress:function(e){this.isActive&&27===e.keyCode&&this.cancel("escape")}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=null}}},void 0,!1,void 0,void 0,void 0);var u=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{staticClass:"dialog modal is-active",class:e.size},[n("div",{staticClass:"modal-background",on:{click:function(t){e.cancel("outside")}}}),e._v(" "),n("div",{staticClass:"modal-card animation-content"},[e.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))])]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!e.title,"is-flex":e.hasIcon}},[n("div",{staticClass:"media"},[e.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:e.icon?e.icon:e.iconByType,pack:e.iconPack,type:e.type,both:!e.icon,size:"is-large"}})],1):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[n("p",{domProps:{innerHTML:e._s(e.message)}}),e._v(" "),e.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},[n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":e.validationMessage},domProps:{value:e.prompt},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;e.confirm(t)},input:function(t){t.target.composing||(e.prompt=t.target.value)}}},"input",e.inputAttrs,!1))]),e._v(" "),n("p",{staticClass:"help is-danger"},[e._v(e._s(e.validationMessage))])]):e._e()])])]),e._v(" "),n("footer",{staticClass:"modal-card-foot"},[e.showCancel?n("button",{ref:"cancelButton",staticClass:"button",on:{click:function(t){e.cancel("button")}}},[e._v("\n "+e._s(e.cancelText)+"\n ")]):e._e(),e._v(" "),n("button",{ref:"confirmButton",staticClass:"button",class:e.type,on:{click:e.confirm}},[e._v("\n "+e._s(e.confirmText)+"\n ")])])])]):e._e()])},staticRenderFns:[]},void 0,{name:"BDialog",components:(s={},c=o.name,l=o,c in s?Object.defineProperty(s,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[c]=l,s),extends:r,props:{title:String,message:String,icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return n.defaultDialogConfirmText?n.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return n.defaultDialogCancelText?n.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},focusOn:{type:String,default:"confirm"}},data:function(){return{prompt:this.hasInput&&this.inputAttrs.value||"",isActive:!1,validationMessage:""}},computed:{iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var e=this;if(void 0!==this.$refs.input&&!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick(function(){return e.$refs.input.select()});this.onConfirm(this.prompt),this.close()},close:function(){var e=this;this.isActive=!1,setTimeout(function(){e.$destroy(),a(e.$el)},150)}},beforeMount:function(){var e=this;"undefined"!=typeof window&&this.$nextTick(function(){document.body.appendChild(e.$el)})},mounted:function(){var e=this;this.isActive=!0,void 0===this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick(function(){e.hasInput?e.$refs.input.focus():"cancel"===e.focusOn&&e.showCancel?e.$refs.cancelButton.focus():e.$refs.confirmButton.focus()})}},void 0,!1,void 0,void 0,void 0);function d(e){return new(("undefined"!=typeof window&&window.Vue?window.Vue:t).extend(u))({el:document.createElement("div"),propsData:e})}var f,p={alert:function(e){var t;"string"==typeof e&&(t=e);var n={canCancel:!1,message:t};return d(Object.assign(n,e))},confirm:function(e){return d(Object.assign({},e))},prompt:function(e){return d(Object.assign({hasInput:!0,confirmText:"Done"},e))}},m={install:function(e){!function(e,t){e.component(t.name,t)}(e,u),function(e,t,n){e.prototype.$buefy||(e.prototype.$buefy={}),e.prototype.$buefy[t]=n}(e,"dialog",p)}};f=m,"undefined"!=typeof window&&window.Vue&&window.Vue.use(f),e.DialogProgrammatic=p,e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,2 +1,555 @@
|
|
|
1
|
-
/*! Buefy v0.
|
|
2
|
-
!(function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}})("undefined"!=typeof self?self:this,(function(){return (function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=276)})([(function(t,e){t.exports=function(t,e,n,r,i){var o,u=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,u=t.default);var a="function"==typeof u?u.options:u;e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r);var c;if(i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},a._ssrRegister=c):n&&(c=n),c){var l=a.functional,f=l?a.render:a.beforeCreate;l?a.render=function(t,e){return c.call(e),f(t,e)}:a.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:u,options:a}}}),(function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),(function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)}),(function(t,e,n){var r=n(10),i=n(20),o=n(15),u=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}}),(function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}}),(function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}}),(function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),(function(t,e,n){"use strict";var r={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1};e.a=r}),(function(t,e,n){var r=n(4),i=n(14);t.exports=n(1)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}}),(function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}}),(function(t,e,n){var r=n(36),i=n(28);t.exports=function(t){return r(i(t))}}),(function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},i=function(t,e){t.component(e.name,e)},o=function(t,e,n){t.prototype[e]=n}}),(function(t,e,n){var r=n(26)("wks"),i=n(17),o=n(2).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r}),(function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),(function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}}),(function(t,e,n){var r=n(2),i=n(3),o=n(29),u=n(9),s=n(6),a=function(t,e,n){var c,l,f,p=t&a.F,d=t&a.G,h=t&a.S,v=t&a.P,y=t&a.B,m=t&a.W,b=d?i:i[e]||(i[e]={}),g=b.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(l=!p&&x&&void 0!==x[c])&&s(b,c)||(f=l?x[c]:n[c],b[c]=d&&"function"!=typeof x[c]?n[c]:y&&l?o(f,r):m&&x[c]==f?(function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e})(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[c]=f,t&a.R&&g&&!g[c]&&u(g,c,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a}),(function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}}),,(function(t,e){t.exports=!0}),(function(t,e,n){t.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))}),(function(t,e,n){var r=n(5),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}}),(function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}}),,(function(t,e,n){var r=n(34),i=n(27);t.exports=Object.keys||function(t){return r(t,i)}}),(function(t,e){e.f={}.propertyIsEnumerable}),(function(t,e,n){var r=n(3),i=n(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),(function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}}),(function(t,e,n){var r=n(32);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}}),(function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}}),(function(t,e,n){var r=n(26)("keys"),i=n(17);t.exports=function(t){return r[t]||(r[t]=i(t))}}),(function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}}),(function(t,e){e.f=Object.getOwnPropertySymbols}),(function(t,e,n){var r=n(6),i=n(11),o=n(48)(!1),u=n(31)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),a=0,c=[];for(n in s)n!=u&&r(s,n)&&c.push(n);for(;e.length>a;)r(s,n=e[a++])&&(~o(c,n)||c.push(n));return c}}),(function(t,e,n){var r=n(2),i=n(3),o=n(19),u=n(40),s=n(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:u.f(t)})}}),(function(t,e,n){var r=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}}),(function(t,e,n){t.exports={default:n(57),__esModule:!0}}),(function(t,e){t.exports={}}),(function(t,e,n){var r=n(4).f,i=n(6),o=n(13)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}}),(function(t,e,n){e.f=n(13)}),(function(t,e,n){var r=n(22),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}}),,,,,,,(function(t,e,n){var r=n(11),i=n(41),o=n(49);t.exports=function(t){return function(e,n,u){var s,a=r(e),c=i(a.length),l=o(u,c);if(t&&n!=n){for(;c>l;)if((s=a[l++])!=s)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}}),(function(t,e,n){var r=n(22),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}}),(function(t,e,n){var r=n(34),i=n(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}}),,(function(t,e,n){t.exports=n(9)}),(function(t,e,n){var r=n(10),i=n(55),o=n(27),u=n(31)("IE_PROTO"),s=function(){},a=function(){var t,e=n(21)("iframe"),r=o.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[o[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[u]=t):n=a(),void 0===e?n:i(n,e)}}),(function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}}),(function(t,e,n){var r=n(4),i=n(10),o=n(24);t.exports=n(1)?Object.defineProperties:function(t,e){i(t);for(var n,u=o(e),s=u.length,a=0;s>a;)r.f(t,n=u[a++],e[n]);return t}}),(function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement}),(function(t,e,n){n(58),n(64),n(65),n(66),t.exports=n(3).Symbol}),(function(t,e,n){"use strict";var r=n(2),i=n(6),o=n(1),u=n(16),s=n(52),a=n(59).KEY,c=n(7),l=n(26),f=n(39),p=n(17),d=n(13),h=n(40),v=n(35),y=n(60),m=n(61),b=n(10),g=n(5),x=n(11),w=n(15),O=n(14),S=n(53),_=n(62),M=n(63),j=n(4),k=n(24),C=M.f,P=j.f,A=_.f,T=r.Symbol,E=r.JSON,D=E&&E.stringify,L=d("_hidden"),I=d("toPrimitive"),N={}.propertyIsEnumerable,R=l("symbol-registry"),$=l("symbols"),F=l("op-symbols"),B=Object.prototype,V="function"==typeof T,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,H=o&&c((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=C(B,e);r&&delete B[e],P(t,e,n),r&&t!==B&&P(B,e,r)}:P,U=function(t){var e=$[t]=S(T.prototype);return e._k=t,e},J=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,n){return t===B&&Y(F,e,n),b(t),e=w(e,!0),b(n),i($,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=S(n,{enumerable:O(0,!1)})):(i(t,L)||P(t,L,O(1,{})),t[L][e]=!0),H(t,e,n)):P(t,e,n)},q=function(t,e){b(t);for(var n,r=y(e=x(e)),i=0,o=r.length;o>i;)Y(t,n=r[i++],e[n]);return t},z=function(t,e){return void 0===e?S(t):q(S(t),e)},K=function(t){var e=N.call(this,t=w(t,!0));return!(this===B&&i($,t)&&!i(F,t))&&(!(e||!i(this,t)||!i($,t)||i(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==B||!i($,e)||i(F,e)){var n=C(t,e);return!n||!i($,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=A(x(t)),r=[],o=0;n.length>o;)i($,e=n[o++])||e==L||e==a||r.push(e);return r},Z=function(t){for(var e,n=t===B,r=A(n?F:x(t)),o=[],u=0;r.length>u;)!i($,e=r[u++])||n&&!i(B,e)||o.push($[e]);return o};V||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(F,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),H(this,t,O(1,n))};return o&&G&&H(B,t,{configurable:!0,set:e}),U(t)},s(T.prototype,"toString",(function(){return this._k})),M.f=Q,j.f=Y,n(50).f=_.f=X,n(25).f=K,n(33).f=Z,o&&!n(19)&&s(B,"propertyIsEnumerable",K,!0),h.f=function(t){return U(d(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=k(d.store),rt=0;nt.length>rt;)v(nt[rt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:z,defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),E&&u(u.S+u.F*(!V||c((function(){var t=T();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(g(e)||void 0!==t)&&!J(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,D.apply(E,r)}}),T.prototype[I]||n(9)(T.prototype,I,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)}),(function(t,e,n){var r=n(17)("meta"),i=n(5),o=n(6),u=n(4).f,s=0,a=Object.isExtensible||function(){return!0},c=!n(7)((function(){return a(Object.preventExtensions({}))})),l=function(t){u(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!o(t,r)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&a(t)&&!o(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}}),(function(t,e,n){var r=n(24),i=n(33),o=n(25);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var u,s=n(t),a=o.f,c=0;s.length>c;)a.call(t,u=s[c++])&&e.push(u);return e}}),(function(t,e,n){var r=n(30);t.exports=Array.isArray||function(t){return"Array"==r(t)}}),(function(t,e,n){var r=n(11),i=n(50).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?s(t):i(r(t))}}),(function(t,e,n){var r=n(25),i=n(14),o=n(11),u=n(15),s=n(6),a=n(20),c=Object.getOwnPropertyDescriptor;e.f=n(1)?c:function(t,e){if(t=o(t),e=u(e,!0),a)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}}),(function(t,e){}),(function(t,e,n){n(35)("asyncIterator")}),(function(t,e,n){n(35)("observable")}),(function(t,e,n){"use strict";var r=n(19),i=n(16),o=n(52),u=n(9),s=n(38),a=n(75),c=n(39),l=n(76),f=n(13)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,y,m){a(n,e,h);var b,g,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",S="values"==v,_=!1,M=t.prototype,j=M[f]||M["@@iterator"]||v&&M[v],k=j||w(v),C=v?S?w("entries"):k:void 0,P="Array"==e?M.entries||j:j;if(P&&(x=l(P.call(new t)))!==Object.prototype&&x.next&&(c(x,O,!0),r||"function"==typeof x[f]||u(x,f,d)),S&&j&&"values"!==j.name&&(_=!0,k=function(){return j.call(this)}),r&&!m||!p&&!_&&M[f]||u(M,f,k),s[e]=k,s[O]=d,v)if(b={values:S?k:w("values"),keys:y?k:w("keys"),entries:C},m)for(g in b)g in M||o(M,g,b[g]);else i(i.P+i.F*(p||_),e,b);return b}}),,(function(t,e,n){"use strict";var r=n(74)(!0);n(67)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))}),,,(function(t,e,n){n(81);for(var r=n(2),i=n(9),o=n(38),u=n(13)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<s.length;a++){var c=s[a],l=r[c],f=l&&l.prototype;f&&!f[u]&&i(f,u,c),o[c]=o.Array}}),(function(t,e,n){var r=n(77),i=n(13)("iterator"),o=n(38);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}}),(function(t,e,n){var r=n(22),i=n(28);t.exports=function(t){return function(e,n){var o,u,s=String(i(e)),a=r(n),c=s.length;return a<0||a>=c?t?"":void 0:(o=s.charCodeAt(a),o<55296||o>56319||a+1===c||(u=s.charCodeAt(a+1))<56320||u>57343?t?s.charAt(a):o:t?s.slice(a,a+2):u-56320+(o-55296<<10)+65536)}}}),(function(t,e,n){"use strict";var r=n(53),i=n(14),o=n(39),u={};n(9)(u,n(13)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(u,{next:i(1,n)}),o(t,e+" Iterator")}}),(function(t,e,n){var r=n(6),i=n(54),o=n(31)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}}),(function(t,e,n){var r=n(30),i=n(13)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}}),,,(function(t,e,n){t.exports={default:n(84),__esModule:!0}}),(function(t,e,n){"use strict";var r=n(82),i=n(83),o=n(38),u=n(11);t.exports=n(67)(Array,"Array",(function(t,e){this._t=u(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")}),(function(t,e){t.exports=function(){}}),(function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}}),(function(t,e,n){n(72),n(69),t.exports=n(85)}),(function(t,e,n){var r=n(10),i=n(73);t.exports=n(3).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}}),,,,(function(t,e,n){var r=n(0)(n(93),n(94),null,null,null);t.exports=r.exports}),(function(t,e,n){var r=n(0)(n(95),n(96),null,null,null);t.exports=r.exports}),,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(80),i=n.n(r),o=n(37),u=n.n(o),s=n(8);e.default={name:"BDropdown",props:{value:{type:[String,Number,Boolean,Object,Array,u.a,Function],default:null},disabled:Boolean,hoverable:Boolean,inline:Boolean,position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left"].indexOf(t)>-1}},mobileModal:{type:Boolean,default:function(){return s.a.defaultDropdownMobileModal}},ariaRole:{type:String,default:""},animation:{type:String,default:"fade"},multiple:Boolean,closeOnClick:{type:Boolean,default:!0}},data:function(){return{selected:this.value,isActive:!1,isHoverable:this.hoverable,_isDropdown:!0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal}]},isMobileModal:function(){return this.mobileModal&&!this.inline&&!this.hoverable},ariaRoleMenu:function(){return"menu"===this.ariaRole||"list"===this.ariaRole?this.ariaRole:null}},watch:{value:function(t){this.selected=t},isActive:function(t){this.$emit("active-change",t)}},methods:{selectItem:function(t){if(this.multiple){if(this.selected){var e=this.selected.indexOf(t);-1===e?this.selected.push(t):this.selected.splice(e,1)}else this.selected=[t];this.$emit("change",this.selected)}else this.selected!==t&&(this.selected=t,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick)},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,r=!1,o=void 0;try{for(var u,s=i()(e);!(n=(u=s.next()).done);n=!0){if(t===u.value)return!0}}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}}if(void 0!==this.$refs.trigger){var a=this.$refs.trigger.querySelectorAll("*"),c=!0,l=!1,f=void 0;try{for(var p,d=i()(a);!(c=(p=d.next()).done);c=!0){if(t===p.value)return!0}}catch(t){l=!0,f=t}finally{try{!c&&d.return&&d.return()}finally{if(l)throw f}}}return!1},clickedOutside:function(t){this.inline||this.isInWhiteList(t.target)||(this.isActive=!1)},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))}},created:function(){"undefined"!=typeof window&&document.addEventListener("click",this.clickedOutside)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("click",this.clickedOutside)}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown",class:t.rootClasses},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:t.toggle}},[t._t("trigger")],2),t._v(" "),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),t._v(" "),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"}],ref:"dropdownMenu",staticClass:"dropdown-menu",attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",attrs:{role:t.ariaRoleMenu}},[t._t("default")],2)])])],1)},staticRenderFns:[]}}),(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(37),i=n.n(r);e.default={name:"BDropdownItem",props:{value:{type:[String,Number,Boolean,Object,Array,i.a,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.$parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.$parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.$parent.selected&&(this.$parent.multiple?this.$parent.selected.indexOf(this.value)>=0:this.value===this.$parent.selected)}},methods:{selectItem:function(){this.isClickable&&(this.$parent.selectItem(this.value),this.$emit("click"))}},created:function(){if(!this.$parent.$data._isDropdown)throw this.$destroy(),new Error("You should wrap bDropdownItem on a bDropdown")}}}),(function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:"0"},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:"0"},on:{click:t.selectItem}},[t._t("default")],2)},staticRenderFns:[]}}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(89),i=n.n(r),o=n(90),u=n.n(o),s=n(12);n.d(e,"Dropdown",(function(){return i.a})),n.d(e,"DropdownItem",(function(){return u.a}));var a={install:function(t){Object(s.a)(t,i.a),Object(s.a)(t,u.a)}};Object(s.c)(a),e.default=a}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(t,e,n){t.exports=n(164)})])}));
|
|
1
|
+
/*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
(function (global, factory) {
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
+
(global = global || self, factory(global.Dropdown = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
var config = {
|
|
9
|
+
defaultContainerElement: null,
|
|
10
|
+
defaultIconPack: 'mdi',
|
|
11
|
+
defaultIconComponent: null,
|
|
12
|
+
defaultDialogConfirmText: null,
|
|
13
|
+
defaultDialogCancelText: null,
|
|
14
|
+
defaultSnackbarDuration: 3500,
|
|
15
|
+
defaultSnackbarPosition: null,
|
|
16
|
+
defaultToastDuration: 2000,
|
|
17
|
+
defaultToastPosition: null,
|
|
18
|
+
defaultNotificationDuration: 2000,
|
|
19
|
+
defaultNotificationPosition: null,
|
|
20
|
+
defaultTooltipType: 'is-primary',
|
|
21
|
+
defaultTooltipAnimated: false,
|
|
22
|
+
defaultTooltipDelay: 0,
|
|
23
|
+
defaultInputAutocomplete: 'on',
|
|
24
|
+
defaultDateFormatter: null,
|
|
25
|
+
defaultDateParser: null,
|
|
26
|
+
defaultDateCreator: null,
|
|
27
|
+
defaultDayNames: null,
|
|
28
|
+
defaultMonthNames: null,
|
|
29
|
+
defaultFirstDayOfWeek: null,
|
|
30
|
+
defaultUnselectableDaysOfWeek: null,
|
|
31
|
+
defaultTimeFormatter: null,
|
|
32
|
+
defaultTimeParser: null,
|
|
33
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
34
|
+
defaultModalScroll: null,
|
|
35
|
+
defaultDatepickerMobileNative: true,
|
|
36
|
+
defaultTimepickerMobileNative: true,
|
|
37
|
+
defaultNoticeQueue: true,
|
|
38
|
+
defaultInputHasCounter: true,
|
|
39
|
+
defaultTaginputHasCounter: true,
|
|
40
|
+
defaultUseHtml5Validation: true,
|
|
41
|
+
defaultDropdownMobileModal: true,
|
|
42
|
+
defaultFieldLabelPosition: null,
|
|
43
|
+
defaultDatepickerYearsRange: [-100, 3],
|
|
44
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
45
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
46
|
+
defaultDatepickerShowWeekNumber: false
|
|
47
|
+
};
|
|
48
|
+
var config$1 = config;
|
|
49
|
+
|
|
50
|
+
//
|
|
51
|
+
var script = {
|
|
52
|
+
name: 'BDropdown',
|
|
53
|
+
props: {
|
|
54
|
+
value: {
|
|
55
|
+
type: [String, Number, Boolean, Object, Array, Function],
|
|
56
|
+
default: null
|
|
57
|
+
},
|
|
58
|
+
disabled: Boolean,
|
|
59
|
+
hoverable: Boolean,
|
|
60
|
+
inline: Boolean,
|
|
61
|
+
position: {
|
|
62
|
+
type: String,
|
|
63
|
+
validator: function validator(value) {
|
|
64
|
+
return ['is-top-right', 'is-top-left', 'is-bottom-left'].indexOf(value) > -1;
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
mobileModal: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: function _default() {
|
|
70
|
+
return config$1.defaultDropdownMobileModal;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
ariaRole: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: ''
|
|
76
|
+
},
|
|
77
|
+
animation: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: 'fade'
|
|
80
|
+
},
|
|
81
|
+
multiple: Boolean,
|
|
82
|
+
closeOnClick: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
data: function data() {
|
|
88
|
+
return {
|
|
89
|
+
selected: this.value,
|
|
90
|
+
isActive: false,
|
|
91
|
+
isHoverable: this.hoverable,
|
|
92
|
+
_isDropdown: true // Used internally by DropdownItem
|
|
93
|
+
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
rootClasses: function rootClasses() {
|
|
98
|
+
return [this.position, {
|
|
99
|
+
'is-disabled': this.disabled,
|
|
100
|
+
'is-hoverable': this.hoverable,
|
|
101
|
+
'is-inline': this.inline,
|
|
102
|
+
'is-active': this.isActive || this.inline,
|
|
103
|
+
'is-mobile-modal': this.isMobileModal
|
|
104
|
+
}];
|
|
105
|
+
},
|
|
106
|
+
isMobileModal: function isMobileModal() {
|
|
107
|
+
return this.mobileModal && !this.inline && !this.hoverable;
|
|
108
|
+
},
|
|
109
|
+
ariaRoleMenu: function ariaRoleMenu() {
|
|
110
|
+
return this.ariaRole === 'menu' || this.ariaRole === 'list' ? this.ariaRole : null;
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
watch: {
|
|
114
|
+
/**
|
|
115
|
+
* When v-model is changed set the new selected item.
|
|
116
|
+
*/
|
|
117
|
+
value: function value(_value) {
|
|
118
|
+
this.selected = _value;
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Emit event when isActive value is changed.
|
|
123
|
+
*/
|
|
124
|
+
isActive: function isActive(value) {
|
|
125
|
+
this.$emit('active-change', value);
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
methods: {
|
|
129
|
+
/**
|
|
130
|
+
* Click listener from DropdownItem.
|
|
131
|
+
* 1. Set new selected item.
|
|
132
|
+
* 2. Emit input event to update the user v-model.
|
|
133
|
+
* 3. Close the dropdown.
|
|
134
|
+
*/
|
|
135
|
+
selectItem: function selectItem(value) {
|
|
136
|
+
var _this = this;
|
|
137
|
+
|
|
138
|
+
if (this.multiple) {
|
|
139
|
+
if (this.selected) {
|
|
140
|
+
var index = this.selected.indexOf(value);
|
|
141
|
+
|
|
142
|
+
if (index === -1) {
|
|
143
|
+
this.selected.push(value);
|
|
144
|
+
} else {
|
|
145
|
+
this.selected.splice(index, 1);
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
this.selected = [value];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
this.$emit('change', this.selected);
|
|
152
|
+
} else {
|
|
153
|
+
if (this.selected !== value) {
|
|
154
|
+
this.selected = value;
|
|
155
|
+
this.$emit('change', this.selected);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
this.$emit('input', this.selected);
|
|
160
|
+
|
|
161
|
+
if (!this.multiple) {
|
|
162
|
+
this.isActive = !this.closeOnClick;
|
|
163
|
+
|
|
164
|
+
if (this.hoverable && this.closeOnClick) {
|
|
165
|
+
this.isHoverable = false; // Timeout for the animation complete before destroying
|
|
166
|
+
|
|
167
|
+
setTimeout(function () {
|
|
168
|
+
_this.isHoverable = true;
|
|
169
|
+
}, 250);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* White-listed items to not close when clicked.
|
|
176
|
+
*/
|
|
177
|
+
isInWhiteList: function isInWhiteList(el) {
|
|
178
|
+
if (el === this.$refs.dropdownMenu) return true;
|
|
179
|
+
if (el === this.$refs.trigger) return true; // All chidren from dropdown
|
|
180
|
+
|
|
181
|
+
if (this.$refs.dropdownMenu !== undefined) {
|
|
182
|
+
var children = this.$refs.dropdownMenu.querySelectorAll('*');
|
|
183
|
+
var _iteratorNormalCompletion = true;
|
|
184
|
+
var _didIteratorError = false;
|
|
185
|
+
var _iteratorError = undefined;
|
|
186
|
+
|
|
187
|
+
try {
|
|
188
|
+
for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
189
|
+
var child = _step.value;
|
|
190
|
+
|
|
191
|
+
if (el === child) {
|
|
192
|
+
return true;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
} catch (err) {
|
|
196
|
+
_didIteratorError = true;
|
|
197
|
+
_iteratorError = err;
|
|
198
|
+
} finally {
|
|
199
|
+
try {
|
|
200
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
201
|
+
_iterator.return();
|
|
202
|
+
}
|
|
203
|
+
} finally {
|
|
204
|
+
if (_didIteratorError) {
|
|
205
|
+
throw _iteratorError;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
} // All children from trigger
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
if (this.$refs.trigger !== undefined) {
|
|
213
|
+
var _children = this.$refs.trigger.querySelectorAll('*');
|
|
214
|
+
|
|
215
|
+
var _iteratorNormalCompletion2 = true;
|
|
216
|
+
var _didIteratorError2 = false;
|
|
217
|
+
var _iteratorError2 = undefined;
|
|
218
|
+
|
|
219
|
+
try {
|
|
220
|
+
for (var _iterator2 = _children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
221
|
+
var _child = _step2.value;
|
|
222
|
+
|
|
223
|
+
if (el === _child) {
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
} catch (err) {
|
|
228
|
+
_didIteratorError2 = true;
|
|
229
|
+
_iteratorError2 = err;
|
|
230
|
+
} finally {
|
|
231
|
+
try {
|
|
232
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
233
|
+
_iterator2.return();
|
|
234
|
+
}
|
|
235
|
+
} finally {
|
|
236
|
+
if (_didIteratorError2) {
|
|
237
|
+
throw _iteratorError2;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
return false;
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Close dropdown if clicked outside.
|
|
248
|
+
*/
|
|
249
|
+
clickedOutside: function clickedOutside(event) {
|
|
250
|
+
if (this.inline) return;
|
|
251
|
+
if (!this.isInWhiteList(event.target)) this.isActive = false;
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Toggle dropdown if it's not disabled.
|
|
256
|
+
*/
|
|
257
|
+
toggle: function toggle() {
|
|
258
|
+
var _this2 = this;
|
|
259
|
+
|
|
260
|
+
if (this.disabled) return;
|
|
261
|
+
|
|
262
|
+
if (!this.isActive) {
|
|
263
|
+
// if not active, toggle after clickOutside event
|
|
264
|
+
// this fixes toggling programmatic
|
|
265
|
+
this.$nextTick(function () {
|
|
266
|
+
var value = !_this2.isActive;
|
|
267
|
+
_this2.isActive = value; // Vue 2.6.x ???
|
|
268
|
+
|
|
269
|
+
setTimeout(function () {
|
|
270
|
+
return _this2.isActive = value;
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
} else {
|
|
274
|
+
this.isActive = !this.isActive;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
created: function created() {
|
|
279
|
+
if (typeof window !== 'undefined') {
|
|
280
|
+
document.addEventListener('click', this.clickedOutside);
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
beforeDestroy: function beforeDestroy() {
|
|
284
|
+
if (typeof window !== 'undefined') {
|
|
285
|
+
document.removeEventListener('click', this.clickedOutside);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
291
|
+
/* server only */
|
|
292
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
293
|
+
if (typeof shadowMode !== 'boolean') {
|
|
294
|
+
createInjectorSSR = createInjector;
|
|
295
|
+
createInjector = shadowMode;
|
|
296
|
+
shadowMode = false;
|
|
297
|
+
} // Vue.extend constructor export interop.
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
301
|
+
|
|
302
|
+
if (template && template.render) {
|
|
303
|
+
options.render = template.render;
|
|
304
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
305
|
+
options._compiled = true; // functional template
|
|
306
|
+
|
|
307
|
+
if (isFunctionalTemplate) {
|
|
308
|
+
options.functional = true;
|
|
309
|
+
}
|
|
310
|
+
} // scopedId
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
if (scopeId) {
|
|
314
|
+
options._scopeId = scopeId;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
var hook;
|
|
318
|
+
|
|
319
|
+
if (moduleIdentifier) {
|
|
320
|
+
// server build
|
|
321
|
+
hook = function hook(context) {
|
|
322
|
+
// 2.3 injection
|
|
323
|
+
context = context || // cached call
|
|
324
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
325
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
326
|
+
// 2.2 with runInNewContext: true
|
|
327
|
+
|
|
328
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
329
|
+
context = __VUE_SSR_CONTEXT__;
|
|
330
|
+
} // inject component styles
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
if (style) {
|
|
334
|
+
style.call(this, createInjectorSSR(context));
|
|
335
|
+
} // register component module identifier for async chunk inference
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
if (context && context._registeredComponents) {
|
|
339
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
340
|
+
}
|
|
341
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
342
|
+
// never gets called
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
options._ssrRegister = hook;
|
|
346
|
+
} else if (style) {
|
|
347
|
+
hook = shadowMode ? function () {
|
|
348
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
349
|
+
} : function (context) {
|
|
350
|
+
style.call(this, createInjector(context));
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (hook) {
|
|
355
|
+
if (options.functional) {
|
|
356
|
+
// register for functional component in vue file
|
|
357
|
+
var originalRender = options.render;
|
|
358
|
+
|
|
359
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
360
|
+
hook.call(context);
|
|
361
|
+
return originalRender(h, context);
|
|
362
|
+
};
|
|
363
|
+
} else {
|
|
364
|
+
// inject component registration as beforeCreate hook
|
|
365
|
+
var existing = options.beforeCreate;
|
|
366
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
return script;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
374
|
+
|
|
375
|
+
/* script */
|
|
376
|
+
const __vue_script__ = script;
|
|
377
|
+
|
|
378
|
+
/* template */
|
|
379
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dropdown",class:_vm.rootClasses},[(!_vm.inline)?_c('div',{ref:"trigger",staticClass:"dropdown-trigger",attrs:{"role":"button","aria-haspopup":"true"},on:{"click":_vm.toggle}},[_vm._t("trigger")],2):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":_vm.animation}},[(_vm.isMobileModal)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!_vm.isActive}}):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":_vm.animation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),expression:"(!disabled && (isActive || isHoverable)) || inline"}],ref:"dropdownMenu",staticClass:"dropdown-menu",attrs:{"aria-hidden":!_vm.isActive}},[_c('div',{staticClass:"dropdown-content",attrs:{"role":_vm.ariaRoleMenu}},[_vm._t("default")],2)])])],1)};
|
|
380
|
+
var __vue_staticRenderFns__ = [];
|
|
381
|
+
|
|
382
|
+
/* style */
|
|
383
|
+
const __vue_inject_styles__ = undefined;
|
|
384
|
+
/* scoped */
|
|
385
|
+
const __vue_scope_id__ = undefined;
|
|
386
|
+
/* module identifier */
|
|
387
|
+
const __vue_module_identifier__ = undefined;
|
|
388
|
+
/* functional template */
|
|
389
|
+
const __vue_is_functional_template__ = false;
|
|
390
|
+
/* style inject */
|
|
391
|
+
|
|
392
|
+
/* style inject SSR */
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
var Dropdown = normalizeComponent_1(
|
|
397
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
398
|
+
__vue_inject_styles__,
|
|
399
|
+
__vue_script__,
|
|
400
|
+
__vue_scope_id__,
|
|
401
|
+
__vue_is_functional_template__,
|
|
402
|
+
__vue_module_identifier__,
|
|
403
|
+
undefined,
|
|
404
|
+
undefined
|
|
405
|
+
);
|
|
406
|
+
|
|
407
|
+
//
|
|
408
|
+
//
|
|
409
|
+
//
|
|
410
|
+
//
|
|
411
|
+
//
|
|
412
|
+
//
|
|
413
|
+
//
|
|
414
|
+
//
|
|
415
|
+
//
|
|
416
|
+
//
|
|
417
|
+
//
|
|
418
|
+
//
|
|
419
|
+
//
|
|
420
|
+
//
|
|
421
|
+
//
|
|
422
|
+
//
|
|
423
|
+
//
|
|
424
|
+
//
|
|
425
|
+
//
|
|
426
|
+
//
|
|
427
|
+
//
|
|
428
|
+
var script$1 = {
|
|
429
|
+
name: 'BDropdownItem',
|
|
430
|
+
props: {
|
|
431
|
+
value: {
|
|
432
|
+
type: [String, Number, Boolean, Object, Array, Function],
|
|
433
|
+
default: null
|
|
434
|
+
},
|
|
435
|
+
separator: Boolean,
|
|
436
|
+
disabled: Boolean,
|
|
437
|
+
custom: Boolean,
|
|
438
|
+
focusable: {
|
|
439
|
+
type: Boolean,
|
|
440
|
+
default: true
|
|
441
|
+
},
|
|
442
|
+
paddingless: Boolean,
|
|
443
|
+
hasLink: Boolean,
|
|
444
|
+
ariaRole: {
|
|
445
|
+
type: String,
|
|
446
|
+
default: ''
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
computed: {
|
|
450
|
+
anchorClasses: function anchorClasses() {
|
|
451
|
+
return {
|
|
452
|
+
'is-disabled': this.$parent.disabled || this.disabled,
|
|
453
|
+
'is-paddingless': this.paddingless,
|
|
454
|
+
'is-active': this.isActive
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
itemClasses: function itemClasses() {
|
|
458
|
+
return {
|
|
459
|
+
'dropdown-item': !this.hasLink,
|
|
460
|
+
'is-disabled': this.disabled,
|
|
461
|
+
'is-paddingless': this.paddingless,
|
|
462
|
+
'is-active': this.isActive,
|
|
463
|
+
'has-link': this.hasLink
|
|
464
|
+
};
|
|
465
|
+
},
|
|
466
|
+
ariaRoleItem: function ariaRoleItem() {
|
|
467
|
+
return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;
|
|
468
|
+
},
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Check if item can be clickable.
|
|
472
|
+
*/
|
|
473
|
+
isClickable: function isClickable() {
|
|
474
|
+
return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;
|
|
475
|
+
},
|
|
476
|
+
isActive: function isActive() {
|
|
477
|
+
if (this.$parent.selected === null) return false;
|
|
478
|
+
if (this.$parent.multiple) return this.$parent.selected.indexOf(this.value) >= 0;
|
|
479
|
+
return this.value === this.$parent.selected;
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
methods: {
|
|
483
|
+
/**
|
|
484
|
+
* Click listener, select the item.
|
|
485
|
+
*/
|
|
486
|
+
selectItem: function selectItem() {
|
|
487
|
+
if (!this.isClickable) return;
|
|
488
|
+
this.$parent.selectItem(this.value);
|
|
489
|
+
this.$emit('click');
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
created: function created() {
|
|
493
|
+
if (!this.$parent.$data._isDropdown) {
|
|
494
|
+
this.$destroy();
|
|
495
|
+
throw new Error('You should wrap bDropdownItem on a bDropdown');
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
/* script */
|
|
501
|
+
const __vue_script__$1 = script$1;
|
|
502
|
+
|
|
503
|
+
/* template */
|
|
504
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.separator)?_c('hr',{staticClass:"dropdown-divider"}):(!_vm.custom && !_vm.hasLink)?_c('a',{staticClass:"dropdown-item",class:_vm.anchorClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.focusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2):_c('div',{class:_vm.itemClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.focusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2)};
|
|
505
|
+
var __vue_staticRenderFns__$1 = [];
|
|
506
|
+
|
|
507
|
+
/* style */
|
|
508
|
+
const __vue_inject_styles__$1 = undefined;
|
|
509
|
+
/* scoped */
|
|
510
|
+
const __vue_scope_id__$1 = undefined;
|
|
511
|
+
/* module identifier */
|
|
512
|
+
const __vue_module_identifier__$1 = undefined;
|
|
513
|
+
/* functional template */
|
|
514
|
+
const __vue_is_functional_template__$1 = false;
|
|
515
|
+
/* style inject */
|
|
516
|
+
|
|
517
|
+
/* style inject SSR */
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
var DropdownItem = normalizeComponent_1(
|
|
522
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
523
|
+
__vue_inject_styles__$1,
|
|
524
|
+
__vue_script__$1,
|
|
525
|
+
__vue_scope_id__$1,
|
|
526
|
+
__vue_is_functional_template__$1,
|
|
527
|
+
__vue_module_identifier__$1,
|
|
528
|
+
undefined,
|
|
529
|
+
undefined
|
|
530
|
+
);
|
|
531
|
+
|
|
532
|
+
var use = function use(plugin) {
|
|
533
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
534
|
+
window.Vue.use(plugin);
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
538
|
+
Vue.component(component.name, component);
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
var Plugin = {
|
|
542
|
+
install: function install(Vue) {
|
|
543
|
+
registerComponent(Vue, Dropdown);
|
|
544
|
+
registerComponent(Vue, DropdownItem);
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
use(Plugin);
|
|
548
|
+
|
|
549
|
+
exports.Dropdown = Dropdown;
|
|
550
|
+
exports.DropdownItem = DropdownItem;
|
|
551
|
+
exports.default = Plugin;
|
|
552
|
+
|
|
553
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
554
|
+
|
|
555
|
+
}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Dropdown={})}(this,function(e){"use strict";var t={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var i=function(e,t,i,n,a,s,o,l,r,d){"boolean"!=typeof o&&(r=l,l=o,o=!1);var u,c="function"==typeof i?i.options:i;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,a&&(c.functional=!0)),n&&(c._scopeId=n),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):t&&(u=o?function(){t.call(this,d(this.$root.$options.shadowRoot))}:function(e){t.call(this,l(e))}),u)if(c.functional){var f=c.render;c.render=function(e,t){return u.call(t),f(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return i};var n=i({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown",class:e.rootClasses},[e.inline?e._e():i("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:e.toggle}},[e._t("trigger")],2),e._v(" "),i("transition",{attrs:{name:e.animation}},[e.isMobileModal?i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),e._v(" "),i("transition",{attrs:{name:e.animation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"}],ref:"dropdownMenu",staticClass:"dropdown-menu",attrs:{"aria-hidden":!e.isActive}},[i("div",{staticClass:"dropdown-content",attrs:{role:e.ariaRoleMenu}},[e._t("default")],2)])])],1)},staticRenderFns:[]},void 0,{name:"BDropdown",props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,hoverable:Boolean,inline:Boolean,position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left"].indexOf(e)>-1}},mobileModal:{type:Boolean,default:function(){return t.defaultDropdownMobileModal}},ariaRole:{type:String,default:""},animation:{type:String,default:"fade"},multiple:Boolean,closeOnClick:{type:Boolean,default:!0}},data:function(){return{selected:this.value,isActive:!1,isHoverable:this.hoverable,_isDropdown:!0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal}]},isMobileModal:function(){return this.mobileModal&&!this.inline&&!this.hoverable},ariaRoleMenu:function(){return"menu"===this.ariaRole||"list"===this.ariaRole?this.ariaRole:null}},watch:{value:function(e){this.selected=e},isActive:function(e){this.$emit("active-change",e)}},methods:{selectItem:function(e){var t=this;if(this.multiple){if(this.selected){var i=this.selected.indexOf(e);-1===i?this.selected.push(e):this.selected.splice(i,1)}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1,setTimeout(function(){t.isHoverable=!0},250)))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t=this.$refs.dropdownMenu.querySelectorAll("*"),i=!0,n=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){if(e===s.value)return!0}}catch(e){n=!0,a=e}finally{try{i||null==o.return||o.return()}finally{if(n)throw a}}}if(void 0!==this.$refs.trigger){var l=this.$refs.trigger.querySelectorAll("*"),r=!0,d=!1,u=void 0;try{for(var c,f=l[Symbol.iterator]();!(r=(c=f.next()).done);r=!0){if(e===c.value)return!0}}catch(e){d=!0,u=e}finally{try{r||null==f.return||f.return()}finally{if(d)throw u}}}return!1},clickedOutside:function(e){this.inline||this.isInWhiteList(e.target)||(this.isActive=!1)},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick(function(){var t=!e.isActive;e.isActive=t,setTimeout(function(){return e.isActive=t})}))}},created:function(){"undefined"!=typeof window&&document.addEventListener("click",this.clickedOutside)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("click",this.clickedOutside)}},void 0,!1,void 0,void 0,void 0);var a,s=i({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.separator?i("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?i("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.focusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):i("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.focusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"BDropdownItem",props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.$parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.$parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.$parent.selected&&(this.$parent.multiple?this.$parent.selected.indexOf(this.value)>=0:this.value===this.$parent.selected)}},methods:{selectItem:function(){this.isClickable&&(this.$parent.selectItem(this.value),this.$emit("click"))}},created:function(){if(!this.$parent.$data._isDropdown)throw this.$destroy(),new Error("You should wrap bDropdownItem on a bDropdown")}},void 0,!1,void 0,void 0,void 0),o=function(e,t){e.component(t.name,t)},l={install:function(e){o(e,n),o(e,s)}};a=l,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.Dropdown=n,e.DropdownItem=s,e.default=l,Object.defineProperty(e,"__esModule",{value:!0})});
|