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):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Numberinput={})}(this,function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,s,a,o,r,u,l){"boolean"!=typeof o&&(u=r,r=o,o=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),i&&(d._scopeId=i),a?(c=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,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),c)if(d.functional){var p=d.render;d.render=function(e,t){return c.call(t),p(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n};var s=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),a={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return n.defaultUseHtml5Validation}},validationMessage:String},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||n.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){if(this.parentField&&this.parentField.newType){if("string"==typeof this.parentField.newType)return this.parentField.newType;for(var e in this.parentField.newType)if(this.parentField.newType[e])return e}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var e=this;void 0!==this.$data._elementRef&&this.$nextTick(function(){var t=e.$el.querySelector(e.$data._elementRef);t&&t.focus()})},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},checkHtml5Validity:function(){var e=this;if(this.useHtml5Validation&&void 0!==this.$refs[this.$data._elementRef]){var t=this.$el.querySelector(this.$data._elementRef),n=null,i=null,s=!0;return t.checkValidity()||(n="is-danger",i=this.validationMessage||t.validationMessage,s=!1),this.isValid=s,this.$nextTick(function(){e.parentField&&(e.parentField.type||(e.parentField.newType=n),e.parentField.message||(e.parentField.newMessage=i))}),this.isValid}}}};var o,r=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:e.rootClasses},["textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):n("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e._v(" "),e.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e(),e._v(" "),e.loading||!e.passwordReveal&&!e.statusTypeIcon?e._e():n("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal},attrs:{icon:e.passwordReveal?e.passwordVisibleIcon:e.statusTypeIcon,pack:e.iconPack,size:e.iconSize,type:e.passwordReveal?"is-primary":e.statusType,both:""},nativeOn:{click:function(t){e.togglePasswordVisibility(t)}}}),e._v(" "),e.maxlength&&e.hasCounter&&"number"!==e.type?n("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v("\n "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+"\n ")]):e._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:t({},s.name,s),mixins:[a],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},passwordReveal:Boolean,hasCounter:{type:Boolean,default:function(){return n.defaultInputHasCounter}},customClass:{type:String,default:""}},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||n.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e),!this.isValid&&this.checkHtml5Validity()}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusTypeIcon},iconPosition:function(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":void 0},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?this.computedValue.length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(e){this.newValue=e}},methods:{togglePasswordVisibility:function(){var e=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){e.$refs.input.focus()})},onInput:function(e){var t=this;this.$nextTick(function(){e.target&&(t.computedValue=e.target.value)})}}},void 0,!1,void 0,void 0,void 0);var u,l=i({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"b-numberinput field",class:e.fieldClasses},[n("p",{staticClass:"control",on:{mouseup:function(t){e.onStopLongPress(!1)},mouseleave:function(t){e.onStopLongPress(!1)},touchend:function(t){e.onStopLongPress(!1)},touchcancel:function(t){e.onStopLongPress(!1)}}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled||e.disabledMin},on:{mousedown:function(t){e.onStartLongPress(t,!1)},touchstart:function(t){t.preventDefault(),e.onStartLongPress(t,!1)},click:function(t){e.onControlClick(t,!1)}}},[n("b-icon",{attrs:{icon:"minus",pack:e.iconPack,size:e.iconSize}})],1)]),e._v(" "),n("b-input",e._b({ref:"input",attrs:{type:"number",step:e.newStep,max:e.max,min:e.min,size:e.size,disabled:e.disabled,readonly:!e.editable,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-pack":e.iconPack,autocomplete:e.autocomplete,expanded:e.expanded,"use-html5-validation":e.useHtml5Validation},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)}},model:{value:e.computedValue,callback:function(t){e.computedValue=e._n(t)},expression:"computedValue"}},"b-input",e.$attrs,!1)),e._v(" "),n("p",{staticClass:"control",on:{mouseup:function(t){e.onStopLongPress(!0)},mouseleave:function(t){e.onStopLongPress(!0)},touchend:function(t){e.onStopLongPress(!0)},touchcancel:function(t){e.onStopLongPress(!0)}}},[n("button",{staticClass:"button",class:e.buttonClasses,attrs:{type:"button",disabled:e.disabled||e.disabledMax},on:{mousedown:function(t){e.onStartLongPress(t,!0)},touchstart:function(t){t.preventDefault(),e.onStartLongPress(t,!0)},click:function(t){e.onControlClick(t,!0)}}},[n("b-icon",{attrs:{icon:"plus",pack:e.iconPack,size:e.iconSize}})],1)])],1)},staticRenderFns:[]},void 0,{name:"BNumberinput",components:(o={},t(o,s.name,s),t(o,r.name,r),o),mixins:[a],inheritAttrs:!1,props:{value:Number,min:[Number,String],max:[Number,String],step:[Number,String],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String},data:function(){return{newValue:isNaN(this.value)?parseFloat(this.min)||0:this.value,newStep:this.step||1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){var t=e;""===e&&(t=parseFloat(this.min)||0),this.newValue=t,this.$emit("input",t),!this.isValid&&this.$refs.input.checkHtml5Validity()}},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"==typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"==typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var e=this.stepNumber.toString(),t=e.indexOf(".");return t>=0?e.substring(t+1).length:0}},watch:{value:function(e){this.newValue=e}},methods:{decrement:function(){if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var e=this.computedValue-this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},increment:function(){if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var e=this.computedValue+this.stepNumber;this.computedValue=parseFloat(e.toFixed(this.stepDecimals))}},onControlClick:function(e,t){0===e.detail&&"click"!==e.type&&(t?this.increment():this.decrement())},onStartLongPress:function(e,t){var n=this;0!==e.button&&"touchstart"!==e.type||(this._$intervalTime=new Date,clearInterval(this._$intervalRef),this._$intervalRef=setInterval(function(){t?n.increment():n.decrement()},250))},onStopLongPress:function(e){this._$intervalRef&&(new Date-this._$intervalTime<250&&(e?this.increment():this.decrement()),clearInterval(this._$intervalRef),this._$intervalRef=null)}}},void 0,!1,void 0,void 0,void 0),c={install:function(e){!function(e,t){e.component(t.name,t)}(e,l)}};u=c,"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),e.Numberinput=l,e.default=c,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,2 +1,577 @@
|
|
|
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=286)})({0:function(t,e){t.exports=function(t,e,n,r,i){var a,o=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(a=t,o=t.default);var s="function"==typeof o?o.options:o;e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),r&&(s._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)},s._ssrRegister=c):n&&(c=n),c){var l=s.functional,f=l?s.render:s.beforeCreate;l?s.render=function(t,e){return c.call(e),f(t,e)}:s.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:o,options:s}}},1:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},111:function(t,e,n){var r=n(0)(n(122),n(123),null,null,null);t.exports=r.exports},12: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 a}));var r=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},i=function(t,e){t.component(e.name,e)},a=function(t,e,n){t.prototype[e]=n}},122:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(18),i=n.n(r),a=n(23),o=n.n(a);e.default={name:"BPagination",components:i()({},o.a.name,o.a),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=3},hasFirstEllipsis:function(){return this.current>=4},hasLast:function(){return this.current<=this.pageCount-2},hasLastEllipsis:function(){return this.current<this.pageCount-2&&this.current<=this.pageCount-3},hasNext:function(){return this.current<this.pageCount},pagesInRange:function(){var t=this;if(!this.simple){for(var e=Math.max(1,this.current-1),n=Math.min(this.current+1,this.pageCount),r=[],i=e;i<=n;i++)!(function(e){r.push({number:e,isCurrent:t.current===e,click:function(n){t.current!==e&&(t.$emit("change",e),t.$emit("update:current",e),t.$nextTick((function(){return n.target.focus()})))}})})(i);return r}}},watch:{pageCount:function(t){this.current>t&&this.last()}},methods:{prev:function(){this.hasPrev&&(this.$emit("change",this.current-1),this.$emit("update:current",this.current-1))},first:function(){this.$emit("change",1),this.$emit("update:current",1)},last:function(){this.$emit("change",this.pageCount),this.$emit("update:current",this.pageCount)},next:function(){this.hasNext&&(this.$emit("change",this.current+1),this.$emit("update:current",this.current+1))},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."}}}},123:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:!t.hasPrev,"aria-label":t.ariaPreviousLabel},on:{click:function(e){e.preventDefault(),t.prev(e)}}},[n("b-icon",{attrs:{icon:"chevron-left",pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:!t.hasNext,"aria-label":t.ariaNextLabel},on:{click:function(e){e.preventDefault(),t.next(e)}}},[n("b-icon",{attrs:{icon:"chevron-right",pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.simple?t._e():n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(1,!1)},on:{click:function(e){e.preventDefault(),t.first(e)}}},[t._v("\n 1\n ")])]):t._e(),t._v(" "),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[n("a",{staticClass:"pagination-link",class:{"is-current":e.isCurrent},attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(e.number,e.isCurrent),"aria-current":e.isCurrent},on:{click:function(t){t.preventDefault(),e.click(t)}}},[t._v("\n "+t._s(e.number)+"\n ")])])})),t._v(" "),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t.hasLast?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":t.getAriaPageLabel(t.pageCount,!1)},on:{click:function(e){e.preventDefault(),t.last(e)}}},[t._v("\n "+t._s(t.pageCount)+"\n ")])]):t._e()],2),t._v(" "),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v("\n "+t._s(t.firstItem)+" / "+t._s(t.total)+"\n ")]:[t._v("\n "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+"\n ")]],2):t._e()])},staticRenderFns:[]}},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15: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")}},16:function(t,e,n){var r=n(2),i=n(3),a=n(29),o=n(9),u=n(6),s=function(t,e,n){var c,l,f,p=t&s.F,d=t&s.G,h=t&s.S,m=t&s.P,g=t&s.B,v=t&s.W,b=d?i:i[e]||(i[e]={}),y=b.prototype,_=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(l=!p&&_&&void 0!==_[c])&&u(b,c)||(f=l?_[c]:n[c],b[c]=d&&"function"!=typeof _[c]?n[c]:g&&l?a(f,r):v&&_[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):m&&"function"==typeof f?a(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[c]=f,t&s.R&&y&&!y[c]&&o(y,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},18:function(t,e,n){"use strict";e.__esModule=!0;var r=n(42),i=(function(t){return t&&t.__esModule?t:{default:t}})(r);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},197:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(111),i=n.n(r),a=n(12);n.d(e,"Pagination",(function(){return i.a}));var o={install:function(t){Object(a.a)(t,i.a)}};Object(a.c)(o),e.default=o},2: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)},20:function(t,e,n){t.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))},21:function(t,e,n){var r=n(5),i=n(2).document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},23:function(t,e,n){var r=n(0)(n(46),n(47),null,null,null);t.exports=r.exports},286:function(t,e,n){t.exports=n(197)},29: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)}}},3:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},32:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,n){var r=n(10),i=n(20),a=n(15),o=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),i)try{return o(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}},42:function(t,e,n){t.exports={default:n(43),__esModule:!0}},43:function(t,e,n){n(44);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},44:function(t,e,n){var r=n(16);r(r.S+r.F*!n(1),"Object",{defineProperty:n(4).f})},46:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8);e.default={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?this.newPack+"-"+this.icon:this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||r.a.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"==typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1))return"has-text-"+t[1]}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var t="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),e="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 e;case"is-large":return n;default:return t}},useIconComponent:function(){return r.a.defaultIconComponent}},methods:{addFAPrefix:function(t){return this.useIconComponent?t:"fa-"+t},getEquivalentIconOf:function(t){if(!this.both)return t;switch(t){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 t}}}}},47:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.customClass]})],1)},staticRenderFns:[]}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8: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},9: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}}})}));
|
|
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.Pagination = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
function _defineProperty(obj, key, value) {
|
|
9
|
+
if (key in obj) {
|
|
10
|
+
Object.defineProperty(obj, key, {
|
|
11
|
+
value: value,
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
obj[key] = value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var config = {
|
|
24
|
+
defaultContainerElement: null,
|
|
25
|
+
defaultIconPack: 'mdi',
|
|
26
|
+
defaultIconComponent: null,
|
|
27
|
+
defaultDialogConfirmText: null,
|
|
28
|
+
defaultDialogCancelText: null,
|
|
29
|
+
defaultSnackbarDuration: 3500,
|
|
30
|
+
defaultSnackbarPosition: null,
|
|
31
|
+
defaultToastDuration: 2000,
|
|
32
|
+
defaultToastPosition: null,
|
|
33
|
+
defaultNotificationDuration: 2000,
|
|
34
|
+
defaultNotificationPosition: null,
|
|
35
|
+
defaultTooltipType: 'is-primary',
|
|
36
|
+
defaultTooltipAnimated: false,
|
|
37
|
+
defaultTooltipDelay: 0,
|
|
38
|
+
defaultInputAutocomplete: 'on',
|
|
39
|
+
defaultDateFormatter: null,
|
|
40
|
+
defaultDateParser: null,
|
|
41
|
+
defaultDateCreator: null,
|
|
42
|
+
defaultDayNames: null,
|
|
43
|
+
defaultMonthNames: null,
|
|
44
|
+
defaultFirstDayOfWeek: null,
|
|
45
|
+
defaultUnselectableDaysOfWeek: null,
|
|
46
|
+
defaultTimeFormatter: null,
|
|
47
|
+
defaultTimeParser: null,
|
|
48
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
49
|
+
defaultModalScroll: null,
|
|
50
|
+
defaultDatepickerMobileNative: true,
|
|
51
|
+
defaultTimepickerMobileNative: true,
|
|
52
|
+
defaultNoticeQueue: true,
|
|
53
|
+
defaultInputHasCounter: true,
|
|
54
|
+
defaultTaginputHasCounter: true,
|
|
55
|
+
defaultUseHtml5Validation: true,
|
|
56
|
+
defaultDropdownMobileModal: true,
|
|
57
|
+
defaultFieldLabelPosition: null,
|
|
58
|
+
defaultDatepickerYearsRange: [-100, 3],
|
|
59
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
60
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
61
|
+
defaultDatepickerShowWeekNumber: false
|
|
62
|
+
};
|
|
63
|
+
var config$1 = config;
|
|
64
|
+
|
|
65
|
+
//
|
|
66
|
+
var script = {
|
|
67
|
+
name: 'BIcon',
|
|
68
|
+
props: {
|
|
69
|
+
type: [String, Object],
|
|
70
|
+
pack: String,
|
|
71
|
+
icon: String,
|
|
72
|
+
size: String,
|
|
73
|
+
customSize: String,
|
|
74
|
+
customClass: String,
|
|
75
|
+
both: Boolean // This is used internally to show both MDI and FA icon
|
|
76
|
+
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
/**
|
|
80
|
+
* Internal icon name based on the pack.
|
|
81
|
+
* If pack is 'fa', gets the equivalent FA icon name of the MDI,
|
|
82
|
+
* internal icons are always MDI.
|
|
83
|
+
*/
|
|
84
|
+
newIcon: function newIcon() {
|
|
85
|
+
return this.newPack === 'mdi' ? "".concat(this.newPack, "-").concat(this.icon) : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
|
|
86
|
+
},
|
|
87
|
+
newPack: function newPack() {
|
|
88
|
+
return this.pack || config$1.defaultIconPack;
|
|
89
|
+
},
|
|
90
|
+
newType: function newType() {
|
|
91
|
+
if (!this.type) return;
|
|
92
|
+
var splitType = [];
|
|
93
|
+
|
|
94
|
+
if (typeof this.type === 'string') {
|
|
95
|
+
splitType = this.type.split('-');
|
|
96
|
+
} else {
|
|
97
|
+
for (var key in this.type) {
|
|
98
|
+
if (this.type[key]) {
|
|
99
|
+
splitType = key.split('-');
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (splitType.length <= 1) return;
|
|
106
|
+
return "has-text-".concat(splitType[1]);
|
|
107
|
+
},
|
|
108
|
+
newCustomSize: function newCustomSize() {
|
|
109
|
+
return this.customSize || this.customSizeByPack;
|
|
110
|
+
},
|
|
111
|
+
customSizeByPack: function customSizeByPack() {
|
|
112
|
+
var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
|
|
113
|
+
var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
|
|
114
|
+
var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
|
|
115
|
+
|
|
116
|
+
switch (this.size) {
|
|
117
|
+
case 'is-small':
|
|
118
|
+
return;
|
|
119
|
+
|
|
120
|
+
case 'is-medium':
|
|
121
|
+
return mediumSize;
|
|
122
|
+
|
|
123
|
+
case 'is-large':
|
|
124
|
+
return largeSize;
|
|
125
|
+
|
|
126
|
+
default:
|
|
127
|
+
return defaultSize;
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
useIconComponent: function useIconComponent() {
|
|
131
|
+
return config$1.defaultIconComponent;
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
addFAPrefix: function addFAPrefix(value) {
|
|
136
|
+
if (this.useIconComponent) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return "fa-".concat(value);
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Equivalent FA icon name of the MDI.
|
|
145
|
+
*/
|
|
146
|
+
getEquivalentIconOf: function getEquivalentIconOf(value) {
|
|
147
|
+
// Only transform the class if the both prop is set to true
|
|
148
|
+
if (!this.both) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
switch (value) {
|
|
153
|
+
case 'check':
|
|
154
|
+
return 'check';
|
|
155
|
+
|
|
156
|
+
case 'information':
|
|
157
|
+
return 'info-circle';
|
|
158
|
+
|
|
159
|
+
case 'check-circle':
|
|
160
|
+
return 'check-circle';
|
|
161
|
+
|
|
162
|
+
case 'alert':
|
|
163
|
+
return 'exclamation-triangle';
|
|
164
|
+
|
|
165
|
+
case 'alert-circle':
|
|
166
|
+
return 'exclamation-circle';
|
|
167
|
+
|
|
168
|
+
case 'arrow-up':
|
|
169
|
+
return 'arrow-up';
|
|
170
|
+
|
|
171
|
+
case 'chevron-right':
|
|
172
|
+
return 'angle-right';
|
|
173
|
+
|
|
174
|
+
case 'chevron-left':
|
|
175
|
+
return 'angle-left';
|
|
176
|
+
|
|
177
|
+
case 'chevron-down':
|
|
178
|
+
return 'angle-down';
|
|
179
|
+
|
|
180
|
+
case 'eye':
|
|
181
|
+
return 'eye';
|
|
182
|
+
|
|
183
|
+
case 'eye-off':
|
|
184
|
+
return 'eye-slash';
|
|
185
|
+
|
|
186
|
+
case 'menu-down':
|
|
187
|
+
return 'caret-down';
|
|
188
|
+
|
|
189
|
+
case 'menu-up':
|
|
190
|
+
return 'caret-up';
|
|
191
|
+
|
|
192
|
+
default:
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
200
|
+
/* server only */
|
|
201
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
202
|
+
if (typeof shadowMode !== 'boolean') {
|
|
203
|
+
createInjectorSSR = createInjector;
|
|
204
|
+
createInjector = shadowMode;
|
|
205
|
+
shadowMode = false;
|
|
206
|
+
} // Vue.extend constructor export interop.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
210
|
+
|
|
211
|
+
if (template && template.render) {
|
|
212
|
+
options.render = template.render;
|
|
213
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
214
|
+
options._compiled = true; // functional template
|
|
215
|
+
|
|
216
|
+
if (isFunctionalTemplate) {
|
|
217
|
+
options.functional = true;
|
|
218
|
+
}
|
|
219
|
+
} // scopedId
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
if (scopeId) {
|
|
223
|
+
options._scopeId = scopeId;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
var hook;
|
|
227
|
+
|
|
228
|
+
if (moduleIdentifier) {
|
|
229
|
+
// server build
|
|
230
|
+
hook = function hook(context) {
|
|
231
|
+
// 2.3 injection
|
|
232
|
+
context = context || // cached call
|
|
233
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
234
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
235
|
+
// 2.2 with runInNewContext: true
|
|
236
|
+
|
|
237
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
238
|
+
context = __VUE_SSR_CONTEXT__;
|
|
239
|
+
} // inject component styles
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
if (style) {
|
|
243
|
+
style.call(this, createInjectorSSR(context));
|
|
244
|
+
} // register component module identifier for async chunk inference
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
if (context && context._registeredComponents) {
|
|
248
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
249
|
+
}
|
|
250
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
251
|
+
// never gets called
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
options._ssrRegister = hook;
|
|
255
|
+
} else if (style) {
|
|
256
|
+
hook = shadowMode ? function () {
|
|
257
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
258
|
+
} : function (context) {
|
|
259
|
+
style.call(this, createInjector(context));
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (hook) {
|
|
264
|
+
if (options.functional) {
|
|
265
|
+
// register for functional component in vue file
|
|
266
|
+
var originalRender = options.render;
|
|
267
|
+
|
|
268
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
269
|
+
hook.call(context);
|
|
270
|
+
return originalRender(h, context);
|
|
271
|
+
};
|
|
272
|
+
} else {
|
|
273
|
+
// inject component registration as beforeCreate hook
|
|
274
|
+
var existing = options.beforeCreate;
|
|
275
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return script;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
283
|
+
|
|
284
|
+
/* script */
|
|
285
|
+
const __vue_script__ = script;
|
|
286
|
+
|
|
287
|
+
/* template */
|
|
288
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"icon",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:"component",class:[_vm.customClass],attrs:{"icon":[_vm.newPack, _vm.newIcon],"size":_vm.newCustomSize}})],1)};
|
|
289
|
+
var __vue_staticRenderFns__ = [];
|
|
290
|
+
|
|
291
|
+
/* style */
|
|
292
|
+
const __vue_inject_styles__ = undefined;
|
|
293
|
+
/* scoped */
|
|
294
|
+
const __vue_scope_id__ = undefined;
|
|
295
|
+
/* module identifier */
|
|
296
|
+
const __vue_module_identifier__ = undefined;
|
|
297
|
+
/* functional template */
|
|
298
|
+
const __vue_is_functional_template__ = false;
|
|
299
|
+
/* style inject */
|
|
300
|
+
|
|
301
|
+
/* style inject SSR */
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var Icon = normalizeComponent_1(
|
|
306
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
307
|
+
__vue_inject_styles__,
|
|
308
|
+
__vue_script__,
|
|
309
|
+
__vue_scope_id__,
|
|
310
|
+
__vue_is_functional_template__,
|
|
311
|
+
__vue_module_identifier__,
|
|
312
|
+
undefined,
|
|
313
|
+
undefined
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
var script$1 = {
|
|
317
|
+
name: 'BPagination',
|
|
318
|
+
components: _defineProperty({}, Icon.name, Icon),
|
|
319
|
+
props: {
|
|
320
|
+
total: [Number, String],
|
|
321
|
+
perPage: {
|
|
322
|
+
type: [Number, String],
|
|
323
|
+
default: 20
|
|
324
|
+
},
|
|
325
|
+
current: {
|
|
326
|
+
type: [Number, String],
|
|
327
|
+
default: 1
|
|
328
|
+
},
|
|
329
|
+
rangeBefore: {
|
|
330
|
+
type: [Number, String],
|
|
331
|
+
default: 1
|
|
332
|
+
},
|
|
333
|
+
rangeAfter: {
|
|
334
|
+
type: [Number, String],
|
|
335
|
+
default: 1
|
|
336
|
+
},
|
|
337
|
+
size: String,
|
|
338
|
+
simple: Boolean,
|
|
339
|
+
rounded: Boolean,
|
|
340
|
+
order: String,
|
|
341
|
+
iconPack: String,
|
|
342
|
+
ariaNextLabel: String,
|
|
343
|
+
ariaPreviousLabel: String,
|
|
344
|
+
ariaPageLabel: String,
|
|
345
|
+
ariaCurrentLabel: String
|
|
346
|
+
},
|
|
347
|
+
computed: {
|
|
348
|
+
rootClasses: function rootClasses() {
|
|
349
|
+
return [this.order, this.size, {
|
|
350
|
+
'is-simple': this.simple,
|
|
351
|
+
'is-rounded': this.rounded
|
|
352
|
+
}];
|
|
353
|
+
},
|
|
354
|
+
beforeCurrent: function beforeCurrent() {
|
|
355
|
+
return parseInt(this.rangeBefore);
|
|
356
|
+
},
|
|
357
|
+
afterCurrent: function afterCurrent() {
|
|
358
|
+
return parseInt(this.rangeAfter);
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Total page size (count).
|
|
363
|
+
*/
|
|
364
|
+
pageCount: function pageCount() {
|
|
365
|
+
return Math.ceil(this.total / this.perPage);
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* First item of the page (count).
|
|
370
|
+
*/
|
|
371
|
+
firstItem: function firstItem() {
|
|
372
|
+
var firstItem = this.current * this.perPage - this.perPage + 1;
|
|
373
|
+
return firstItem >= 0 ? firstItem : 0;
|
|
374
|
+
},
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Check if previous button is available.
|
|
378
|
+
*/
|
|
379
|
+
hasPrev: function hasPrev() {
|
|
380
|
+
return this.current > 1;
|
|
381
|
+
},
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Check if first page button should be visible.
|
|
385
|
+
*/
|
|
386
|
+
hasFirst: function hasFirst() {
|
|
387
|
+
return this.current >= 2 + this.beforeCurrent;
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Check if first ellipsis should be visible.
|
|
392
|
+
*/
|
|
393
|
+
hasFirstEllipsis: function hasFirstEllipsis() {
|
|
394
|
+
return this.current >= this.beforeCurrent + 4;
|
|
395
|
+
},
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Check if last page button should be visible.
|
|
399
|
+
*/
|
|
400
|
+
hasLast: function hasLast() {
|
|
401
|
+
return this.current <= this.pageCount - (1 + this.afterCurrent);
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Check if last ellipsis should be visible.
|
|
406
|
+
*/
|
|
407
|
+
hasLastEllipsis: function hasLastEllipsis() {
|
|
408
|
+
return this.current < this.pageCount - (2 + this.afterCurrent);
|
|
409
|
+
},
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Check if next button is available.
|
|
413
|
+
*/
|
|
414
|
+
hasNext: function hasNext() {
|
|
415
|
+
return this.current < this.pageCount;
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Get near pages, 1 before and 1 after the current.
|
|
420
|
+
* Also add the click event to the array.
|
|
421
|
+
*/
|
|
422
|
+
pagesInRange: function pagesInRange() {
|
|
423
|
+
var _this = this;
|
|
424
|
+
|
|
425
|
+
if (this.simple) return;
|
|
426
|
+
var left = Math.max(1, this.current - this.beforeCurrent);
|
|
427
|
+
|
|
428
|
+
if (left - 1 === 2) {
|
|
429
|
+
left--; // Do not show the ellipsis if there is only one to hide
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
var right = Math.min(this.current + this.afterCurrent, this.pageCount);
|
|
433
|
+
|
|
434
|
+
if (this.pageCount - right === 2) {
|
|
435
|
+
right++; // Do not show the ellipsis if there is only one to hide
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
var pages = [];
|
|
439
|
+
|
|
440
|
+
var _loop = function _loop(i) {
|
|
441
|
+
pages.push({
|
|
442
|
+
number: i,
|
|
443
|
+
isCurrent: _this.current === i,
|
|
444
|
+
click: function click(event) {
|
|
445
|
+
if (_this.current === i) return;
|
|
446
|
+
|
|
447
|
+
_this.$emit('change', i);
|
|
448
|
+
|
|
449
|
+
_this.$emit('update:current', i); // Set focus on element to keep tab order
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
_this.$nextTick(function () {
|
|
453
|
+
return event.target.focus();
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
for (var i = left; i <= right; i++) {
|
|
460
|
+
_loop(i);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
return pages;
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
watch: {
|
|
467
|
+
/**
|
|
468
|
+
* If current page is trying to be greater than page count, set to last.
|
|
469
|
+
*/
|
|
470
|
+
pageCount: function pageCount(value) {
|
|
471
|
+
if (this.current > value) this.last();
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
methods: {
|
|
475
|
+
/**
|
|
476
|
+
* Previous button click listener.
|
|
477
|
+
*/
|
|
478
|
+
prev: function prev() {
|
|
479
|
+
if (!this.hasPrev) return;
|
|
480
|
+
this.$emit('change', this.current - 1);
|
|
481
|
+
this.$emit('update:current', this.current - 1);
|
|
482
|
+
},
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* First button click listener.
|
|
486
|
+
*/
|
|
487
|
+
first: function first() {
|
|
488
|
+
this.$emit('change', 1);
|
|
489
|
+
this.$emit('update:current', 1);
|
|
490
|
+
},
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Last button click listener.
|
|
494
|
+
*/
|
|
495
|
+
last: function last() {
|
|
496
|
+
this.$emit('change', this.pageCount);
|
|
497
|
+
this.$emit('update:current', this.pageCount);
|
|
498
|
+
},
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Next button click listener.
|
|
502
|
+
*/
|
|
503
|
+
next: function next() {
|
|
504
|
+
if (!this.hasNext) return;
|
|
505
|
+
this.$emit('change', this.current + 1);
|
|
506
|
+
this.$emit('update:current', this.current + 1);
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Get text for aria-label according to page number.
|
|
511
|
+
*/
|
|
512
|
+
getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
|
|
513
|
+
if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
|
|
514
|
+
return this.ariaPageLabel + ' ' + pageNumber + '.';
|
|
515
|
+
} else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
|
|
516
|
+
return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
return null;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
/* script */
|
|
525
|
+
const __vue_script__$1 = script$1;
|
|
526
|
+
|
|
527
|
+
/* template */
|
|
528
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"pagination",class:_vm.rootClasses},[_c('a',{staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":!_vm.hasPrev,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();_vm.prev($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-left","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_vm._v(" "),_c('a',{staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":!_vm.hasNext,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();_vm.next($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-right","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_vm._v(" "),(!_vm.simple)?_c('ul',{staticClass:"pagination-list"},[(_vm.hasFirst)?_c('li',[_c('a',{staticClass:"pagination-link",attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(1, false)},on:{"click":function($event){$event.preventDefault();_vm.first($event);}}},[_vm._v("\n 1\n ")])]):_vm._e(),_vm._v(" "),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._v(" "),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[_c('a',{staticClass:"pagination-link",class:{ 'is-current': page.isCurrent },attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(page.number, page.isCurrent),"aria-current":page.isCurrent},on:{"click":function($event){$event.preventDefault();page.click($event);}}},[_vm._v("\n "+_vm._s(page.number)+"\n ")])])}),_vm._v(" "),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._v(" "),(_vm.hasLast)?_c('li',[_c('a',{staticClass:"pagination-link",attrs:{"role":"button","href":"#","aria-label":_vm.getAriaPageLabel(_vm.pageCount, false)},on:{"click":function($event){$event.preventDefault();_vm.last($event);}}},[_vm._v("\n "+_vm._s(_vm.pageCount)+"\n ")])]):_vm._e()],2):_vm._e(),_vm._v(" "),(_vm.simple)?_c('small',{staticClass:"info"},[(_vm.perPage == 1)?[_vm._v("\n "+_vm._s(_vm.firstItem)+" / "+_vm._s(_vm.total)+"\n ")]:[_vm._v("\n "+_vm._s(_vm.firstItem)+"-"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+" / "+_vm._s(_vm.total)+"\n ")]],2):_vm._e()])};
|
|
529
|
+
var __vue_staticRenderFns__$1 = [];
|
|
530
|
+
|
|
531
|
+
/* style */
|
|
532
|
+
const __vue_inject_styles__$1 = undefined;
|
|
533
|
+
/* scoped */
|
|
534
|
+
const __vue_scope_id__$1 = undefined;
|
|
535
|
+
/* module identifier */
|
|
536
|
+
const __vue_module_identifier__$1 = undefined;
|
|
537
|
+
/* functional template */
|
|
538
|
+
const __vue_is_functional_template__$1 = false;
|
|
539
|
+
/* style inject */
|
|
540
|
+
|
|
541
|
+
/* style inject SSR */
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
var Pagination = normalizeComponent_1(
|
|
546
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
547
|
+
__vue_inject_styles__$1,
|
|
548
|
+
__vue_script__$1,
|
|
549
|
+
__vue_scope_id__$1,
|
|
550
|
+
__vue_is_functional_template__$1,
|
|
551
|
+
__vue_module_identifier__$1,
|
|
552
|
+
undefined,
|
|
553
|
+
undefined
|
|
554
|
+
);
|
|
555
|
+
|
|
556
|
+
var use = function use(plugin) {
|
|
557
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
558
|
+
window.Vue.use(plugin);
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
562
|
+
Vue.component(component.name, component);
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
var Plugin = {
|
|
566
|
+
install: function install(Vue) {
|
|
567
|
+
registerComponent(Vue, Pagination);
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
use(Plugin);
|
|
571
|
+
|
|
572
|
+
exports.Pagination = Pagination;
|
|
573
|
+
exports.default = Plugin;
|
|
574
|
+
|
|
575
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
576
|
+
|
|
577
|
+
}));
|
|
@@ -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).Pagination={})}(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 n=function(e,t,n,a,i,r,s,o,u,l){"boolean"!=typeof s&&(u=o,o=s,s=!1);var c,f="function"==typeof n?n.options:n;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),a&&(f._scopeId=a),r?(c=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,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},f._ssrRegister=c):t&&(c=s?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),c)if(f.functional){var d=f.render;f.render=function(e,t){return c.call(t),d(e,t)}}else{var h=f.beforeCreate;f.beforeCreate=h?[].concat(h,c):[c]}return n};var a,i,r,s=n({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||t.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 t.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);var o,u=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"pagination",class:e.rootClasses},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:!e.hasPrev,"aria-label":e.ariaPreviousLabel},on:{click:function(t){t.preventDefault(),e.prev(t)}}},[n("b-icon",{attrs:{icon:"chevron-left",pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:!e.hasNext,"aria-label":e.ariaNextLabel},on:{click:function(t){t.preventDefault(),e.next(t)}}},[n("b-icon",{attrs:{icon:"chevron-right",pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),e.simple?e._e():n("ul",{staticClass:"pagination-list"},[e.hasFirst?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":e.getAriaPageLabel(1,!1)},on:{click:function(t){t.preventDefault(),e.first(t)}}},[e._v("\n 1\n ")])]):e._e(),e._v(" "),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._v(" "),e._l(e.pagesInRange,function(t){return n("li",{key:t.number},[n("a",{staticClass:"pagination-link",class:{"is-current":t.isCurrent},attrs:{role:"button",href:"#","aria-label":e.getAriaPageLabel(t.number,t.isCurrent),"aria-current":t.isCurrent},on:{click:function(e){e.preventDefault(),t.click(e)}}},[e._v("\n "+e._s(t.number)+"\n ")])])}),e._v(" "),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._v(" "),e.hasLast?n("li",[n("a",{staticClass:"pagination-link",attrs:{role:"button",href:"#","aria-label":e.getAriaPageLabel(e.pageCount,!1)},on:{click:function(t){t.preventDefault(),e.last(t)}}},[e._v("\n "+e._s(e.pageCount)+"\n ")])]):e._e()],2),e._v(" "),e.simple?n("small",{staticClass:"info"},[1==e.perPage?[e._v("\n "+e._s(e.firstItem)+" / "+e._s(e.total)+"\n ")]:[e._v("\n "+e._s(e.firstItem)+"-"+e._s(Math.min(e.current*e.perPage,e.total))+" / "+e._s(e.total)+"\n ")]],2):e._e()])},staticRenderFns:[]},void 0,{name:"BPagination",components:(a={},i=s.name,r=s,i in a?Object.defineProperty(a,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[i]=r,a),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var e=this.current*this.perPage-this.perPage+1;return e>=0?e:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.current<this.pageCount-(2+this.afterCurrent)},hasNext:function(){return this.current<this.pageCount},pagesInRange:function(){var e=this;if(!this.simple){var t=Math.max(1,this.current-this.beforeCurrent);t-1==2&&t--;var n=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-n==2&&n++;for(var a=[],i=function(t){a.push({number:t,isCurrent:e.current===t,click:function(n){e.current!==t&&(e.$emit("change",t),e.$emit("update:current",t),e.$nextTick(function(){return n.target.focus()}))}})},r=t;r<=n;r++)i(r);return a}}},watch:{pageCount:function(e){this.current>e&&this.last()}},methods:{prev:function(){this.hasPrev&&(this.$emit("change",this.current-1),this.$emit("update:current",this.current-1))},first:function(){this.$emit("change",1),this.$emit("update:current",1)},last:function(){this.$emit("change",this.pageCount),this.$emit("update:current",this.pageCount)},next:function(){this.hasNext&&(this.$emit("change",this.current+1),this.$emit("update:current",this.current+1))},getAriaPageLabel:function(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."}}},void 0,!1,void 0,void 0,void 0),l={install:function(e){!function(e,t){e.component(t.name,t)}(e,u)}};o=l,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),e.Pagination=u,e.default=l,Object.defineProperty(e,"__esModule",{value:!0})});
|