vue-bootstrap-slider
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.1.3"></a> | ||
## [2.1.3](https://github.com/pimlie/vue-bootstrap-slider/compare/v2.1.2...v2.1.3) (2019-01-06) | ||
### Bug Fixes | ||
* implemented useCurrentValue for refresh method ([ef10ce7](https://github.com/pimlie/vue-bootstrap-slider/commit/ef10ce7)) | ||
<a name="2.1.2"></a> | ||
@@ -7,0 +17,0 @@ ## [2.1.2](https://github.com/pimlie/vue-bootstrap-slider/compare/v2.1.1...v2.1.2) (2018-12-21) |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Slider=_interopDefault(require("bootstrap-slider")),camelCase=_interopDefault(require("lodash.camelcase")),commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},INFINITY=1/0,symbolTag="[object Symbol]",reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f\\ufe20-\\ufe23",rsComboSymbolsRange="\\u20d0-\\u20f0",rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboMarksRange+rsComboSymbolsRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsLowerMisc="(?:"+rsLower+"|"+rsMisc+")",rsUpperMisc="(?:"+rsUpper+"|"+rsMisc+")",rsOptLowerContr="(?:"+rsApos+"(?:d|ll|m|re|s|t|ve))?",rsOptUpperContr="(?:"+rsApos+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptLowerContr+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsUpperMisc+"+"+rsOptUpperContr+"(?="+[rsBreak,rsUpper+rsLowerMisc,"$"].join("|")+")",rsUpper+"?"+rsLowerMisc+"+"+rsOptLowerContr,rsUpper+"+"+rsOptUpperContr,rsDigits,rsEmoji].join("|"),"g"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();function arrayReduce(e,t,r,i){var s=-1,o=e?e.length:0;for(i&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function asciiWords(e){return e.match(reAsciiWord)||[]}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}var deburrLetter=basePropertyOf(deburredLetters);function hasUnicodeWord(e){return reHasUnicodeWord.test(e)}function unicodeWords(e){return e.match(reUnicodeWord)||[]}var objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function deburr(e){return(e=toString(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var snakeCase=createCompounder(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function words(e,t,r){return e=toString(e),void 0===(t=r?void 0:t)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var lodash_snakecase=snakeCase,FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag$1="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf$1||Function("return this")(),objectProto$1=Object.prototype,objectToString$1=objectProto$1.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root$1.Date.now()};function debounce(e,t,r){var i,s,o,n,a,l,u=0,f=!1,d=!1,c=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function b(t){var r=i,o=s;return i=s=void 0,u=t,n=e.apply(o,r)}function h(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-u>=o}function p(){var e=now();if(h(e))return g(e);a=setTimeout(p,function(e){var r=t-(e-l);return d?nativeMin(r,o-(e-u)):r}(e))}function g(e){return a=void 0,c&&i?b(e):(i=s=void 0,n)}function m(){var e=now(),r=h(e);if(i=arguments,s=this,l=e,r){if(void 0===a)return function(e){return u=e,a=setTimeout(p,t),f?b(e):n}(l);if(d)return a=setTimeout(p,t),b(l)}return void 0===a&&(a=setTimeout(p,t)),n}return t=toNumber(t)||0,isObject(r)&&(f=!!r.leading,o=(d="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c),m.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=s=a=void 0},m.flush=function(){return void 0===a?n:g(now())},m}function throttle(e,t,r){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),debounce(e,t,{leading:i,maxWait:t,trailing:s})}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$1(e){return!!e&&"object"==typeof e}function isSymbol$1(e){return"symbol"==typeof e||isObjectLike$1(e)&&objectToString$1.call(e)==symbolTag$1}function toNumber(e){if("number"==typeof e)return e;if(isSymbol$1(e))return NAN;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_throttle=throttle,props={min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},watch={min:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("min",e),this.refresh())},max:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("max",e),this.refresh())},step:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("step",e),this.refresh())},precision:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("precision",e),this.refresh())},orientation:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("orientation",e),this.refresh())},range:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("range",e),this.refresh())},selection:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("selection",e),this.refresh())},tooltip:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltip",e),this.refresh())},tooltipSplit:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltipSplit",e),this.refresh())},tooltipPosition:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltipPosition",e),this.refresh())},handle:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("handle",e),this.refresh())},reversed:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("reversed",e),this.refresh())},rtl:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("rtl",e),this.refresh())},formatter:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("formatter",e),this.refresh())},naturalArrowKeys:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("naturalArrowKeys",e),this.refresh())},ticks:function(e,t){this.slider&&(this.slider.setAttribute("ticks",e),this.refresh())},ticksPositions:function(e,t){this.slider&&(this.slider.setAttribute("ticksPositions",e),this.refresh())},ticksLabels:function(e,t){this.slider&&(this.slider.setAttribute("ticksLabels",e),this.refresh())},ticksSnapBounds:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("ticksSnapBounds",e),this.refresh())},ticksTooltip:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("ticksTooltip",e),this.refresh())},scale:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("scale",e),this.refresh())},focus:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("focus",e),this.refresh())},labelledby:function(e,t){this.slider&&(this.slider.setAttribute("labelledby",e),this.refresh())},rangeHighlights:function(e,t){this.slider&&(this.slider.setAttribute("rangeHighlights",e),this.refresh())},disabled:function(e){e?this.slider.disable():this.slider.enable()},value:function(e){this.slider.setValue(e,this.triggerSlideEvent,this.triggerChangeEvent)}},bFormSlider={name:"FormSlider",props:props,data:function(){return{slider:null,lastEvent:{}}},watch:watch,mounted:function(){var e={};for(var t in this.$props){if(this.$props.hasOwnProperty(t))e["rangeHighlights"===t?t:lodash_snakecase(t)]=this.$props[t]}e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:lodash_throttle(function(){this.slider.refresh(),this.slider.getValue()!==this.value&&this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent),this.bindEvents()},10),bindEvents:function(){var e=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(t){("change"===t||e.$listeners[t])&&e.slider.on(camelCase(t),function(r){if(e.debounce>0){var i=(new Date).getTime();if(null!==e.lastEvent[t]&&i<=e.lastEvent[t]+e.debounce)return;e.lastEvent[t]=i}e.$emit(t,r),"change"===t&&e.$emit("input",r.newValue)})})}},render:function(e){return e("div",{staticClass:"d-inline-block"},[e("input",{ref:"input",attrs:{type:"text"}})])}},VuePlugin={install:function(e){e._vue_bootstrap_slider_installed||(e._vue_bootstrap_slider_installed=!0,e.component("bFormSlider",bFormSlider))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(VuePlugin),module.exports=VuePlugin; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var Slider=_interopDefault(require("bootstrap-slider")),camelCase=_interopDefault(require("lodash.camelcase")),commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},INFINITY=1/0,symbolTag="[object Symbol]",reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f\\ufe20-\\ufe23",rsComboSymbolsRange="\\u20d0-\\u20f0",rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboMarksRange+rsComboSymbolsRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsLowerMisc="(?:"+rsLower+"|"+rsMisc+")",rsUpperMisc="(?:"+rsUpper+"|"+rsMisc+")",rsOptLowerContr="(?:"+rsApos+"(?:d|ll|m|re|s|t|ve))?",rsOptUpperContr="(?:"+rsApos+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptLowerContr+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsUpperMisc+"+"+rsOptUpperContr+"(?="+[rsBreak,rsUpper+rsLowerMisc,"$"].join("|")+")",rsUpper+"?"+rsLowerMisc+"+"+rsOptLowerContr,rsUpper+"+"+rsOptUpperContr,rsDigits,rsEmoji].join("|"),"g"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();function arrayReduce(e,t,r,i){var s=-1,o=e?e.length:0;for(i&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function asciiWords(e){return e.match(reAsciiWord)||[]}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}var deburrLetter=basePropertyOf(deburredLetters);function hasUnicodeWord(e){return reHasUnicodeWord.test(e)}function unicodeWords(e){return e.match(reUnicodeWord)||[]}var objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function deburr(e){return(e=toString(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var snakeCase=createCompounder(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function words(e,t,r){return e=toString(e),void 0===(t=r?void 0:t)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}var lodash_snakecase=snakeCase,FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag$1="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal$1||freeSelf$1||Function("return this")(),objectProto$1=Object.prototype,objectToString$1=objectProto$1.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root$1.Date.now()};function debounce(e,t,r){var i,s,o,n,a,u,l=0,f=!1,d=!1,c=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function b(t){var r=i,o=s;return i=s=void 0,l=t,n=e.apply(o,r)}function p(e){var r=e-u;return void 0===u||r>=t||r<0||d&&e-l>=o}function h(){var e=now();if(p(e))return g(e);a=setTimeout(h,function(e){var r=t-(e-u);return d?nativeMin(r,o-(e-l)):r}(e))}function g(e){return a=void 0,c&&i?b(e):(i=s=void 0,n)}function m(){var e=now(),r=p(e);if(i=arguments,s=this,u=e,r){if(void 0===a)return function(e){return l=e,a=setTimeout(h,t),f?b(e):n}(u);if(d)return a=setTimeout(h,t),b(u)}return void 0===a&&(a=setTimeout(h,t)),n}return t=toNumber(t)||0,isObject(r)&&(f=!!r.leading,o=(d="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c),m.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=u=s=a=void 0},m.flush=function(){return void 0===a?n:g(now())},m}function throttle(e,t,r){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),debounce(e,t,{leading:i,maxWait:t,trailing:s})}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$1(e){return!!e&&"object"==typeof e}function isSymbol$1(e){return"symbol"==typeof e||isObjectLike$1(e)&&objectToString$1.call(e)==symbolTag$1}function toNumber(e){if("number"==typeof e)return e;if(isSymbol$1(e))return NAN;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_throttle=throttle,props={min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},watch={min:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("min",e),this.refresh())},max:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("max",e),this.refresh())},step:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("step",e),this.refresh())},precision:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("precision",e),this.refresh())},orientation:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("orientation",e),this.refresh())},range:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("range",e),this.refresh())},selection:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("selection",e),this.refresh())},tooltip:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltip",e),this.refresh())},tooltipSplit:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltipSplit",e),this.refresh())},tooltipPosition:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("tooltipPosition",e),this.refresh())},handle:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("handle",e),this.refresh())},reversed:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("reversed",e),this.refresh())},rtl:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("rtl",e),this.refresh())},formatter:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("formatter",e),this.refresh())},naturalArrowKeys:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("naturalArrowKeys",e),this.refresh())},ticks:function(e,t){this.slider&&(this.slider.setAttribute("ticks",e),this.refresh())},ticksPositions:function(e,t){this.slider&&(this.slider.setAttribute("ticksPositions",e),this.refresh())},ticksLabels:function(e,t){this.slider&&(this.slider.setAttribute("ticksLabels",e),this.refresh())},ticksSnapBounds:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("ticksSnapBounds",e),this.refresh())},ticksTooltip:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("ticksTooltip",e),this.refresh())},scale:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("scale",e),this.refresh())},focus:function(e,t){this.slider&&e!==t&&(this.slider.setAttribute("focus",e),this.refresh())},labelledby:function(e,t){this.slider&&(this.slider.setAttribute("labelledby",e),this.refresh())},rangeHighlights:function(e,t){this.slider&&(this.slider.setAttribute("rangeHighlights",e),this.refresh())},disabled:function(e){e?this.slider.disable():this.slider.enable()},value:function(e){this.slider.setValue(e,this.triggerSlideEvent,this.triggerChangeEvent)}},bFormSlider={name:"FormSlider",props:props,data:function(){return{slider:null,lastEvent:{}}},watch:watch,mounted:function(){var e={};for(var t in this.$props){if(this.$props.hasOwnProperty(t))e["rangeHighlights"===t?t:lodash_snakecase(t)]=this.$props[t]}e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:lodash_throttle(function(){this.slider.refresh({useCurrentValue:!0}),this.bindEvents()},10),bindEvents:function(){var e=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(t){("change"===t||e.$listeners[t])&&e.slider.on(camelCase(t),function(r){if(e.debounce>0){var i=(new Date).getTime();if(null!==e.lastEvent[t]&&i<=e.lastEvent[t]+e.debounce)return;e.lastEvent[t]=i}e.$emit(t,r),"change"===t&&e.$emit("input",r.newValue)})})}},render:function(e){return e("div",{staticClass:"d-inline-block"},[e("input",{ref:"input",attrs:{type:"text"}})])}},VuePlugin={install:function(e){e._vue_bootstrap_slider_installed||(e._vue_bootstrap_slider_installed=!0,e.component("bFormSlider",bFormSlider))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(VuePlugin),module.exports=VuePlugin; | ||
//# sourceMappingURL=vue-bootstrap-slider.common.js.map |
@@ -1,2 +0,2 @@ | ||
import Slider from"bootstrap-slider";import camelCase from"lodash.camelcase";import snakeCase from"lodash.snakecase";import throttle from"lodash.throttle";var props={min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},watch={min:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("min",t),this.refresh())},max:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("max",t),this.refresh())},step:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("step",t),this.refresh())},precision:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("precision",t),this.refresh())},orientation:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("orientation",t),this.refresh())},range:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("range",t),this.refresh())},selection:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("selection",t),this.refresh())},tooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltip",t),this.refresh())},tooltipSplit:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipSplit",t),this.refresh())},tooltipPosition:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipPosition",t),this.refresh())},handle:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("handle",t),this.refresh())},reversed:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("reversed",t),this.refresh())},rtl:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("rtl",t),this.refresh())},formatter:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("formatter",t),this.refresh())},naturalArrowKeys:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("naturalArrowKeys",t),this.refresh())},ticks:function(t,e){this.slider&&(this.slider.setAttribute("ticks",t),this.refresh())},ticksPositions:function(t,e){this.slider&&(this.slider.setAttribute("ticksPositions",t),this.refresh())},ticksLabels:function(t,e){this.slider&&(this.slider.setAttribute("ticksLabels",t),this.refresh())},ticksSnapBounds:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksSnapBounds",t),this.refresh())},ticksTooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksTooltip",t),this.refresh())},scale:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("scale",t),this.refresh())},focus:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("focus",t),this.refresh())},labelledby:function(t,e){this.slider&&(this.slider.setAttribute("labelledby",t),this.refresh())},rangeHighlights:function(t,e){this.slider&&(this.slider.setAttribute("rangeHighlights",t),this.refresh())},disabled:function(t){t?this.slider.disable():this.slider.enable()},value:function(t){this.slider.setValue(t,this.triggerSlideEvent,this.triggerChangeEvent)}},bFormSlider={name:"FormSlider",props:props,data:function(){return{slider:null,lastEvent:{}}},watch:watch,mounted:function(){var t={};for(var e in this.$props){if(this.$props.hasOwnProperty(e))t["rangeHighlights"===e?e:snakeCase(e)]=this.$props[e]}t.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,t),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:throttle(function(){this.slider.refresh(),this.slider.getValue()!==this.value&&this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent),this.bindEvents()},10),bindEvents:function(){var t=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(e){("change"===e||t.$listeners[e])&&t.slider.on(camelCase(e),function(i){if(t.debounce>0){var s=(new Date).getTime();if(null!==t.lastEvent[e]&&s<=t.lastEvent[e]+t.debounce)return;t.lastEvent[e]=s}t.$emit(e,i),"change"===e&&t.$emit("input",i.newValue)})})}},render:function(t){return t("div",{staticClass:"d-inline-block"},[t("input",{ref:"input",attrs:{type:"text"}})])}},VuePlugin={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",bFormSlider))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(VuePlugin);export default VuePlugin; | ||
import t from"bootstrap-slider";import e from"lodash.camelcase";import i from"lodash.snakecase";import s from"lodash.throttle";var r={name:"FormSlider",props:{min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},data:function(){return{slider:null,lastEvent:{}}},watch:{min:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("min",t),this.refresh())},max:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("max",t),this.refresh())},step:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("step",t),this.refresh())},precision:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("precision",t),this.refresh())},orientation:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("orientation",t),this.refresh())},range:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("range",t),this.refresh())},selection:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("selection",t),this.refresh())},tooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltip",t),this.refresh())},tooltipSplit:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipSplit",t),this.refresh())},tooltipPosition:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipPosition",t),this.refresh())},handle:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("handle",t),this.refresh())},reversed:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("reversed",t),this.refresh())},rtl:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("rtl",t),this.refresh())},formatter:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("formatter",t),this.refresh())},naturalArrowKeys:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("naturalArrowKeys",t),this.refresh())},ticks:function(t,e){this.slider&&(this.slider.setAttribute("ticks",t),this.refresh())},ticksPositions:function(t,e){this.slider&&(this.slider.setAttribute("ticksPositions",t),this.refresh())},ticksLabels:function(t,e){this.slider&&(this.slider.setAttribute("ticksLabels",t),this.refresh())},ticksSnapBounds:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksSnapBounds",t),this.refresh())},ticksTooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksTooltip",t),this.refresh())},scale:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("scale",t),this.refresh())},focus:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("focus",t),this.refresh())},labelledby:function(t,e){this.slider&&(this.slider.setAttribute("labelledby",t),this.refresh())},rangeHighlights:function(t,e){this.slider&&(this.slider.setAttribute("rangeHighlights",t),this.refresh())},disabled:function(t){t?this.slider.disable():this.slider.enable()},value:function(t){this.slider.setValue(t,this.triggerSlideEvent,this.triggerChangeEvent)}},mounted:function(){var e={};for(var s in this.$props){if(this.$props.hasOwnProperty(s))e["rangeHighlights"===s?s:i(s)]=this.$props[s]}e.enabled=!this.disabled,this.slider=new t(this.$refs.input,e),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:s(function(){this.slider.refresh({useCurrentValue:!0}),this.bindEvents()},10),bindEvents:function(){var t=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(i){("change"===i||t.$listeners[i])&&t.slider.on(e(i),function(e){if(t.debounce>0){var s=(new Date).getTime();if(null!==t.lastEvent[i]&&s<=t.lastEvent[i]+t.debounce)return;t.lastEvent[i]=s}t.$emit(i,e),"change"===i&&t.$emit("input",e.newValue)})})}},render:function(t){return t("div",{staticClass:"d-inline-block"},[t("input",{ref:"input",attrs:{type:"text"}})])}},n={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",r))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(n);export default n; | ||
//# sourceMappingURL=vue-bootstrap-slider.esm.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("bootstrap-slider"),require("lodash.camelcase")):"function"==typeof define&&define.amd?define(["bootstrap-slider","lodash.camelcase"],e):t.vueBootstrapSlider=e(t.Slider,t.camelCase)}("undefined"!=typeof self?self:this,function(t,e){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=1/0,n="[object Symbol]",s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="["+o+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",a="\\d+",d="[\\u2700-\\u27bf]",c="[a-z\\xdf-\\xf6\\xf8-\\xff]",h="[^\\ud800-\\udfff"+o+a+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",y="[A-Z\\xc0-\\xd6\\xd8-\\xde]",g="(?:"+c+"|"+h+")",v="(?:"+y+"|"+h+")",x="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",m="[\\ufe0e\\ufe0f]?"+x+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",p,b].join("|")+")[\\ufe0e\\ufe0f]?"+x+")*"),A="(?:"+[d,p,b].join("|")+")"+m,E=RegExp("['’]","g"),S=RegExp(l,"g"),w=RegExp([y+"?"+c+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[f,y,"$"].join("|")+")",v+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[f,y+g,"$"].join("|")+")",y+"?"+g+"+(?:['’](?:d|ll|m|re|s|t|ve))?",y+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",a,A].join("|"),"g"),j=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,O="object"==typeof i&&i&&i.Object===Object&&i,k="object"==typeof self&&self&&self.Object===Object&&self,T=O||k||Function("return this")();var B,N=(B={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==B?void 0:B[t]});var L,$=Object.prototype.toString,z=T.Symbol,C=z?z.prototype:void 0,I=C?C.toString:void 0;function U(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&$.call(t)==n}(t))return I?I.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}function Z(t){return null==t?"":U(t)}var P=(L=function(t,e,i){return t+(i?"_":"")+e.toLowerCase()},function(t){return function(t,e,i,r){var n=-1,s=t?t.length:0;for(r&&s&&(i=t[++n]);++n<s;)i=e(i,t[n],n,t);return i}(function(t,e,i){return t=Z(t),void 0===(e=i?void 0:e)?function(t){return j.test(t)}(t)?function(t){return t.match(w)||[]}(t):function(t){return t.match(s)||[]}(t):t.match(e)||[]}(function(t){return(t=Z(t))&&t.replace(u,N).replace(S,"")}(t).replace(E,"")),L,"")}),_="Expected a function",D=NaN,R="[object Symbol]",V=/^\s+|\s+$/g,H=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,G=/^0o[0-7]+$/i,K=parseInt,M="object"==typeof i&&i&&i.Object===Object&&i,W="object"==typeof self&&self&&self.Object===Object&&self,Y=M||W||Function("return this")(),q=Object.prototype.toString,J=Math.max,Q=Math.min,X=function(){return Y.Date.now()};function tt(t,e,i){var r,n,s,u,o,f,l=0,a=!1,d=!1,c=!0;if("function"!=typeof t)throw new TypeError(_);function h(e){var i=r,s=n;return r=n=void 0,l=e,u=t.apply(s,i)}function p(t){var i=t-f;return void 0===f||i>=e||i<0||d&&t-l>=s}function b(){var t=X();if(p(t))return y(t);o=setTimeout(b,function(t){var i=e-(t-f);return d?Q(i,s-(t-l)):i}(t))}function y(t){return o=void 0,c&&r?h(t):(r=n=void 0,u)}function g(){var t=X(),i=p(t);if(r=arguments,n=this,f=t,i){if(void 0===o)return function(t){return l=t,o=setTimeout(b,e),a?h(t):u}(f);if(d)return o=setTimeout(b,e),h(f)}return void 0===o&&(o=setTimeout(b,e)),u}return e=it(e)||0,et(i)&&(a=!!i.leading,s=(d="maxWait"in i)?J(it(i.maxWait)||0,e):s,c="trailing"in i?!!i.trailing:c),g.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=f=n=o=void 0},g.flush=function(){return void 0===o?u:y(X())},g}function et(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function it(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&q.call(t)==R}(t))return D;if(et(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=et(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(V,"");var i=F.test(t);return i||G.test(t)?K(t.slice(2),i?2:8):H.test(t)?D:+t}var rt={name:"FormSlider",props:{min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},data:function(){return{slider:null,lastEvent:{}}},watch:{min:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("min",t),this.refresh())},max:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("max",t),this.refresh())},step:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("step",t),this.refresh())},precision:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("precision",t),this.refresh())},orientation:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("orientation",t),this.refresh())},range:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("range",t),this.refresh())},selection:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("selection",t),this.refresh())},tooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltip",t),this.refresh())},tooltipSplit:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipSplit",t),this.refresh())},tooltipPosition:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipPosition",t),this.refresh())},handle:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("handle",t),this.refresh())},reversed:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("reversed",t),this.refresh())},rtl:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("rtl",t),this.refresh())},formatter:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("formatter",t),this.refresh())},naturalArrowKeys:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("naturalArrowKeys",t),this.refresh())},ticks:function(t,e){this.slider&&(this.slider.setAttribute("ticks",t),this.refresh())},ticksPositions:function(t,e){this.slider&&(this.slider.setAttribute("ticksPositions",t),this.refresh())},ticksLabels:function(t,e){this.slider&&(this.slider.setAttribute("ticksLabels",t),this.refresh())},ticksSnapBounds:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksSnapBounds",t),this.refresh())},ticksTooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksTooltip",t),this.refresh())},scale:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("scale",t),this.refresh())},focus:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("focus",t),this.refresh())},labelledby:function(t,e){this.slider&&(this.slider.setAttribute("labelledby",t),this.refresh())},rangeHighlights:function(t,e){this.slider&&(this.slider.setAttribute("rangeHighlights",t),this.refresh())},disabled:function(t){t?this.slider.disable():this.slider.enable()},value:function(t){this.slider.setValue(t,this.triggerSlideEvent,this.triggerChangeEvent)}},mounted:function(){var e={};for(var i in this.$props){if(this.$props.hasOwnProperty(i))e["rangeHighlights"===i?i:P(i)]=this.$props[i]}e.enabled=!this.disabled,this.slider=new t(this.$refs.input,e),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(_);return et(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),tt(t,e,{leading:r,maxWait:e,trailing:n})}(function(){this.slider.refresh(),this.slider.getValue()!==this.value&&this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent),this.bindEvents()},10),bindEvents:function(){var t=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(i){("change"===i||t.$listeners[i])&&t.slider.on(e(i),function(e){if(t.debounce>0){var r=(new Date).getTime();if(null!==t.lastEvent[i]&&r<=t.lastEvent[i]+t.debounce)return;t.lastEvent[i]=r}t.$emit(i,e),"change"===i&&t.$emit("input",e.newValue)})})}},render:function(t){return t("div",{staticClass:"d-inline-block"},[t("input",{ref:"input",attrs:{type:"text"}})])}},nt={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",rt))}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(nt),nt}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("bootstrap-slider"),require("lodash.camelcase")):"function"==typeof define&&define.amd?define(["bootstrap-slider","lodash.camelcase"],e):(t=t||self).vueBootstrapSlider=e(t.Slider,t.camelCase)}(this,function(t,e){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=1/0,n="[object Symbol]",s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="["+o+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",a="\\d+",d="[\\u2700-\\u27bf]",c="[a-z\\xdf-\\xf6\\xf8-\\xff]",h="[^\\ud800-\\udfff"+o+a+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",y="[A-Z\\xc0-\\xd6\\xd8-\\xde]",g="(?:"+c+"|"+h+")",v="(?:"+y+"|"+h+")",x="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",m="[\\ufe0e\\ufe0f]?"+x+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",p,b].join("|")+")[\\ufe0e\\ufe0f]?"+x+")*"),A="(?:"+[d,p,b].join("|")+")"+m,S=RegExp("['’]","g"),E=RegExp(l,"g"),w=RegExp([y+"?"+c+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[f,y,"$"].join("|")+")",v+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[f,y+g,"$"].join("|")+")",y+"?"+g+"+(?:['’](?:d|ll|m|re|s|t|ve))?",y+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",a,A].join("|"),"g"),j=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,O="object"==typeof i&&i&&i.Object===Object&&i,k="object"==typeof self&&self&&self.Object===Object&&self,T=O||k||Function("return this")();var B,N=(B={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==B?void 0:B[t]});var L,$=Object.prototype.toString,z=T.Symbol,C=z?z.prototype:void 0,I=C?C.toString:void 0;function U(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&$.call(t)==n}(t))return I?I.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}function Z(t){return null==t?"":U(t)}var P=(L=function(t,e,i){return t+(i?"_":"")+e.toLowerCase()},function(t){return function(t,e,i,r){var n=-1,s=t?t.length:0;for(r&&s&&(i=t[++n]);++n<s;)i=e(i,t[n],n,t);return i}(function(t,e,i){return t=Z(t),void 0===(e=i?void 0:e)?function(t){return j.test(t)}(t)?function(t){return t.match(w)||[]}(t):function(t){return t.match(s)||[]}(t):t.match(e)||[]}(function(t){return(t=Z(t))&&t.replace(u,N).replace(E,"")}(t).replace(S,"")),L,"")}),_="Expected a function",D=NaN,R="[object Symbol]",V=/^\s+|\s+$/g,H=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,G=/^0o[0-7]+$/i,K=parseInt,M="object"==typeof i&&i&&i.Object===Object&&i,W="object"==typeof self&&self&&self.Object===Object&&self,Y=M||W||Function("return this")(),q=Object.prototype.toString,J=Math.max,Q=Math.min,X=function(){return Y.Date.now()};function tt(t,e,i){var r,n,s,u,o,f,l=0,a=!1,d=!1,c=!0;if("function"!=typeof t)throw new TypeError(_);function h(e){var i=r,s=n;return r=n=void 0,l=e,u=t.apply(s,i)}function p(t){var i=t-f;return void 0===f||i>=e||i<0||d&&t-l>=s}function b(){var t=X();if(p(t))return y(t);o=setTimeout(b,function(t){var i=e-(t-f);return d?Q(i,s-(t-l)):i}(t))}function y(t){return o=void 0,c&&r?h(t):(r=n=void 0,u)}function g(){var t=X(),i=p(t);if(r=arguments,n=this,f=t,i){if(void 0===o)return function(t){return l=t,o=setTimeout(b,e),a?h(t):u}(f);if(d)return o=setTimeout(b,e),h(f)}return void 0===o&&(o=setTimeout(b,e)),u}return e=it(e)||0,et(i)&&(a=!!i.leading,s=(d="maxWait"in i)?J(it(i.maxWait)||0,e):s,c="trailing"in i?!!i.trailing:c),g.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=f=n=o=void 0},g.flush=function(){return void 0===o?u:y(X())},g}function et(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function it(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&q.call(t)==R}(t))return D;if(et(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=et(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(V,"");var i=F.test(t);return i||G.test(t)?K(t.slice(2),i?2:8):H.test(t)?D:+t}var rt={name:"FormSlider",props:{min:{type:Number,default:0},max:{type:Number,default:10},step:{type:Number,default:1},precision:{type:Number},orientation:{type:String,default:"horizontal"},value:{type:[Number,Array],default:function(){return null}},range:{type:Boolean,default:!1},selection:{type:String,default:"before"},tooltip:{type:String,default:"show"},tooltipSplit:{type:Boolean,default:!1},tooltipPosition:{type:String},handle:{type:String,default:"round"},reversed:{type:Boolean,default:!1},rtl:{type:[Boolean,String],default:"auto"},formatter:{type:Function},naturalArrowKeys:{type:Boolean,default:!1},ticks:{type:Array,default:function(){return[]}},ticksPositions:{type:Array,default:function(){return[]}},ticksLabels:{type:Array,default:function(){return[]}},ticksSnapBounds:{type:Number,default:0},ticksTooltip:{type:Boolean,default:!1},scale:{type:String,default:"linear"},focus:{type:Boolean,default:!1},labelledby:{type:[String,Array],default:function(){return null}},rangeHighlights:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},triggerSlideEvent:{type:Boolean,default:!1},triggerChangeEvent:{type:Boolean,default:!1},debounce:{type:Number,default:0}},data:function(){return{slider:null,lastEvent:{}}},watch:{min:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("min",t),this.refresh())},max:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("max",t),this.refresh())},step:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("step",t),this.refresh())},precision:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("precision",t),this.refresh())},orientation:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("orientation",t),this.refresh())},range:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("range",t),this.refresh())},selection:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("selection",t),this.refresh())},tooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltip",t),this.refresh())},tooltipSplit:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipSplit",t),this.refresh())},tooltipPosition:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("tooltipPosition",t),this.refresh())},handle:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("handle",t),this.refresh())},reversed:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("reversed",t),this.refresh())},rtl:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("rtl",t),this.refresh())},formatter:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("formatter",t),this.refresh())},naturalArrowKeys:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("naturalArrowKeys",t),this.refresh())},ticks:function(t,e){this.slider&&(this.slider.setAttribute("ticks",t),this.refresh())},ticksPositions:function(t,e){this.slider&&(this.slider.setAttribute("ticksPositions",t),this.refresh())},ticksLabels:function(t,e){this.slider&&(this.slider.setAttribute("ticksLabels",t),this.refresh())},ticksSnapBounds:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksSnapBounds",t),this.refresh())},ticksTooltip:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("ticksTooltip",t),this.refresh())},scale:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("scale",t),this.refresh())},focus:function(t,e){this.slider&&t!==e&&(this.slider.setAttribute("focus",t),this.refresh())},labelledby:function(t,e){this.slider&&(this.slider.setAttribute("labelledby",t),this.refresh())},rangeHighlights:function(t,e){this.slider&&(this.slider.setAttribute("rangeHighlights",t),this.refresh())},disabled:function(t){t?this.slider.disable():this.slider.enable()},value:function(t){this.slider.setValue(t,this.triggerSlideEvent,this.triggerChangeEvent)}},mounted:function(){var e={};for(var i in this.$props){if(this.$props.hasOwnProperty(i))e["rangeHighlights"===i?i:P(i)]=this.$props[i]}e.enabled=!this.disabled,this.slider=new t(this.$refs.input,e),this.bindEvents()},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)},methods:{refresh:function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(_);return et(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),tt(t,e,{leading:r,maxWait:e,trailing:n})}(function(){this.slider.refresh({useCurrentValue:!0}),this.bindEvents()},10),bindEvents:function(){var t=this;["slide","slide-start","slide-stop","change","slide-enabled","slide-disabled"].forEach(function(i){("change"===i||t.$listeners[i])&&t.slider.on(e(i),function(e){if(t.debounce>0){var r=(new Date).getTime();if(null!==t.lastEvent[i]&&r<=t.lastEvent[i]+t.debounce)return;t.lastEvent[i]=r}t.$emit(i,e),"change"===i&&t.$emit("input",e.newValue)})})}},render:function(t){return t("div",{staticClass:"d-inline-block"},[t("input",{ref:"input",attrs:{type:"text"}})])}},nt={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",rt))}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(nt),nt}); | ||
//# sourceMappingURL=vue-bootstrap-slider.js.map |
@@ -55,9 +55,5 @@ "use strict"; | ||
refresh: (0, _lodash3.default)(function () { | ||
this.slider.refresh(); | ||
if (this.slider.getValue() !== this.value) { | ||
// a refresh copies options but not state, so set value again | ||
this.slider.setValue(this.value, this.triggerSlideEvent, this.triggerChangeEvent); | ||
} | ||
this.slider.refresh({ | ||
useCurrentValue: true | ||
}); | ||
this.bindEvents(); | ||
@@ -64,0 +60,0 @@ }, 10), |
@@ -40,7 +40,3 @@ import Slider from 'bootstrap-slider' | ||
refresh: throttle(function () { | ||
this.slider.refresh() | ||
if (this.slider.getValue() !== this.value) { | ||
// a refresh copies options but not state, so set value again | ||
this.slider.setValue(this.value, this.triggerSlideEvent, this.triggerChangeEvent) | ||
} | ||
this.slider.refresh({ useCurrentValue: true }) | ||
this.bindEvents() | ||
@@ -47,0 +43,0 @@ }, 10), |
{ | ||
"name": "vue-bootstrap-slider", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Vue bindings for seiyria/bootstrap-slider", | ||
@@ -35,3 +35,3 @@ "author": "pimlie <pimlie@hotmail.com>", | ||
"dependencies": { | ||
"bootstrap-slider": "^10.4.2", | ||
"bootstrap-slider": "^10.6.0", | ||
"lodash.camelcase": "^4.3.0", | ||
@@ -42,6 +42,6 @@ "lodash.snakecase": "^4.1.1", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"@babel/preset-env": "^7.2.3", | ||
"@nuxtjs/eslint-config": "^0.0.1", | ||
@@ -52,17 +52,17 @@ "babel-core": "^7.0.0-bridge.0", | ||
"babel-preset-env": "^1.7.0", | ||
"bootstrap": "^4.1.3", | ||
"eslint": "^5.10.0", | ||
"bootstrap": "^4.2.1", | ||
"eslint": "^5.12.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jest": "^22.1.2", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint-plugin-node": "^8.0.1", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"eslint-plugin-vue": "^5.1.0", | ||
"jest": "^23.6.0", | ||
"rollup": "^0.68.0", | ||
"rollup": "^1.0.2", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-terser": "^3.0.0", | ||
"rollup-plugin-terser": "^4.0.1", | ||
"rollup-plugin-vue": "^4.3.2", | ||
@@ -69,0 +69,0 @@ "rollup-watch": "^4.3.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176033
900
Updatedbootstrap-slider@^10.6.0