vue-bootstrap-slider
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.1.1"></a> | ||
## [2.1.1](https://github.com/pimlie/vue-bootstrap-slider/compare/v2.1.0...v2.1.1) (2018-12-20) | ||
### Bug Fixes | ||
* force kebab-case event names ([51f1969](https://github.com/pimlie/vue-bootstrap-slider/commit/51f1969)) | ||
<a name="2.1.0"></a> | ||
@@ -7,0 +17,0 @@ # [2.1.0](https://github.com/pimlie/vue-bootstrap-slider/compare/v2.0.1...v2.1.0) (2018-12-18) |
@@ -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")),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 y(){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),y.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=s=a=void 0},y.flush=function(){return void 0===a?n:g(now())},y}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","slideStart","slideStop","change","slideEnabled","slideDisabled"].forEach(function(t){("change"===t||e._events[t])&&e.slider.on(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")),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="['’]",rsAstral="["+rsAstralRange+"]",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,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptLowerContr+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsUpperMisc+"+"+rsOptUpperContr+"(?="+[rsBreak,rsUpper+rsLowerMisc,"$"].join("|")+")",rsUpper+"?"+rsLowerMisc+"+"+rsOptLowerContr,rsUpper+"+"+rsOptUpperContr,rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboMarksRange+rsComboSymbolsRange+rsVarRange+"]"),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,r,t,s){var o=-1,i=e?e.length:0;for(s&&i&&(t=e[++o]);++o<i;)t=r(t,e[o],o,e);return t}function asciiToArray(e){return e.split("")}function asciiWords(e){return e.match(reAsciiWord)||[]}function basePropertyOf(e){return function(r){return null==e?void 0:e[r]}}var deburrLetter=basePropertyOf(deburredLetters);function hasUnicode(e){return reHasUnicode.test(e)}function hasUnicodeWord(e){return reHasUnicodeWord.test(e)}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function unicodeToArray(e){return e.match(reUnicode)||[]}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 baseSlice(e,r,t){var s=-1,o=e.length;r<0&&(r=-r>o?0:o+r),(t=t>o?o:t)<0&&(t+=o),o=r>t?0:t-r>>>0,r>>>=0;for(var i=Array(o);++s<o;)i[s]=e[s+r];return i}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var r=e+"";return"0"==r&&1/e==-INFINITY?"-0":r}function castSlice(e,r,t){var s=e.length;return t=void 0===t?s:t,!r&&t>=s?e:baseSlice(e,r,t)}function createCaseFirst(e){return function(r){var t=hasUnicode(r=toString(r))?stringToArray(r):void 0,s=t?t[0]:r.charAt(0),o=t?castSlice(t,1).join(""):r.slice(1);return s[e]()+o}}function createCompounder(e){return function(r){return arrayReduce(words(deburr(r).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)}var camelCase=createCompounder(function(e,r,t){return r=r.toLowerCase(),e+(t?capitalize(r):r)});function capitalize(e){return upperFirst(toString(e).toLowerCase())}function deburr(e){return(e=toString(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var upperFirst=createCaseFirst("toUpperCase");function words(e,r,t){return e=toString(e),void 0===(r=t?void 0:r)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(r)||[]}var lodash_camelcase=camelCase,INFINITY$1=1/0,symbolTag$1="[object Symbol]",reAsciiWord$1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reLatin$1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f\\ufe20-\\ufe23",rsComboSymbolsRange$1="\\u20d0-\\u20f0",rsDingbatRange$1="\\u2700-\\u27bf",rsLowerRange$1="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange$1="\\xac\\xb1\\xd7\\xf7",rsNonCharRange$1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange$1="\\u2000-\\u206f",rsSpaceRange$1=" \\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$1="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$1="\\ufe0e\\ufe0f",rsBreakRange$1=rsMathOpRange$1+rsNonCharRange$1+rsPunctuationRange$1+rsSpaceRange$1,rsApos$1="['’]",rsBreak$1="["+rsBreakRange$1+"]",rsCombo$1="["+rsComboMarksRange$1+rsComboSymbolsRange$1+"]",rsDigits$1="\\d+",rsDingbat$1="["+rsDingbatRange$1+"]",rsLower$1="["+rsLowerRange$1+"]",rsMisc$1="[^"+rsAstralRange$1+rsBreakRange$1+rsDigits$1+rsDingbatRange$1+rsLowerRange$1+rsUpperRange$1+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper$1="["+rsUpperRange$1+"]",rsZWJ$1="\\u200d",rsLowerMisc$1="(?:"+rsLower$1+"|"+rsMisc$1+")",rsUpperMisc$1="(?:"+rsUpper$1+"|"+rsMisc$1+")",rsOptLowerContr$1="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptUpperContr$1="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji$1="(?:"+[rsDingbat$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reApos$1=RegExp(rsApos$1,"g"),reComboMark$1=RegExp(rsCombo$1,"g"),reUnicodeWord$1=RegExp([rsUpper$1+"?"+rsLower$1+"+"+rsOptLowerContr$1+"(?="+[rsBreak$1,rsUpper$1,"$"].join("|")+")",rsUpperMisc$1+"+"+rsOptUpperContr$1+"(?="+[rsBreak$1,rsUpper$1+rsLowerMisc$1,"$"].join("|")+")",rsUpper$1+"?"+rsLowerMisc$1+"+"+rsOptLowerContr$1,rsUpper$1+"+"+rsOptUpperContr$1,rsDigits$1,rsEmoji$1].join("|"),"g"),reHasUnicodeWord$1=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,deburredLetters$1={"À":"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$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")();function arrayReduce$1(e,r,t,s){var o=-1,i=e?e.length:0;for(s&&i&&(t=e[++o]);++o<i;)t=r(t,e[o],o,e);return t}function asciiWords$1(e){return e.match(reAsciiWord$1)||[]}function basePropertyOf$1(e){return function(r){return null==e?void 0:e[r]}}var deburrLetter$1=basePropertyOf$1(deburredLetters$1);function hasUnicodeWord$1(e){return reHasUnicodeWord$1.test(e)}function unicodeWords$1(e){return e.match(reUnicodeWord$1)||[]}var objectProto$1=Object.prototype,objectToString$1=objectProto$1.toString,Symbol$1=root$1.Symbol,symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolToString$1=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isSymbol$1(e))return symbolToString$1?symbolToString$1.call(e):"";var r=e+"";return"0"==r&&1/e==-INFINITY$1?"-0":r}function createCompounder$1(e){return function(r){return arrayReduce$1(words$1(deburr$1(r).replace(reApos$1,"")),e,"")}}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 toString$1(e){return null==e?"":baseToString$1(e)}function deburr$1(e){return(e=toString$1(e))&&e.replace(reLatin$1,deburrLetter$1).replace(reComboMark$1,"")}var snakeCase=createCompounder$1(function(e,r,t){return e+(t?"_":"")+r.toLowerCase()});function words$1(e,r,t){return e=toString$1(e),void 0===(r=t?void 0:r)?hasUnicodeWord$1(e)?unicodeWords$1(e):asciiWords$1(e):e.match(r)||[]}var lodash_snakecase=snakeCase,FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag$2="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal$2="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$2="object"==typeof self&&self&&self.Object===Object&&self,root$2=freeGlobal$2||freeSelf$2||Function("return this")(),objectProto$2=Object.prototype,objectToString$2=objectProto$2.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root$2.Date.now()};function debounce(e,r,t){var s,o,i,n,a,u,l=0,f=!1,c=!1,d=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function b(r){var t=s,i=o;return s=o=void 0,l=r,n=e.apply(i,t)}function p(e){var t=e-u;return void 0===u||t>=r||t<0||c&&e-l>=i}function g(){var e=now();if(p(e))return h(e);a=setTimeout(g,function(e){var t=r-(e-u);return c?nativeMin(t,i-(e-l)):t}(e))}function h(e){return a=void 0,d&&s?b(e):(s=o=void 0,n)}function $(){var e=now(),t=p(e);if(s=arguments,o=this,u=e,t){if(void 0===a)return function(e){return l=e,a=setTimeout(g,r),f?b(e):n}(u);if(c)return a=setTimeout(g,r),b(u)}return void 0===a&&(a=setTimeout(g,r)),n}return r=toNumber(r)||0,isObject(t)&&(f=!!t.leading,i=(c="maxWait"in t)?nativeMax(toNumber(t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d),$.cancel=function(){void 0!==a&&clearTimeout(a),l=0,s=u=o=a=void 0},$.flush=function(){return void 0===a?n:h(now())},$}function throttle(e,r,t){var s=!0,o=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(t)&&(s="leading"in t?!!t.leading:s,o="trailing"in t?!!t.trailing:o),debounce(e,r,{leading:s,maxWait:r,trailing:o})}function isObject(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function isObjectLike$2(e){return!!e&&"object"==typeof e}function isSymbol$2(e){return"symbol"==typeof e||isObjectLike$2(e)&&objectToString$2.call(e)==symbolTag$2}function toNumber(e){if("number"==typeof e)return e;if(isSymbol$2(e))return NAN;if(isObject(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=isObject(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?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,r){this.slider&&e!==r&&(this.slider.setAttribute("min",e),this.refresh())},max:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("max",e),this.refresh())},step:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("step",e),this.refresh())},precision:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("precision",e),this.refresh())},orientation:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("orientation",e),this.refresh())},range:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("range",e),this.refresh())},selection:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("selection",e),this.refresh())},tooltip:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("tooltip",e),this.refresh())},tooltipSplit:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("tooltipSplit",e),this.refresh())},tooltipPosition:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("tooltipPosition",e),this.refresh())},handle:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("handle",e),this.refresh())},reversed:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("reversed",e),this.refresh())},rtl:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("rtl",e),this.refresh())},formatter:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("formatter",e),this.refresh())},naturalArrowKeys:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("naturalArrowKeys",e),this.refresh())},ticks:function(e,r){this.slider&&(this.slider.setAttribute("ticks",e),this.refresh())},ticksPositions:function(e,r){this.slider&&(this.slider.setAttribute("ticksPositions",e),this.refresh())},ticksLabels:function(e,r){this.slider&&(this.slider.setAttribute("ticksLabels",e),this.refresh())},ticksSnapBounds:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("ticksSnapBounds",e),this.refresh())},ticksTooltip:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("ticksTooltip",e),this.refresh())},scale:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("scale",e),this.refresh())},focus:function(e,r){this.slider&&e!==r&&(this.slider.setAttribute("focus",e),this.refresh())},labelledby:function(e,r){this.slider&&(this.slider.setAttribute("labelledby",e),this.refresh())},rangeHighlights:function(e,r){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 r in this.$props){if(this.$props.hasOwnProperty(r))e["rangeHighlights"===r?r:lodash_snakecase(r)]=this.$props[r]}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(r){("change"===r||e.$listeners[r])&&e.slider.on(lodash_camelcase(r),function(t){if(e.debounce>0){var s=(new Date).getTime();if(null!==e.lastEvent[r]&&s<=e.lastEvent[r]+e.debounce)return;e.lastEvent[r]=s}e.$emit(r,t),"change"===r&&e.$emit("input",t.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 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","slideStart","slideStop","change","slideEnabled","slideDisabled"].forEach(function(e){("change"===e||t._events[e])&&t.slider.on(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 Slider from"bootstrap-slider";import snakeCase from"lodash.snakecase";import throttle from"lodash.throttle";var 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="['’]",rsAstral="["+rsAstralRange+"]",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,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptLowerContr+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsUpperMisc+"+"+rsOptUpperContr+"(?="+[rsBreak,rsUpper+rsLowerMisc,"$"].join("|")+")",rsUpper+"?"+rsLowerMisc+"+"+rsOptLowerContr,rsUpper+"+"+rsOptUpperContr,rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboMarksRange+rsComboSymbolsRange+rsVarRange+"]"),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,s){var i=-1,o=e?e.length:0;for(s&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function asciiToArray(e){return e.split("")}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 hasUnicode(e){return reHasUnicode.test(e)}function hasUnicodeWord(e){return reHasUnicodeWord.test(e)}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function unicodeToArray(e){return e.match(reUnicode)||[]}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 baseSlice(e,t,r){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++s<i;)o[s]=e[s+t];return o}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 castSlice(e,t,r){var s=e.length;return r=void 0===r?s:r,!t&&r>=s?e:baseSlice(e,t,r)}function createCaseFirst(e){return function(t){var r=hasUnicode(t=toString(t))?stringToArray(t):void 0,s=r?r[0]:t.charAt(0),i=r?castSlice(r,1).join(""):t.slice(1);return s[e]()+i}}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)}var camelCase=createCompounder(function(e,t,r){return t=t.toLowerCase(),e+(r?capitalize(t):t)});function capitalize(e){return upperFirst(toString(e).toLowerCase())}function deburr(e){return(e=toString(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var upperFirst=createCaseFirst("toUpperCase");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_camelcase=camelCase,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: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: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(lodash_camelcase(t),function(r){if(e.debounce>0){var s=(new Date).getTime();if(null!==e.lastEvent[t]&&s<=e.lastEvent[t]+e.debounce)return;e.lastEvent[t]=s}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);export default VuePlugin; | ||
//# 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")):"function"==typeof define&&define.amd?define(["bootstrap-slider"],e):t.vueBootstrapSlider=e(t.Slider)}("undefined"!=typeof self?self:this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=1/0,r="[object Symbol]",n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\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",o="["+u+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",l="\\d+",d="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+u+l+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",b="[A-Z\\xc0-\\xd6\\xd8-\\xde]",y="(?:"+a+"|"+c+")",g="(?:"+b+"|"+c+")",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?"+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",h,p].join("|")+")[\\ufe0e\\ufe0f]?"+v+")*"),A="(?:"+[d,h,p].join("|")+")"+x,m=RegExp("['’]","g"),S=RegExp(f,"g"),E=RegExp([b+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[o,b,"$"].join("|")+")",g+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[o,b+y,"$"].join("|")+")",b+"?"+y+"+(?:['’](?:d|ll|m|re|s|t|ve))?",b+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",l,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 ]/,w="object"==typeof e&&e&&e.Object===Object&&e,O="object"==typeof self&&self&&self.Object===Object&&self,k=w||O||Function("return this")();var T,B=(T={"À":"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==T?void 0:T[t]});var N,L=Object.prototype.toString,$=k.Symbol,z=$?$.prototype:void 0,I=z?z.toString:void 0;function C(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&L.call(t)==r}(t))return I?I.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t){return null==t?"":C(t)}var Z=(N=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=U(t),void 0===(e=i?void 0:e)?function(t){return j.test(t)}(t)?function(t){return t.match(E)||[]}(t):function(t){return t.match(n)||[]}(t):t.match(e)||[]}(function(t){return(t=U(t))&&t.replace(s,B).replace(S,"")}(t).replace(m,"")),N,"")}),_="Expected a function",D=NaN,P="[object Symbol]",R=/^\s+|\s+$/g,V=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,F=/^0o[0-7]+$/i,G=parseInt,K="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,W=K||M||Function("return this")(),Y=Object.prototype.toString,J=Math.max,q=Math.min,Q=function(){return W.Date.now()};function X(t,e,i){var r,n,s,u,o,f,l=0,d=!1,a=!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||a&&t-l>=s}function b(){var t=Q();if(p(t))return y(t);o=setTimeout(b,function(t){var i=e-(t-f);return a?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=Q(),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),d?h(t):u}(f);if(a)return o=setTimeout(b,e),h(f)}return void 0===o&&(o=setTimeout(b,e)),u}return e=et(e)||0,tt(i)&&(d=!!i.leading,s=(a="maxWait"in i)?J(et(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(Q())},g}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function et(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Y.call(t)==P}(t))return D;if(tt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(R,"");var i=H.test(t);return i||F.test(t)?G(t.slice(2),i?2:8):V.test(t)?D:+t}var it={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:Z(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 tt(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),X(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","slideStart","slideStop","change","slideEnabled","slideDisabled"].forEach(function(e){("change"===e||t._events[e])&&t.slider.on(e,function(i){if(t.debounce>0){var r=(new Date).getTime();if(null!==t.lastEvent[e]&&r<=t.lastEvent[e]+t.debounce)return;t.lastEvent[e]=r}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"}})])}},rt={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",it))}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(rt),rt}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("bootstrap-slider")):"function"==typeof define&&define.amd?define(["bootstrap-slider"],e):t.vueBootstrapSlider=e(t.Slider)}("undefined"!=typeof self?self:this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=1/0,r="[object Symbol]",n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\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="[\\ud800-\\udfff]",o="["+s+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",d="\\d+",a="[\\u2700-\\u27bf]",c="[a-z\\xdf-\\xf6\\xf8-\\xff]",h="[^\\ud800-\\udfff"+s+d+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",p="\\ud83c[\\udffb-\\udfff]",b="[^\\ud800-\\udfff]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",g="[A-Z\\xc0-\\xd6\\xd8-\\xde]",v="(?:"+c+"|"+h+")",A="(?:"+g+"|"+h+")",m="(?:"+l+"|"+p+")"+"?",E="[\\ufe0e\\ufe0f]?"+m+("(?:\\u200d(?:"+[b,x,y].join("|")+")[\\ufe0e\\ufe0f]?"+m+")*"),j="(?:"+[a,x,y].join("|")+")"+E,S="(?:"+[b+l+"?",l,x,y,f].join("|")+")",O=RegExp("['’]","g"),w=RegExp(l,"g"),L=RegExp(p+"(?="+p+")|"+S+E,"g"),T=RegExp([g+"?"+c+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[o,g,"$"].join("|")+")",A+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[o,g+v,"$"].join("|")+")",g+"?"+v+"+(?:['’](?:d|ll|m|re|s|t|ve))?",g+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",d,j].join("|"),"g"),z=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),I=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,U="object"==typeof e&&e&&e.Object===Object&&e,k="object"==typeof self&&self&&self.Object===Object&&self,Z=U||k||Function("return this")();var N,C=(N={"À":"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==N?void 0:N[t]});function R(t){return z.test(t)}function $(t){return R(t)?function(t){return t.match(L)||[]}(t):function(t){return t.split("")}(t)}var B=Object.prototype.toString,D=Z.Symbol,V=D?D.prototype:void 0,_=V?V.toString:void 0;function G(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&B.call(t)==r}(t))return _?_.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}function H(t,e,i){var r=t.length;return i=void 0===i?r:i,!e&&i>=r?t:function(t,e,i){var r=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(i=i>n?n:i)<0&&(i+=n),n=e>i?0:i-e>>>0,e>>>=0;for(var u=Array(n);++r<n;)u[r]=t[r+e];return u}(t,e,i)}function P(t){return null==t?"":G(t)}var F,M=(F=function(t,e,i){return e=e.toLowerCase(),t+(i?K(P(e).toLowerCase()):e)},function(t){return function(t,e,i,r){var n=-1,u=t?t.length:0;for(r&&u&&(i=t[++n]);++n<u;)i=e(i,t[n],n,t);return i}(function(t,e,i){return t=P(t),void 0===(e=i?void 0:e)?function(t){return I.test(t)}(t)?function(t){return t.match(T)||[]}(t):function(t){return t.match(n)||[]}(t):t.match(e)||[]}(function(t){return(t=P(t))&&t.replace(u,C).replace(w,"")}(t).replace(O,"")),F,"")});var Y,K=(Y="toUpperCase",function(t){var e=R(t=P(t))?$(t):void 0,i=e?e[0]:t.charAt(0),r=e?H(e,1).join(""):t.slice(1);return i[Y]()+r});var W=M,J=1/0,q="[object Symbol]",Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tt="\\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",et="["+tt+"]",it="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",rt="\\d+",nt="[\\u2700-\\u27bf]",ut="[^\\ud800-\\udfff"+tt+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",ot="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lt="(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|"+ut+")",dt="(?:"+ot+"|"+ut+")",at="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",ct="[\\ufe0e\\ufe0f]?"+at+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",st,ft].join("|")+")[\\ufe0e\\ufe0f]?"+at+")*"),ht="(?:"+[nt,st,ft].join("|")+")"+ct,pt=RegExp("['’]","g"),bt=RegExp(it,"g"),xt=RegExp([ot+"?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[et,ot,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[et,ot+lt,"$"].join("|")+")",ot+"?"+lt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ot+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",rt,ht].join("|"),"g"),yt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gt="object"==typeof e&&e&&e.Object===Object&&e,vt="object"==typeof self&&self&&self.Object===Object&&self,At=gt||vt||Function("return this")();var mt=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"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"});var Et=Object.prototype.toString,jt=At.Symbol,St=jt?jt.prototype:void 0,Ot=St?St.toString:void 0;function wt(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Et.call(t)==q}(t))return Ot?Ot.call(t):"";var e=t+"";return"0"==e&&1/t==-J?"-0":e}function Lt(t){return null==t?"":wt(t)}var Tt=function(t){return function(e){return function(t,e,i,r){var n=-1,u=t?t.length:0;for(r&&u&&(i=t[++n]);++n<u;)i=e(i,t[n],n,t);return i}(function(t,e,i){return t=Lt(t),void 0===(e=i?void 0:e)?function(t){return yt.test(t)}(t)?function(t){return t.match(xt)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}(function(t){return(t=Lt(t))&&t.replace(X,mt).replace(bt,"")}(e).replace(pt,"")),t,"")}}(function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}),zt="Expected a function",It=NaN,Ut="[object Symbol]",kt=/^\s+|\s+$/g,Zt=/^[-+]0x[0-9a-f]+$/i,Nt=/^0b[01]+$/i,Ct=/^0o[0-7]+$/i,Rt=parseInt,$t="object"==typeof e&&e&&e.Object===Object&&e,Bt="object"==typeof self&&self&&self.Object===Object&&self,Dt=$t||Bt||Function("return this")(),Vt=Object.prototype.toString,_t=Math.max,Gt=Math.min,Ht=function(){return Dt.Date.now()};function Pt(t,e,i){var r,n,u,s,f,o,l=0,d=!1,a=!1,c=!0;if("function"!=typeof t)throw new TypeError(zt);function h(e){var i=r,u=n;return r=n=void 0,l=e,s=t.apply(u,i)}function p(t){var i=t-o;return void 0===o||i>=e||i<0||a&&t-l>=u}function b(){var t=Ht();if(p(t))return x(t);f=setTimeout(b,function(t){var i=e-(t-o);return a?Gt(i,u-(t-l)):i}(t))}function x(t){return f=void 0,c&&r?h(t):(r=n=void 0,s)}function y(){var t=Ht(),i=p(t);if(r=arguments,n=this,o=t,i){if(void 0===f)return function(t){return l=t,f=setTimeout(b,e),d?h(t):s}(o);if(a)return f=setTimeout(b,e),h(o)}return void 0===f&&(f=setTimeout(b,e)),s}return e=Mt(e)||0,Ft(i)&&(d=!!i.leading,u=(a="maxWait"in i)?_t(Mt(i.maxWait)||0,e):u,c="trailing"in i?!!i.trailing:c),y.cancel=function(){void 0!==f&&clearTimeout(f),l=0,r=o=n=f=void 0},y.flush=function(){return void 0===f?s:x(Ht())},y}function Ft(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Mt(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Vt.call(t)==Ut}(t))return It;if(Ft(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ft(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(kt,"");var i=Nt.test(t);return i||Ct.test(t)?Rt(t.slice(2),i?2:8):Zt.test(t)?It:+t}var Yt={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:Tt(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(zt);return Ft(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),Pt(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(e){("change"===e||t.$listeners[e])&&t.slider.on(W(e),function(i){if(t.debounce>0){var r=(new Date).getTime();if(null!==t.lastEvent[e]&&r<=t.lastEvent[e]+t.debounce)return;t.lastEvent[e]=r}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"}})])}},Kt={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",Yt))}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(Kt),Kt}); | ||
//# sourceMappingURL=vue-bootstrap-slider.js.map |
@@ -12,6 +12,8 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash.snakecase")); | ||
var _lodash = _interopRequireDefault(require("lodash.camelcase")); | ||
var _lodash2 = _interopRequireDefault(require("lodash.throttle")); | ||
var _lodash2 = _interopRequireDefault(require("lodash.snakecase")); | ||
var _lodash3 = _interopRequireDefault(require("lodash.throttle")); | ||
var _properties = _interopRequireDefault(require("./properties")); | ||
@@ -37,3 +39,3 @@ | ||
if (this.$props.hasOwnProperty(key)) { | ||
var propskey = key === 'rangeHighlights' ? key : (0, _lodash.default)(key); | ||
var propskey = key === 'rangeHighlights' ? key : (0, _lodash2.default)(key); | ||
props[propskey] = this.$props[key]; | ||
@@ -54,3 +56,3 @@ } | ||
methods: { | ||
refresh: (0, _lodash2.default)(function () { | ||
refresh: (0, _lodash3.default)(function () { | ||
this.slider.refresh(); | ||
@@ -68,7 +70,7 @@ | ||
var events = ['slide', 'slideStart', 'slideStop', 'change', 'slideEnabled', 'slideDisabled']; | ||
var events = ['slide', 'slide-start', 'slide-stop', 'change', 'slide-enabled', 'slide-disabled']; | ||
events.forEach(function (event) { | ||
// only bind the event if the event is bound to us | ||
if (event === 'change' || _this._events[event]) { | ||
_this.slider.on(event, function (value) { | ||
if (event === 'change' || _this.$listeners[event]) { | ||
_this.slider.on((0, _lodash.default)(event), function (value) { | ||
if (_this.debounce > 0) { | ||
@@ -75,0 +77,0 @@ var now = new Date().getTime(); |
import Slider from 'bootstrap-slider' | ||
import camelCase from 'lodash.camelcase' | ||
import snakeCase from 'lodash.snakecase' | ||
@@ -47,7 +48,7 @@ import throttle from 'lodash.throttle' | ||
bindEvents() { | ||
const events = ['slide', 'slideStart', 'slideStop', 'change', 'slideEnabled', 'slideDisabled'] | ||
const events = ['slide', 'slide-start', 'slide-stop', 'change', 'slide-enabled', 'slide-disabled'] | ||
events.forEach((event) => { | ||
// only bind the event if the event is bound to us | ||
if (event === 'change' || this._events[event]) { | ||
this.slider.on(event, (value) => { | ||
if (event === 'change' || this.$listeners[event]) { | ||
this.slider.on(camelCase(event), (value) => { | ||
if (this.debounce > 0) { | ||
@@ -54,0 +55,0 @@ const now = new Date().getTime() |
{ | ||
"name": "vue-bootstrap-slider", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Vue bindings for seiyria/bootstrap-slider", | ||
@@ -5,0 +5,0 @@ "author": "pimlie <pimlie@hotmail.com>", |
@@ -47,2 +47,5 @@ # Vue.js Bootstrap Slider | ||
> :exclamation: When listening to slider events, listen to the kebab-case'd event name and not the camelCase'd. E.g. listen for `@slide-start` and not for `@slideStart` | ||
## Example | ||
@@ -53,3 +56,3 @@ | ||
<div> | ||
<b-form-slider :value="value"></b-form-slider> | ||
<b-form-slider :value="value" @slide-start="slideStart" @slide-stop="slideStop"></b-form-slider> | ||
<p>Slider has value {{ value }}</p> | ||
@@ -65,2 +68,10 @@ </div> | ||
} | ||
}, | ||
methods: { | ||
slideStart () { | ||
console.log('slideStarted') | ||
}, | ||
slideStop () { | ||
console.log('slideStopped') | ||
} | ||
} | ||
@@ -67,0 +78,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
275201
979
99
7