buefy 0.9.13 → 0.9.17
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 +1706 -1639
- package/README.md +1 -1
- package/dist/buefy.css +313 -1
- package/dist/buefy.esm.js +4431 -2331
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +4467 -2364
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +5 -5
- package/dist/cjs/button.js +3 -3
- package/dist/cjs/carousel.js +4 -4
- package/dist/cjs/{chunk-34949503.js → chunk-0d6f213f.js} +2 -2
- package/dist/cjs/{chunk-2c7de785.js → chunk-0e3108f5.js} +2 -2
- package/dist/cjs/{chunk-2911aa4b.js → chunk-1438658c.js} +14 -11
- package/dist/cjs/{chunk-114191ae.js → chunk-1f7e4ed3.js} +3 -3
- package/dist/cjs/{chunk-a11294f9.js → chunk-334bc809.js} +1 -1
- package/dist/cjs/chunk-45739695.js +332 -0
- package/dist/cjs/{chunk-c7b2aa4b.js → chunk-4bcfaf1c.js} +0 -0
- package/dist/cjs/{chunk-f5106717.js → chunk-5058e659.js} +3 -3
- package/dist/cjs/{chunk-61023b09.js → chunk-545e1c7f.js} +102 -16
- package/dist/cjs/{chunk-30670fac.js → chunk-54b0042d.js} +19 -3
- package/dist/cjs/{chunk-fe2f57ee.js → chunk-5ed8a75a.js} +2 -2
- package/dist/cjs/{chunk-d120e215.js → chunk-73f8eef8.js} +8 -2
- package/dist/cjs/{chunk-2062216d.js → chunk-7c11fdde.js} +5 -4
- package/dist/cjs/{chunk-3cc5d9a6.js → chunk-841c0e0f.js} +1 -1
- package/dist/cjs/{chunk-9e4cf4c5.js → chunk-87a116d9.js} +0 -0
- package/dist/cjs/{chunk-fefd7b77.js → chunk-a53b7aff.js} +0 -0
- package/dist/cjs/{chunk-d0f8ea39.js → chunk-c0a093d7.js} +7 -7
- package/dist/cjs/{chunk-7da0c017.js → chunk-c8abb3ed.js} +21 -21
- package/dist/cjs/{chunk-c6fbc7b4.js → chunk-d0df905a.js} +15 -2
- package/dist/cjs/{chunk-d54e40f6.js → chunk-e86d3eeb.js} +1 -8
- package/dist/cjs/{chunk-6cb902f8.js → chunk-e872f5e2.js} +1 -1
- package/dist/cjs/{chunk-2ae50815.js → chunk-f5285f14.js} +4 -4
- package/dist/cjs/clockpicker.js +8 -8
- package/dist/cjs/colorpicker.js +1752 -0
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +11 -11
- package/dist/cjs/datetimepicker.js +30 -14
- package/dist/cjs/dialog.js +5 -5
- package/dist/cjs/dropdown.js +3 -3
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/helpers.js +21 -1
- package/dist/cjs/icon.js +2 -2
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/index.js +27 -22
- package/dist/cjs/input.js +4 -4
- package/dist/cjs/loading.js +5 -5
- package/dist/cjs/menu.js +2 -2
- package/dist/cjs/message.js +4 -9
- package/dist/cjs/modal.js +5 -5
- package/dist/cjs/navbar.js +4 -1
- package/dist/cjs/notification.js +7 -7
- package/dist/cjs/numberinput.js +30 -21
- package/dist/cjs/pagination.js +7 -7
- package/dist/cjs/progress.js +3 -3
- package/dist/cjs/rate.js +2 -2
- package/dist/cjs/select.js +4 -4
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +3 -3
- package/dist/cjs/snackbar.js +5 -4
- package/dist/cjs/steps.js +5 -5
- package/dist/cjs/table.js +157 -146
- package/dist/cjs/tabs.js +7 -7
- package/dist/cjs/taginput.js +5 -5
- package/dist/cjs/timepicker.js +12 -12
- package/dist/cjs/toast.js +3 -3
- package/dist/cjs/tooltip.js +4 -4
- package/dist/cjs/upload.js +23 -9
- package/dist/components/autocomplete/index.js +24 -2
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +8 -2
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +8 -2
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +41 -22
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/colorpicker/index.js +4318 -0
- package/dist/components/colorpicker/index.min.js +2 -0
- package/dist/components/datepicker/index.js +48 -26
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +66 -28
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +8 -2
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +14 -1
- package/dist/components/dropdown/index.min.js +2 -2
- package/dist/components/field/index.js +21 -21
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +8 -2
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +8 -2
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +8 -2
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +11 -9
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +4 -1
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +13 -13
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +34 -19
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +107 -16
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +2 -2
- package/dist/components/progress/index.min.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +8 -2
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +8 -2
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.min.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +4 -10
- package/dist/components/snackbar/index.min.js +2 -2
- package/dist/components/steps/index.js +8 -2
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +253 -133
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +10 -4
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +24 -2
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +41 -22
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +2 -9
- package/dist/components/toast/index.min.js +2 -2
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/tooltip/index.min.js +2 -2
- package/dist/components/upload/index.js +20 -6
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +6 -6
- package/dist/esm/button.js +4 -4
- package/dist/esm/carousel.js +4 -4
- package/dist/esm/{chunk-18e8b067.js → chunk-1a4fde6d.js} +102 -17
- package/dist/esm/{chunk-3773c62d.js → chunk-22cf6667.js} +2 -2
- package/dist/esm/{chunk-ece062a7.js → chunk-262b3f82.js} +1 -1
- package/dist/esm/chunk-455cdeae.js +317 -0
- package/dist/esm/{chunk-d7f92d97.js → chunk-5435bd9a.js} +5 -4
- package/dist/esm/{chunk-e7c9b2cb.js → chunk-58cdbf2b.js} +2 -2
- package/dist/esm/{chunk-29ca0df8.js → chunk-60a03517.js} +1 -1
- package/dist/esm/{chunk-21fc0948.js → chunk-66cef090.js} +7 -7
- package/dist/esm/{chunk-71a547bc.js → chunk-690d5be4.js} +1 -1
- package/dist/esm/{chunk-83eb0d37.js → chunk-6adc5c5d.js} +3 -3
- package/dist/esm/{chunk-c9c58d0c.js → chunk-6d0f2352.js} +0 -0
- package/dist/esm/{chunk-8d0f95b8.js → chunk-6d96579e.js} +4 -4
- package/dist/esm/{chunk-22e9f916.js → chunk-6fb4a069.js} +14 -11
- package/dist/esm/{chunk-75a5af93.js → chunk-84c6dfd6.js} +0 -0
- package/dist/esm/{chunk-ae8ab23a.js → chunk-a628d44d.js} +3 -3
- package/dist/esm/{chunk-b0c0c6b0.js → chunk-c9c18b2f.js} +0 -0
- package/dist/esm/{chunk-9f7f7441.js → chunk-d35985c7.js} +0 -0
- package/dist/esm/{chunk-799e084d.js → chunk-d9232770.js} +1 -8
- package/dist/esm/{chunk-4b67a181.js → chunk-dbd43ef1.js} +15 -2
- package/dist/esm/{chunk-d92f0cd9.js → chunk-e044aa02.js} +8 -2
- package/dist/esm/{chunk-b07e3182.js → chunk-effa4d25.js} +21 -21
- package/dist/esm/{chunk-6019fd7a.js → chunk-f9eaeac4.js} +19 -3
- package/dist/esm/clockpicker.js +8 -8
- package/dist/esm/colorpicker.js +1748 -0
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +10 -10
- package/dist/esm/datetimepicker.js +29 -13
- package/dist/esm/dialog.js +4 -4
- package/dist/esm/dropdown.js +4 -4
- package/dist/esm/field.js +3 -3
- package/dist/esm/helpers.js +20 -2
- package/dist/esm/icon.js +3 -3
- package/dist/esm/image.js +3 -3
- package/dist/esm/index.js +94 -91
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +3 -3
- package/dist/esm/menu.js +2 -2
- package/dist/esm/message.js +3 -8
- package/dist/esm/modal.js +3 -3
- package/dist/esm/navbar.js +4 -1
- package/dist/esm/notification.js +5 -5
- package/dist/esm/numberinput.js +30 -21
- package/dist/esm/pagination.js +4 -4
- package/dist/esm/progress.js +3 -3
- package/dist/esm/rate.js +2 -2
- package/dist/esm/select.js +5 -5
- package/dist/esm/sidebar.js +1 -1
- package/dist/esm/slider.js +2 -2
- package/dist/esm/snackbar.js +4 -3
- package/dist/esm/steps.js +5 -5
- package/dist/esm/table.js +155 -144
- package/dist/esm/tabs.js +7 -7
- package/dist/esm/taginput.js +5 -5
- package/dist/esm/timepicker.js +11 -11
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +3 -3
- package/dist/esm/upload.js +21 -7
- package/dist/vetur/attributes.json +96 -0
- package/dist/vetur/tags.json +30 -1
- package/package.json +1 -1
- package/src/components/autocomplete/Autocomplete.vue +10 -0
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +1 -5
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +48 -48
- package/src/components/colorpicker/Colorpicker.spec.js +10 -0
- package/src/components/colorpicker/Colorpicker.vue +354 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.spec.js +14 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.vue +194 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.spec.js +22 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +366 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.spec.js +22 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +442 -0
- package/src/components/colorpicker/__snapshots__/ColorPickerHSLRepresentationSquare.spec.js.snap +12 -0
- package/src/components/colorpicker/__snapshots__/Colorpicker.spec.js.snap +32 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerAlphaSlider.spec.js.snap +11 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationTriangle.spec.js.snap +36 -0
- package/src/components/colorpicker/index.js +17 -0
- package/src/components/datepicker/DatepickerTableRow.spec.js +26 -0
- package/src/components/datepicker/DatepickerTableRow.vue +4 -5
- package/src/components/datetimepicker/Datetimepicker.vue +17 -1
- package/src/components/dropdown/Dropdown.vue +13 -0
- package/src/components/field/Field.vue +271 -271
- package/src/components/index.js +2 -0
- package/src/components/message/Message.vue +0 -5
- package/src/components/navbar/NavbarDropdown.vue +4 -0
- package/src/components/notification/Notification.vue +1 -1
- package/src/components/numberinput/Numberinput.spec.js +62 -0
- package/src/components/numberinput/Numberinput.vue +22 -15
- package/src/components/pagination/Pagination.vue +141 -51
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/snackbar/index.js +2 -1
- package/src/components/table/Table.spec.js +17 -3
- package/src/components/table/Table.vue +1436 -1409
- package/src/components/table/TablePagination.vue +10 -2
- package/src/components/tabs/Tabs.vue +2 -0
- package/src/components/timepicker/__snapshots__/Timepicker.spec.js.snap +18 -47
- package/src/components/tooltip/Tooltip.vue +2 -2
- package/src/components/upload/Upload.vue +19 -7
- package/src/scss/buefy.scss +1 -0
- package/src/scss/components/_colorpicker.scss +283 -0
- package/src/scss/components/_pagination.scss +38 -0
- package/src/utils/MessageMixin.js +2 -1
- package/src/utils/NoticeMixin.js +1 -5
- package/src/utils/color.js +441 -0
- package/src/utils/color.spec.js +52 -0
- package/src/utils/helpers.js +16 -0
- package/src/utils/icons.js +7 -1
- package/types/components.d.ts +7 -2
- package/types/helpers.d.ts +2 -1
- package/dist/cjs/chunk-92621ff7.js +0 -141
- package/dist/esm/chunk-2452e3d3.js +0 -134
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Numberinput={})}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach(function(e){n(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function o(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var a={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},r=function(t){return"object"===e(t)&&!Array.isArray(t)},u=function t(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var a=Object.getOwnPropertyNames(i).map(function(s){return n({},s,function(t){return r(i[t])&&null!==e&&e.hasOwnProperty(t)&&r(e[t])}(s)?t(e[s],i[s],o):i[s])}).reduce(function(t,e){return s({},t,{},e)},{});return s({},e,{},a)}return Object.assign(e,i)};var l={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=function(){var t=a&&a.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var d=function(t,e,n,i,s,o,a,r,u,l){"boolean"!=typeof a&&(u=r,r=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,r(t))}),c)if(d.functional){var f=d.render;d.render=function(t,e){return c.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return n};var f=d({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:[]},void 0,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t;return(t={mdi:l,fa:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c()},a&&a.customIconPacks&&(t=u(t,a.customIconPacks,!0)),t)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||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)){var n=o(t).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||a.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}},void 0,!1,void 0,void 0,void 0),p={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return a.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return a.defaultLocale}},statusIcon:{type:Boolean,default:function(){return a.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||a.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,e=0;e<3;e++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){var t=(this.parentField||{}).newType;if(t){if("string"==typeof t)return t;for(var e in t)if(t[e])return e}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},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 t=this.getElement();void 0!==t&&this.$nextTick(function(){t&&t.focus()})},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t),this.checkHtml5Validity()},getElement:function(){for(var t,e=this.$refs[this.$data._elementRef];(t=e)&&t._isVue;)e=e.$refs[e.$data._elementRef];return e},setInvalid:function(){var t=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",t)},setValidity:function(t,e){var n=this;this.$nextTick(function(){n.parentField&&(n.parentField.type||(n.parentField.newType=t),n.parentField.message||(n.parentField.newMessage=e))})},checkHtml5Validity:function(){if(this.useHtml5Validation){var t=this.getElement();if(void 0!==t)return t.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}};var h,m=d({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){return t.iconClick("icon-click",e)}}}):t._e(),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:n({},f.name,f),mixins:[p],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return a.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||a.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},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.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var t="";return this.icon&&(t+="has-icons-left "),this.hasIconRight&&(t+="has-icons-right"),t},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(t){this.newValue=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){t.focus()})},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick(function(){n.focus()})},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)},onInput:function(t){if(!this.lazy){var e=t.target.value;this.updateValue(e)}},onChange:function(t){if(this.lazy){var e=t.target.value;this.updateValue(e)}},updateValue:function(t){this.computedValue=t,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var g,b=d({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t._l(t.controlsLeft,function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])}),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.minStepNumber,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,placeholder:t.placeholder,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._l(t.controlsRight,function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])})],2)},staticRenderFns:[]},void 0,{name:"BNumberinput",components:(h={},n(h,f.name,f),n(h,m.name,m),h),mixins:[p],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:function(t){return["left","right","center"].indexOf(t)>=0}},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String},data:function(){return{newValue:this.value,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=this,n=Number(t)||null;""!==t&&null!=t||(n=void 0!==this.minNumber?this.minNumber:null),this.newValue=n,null===n?this.$emit("input",n):isNaN(n)||"-0"===n||this.$emit("input",Number(n)),this.$nextTick(function(){e.$refs.input&&e.$refs.input.checkHtml5Validity()})}},controlsLeft:function(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight:function(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},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},minStepNumber:function(){var t=void 0!==this.newMinStep?this.newMinStep:this.newStep;return"string"==typeof t?parseFloat(t):t},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var t=this.minStepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t},minStep:function(t){this.newMinStep=t}},methods:{isDisabled:function(t){return this.disabled||("plus"===t?this.disabledMax:this.disabledMin)},decrement:function(){if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){if(null===this.computedValue||void 0===this.computedValue){if(this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){if(null===this.computedValue||void 0===this.computedValue){if(this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"===t.type&&(e?this.increment():this.decrement())},longPressTick:function(t){var e=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout(function(){e.longPressTick(t)},this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,e){0!==t.button&&"touchstart"!==t.type||(clearTimeout(this._$intervalRef),this.longPressTick(e))},onStopLongPress:function(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}},void 0,!1,void 0,void 0,void 0),y={install:function(t){!function(t,e){t.component(e.name,e)}(t,b)}};g=y,"undefined"!=typeof window&&window.Vue&&window.Vue.use(g),t.BNumberinput=b,t.default=y,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Numberinput={})}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach(function(e){n(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function o(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var a={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},r=function(t){return"object"===e(t)&&!Array.isArray(t)},u=function t(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var a=Object.getOwnPropertyNames(i).map(function(s){return n({},s,function(t){return r(i[t])&&null!==e&&e.hasOwnProperty(t)&&r(e[t])}(s)?t(e[s],i[s],o):i[s])}).reduce(function(t,e){return s({},t,{},e)},{});return s({},e,{},a)}return Object.assign(e,i)};var l={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=function(){var t=a&&a.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var d=function(t,e,n,i,s,o,a,r,u,l){"boolean"!=typeof a&&(u=r,r=a,a=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=a?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,r(t))}),c)if(d.functional){var f=d.render;d.render=function(t,e){return c.call(e),f(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return n};var f=d({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:[]},void 0,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var t;return(t={mdi:l,fa:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c(),"fa-solid":c(),"fa-regular":c(),"fa-light":c(),"fa-thin":c(),"fa-duotone":c(),"fa-brands":c()},a&&a.customIconPacks&&(t=u(t,a.customIconPacks,!0)),t)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||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)){var n=o(t).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||a.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}},void 0,!1,void 0,void 0,void 0),p={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return a.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return a.defaultLocale}},statusIcon:{type:Boolean,default:function(){return a.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||a.defaultIconPack}},computed:{parentField:function(){for(var t=this.$parent,e=0;e<3;e++)t&&!t.$data._isField&&(t=t.$parent);return t},statusType:function(){var t=(this.parentField||{}).newType;if(t){if("string"==typeof t)return t;for(var e in t)if(t[e])return e}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},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 t=this.getElement();void 0!==t&&this.$nextTick(function(){t&&t.focus()})},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t),this.checkHtml5Validity()},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t),this.checkHtml5Validity()},getElement:function(){for(var t,e=this.$refs[this.$data._elementRef];(t=e)&&t._isVue;)e=e.$refs[e.$data._elementRef];return e},setInvalid:function(){var t=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",t)},setValidity:function(t,e){var n=this;this.$nextTick(function(){n.parentField&&(n.parentField.type||(n.parentField.newType=t),n.parentField.message||(n.parentField.newMessage=e))})},checkHtml5Validity:function(){if(this.useHtml5Validation){var t=this.getElement();if(void 0!==t)return t.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}};var h,m=d({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:t.rootClasses},["textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)):n("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,change:t.onChange,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)),t.icon?n("b-icon",{staticClass:"is-left",class:{"is-clickable":t.iconClickable},attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize},nativeOn:{click:function(e){return t.iconClick("icon-click",e)}}}):t._e(),!t.loading&&t.hasIconRight?n("b-icon",{staticClass:"is-right",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},attrs:{icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:""},nativeOn:{click:function(e){return t.rightIconClick(e)}}}):t._e(),t.maxlength&&t.hasCounter&&"number"!==t.type?n("small",{staticClass:"help counter",class:{"is-invisible":!t.isFocused}},[t._v(" "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+" ")]):t._e()],1)},staticRenderFns:[]},void 0,{name:"BInput",components:n({},f.name,f),mixins:[p],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return a.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||a.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}},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.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var t="";return this.icon&&(t+="has-icons-left "),this.hasIconRight&&(t+="has-icons-right"),t},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(t){this.newValue=t}},methods:{togglePasswordVisibility:function(){var t=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(function(){t.focus()})},iconClick:function(t,e){var n=this;this.$emit(t,e),this.$nextTick(function(){n.focus()})},rightIconClick:function(t){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",t)},onInput:function(t){if(!this.lazy){var e=t.target.value;this.updateValue(e)}},onChange:function(t){if(this.lazy){var e=t.target.value;this.updateValue(e)}},updateValue:function(t){this.computedValue=t,!this.isValid&&this.checkHtml5Validity()}}},void 0,!1,void 0,void 0,void 0);var g,b=d({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t._l(t.controlsLeft,function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])}),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.minStepNumber,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,placeholder:t.placeholder,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._l(t.controlsRight,function(e){return n("p",{key:e,class:["control",e],on:{mouseup:t.onStopLongPress,mouseleave:t.onStopLongPress,touchend:t.onStopLongPress,touchcancel:t.onStopLongPress}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.isDisabled(e),"aria-label":"plus"===e?t.ariaPlusLabel:t.ariaMinusLabel},on:{mousedown:function(n){!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},touchstart:function(n){n.preventDefault(),!t.isDisabled(e)&&t.onStartLongPress(n,"plus"===e)},click:function(n){!t.isDisabled(e)&&t.onControlClick(n,"plus"===e)}}},[n("b-icon",{attrs:{both:"",icon:e,pack:t.iconPack,size:t.iconSize}})],1)])})],2)},staticRenderFns:[]},void 0,{name:"BNumberinput",components:(h={},n(h,f.name,f),n(h,m.name,m),h),mixins:[p],inheritAttrs:!1,props:{value:Number,min:{type:[Number,String]},max:[Number,String],step:[Number,String],minStep:[Number,String],exponential:[Boolean,Number],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsAlignment:{type:String,default:"center",validator:function(t){return["left","right","center"].indexOf(t)>=0}},controlsRounded:{type:Boolean,default:!1},controlsPosition:String,placeholder:[Number,String],ariaMinusLabel:String,ariaPlusLabel:String},data:function(){return{newValue:this.value,newStep:this.step||1,newMinStep:this.minStep,timesPressed:1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=this,n=0===Number(t)?0:Number(t)||null;""!==t&&null!=t||(n=void 0!==this.minNumber?this.minNumber:null),this.newValue=n,null===n?this.$emit("input",n):isNaN(n)||"-0"===n||this.$emit("input",Number(n)),this.$nextTick(function(){e.$refs.input&&e.$refs.input.checkHtml5Validity()})}},controlsLeft:function(){return this.controls&&"right"!==this.controlsAlignment?"left"===this.controlsAlignment?["minus","plus"]:["minus"]:[]},controlsRight:function(){return this.controls&&"left"!==this.controlsAlignment?"right"===this.controlsAlignment?["minus","plus"]:["plus"]:[]},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},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"any"===this.newStep?1:"string"==typeof this.newStep?parseFloat(this.newStep):this.newStep},minStepNumber:function(){if("any"===this.newStep&&void 0===this.newMinStep)return"any";var t=void 0!==this.newMinStep?this.newMinStep:this.newStep;return"string"==typeof t?parseFloat(t):t},disabledMin:function(){return this.computedValue-this.stepNumber<this.minNumber},disabledMax:function(){return this.computedValue+this.stepNumber>this.maxNumber},stepDecimals:function(){var t=this.minStepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:{immediate:!0,handler:function(t){this.newValue=t}},step:function(t){this.newStep=t},minStep:function(t){this.newMinStep=t}},methods:{isDisabled:function(t){return this.disabled||("plus"===t?this.disabledMax:this.disabledMin)},decrement:function(){if(null===this.computedValue||void 0===this.computedValue){if(null!==this.maxNumber&&void 0!==this.maxNumber)return void(this.computedValue=this.maxNumber);this.computedValue=0}if(void 0===this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if(null===this.computedValue||void 0===this.computedValue){if(null!==this.minNumber&&void 0!==this.minNumber)return void(this.computedValue=this.minNumber);this.computedValue=0}if(void 0===this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"===t.type&&(e?this.increment():this.decrement())},longPressTick:function(t){var e=this;t?this.increment():this.decrement(),this._$intervalRef=setTimeout(function(){e.longPressTick(t)},this.exponential?250/(this.exponential*this.timesPressed++):250)},onStartLongPress:function(t,e){0!==t.button&&"touchstart"!==t.type||(clearTimeout(this._$intervalRef),this.longPressTick(e))},onStopLongPress:function(){this._$intervalRef&&(this.timesPressed=1,clearTimeout(this._$intervalRef),this._$intervalRef=null)}}},void 0,!1,void 0,void 0,void 0),y={install:function(t){!function(t,e){t.component(e.name,e)}(t,b)}};g=y,"undefined"!=typeof window&&window.Vue&&window.Vue.use(g),t.BNumberinput=b,t.default=y,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -377,7 +377,13 @@
|
|
|
377
377
|
far: faIcons(),
|
|
378
378
|
fad: faIcons(),
|
|
379
379
|
fab: faIcons(),
|
|
380
|
-
fal: faIcons()
|
|
380
|
+
fal: faIcons(),
|
|
381
|
+
'fa-solid': faIcons(),
|
|
382
|
+
'fa-regular': faIcons(),
|
|
383
|
+
'fa-light': faIcons(),
|
|
384
|
+
'fa-thin': faIcons(),
|
|
385
|
+
'fa-duotone': faIcons(),
|
|
386
|
+
'fa-brands': faIcons()
|
|
381
387
|
};
|
|
382
388
|
|
|
383
389
|
if (config && config.customIconPacks) {
|
|
@@ -516,6 +522,24 @@
|
|
|
516
522
|
undefined
|
|
517
523
|
);
|
|
518
524
|
|
|
525
|
+
function debounce (func, wait, immediate) {
|
|
526
|
+
var timeout;
|
|
527
|
+
return function () {
|
|
528
|
+
var context = this;
|
|
529
|
+
var args = arguments;
|
|
530
|
+
|
|
531
|
+
var later = function later() {
|
|
532
|
+
timeout = null;
|
|
533
|
+
if (!immediate) func.apply(context, args);
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
var callNow = immediate && !timeout;
|
|
537
|
+
clearTimeout(timeout);
|
|
538
|
+
timeout = setTimeout(later, wait);
|
|
539
|
+
if (callNow) func.apply(context, args);
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
519
543
|
var _components;
|
|
520
544
|
var script$2 = {
|
|
521
545
|
name: 'BPagination',
|
|
@@ -563,13 +587,25 @@
|
|
|
563
587
|
ariaNextLabel: String,
|
|
564
588
|
ariaPreviousLabel: String,
|
|
565
589
|
ariaPageLabel: String,
|
|
566
|
-
ariaCurrentLabel: String
|
|
590
|
+
ariaCurrentLabel: String,
|
|
591
|
+
pageInput: {
|
|
592
|
+
type: Boolean,
|
|
593
|
+
default: false
|
|
594
|
+
},
|
|
595
|
+
pageInputPosition: String,
|
|
596
|
+
debouncePageInput: [Number, String]
|
|
597
|
+
},
|
|
598
|
+
data: function data() {
|
|
599
|
+
return {
|
|
600
|
+
inputValue: this.current
|
|
601
|
+
};
|
|
567
602
|
},
|
|
568
603
|
computed: {
|
|
569
604
|
rootClasses: function rootClasses() {
|
|
570
|
-
return [this.order, this.size, {
|
|
605
|
+
return [this.order, this.size, this.pageInputPosition, {
|
|
571
606
|
'is-simple': this.simple,
|
|
572
|
-
'is-rounded': this.rounded
|
|
607
|
+
'is-rounded': this.rounded,
|
|
608
|
+
'has-input': this.pageInput
|
|
573
609
|
}];
|
|
574
610
|
},
|
|
575
611
|
beforeCurrent: function beforeCurrent() {
|
|
@@ -602,7 +638,7 @@
|
|
|
602
638
|
},
|
|
603
639
|
|
|
604
640
|
/**
|
|
605
|
-
|
|
641
|
+
* Check if first page button should be visible.
|
|
606
642
|
*/
|
|
607
643
|
hasFirst: function hasFirst() {
|
|
608
644
|
return this.current >= 2 + this.beforeCurrent;
|
|
@@ -669,6 +705,15 @@
|
|
|
669
705
|
*/
|
|
670
706
|
pageCount: function pageCount(value) {
|
|
671
707
|
if (this.current > value) this.last();
|
|
708
|
+
},
|
|
709
|
+
current: function current(value) {
|
|
710
|
+
this.inputValue = value;
|
|
711
|
+
},
|
|
712
|
+
debouncePageInput: {
|
|
713
|
+
handler: function handler(value) {
|
|
714
|
+
this.debounceHandlePageInput = debounce(this.handleOnInputPageChange, value);
|
|
715
|
+
},
|
|
716
|
+
immediate: true
|
|
672
717
|
}
|
|
673
718
|
},
|
|
674
719
|
methods: {
|
|
@@ -680,14 +725,14 @@
|
|
|
680
725
|
},
|
|
681
726
|
|
|
682
727
|
/**
|
|
683
|
-
|
|
728
|
+
* Next button click listener.
|
|
684
729
|
*/
|
|
685
730
|
next: function next(event) {
|
|
686
731
|
this.changePage(this.current + 1, event);
|
|
687
732
|
},
|
|
688
733
|
|
|
689
734
|
/**
|
|
690
|
-
|
|
735
|
+
* First button click listener.
|
|
691
736
|
*/
|
|
692
737
|
first: function first(event) {
|
|
693
738
|
this.changePage(1, event);
|
|
@@ -720,6 +765,9 @@
|
|
|
720
765
|
click: function click(event) {
|
|
721
766
|
return _this.changePage(num, event);
|
|
722
767
|
},
|
|
768
|
+
input: function input(event, inputNum) {
|
|
769
|
+
return _this.changePage(+inputNum, event);
|
|
770
|
+
},
|
|
723
771
|
disabled: options.disabled || false,
|
|
724
772
|
class: options.class || '',
|
|
725
773
|
'aria-label': options['aria-label'] || this.getAriaPageLabel(num, this.current === num)
|
|
@@ -737,6 +785,49 @@
|
|
|
737
785
|
}
|
|
738
786
|
|
|
739
787
|
return null;
|
|
788
|
+
},
|
|
789
|
+
handleOnInputPageChange: function handleOnInputPageChange(event) {
|
|
790
|
+
this.getPage(this.inputValue).input(event, this.inputValue);
|
|
791
|
+
},
|
|
792
|
+
handleOnInputDebounce: function handleOnInputDebounce(event) {
|
|
793
|
+
if (this.debouncePageInput) {
|
|
794
|
+
this.debounceHandlePageInput(event);
|
|
795
|
+
} else {
|
|
796
|
+
this.handleOnInputPageChange(event);
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
handleOnKeyPress: function handleOnKeyPress(event) {
|
|
800
|
+
// --- This is required to only allow numeric inputs for the page input - --- //
|
|
801
|
+
// --- size attribute does not work with input type number. --- //
|
|
802
|
+
var ASCIICode = event.which || event.keyCode;
|
|
803
|
+
|
|
804
|
+
if (ASCIICode >= 48 && ASCIICode <= 57) {
|
|
805
|
+
return true;
|
|
806
|
+
} else {
|
|
807
|
+
return event.preventDefault();
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
handleAllowableInputPageRange: function handleAllowableInputPageRange(event) {
|
|
811
|
+
if (+event.target.value > 0 && +event.target.value <= this.pageCount) {
|
|
812
|
+
this.handleOnInputValue(event);
|
|
813
|
+
} else {
|
|
814
|
+
// --- It is nessacery to set inputValue to 1 and then to '' so that the DOM- --- //
|
|
815
|
+
// --- will update the input component even when Backspace is used and then-
|
|
816
|
+
// --- 0 us entered. --- //
|
|
817
|
+
this.inputValue = 1;
|
|
818
|
+
this.inputValue = '';
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
handleOnInputValue: function handleOnInputValue(event) {
|
|
822
|
+
var inputValue = +event.target.value;
|
|
823
|
+
this.inputValue = inputValue;
|
|
824
|
+
|
|
825
|
+
if (Number.isInteger(this.inputValue)) {
|
|
826
|
+
this.handleOnInputDebounce(event);
|
|
827
|
+
} else {
|
|
828
|
+
// --- if NaN, then set inputValue back to current --- //
|
|
829
|
+
this.inputValue = this.current;
|
|
830
|
+
}
|
|
740
831
|
}
|
|
741
832
|
}
|
|
742
833
|
};
|
|
@@ -746,14 +837,14 @@
|
|
|
746
837
|
|
|
747
838
|
/* template */
|
|
748
839
|
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"pagination",class:_vm.rootClasses},[(_vm.$scopedSlots.previous)?_vm._t("previous",[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current - 1, {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
840
|
+
disabled: !_vm.hasPrev,
|
|
841
|
+
class: 'pagination-previous',
|
|
842
|
+
'aria-label': _vm.ariaPreviousLabel,
|
|
843
|
+
})}):_c('BPaginationButton',{staticClass:"pagination-previous",attrs:{"disabled":!_vm.hasPrev,"page":_vm.getPage(_vm.current - 1),"aria-label":_vm.ariaPreviousLabel}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),(_vm.$scopedSlots.next)?_vm._t("next",[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current + 1, {
|
|
844
|
+
disabled: !_vm.hasNext,
|
|
845
|
+
class: 'pagination-next',
|
|
846
|
+
'aria-label': _vm.ariaNextLabel,
|
|
847
|
+
})}):_c('BPaginationButton',{staticClass:"pagination-next",attrs:{"disabled":!_vm.hasNext,"page":_vm.getPage(_vm.current + 1),"aria-label":_vm.ariaNextLabel}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_c('div',{staticClass:"control pagination-input"},[(_vm.pageInput)?_c('input',{staticClass:"input",attrs:{"size":_vm.pageCount.toString().length,"maxlength":_vm.pageCount.toString().length},domProps:{"value":_vm.inputValue},on:{"input":_vm.handleAllowableInputPageRange,"keypress":_vm.handleOnKeyPress}}):_vm._e()]),(_vm.simple)?_c('small',{staticClass:"info"},[(_vm.perPage == 1)?[_vm._v(" "+_vm._s(_vm.firstItem)+" / "+_vm._s(_vm.total)+" ")]:[_vm._v(" "+_vm._s(_vm.firstItem)+"-"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+" / "+_vm._s(_vm.total)+" ")]],2):_c('ul',{staticClass:"pagination-list"},[(_vm.hasFirst)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(1)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(1)}})],2):_vm._e(),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":page}):_c('BPaginationButton',{attrs:{"page":page}})],2)}),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),(_vm.hasLast)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(_vm.pageCount)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(_vm.pageCount)}})],2):_vm._e()],2)],2)};
|
|
757
848
|
var __vue_staticRenderFns__$2 = [];
|
|
758
849
|
|
|
759
850
|
/* style */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
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";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function r(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};var s=function(e,t,n,a,i,r,o,s,u,l){"boolean"!=typeof o&&(u=s,s=o,o=!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=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(f.functional){var d=f.render;f.render=function(e,t){return c.call(t),d(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,c):[c]}return n};var u=s({render:function(){var e,t=this,n=t.$createElement;return(t._self._c||n)(t.tag,t._b({tag:"component",staticClass:"pagination-link",class:(e={"is-current":t.page.isCurrent},e[t.page.class]=!0,e),attrs:{role:"button",href:t.href,disabled:t.isDisabled,"aria-label":t.page["aria-label"],"aria-current":t.page.isCurrent},on:{click:function(e){return e.preventDefault(),t.page.click(e)}}},"component",t.$attrs,!1),[t._t("default",[t._v(t._s(t.page.number))])],2)},staticRenderFns:[]},void 0,{name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(e){return o.defaultLinkTags.indexOf(e)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}},void 0,!1,void 0,void 0,void 0),l=function(e){return"object"===t(e)&&!Array.isArray(e)},c=function e(t,a){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r||!Object.assign){var o=Object.getOwnPropertyNames(a).map(function(i){return n({},i,function(e){return l(a[e])&&null!==t&&t.hasOwnProperty(e)&&l(t[e])}(i)?e(t[i],a[i],r):a[i])}).reduce(function(e,t){return i({},e,{},t)},{});return i({},t,{},o)}return Object.assign(t,a)},f={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},d=function(){var e=o&&o.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var p,g=s({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],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var e;return(e={mdi:f,fa:d(),fas:d(),far:d(),fad:d(),fab:d(),fal:d()},o&&o.customIconPacks&&(e=c(e,o.customIconPacks,!0)),e)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||o.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)){var n=r(e).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||o.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},void 0,!1,void 0,void 0,void 0);var h,m=s({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"pagination",class:e.rootClasses},[e.$scopedSlots.previous?e._t("previous",[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!e.hasPrev,page:e.getPage(e.current-1),"aria-label":e.ariaPreviousLabel}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e.$scopedSlots.next?e._t("next",[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!e.hasNext,page:e.getPage(e.current+1),"aria-label":e.ariaNextLabel}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e.simple?n("small",{staticClass:"info"},[1==e.perPage?[e._v(" "+e._s(e.firstItem)+" / "+e._s(e.total)+" ")]:[e._v(" "+e._s(e.firstItem)+"-"+e._s(Math.min(e.current*e.perPage,e.total))+" / "+e._s(e.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[e.hasFirst?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(1)}):n("BPaginationButton",{attrs:{page:e.getPage(1)}})],2):e._e(),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._l(e.pagesInRange,function(t){return n("li",{key:t.number},[e.$scopedSlots.default?e._t("default",null,{page:t}):n("BPaginationButton",{attrs:{page:t}})],2)}),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e.hasLast?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(e.pageCount)}):n("BPaginationButton",{attrs:{page:e.getPage(e.pageCount)}})],2):e._e()],2)],2)},staticRenderFns:[]},void 0,{name:"BPagination",components:(p={},n(p,g.name,g),n(p,u.name,u),p),model:{prop:"current",event:"update:current"},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,iconPrev:{type:String,default:function(){return o.defaultIconPrev}},iconNext:{type:String,default:function(){return o.defaultIconNext}},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(){if(!this.simple){var e=Math.max(1,this.current-this.beforeCurrent);e-1==2&&e--;var t=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-t==2&&t++;for(var n=[],a=e;a<=t;a++)n.push(this.getPage(a));return n}}},watch:{pageCount:function(e){this.current>e&&this.last()}},methods:{prev:function(e){this.changePage(this.current-1,e)},next:function(e){this.changePage(this.current+1,e)},first:function(e){this.changePage(1,e)},last:function(e){this.changePage(this.pageCount,e)},changePage:function(e,t){this.current===e||e<1||e>this.pageCount||(this.$emit("update:current",e),this.$emit("change",e),t&&t.target&&this.$nextTick(function(){return t.target.focus()}))},getPage:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:e,isCurrent:this.current===e,click:function(n){return t.changePage(e,n)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(e,this.current===e)}},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),b=function(e,t){e.component(t.name,t)},P={install:function(e){b(e,m),b(e,u)}};h=P,"undefined"!=typeof window&&window.Vue&&window.Vue.use(h),e.BPagination=m,e.BPaginationButton=u,e.default=P,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
/*! Buefy v0.9.17 | 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";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function r(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};var u=function(e,t,n,a,i,r,o,u,s,l){"boolean"!=typeof o&&(s=u,u=o,o=!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,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},f._ssrRegister=c):t&&(c=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),c)if(f.functional){var d=f.render;f.render=function(e,t){return c.call(t),d(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,c):[c]}return n};var s=u({render:function(){var e,t=this,n=t.$createElement;return(t._self._c||n)(t.tag,t._b({tag:"component",staticClass:"pagination-link",class:(e={"is-current":t.page.isCurrent},e[t.page.class]=!0,e),attrs:{role:"button",href:t.href,disabled:t.isDisabled,"aria-label":t.page["aria-label"],"aria-current":t.page.isCurrent},on:{click:function(e){return e.preventDefault(),t.page.click(e)}}},"component",t.$attrs,!1),[t._t("default",[t._v(t._s(t.page.number))])],2)},staticRenderFns:[]},void 0,{name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(e){return o.defaultLinkTags.indexOf(e)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}},void 0,!1,void 0,void 0,void 0),l=function(e){return"object"===t(e)&&!Array.isArray(e)},c=function e(t,a){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r||!Object.assign){var o=Object.getOwnPropertyNames(a).map(function(i){return n({},i,function(e){return l(a[e])&&null!==t&&t.hasOwnProperty(e)&&l(t[e])}(i)?e(t[i],a[i],r):a[i])}).reduce(function(e,t){return i({},e,{},t)},{});return i({},t,{},o)}return Object.assign(t,a)},f={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},d=function(){var e=o&&o.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var p,g=u({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],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var e;return(e={mdi:f,fa:d(),fas:d(),far:d(),fad:d(),fab:d(),fal:d(),"fa-solid":d(),"fa-regular":d(),"fa-light":d(),"fa-thin":d(),"fa-duotone":d(),"fa-brands":d()},o&&o.customIconPacks&&(e=c(e,o.customIconPacks,!0)),e)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||o.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)){var n=r(e).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||o.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},void 0,!1,void 0,void 0,void 0);var h,b=u({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"pagination",class:e.rootClasses},[e.$scopedSlots.previous?e._t("previous",[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!e.hasPrev,page:e.getPage(e.current-1),"aria-label":e.ariaPreviousLabel}},[n("b-icon",{attrs:{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e.$scopedSlots.next?e._t("next",[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],{page:e.getPage(e.current+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!e.hasNext,page:e.getPage(e.current+1),"aria-label":e.ariaNextLabel}},[n("b-icon",{attrs:{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"}})],1),n("div",{staticClass:"control pagination-input"},[e.pageInput?n("input",{staticClass:"input",attrs:{size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},domProps:{value:e.inputValue},on:{input:e.handleAllowableInputPageRange,keypress:e.handleOnKeyPress}}):e._e()]),e.simple?n("small",{staticClass:"info"},[1==e.perPage?[e._v(" "+e._s(e.firstItem)+" / "+e._s(e.total)+" ")]:[e._v(" "+e._s(e.firstItem)+"-"+e._s(Math.min(e.current*e.perPage,e.total))+" / "+e._s(e.total)+" ")]],2):n("ul",{staticClass:"pagination-list"},[e.hasFirst?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(1)}):n("BPaginationButton",{attrs:{page:e.getPage(1)}})],2):e._e(),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._l(e.pagesInRange,function(t){return n("li",{key:t.number},[e.$scopedSlots.default?e._t("default",null,{page:t}):n("BPaginationButton",{attrs:{page:t}})],2)}),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e.hasLast?n("li",[e.$scopedSlots.default?e._t("default",null,{page:e.getPage(e.pageCount)}):n("BPaginationButton",{attrs:{page:e.getPage(e.pageCount)}})],2):e._e()],2)],2)},staticRenderFns:[]},void 0,{name:"BPagination",components:(p={},n(p,g.name,g),n(p,s.name,s),p),model:{prop:"current",event:"update:current"},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,iconPrev:{type:String,default:function(){return o.defaultIconPrev}},iconNext:{type:String,default:function(){return o.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data:function(){return{inputValue:this.current}},computed:{rootClasses:function(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},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(){if(!this.simple){var e=Math.max(1,this.current-this.beforeCurrent);e-1==2&&e--;var t=Math.min(this.current+this.afterCurrent,this.pageCount);this.pageCount-t==2&&t++;for(var n=[],a=e;a<=t;a++)n.push(this.getPage(a));return n}}},watch:{pageCount:function(e){this.current>e&&this.last()},current:function(e){this.inputValue=e},debouncePageInput:{handler:function(e){var t,n,a,i;this.debounceHandlePageInput=(t=this.handleOnInputPageChange,n=e,function(){var e=this,r=arguments,o=a&&!i;clearTimeout(i),i=setTimeout(function(){i=null,a||t.apply(e,r)},n),o&&t.apply(e,r)})},immediate:!0}},methods:{prev:function(e){this.changePage(this.current-1,e)},next:function(e){this.changePage(this.current+1,e)},first:function(e){this.changePage(1,e)},last:function(e){this.changePage(this.pageCount,e)},changePage:function(e,t){this.current===e||e<1||e>this.pageCount||(this.$emit("update:current",e),this.$emit("change",e),t&&t.target&&this.$nextTick(function(){return t.target.focus()}))},getPage:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:e,isCurrent:this.current===e,click:function(n){return t.changePage(e,n)},input:function(e,n){return t.changePage(+n,e)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(e,this.current===e)}},getAriaPageLabel:function(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."},handleOnInputPageChange:function(e){this.getPage(this.inputValue).input(e,this.inputValue)},handleOnInputDebounce:function(e){this.debouncePageInput?this.debounceHandlePageInput(e):this.handleOnInputPageChange(e)},handleOnKeyPress:function(e){var t=e.which||e.keyCode;return t>=48&&t<=57||e.preventDefault()},handleAllowableInputPageRange:function(e){+e.target.value>0&&+e.target.value<=this.pageCount?this.handleOnInputValue(e):(this.inputValue=1,this.inputValue="")},handleOnInputValue:function(e){var t=+e.target.value;this.inputValue=t,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(e):this.inputValue=this.current}}},void 0,!1,void 0,void 0,void 0),m=function(e,t){e.component(t.name,t)},P={install:function(e){m(e,b),m(e,s)}};h=P,"undefined"!=typeof window&&window.Vue&&window.Vue.use(h),e.BPagination=b,e.BPaginationButton=s,e.default=P,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
wrapperClasses: function wrapperClasses() {
|
|
274
274
|
return _defineProperty({
|
|
275
275
|
'is-not-native': !this.isNative
|
|
276
|
-
}, this.size, !this.isNative);
|
|
276
|
+
}, this.size, typeof this.size === 'string' && !this.isNative);
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
watch: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Progress={})}(this,function(e){"use strict";function t(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var a={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};function n(e,t){return(e&t)===t}var r=function(e,t,a,n,r,i,l,u,o,s){"boolean"!=typeof l&&(o=u,u=l,l=!1);var d,f="function"==typeof a?a.options:a;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,r&&(f.functional=!0)),n&&(f._scopeId=n),i?(d=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,o(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=d):t&&(d=l?function(){t.call(this,s(this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),d)if(f.functional){var c=f.render;f.render=function(e,t){return d.call(t),c(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,d):[d]}return a};var i=r({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"progress-wrapper",class:[e.wrapperClasses,{"is-squared":!e.rounded}]},[e.isNative?a("progress",{ref:"progress",staticClass:"progress",class:[e.newType,{"is-squared":!e.rounded}],attrs:{max:e.max},domProps:{value:e.value}},[e._v(e._s(e.newValue))]):e._t("bar"),e.isNative&&e.showValue?a("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"BProgress",mixins:[function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r={provide:function(){return t({},"b"+e,this)}};return n(a,1)&&(r.data=function(){return{childItems:[]}},r.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter(function(t){return t!==e})}},n(a,3)&&(r.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,a=0;!function n(r){var i=!0,l=!1,u=void 0;try{for(var o,s=function(){var r=o.value;if(r.tag===t){var i=e.find(function(e){return e.$vnode===r});i&&(i.index=a++)}else if(r.tag){var l=r.componentInstance?r.componentInstance.$scopedSlots.default?r.componentInstance.$scopedSlots.default():r.componentInstance.$children:r.children;Array.isArray(l)&&l.length>0&&n(l.map(function(e){return e.$vnode}))}},d=r[Symbol.iterator]();!(i=(o=d.next()).done);i=!0)s()}catch(e){l=!0,u=e}finally{try{i||null==d.return||d.return()}finally{if(l)throw u}}return!1}(this.$scopedSlots.default())}}},r.computed={sortedItems:function(){return this.childItems.slice().sort(function(e,t){return e.index-t.index})}})),r}("progress")],props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(e){return["raw","percent"].indexOf(e)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return a.defaultLocale}}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue:function(){return this.calculateValue(this.value)},isNative:function(){return void 0===this.$slots.bar},wrapperClasses:function(){return t({"is-not-native":!this.isNative},this.size
|
|
1
|
+
/*! Buefy v0.9.17 | 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).Progress={})}(this,function(e){"use strict";function t(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var a={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};function n(e,t){return(e&t)===t}var r=function(e,t,a,n,r,i,l,u,o,s){"boolean"!=typeof l&&(o=u,u=l,l=!1);var d,f="function"==typeof a?a.options:a;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,r&&(f.functional=!0)),n&&(f._scopeId=n),i?(d=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,o(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=d):t&&(d=l?function(){t.call(this,s(this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),d)if(f.functional){var c=f.render;f.render=function(e,t){return d.call(t),c(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,d):[d]}return a};var i=r({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"progress-wrapper",class:[e.wrapperClasses,{"is-squared":!e.rounded}]},[e.isNative?a("progress",{ref:"progress",staticClass:"progress",class:[e.newType,{"is-squared":!e.rounded}],attrs:{max:e.max},domProps:{value:e.value}},[e._v(e._s(e.newValue))]):e._t("bar"),e.isNative&&e.showValue?a("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()],2)},staticRenderFns:[]},void 0,{name:"BProgress",mixins:[function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r={provide:function(){return t({},"b"+e,this)}};return n(a,1)&&(r.data=function(){return{childItems:[]}},r.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter(function(t){return t!==e})}},n(a,3)&&(r.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,a=0;!function n(r){var i=!0,l=!1,u=void 0;try{for(var o,s=function(){var r=o.value;if(r.tag===t){var i=e.find(function(e){return e.$vnode===r});i&&(i.index=a++)}else if(r.tag){var l=r.componentInstance?r.componentInstance.$scopedSlots.default?r.componentInstance.$scopedSlots.default():r.componentInstance.$children:r.children;Array.isArray(l)&&l.length>0&&n(l.map(function(e){return e.$vnode}))}},d=r[Symbol.iterator]();!(i=(o=d.next()).done);i=!0)s()}catch(e){l=!0,u=e}finally{try{i||null==d.return||d.return()}finally{if(l)throw u}}return!1}(this.$scopedSlots.default())}}},r.computed={sortedItems:function(){return this.childItems.slice().sort(function(e,t){return e.index-t.index})}})),r}("progress")],props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(e){return["raw","percent"].indexOf(e)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:function(){return a.defaultLocale}}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue:function(){return this.calculateValue(this.value)},isNative:function(){return void 0===this.$slots.bar},wrapperClasses:function(){return t({"is-not-native":!this.isNative},this.size,"string"==typeof this.size&&!this.isNative)}},watch:{isIndeterminate:function(e){var t=this;this.$nextTick(function(){t.$refs.progress&&(e?t.$refs.progress.removeAttribute("value"):t.$refs.progress.setAttribute("value",t.value))})}},methods:{calculateValue:function(e){if(null!=e&&!isNaN(e)){var t=this.keepTrailingZeroes?this.precision:0,a=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:a}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:a}).format(e)}}}},void 0,!1,void 0,void 0,void 0);var l,u=r({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"progress-bar",class:e.newType,style:{width:e.barWidth},attrs:{role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.parent.max,"aria-valuemin":"0"}},[e.newShowValue?a("p",{staticClass:"progress-value"},[e._t("default",[e._v(e._s(e.newValue))])],2):e._e()])},staticRenderFns:[]},void 0,{name:"BProgressBar",mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!n(t,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return n(t,1)&&(a.data=function(){return{index:null}}),a}("progress")],props:{type:{type:[String,Object],default:void 0},value:{type:Number,default:void 0},showValue:{type:Boolean,default:!1}},computed:{newType:function(){return[this.parent.size,this.type||this.parent.type]},newShowValue:function(){return this.showValue||this.parent.showValue},newValue:function(){return this.parent.calculateValue(this.value)},barWidth:function(){return"".concat(100*this.value/this.parent.max,"%")}}},void 0,!1,void 0,void 0,void 0),o=function(e,t){e.component(t.name,t)},s={install:function(e){o(e,i),o(e,u)}};l=s,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l),e.BProgress=i,e.BProgressBar=u,e.default=s,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Radio={})}(this,function(e){"use strict";var t={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}};var n=function(e,t,n,i,a,o,s,d,r,u){"boolean"!=typeof s&&(r=d,d=s,s=!1);var l,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,a&&(c.functional=!0)),i&&(c._scopeId=i),o?(l=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(o)},c._ssrRegister=l):t&&(l=s?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),l)if(c.functional){var f=c.render;c.render=function(e,t){return l.call(t),f(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return n};var i=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-radio radio",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.$refs.label.click())}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(e){e.stopPropagation()},change:function(t){e.computedValue=e.nativeValue}}}),n("span",{staticClass:"check",class:e.type}),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BRadio",mixins:[t]},void 0,!1,void 0,void 0,void 0);var a,o=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:e.labelClass,attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.$refs.label.click())}}},[e._t("default"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){e.computedValue=e.nativeValue}}})],2)])},staticRenderFns:[]},void 0,{name:"BRadioButton",mixins:[t],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{isSelected:function(){return this.newValue===this.nativeValue},labelClass:function(){return[this.isSelected?this.type:null,this.size,{"is-selected":this.isSelected,"is-disabled":this.disabled,"is-focused":this.isFocused}]}}},void 0,!1,void 0,void 0,void 0),s=function(e,t){e.component(t.name,t)},d={install:function(e){s(e,i),s(e,o)}};a=d,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.BRadio=i,e.BRadioButton=o,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -226,7 +226,13 @@
|
|
|
226
226
|
far: faIcons(),
|
|
227
227
|
fad: faIcons(),
|
|
228
228
|
fab: faIcons(),
|
|
229
|
-
fal: faIcons()
|
|
229
|
+
fal: faIcons(),
|
|
230
|
+
'fa-solid': faIcons(),
|
|
231
|
+
'fa-regular': faIcons(),
|
|
232
|
+
'fa-light': faIcons(),
|
|
233
|
+
'fa-thin': faIcons(),
|
|
234
|
+
'fa-duotone': faIcons(),
|
|
235
|
+
'fa-brands': faIcons()
|
|
230
236
|
};
|
|
231
237
|
|
|
232
238
|
if (config && config.customIconPacks) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Rate={})}(this,function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function
|
|
1
|
+
/*! Buefy v0.9.17 | 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).Rate={})}(this,function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach(function(t){n(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function o(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator: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,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null},l=function(e){return"object"===t(e)&&!Array.isArray(e)},u=function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var r=Object.getOwnPropertyNames(i).map(function(a){return n({},a,function(e){return l(i[e])&&null!==t&&t.hasOwnProperty(e)&&l(t[e])}(a)?e(t[a],i[a],o):i[a])}).reduce(function(e,t){return a({},e,{},t)},{});return a({},t,{},r)}return Object.assign(t,i)},s={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=function(){var e=r&&r.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var f=function(e,t,n,i,a,o,r,l,u,s){"boolean"!=typeof r&&(u=l,l=r,r=!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,a&&(f.functional=!0)),i&&(f._scopeId=i),o?(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(o)},f._ssrRegister=c):t&&(c=r?function(){t.call(this,s(this.$root.$options.shadowRoot))}:function(e){t.call(this,l(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 d=f({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],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){var e;return(e={mdi:s,fa:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c(),"fa-solid":c(),"fa-regular":c(),"fa-light":c(),"fa-thin":c(),"fa-duotone":c(),"fa-brands":c()},r&&r.customIconPacks&&(e=u(e,r.customIconPacks,!0)),e)[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||r.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)){var n=o(e).slice(1);return"has-text-".concat(n.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||r.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},void 0,!1,void 0,void 0,void 0);var h,p=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rate",class:{"is-disabled":e.disabled,"is-spaced":e.spaced,"is-rtl":e.rtl}},[e._l(e.max,function(t,i){return n("div",{key:i,staticClass:"rate-item",class:e.rateClass(t),on:{mousemove:function(n){return e.previewRate(t,n)},mouseleave:e.resetNewValue,click:function(n){return n.preventDefault(),e.confirmValue(t)}}},[n("b-icon",{attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}),e.checkHalf(t)?n("b-icon",{staticClass:"is-half",style:e.halfStyle,attrs:{pack:e.iconPack,icon:e.icon,size:e.size}}):e._e()],1)}),e.showText||e.showScore||e.customText?n("div",{staticClass:"rate-text",class:e.size},[n("span",[e._v(e._s(e.showMe))]),e.customText&&!e.showText?n("span",[e._v(e._s(e.customText))]):e._e()]):e._e()],2)},staticRenderFns:[]},void 0,{name:"BRate",components:n({},d.name,d),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array,locale:{type:[String,Array],default:function(){return r.defaultLocale}}},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var e="";return this.showScore?e=0===(e=this.disabled?this.value:this.newValue)?"":new Intl.NumberFormat(this.locale).format(this.value):this.showText&&(e=this.texts[Math.ceil(this.newValue)-1]),e},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(e){this.newValue=e}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(e,t){this.disabled||(this.hoverValue=e,t.stopPropagation())},confirmValue:function(e){this.disabled||(this.newValue=e,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(e){return this.disabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value},rateClass:function(e){var t="";return e<=(0!==this.hoverValue?this.hoverValue:this.newValue)?t="set-on":this.disabled&&Math.ceil(this.value)===e&&(t="set-half"),t}}},void 0,!1,void 0,void 0,void 0),m={install:function(e){!function(e,t){e.component(t.name,t)}(e,p)}};h=m,"undefined"!=typeof window&&window.Vue&&window.Vue.use(h),e.BRate=p,e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.17 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -229,7 +229,13 @@
|
|
|
229
229
|
far: faIcons(),
|
|
230
230
|
fad: faIcons(),
|
|
231
231
|
fab: faIcons(),
|
|
232
|
-
fal: faIcons()
|
|
232
|
+
fal: faIcons(),
|
|
233
|
+
'fa-solid': faIcons(),
|
|
234
|
+
'fa-regular': faIcons(),
|
|
235
|
+
'fa-light': faIcons(),
|
|
236
|
+
'fa-thin': faIcons(),
|
|
237
|
+
'fa-duotone': faIcons(),
|
|
238
|
+
'fa-brands': faIcons()
|
|
233
239
|
};
|
|
234
240
|
|
|
235
241
|
if (config && config.customIconPacks) {
|