Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-bootstrap-slider

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-bootstrap-slider - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

tests/components/form-slider.spec.js

2

dist/vue-bootstrap-slider.common.js

@@ -1,2 +0,2 @@

"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var Slider=_interopDefault(require("bootstrap-slider")),props={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: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={watch:{min:function(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}},snakeCase=function(t){var e=/([A-Z])/g;return t.replace(e,function(t){return"_"+t.toLowerCase()})},bFormSlider={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"d-inline-block"},[i("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[props,watch],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,e={};for(var i in t.$props)t.$props.hasOwnProperty(i)&&(e[snakeCase(i)]=t.$props[i]);e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e),["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},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),exports.default=VuePlugin,exports.bFormSlider=bFormSlider;
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var Slider=_interopDefault(require("bootstrap-slider")),props={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: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={watch:{min:function(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}},snakeCase=function(t){return t.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()})},bFormSlider={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"d-inline-block"},[e("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[props,watch],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,e={};for(var i in t.$props){if(t.$props.hasOwnProperty(i))e["rangeHighlights"===i?i:snakeCase(i)]=t.$props[i]}e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e);["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},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),exports.default=VuePlugin,exports.bFormSlider=bFormSlider;
//# sourceMappingURL=vue-bootstrap-slider.common.js.map

@@ -1,2 +0,2 @@

import Slider from"bootstrap-slider";var props={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: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={watch:{min:function(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}},snakeCase=function(t){var e=/([A-Z])/g;return t.replace(e,function(t){return"_"+t.toLowerCase()})},bFormSlider={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"d-inline-block"},[i("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[props,watch],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,e={};for(var i in t.$props)t.$props.hasOwnProperty(i)&&(e[snakeCase(i)]=t.$props[i]);e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e),["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},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{bFormSlider};export default VuePlugin;
import Slider from"bootstrap-slider";var props={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: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={watch:{min:function(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}},snakeCase=function(t){return t.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()})},bFormSlider={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"d-inline-block"},[e("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[props,watch],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,e={};for(var i in t.$props){if(t.$props.hasOwnProperty(i))e["rangeHighlights"===i?i:snakeCase(i)]=t.$props[i]}e.enabled=!this.disabled,this.slider=new Slider(this.$refs.input,e);["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},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{bFormSlider};export default VuePlugin;
//# sourceMappingURL=vue-bootstrap-slider.esm.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("bootstrap-slider")):"function"==typeof define&&define.amd?define(["exports","bootstrap-slider"],e):e(t.vueBootstrapSlider=t.vueBootstrapSlider||{},t.Slider)}(this,function(t,e){"use strict";e=e&&"default"in e?e.default:e;var i=function(t){var e=/([A-Z])/g;return t.replace(e,function(t){return"_"+t.toLowerCase()})},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"d-inline-block"},[i("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[{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: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(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}}],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,s={};for(var r in t.$props)t.$props.hasOwnProperty(r)&&(s[i(r)]=t.$props[r]);s.enabled=!this.disabled,this.slider=new e(this.$refs.input,s),["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},r={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",s))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(r),t.default=r,t.bFormSlider=s,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("bootstrap-slider")):"function"==typeof define&&define.amd?define(["exports","bootstrap-slider"],e):e(t.vueBootstrapSlider=t.vueBootstrapSlider||{},t.Slider)}(this,function(t,e){"use strict";e=e&&"default"in e?e.default:e;var i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"d-inline-block"},[e("input",{ref:"input",attrs:{type:"text"}})])},staticRenderFns:[],mixins:[{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: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(){this.slider&&this.slider.setAttribute("min",this.min)},max:function(){this.slider&&this.slider.setAttribute("max",this.max)},step:function(){this.slider&&this.slider.setAttribute("step",this.step)},precision:function(){this.slider&&this.slider.setAttribute("precision",this.precision)},orientation:function(){this.slider&&this.slider.setAttribute("orientation",this.orientation)},range:function(){this.slider&&this.slider.setAttribute("range",this.range)},selection:function(){this.slider&&this.slider.setAttribute("selection",this.selection)},tooltip:function(){this.slider&&this.slider.setAttribute("tooltip",this.tooltip)},tooltipSplit:function(){this.slider&&this.slider.setAttribute("tooltipSplit",this.tooltipSplit)},tooltipPosition:function(){this.slider&&this.slider.setAttribute("tooltipPosition",this.tooltipPosition)},handle:function(){this.slider&&this.slider.setAttribute("handle",this.handle)},reversed:function(){this.slider&&this.slider.setAttribute("reversed",this.reversed)},rtl:function(){this.slider&&this.slider.setAttribute("rtl",this.rtl)},formatter:function(){this.slider&&this.slider.setAttribute("formatter",this.formatter)},naturalArrowKeys:function(){this.slider&&this.slider.setAttribute("naturalArrowKeys",this.naturalArrowKeys)},ticks:function(){this.slider&&this.slider.setAttribute("ticks",this.ticks)},ticksPositions:function(){this.slider&&this.slider.setAttribute("ticksPositions",this.ticksPositions)},ticksLabels:function(){this.slider&&this.slider.setAttribute("ticksLabels",this.ticksLabels)},ticksSnapBounds:function(){this.slider&&this.slider.setAttribute("ticksSnapBounds",this.ticksSnapBounds)},ticksTooltip:function(){this.slider&&this.slider.setAttribute("ticksTooltip",this.ticksTooltip)},scale:function(){this.slider&&this.slider.setAttribute("scale",this.scale)},focus:function(){this.slider&&this.slider.setAttribute("focus",this.focus)},labelledby:function(){this.slider&&this.slider.setAttribute("labelledby",this.labelledby)},rangeHighlights:function(){this.slider&&this.slider.setAttribute("rangeHighlights",this.rangeHighlights)},disabled:function(){this.disabled?this.slider.disable():this.slider.enable()},value:function(){this.slider.setValue(this.value,this.triggerSlideEvent,this.triggerChangeEvent)}}}],data:function(){return{slider:null,lastEvent:{}}},mounted:function(){var t=this,i={};for(var s in t.$props){if(t.$props.hasOwnProperty(s))i["rangeHighlights"===s?s:s.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()})]=t.$props[s]}i.enabled=!this.disabled,this.slider=new e(this.$refs.input,i);["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)})})},beforeDestroy:function(){this.slider&&(this.slider.destroy(),delete this.slider)}},s={install:function(t){t._vue_bootstrap_slider_installed||(t._vue_bootstrap_slider_installed=!0,t.component("bFormSlider",i))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(s),t.default=s,t.bFormSlider=i,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vue-bootstrap-slider.js.map
{
"name": "vue-bootstrap-slider",
"version": "1.1.1",
"version": "1.2.0",
"description": "Vue bindings for seiyria/bootstrap-slider",

@@ -43,4 +43,4 @@ "author": "pimlie <pimlie@hotmail.com>",

"jest": "^20.0.4",
"jest-vue-preprocessor": "^1.0.1",
"lodash": "latest",
"jest-css-modules": "^1.1.0",
"lodash": "^4.17.5",
"rollup": "^0.43.0",

@@ -54,3 +54,4 @@ "rollup-plugin-buble": "^0.15.0",

"uglify-es": "^3.0.21",
"vue": "^2.3.3"
"vue": "^2.3.3",
"vue-jest": "^2.4.1"
},

@@ -64,6 +65,7 @@ "jest": {

"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue-preprocessor"
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest",
".*\\.(css)$": "jest-css-modules"
}
}
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc