{"version":3,"sources":["jquery-asRange.es.js"],"names":["global","factory","define","amd","exports","require","mod","jQuery","jqueryAsRangeEs","this","_jquery","_classCallCheck","instance","Constructor","TypeError","getEventObject","event","e","originalEvent","touches","length","_jquery2","obj","__esModule","default","_interopRequireDefault","_typeof","Symbol","iterator","constructor","prototype","_createClass","defineProperties","target","props","i","descriptor","enumerable","configurable","writable","Object","defineProperty","key","protoProps","staticProps","DEFAULTS","namespace","skin","max","min","value","step","limit","range","direction","keyboard","replaceFirst","tip","scale","format","Pointer","$element","id","parent","uid","options","extend","classes","active","axis","position","offset","$wrap","trigger","data","start","getValueFromPosition","set","each","pointer","p","deactive","mousemove","eventObj","preventDefault","mouseup","document","off","on","proxy","addClass","removeClass","matchStep","matchLimit","updatePosition","focus","getPercent","css","interval","decimal","toString","split","Math","round","toFixed","parseFloat","left","right","remove","defaults","valuesNumber","gap","grid","init","values","push","part","j","lines","inlineGrid","len","num","perOfGrid","perOfValue","$scale","$lines","$values","appendTo","v","add","update","selected","_this","$arrow","p1","width","onUpdate","p2","that","opts","show","$tip","display","hide","get","hasOwnProperty","text","components","asRange","element","_this2","metas","is","val","index","attr","isNaN","after","isArray","initialized","updating","disabled","Error","append","buildPointers","bindEvents","_trigger","eventType","_len","arguments","params","Array","_key","concat","onFunction","replace","word","substring","toUpperCase","apply","pointerCount","$pointer","_this3","which","button","getAdjacentPointer","mousedown","px","getLength","diff","abs","height","_this4","setInterval","$doc","keys","UP","DOWN","LEFT","RIGHT","RETURN","ESCAPE","BACKSPACE","SPACE","map","bound","press","keyCode","attach","up","bind","detach","unbind"],"mappings":";;;;;;;CAAA,SAAAA,EAAAC,GACA,GAAA,mBAAAC,QAAAA,OAAAC,IACAD,QAAA,UAAAD,QACA,GAAA,oBAAAG,QACAH,EAAAI,QAAA,eACA,CACA,IAAAC,GACAF,YAEAH,EAAAD,EAAAO,QACAP,EAAAQ,gBAAAF,EAAAF,SAVA,CAYAK,KAAA,SAAAC,GACA,aA0BA,SAAAC,EA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nE,GAAA,QAAA,WAKA,OAJAjC,EAAAyJ,QACAtG,KAAAA,EACAC,MAAAA,KAEA,IAEAnB,GAAA,OAAA,WAEA,OADAjC,EAAA4J,UACA","file":"jquery-asRange.min.js","sourcesContent":["/**\n* asRange v0.3.4\n* https://github.com/amazingSurge/jquery-asRange\n*\n* Copyright (c) amazingSurge\n* Released under the LGPL-3.0 license\n*/\nimport $ from 'jquery';\n\nvar DEFAULTS = {\n namespace: 'asRange',\n skin: null,\n max: 100,\n min: 0,\n value: null,\n step: 10,\n limit: true,\n range: false,\n direction: 'h', // 'v' or 'h'\n keyboard: true,\n replaceFirst: false, // false, 'inherit', {'inherit': 'default'}\n tip: true,\n scale: true,\n format(value) {\n return value;\n }\n};\n\nfunction getEventObject (event) {\n let e = event.originalEvent;\n if (e.touches && e.touches.length && e.touches[0]) {\n e = e.touches[0];\n }\n\n return e;\n}\n\nclass Pointer {\n constructor ($element, id, parent) {\n this.$element = $element;\n this.uid = id;\n this.parent = parent;\n this.options = $.extend(true, {}, this.parent.options);\n this.direction = this.options.direction;\n this.value = null;\n this.classes = {\n active: `${this.parent.namespace}-pointer_active`\n };\n }\n\n mousedown(event) {\n const axis = this.parent.direction.axis;\n const position = this.parent.direction.position;\n const offset = this.parent.$wrap.offset();\n\n this.$element.trigger(`${this.parent.namespace}::moveStart`, this);\n\n this.data = {};\n this.data.start = event[axis];\n this.data.position = event[axis] - offset[position];\n\n const value = this.parent.getValueFromPosition(this.data.position);\n this.set(value);\n\n $.each(this.parent.pointer, (i, p) => {\n p.deactive();\n });\n\n this.active();\n\n this.mousemove = function(event) {\n const eventObj = getEventObject(event);\n const value = this.parent.getValueFromPosition(this.data.position + (eventObj[axis] || this.data.start) - this.data.start);\n this.set(value);\n\n event.preventDefault();\n return false;\n };\n this.mouseup = function() {\n $(document).off('.asRange mousemove.asRange touchend.asRange mouseup.asRange touchcancel.asRange');\n this.$element.trigger(`${this.parent.namespace}::moveEnd`, this);\n return false;\n };\n\n $(document).on('touchmove.asRange mousemove.asRange', $.proxy(this.mousemove, this))\n .on('touchend.asRange mouseup.asRange', $.proxy(this.mouseup, this));\n return false;\n }\n\n active() {\n this.$element.addClass(this.classes.active);\n }\n\n deactive() {\n this.$element.removeClass(this.classes.active);\n }\n\n set(value) {\n if (this.value === value) {\n return;\n }\n\n if (this.parent.step) {\n value = this.matchStep(value);\n }\n if (this.options.limit === true) {\n value = this.matchLimit(value);\n } else {\n if (value <= this.parent.min) {\n value = this.parent.min;\n }\n if (value >= this.parent.max) {\n value = this.parent.max;\n }\n }\n this.value = value;\n\n this.updatePosition();\n this.$element.focus();\n\n this.$element.trigger(`${this.parent.namespace}::move`, this);\n }\n\n updatePosition() {\n const position = {};\n\n position[this.parent.direction.position] = `${this.getPercent()}%`;\n this.$element.css(position);\n }\n\n getPercent() {\n return ((this.value - this.parent.min) / this.parent.interval) * 100;\n }\n\n get() {\n return this.value;\n }\n\n matchStep(value) {\n const step = this.parent.step;\n const decimal = step.toString().split('.')[1];\n\n value = Math.round(value / step) * step;\n\n if (decimal) {\n value = value.toFixed(decimal.length);\n }\n\n return parseFloat(value);\n }\n\n matchLimit(value) {\n let left;\n let right;\n const pointer = this.parent.pointer;\n\n if (this.uid === 1) {\n left = this.parent.min;\n } else {\n left = pointer[this.uid - 2].value;\n }\n\n if (pointer[this.uid] && pointer[this.uid].value !== null) {\n right = pointer[this.uid].value;\n } else {\n right = this.parent.max;\n }\n\n if (value <= left) {\n value = left;\n }\n if (value >= right) {\n value = right;\n }\n return value;\n }\n\n destroy() {\n this.$element.off('.asRange');\n this.$element.remove();\n }\n}\n\nvar scale = {\n defaults: {\n scale: {\n valuesNumber: 3,\n gap: 1,\n grid: 5\n }\n },\n init(instance) {\n const opts = $.extend({}, this.defaults, instance.options.scale);\n const scale = opts.scale;\n scale.values = [];\n scale.values.push(instance.min);\n const part = (instance.max - instance.min) / (scale.valuesNumber - 1);\n for (let j = 1; j <= (scale.valuesNumber - 2); j++) {\n scale.values.push(part * j);\n }\n scale.values.push(instance.max);\n const classes = {\n scale: `${instance.namespace}-scale`,\n lines: `${instance.namespace}-scale-lines`,\n grid: `${instance.namespace}-scale-grid`,\n inlineGrid: `${instance.namespace}-scale-inlineGrid`,\n values: `${instance.namespace}-scale-values`\n };\n\n const len = scale.values.length;\n const num = ((scale.grid - 1) * (scale.gap + 1) + scale.gap) * (len - 1) + len;\n const perOfGrid = 100 / (num - 1);\n const perOfValue = 100 / (len - 1);\n\n this.$scale = $('
').addClass(classes.scale);\n this.$lines = $('').addClass(classes.lines);\n this.$values = $('').addClass(classes.values);\n\n for (let i = 0; i < num; i++) {\n let $list;\n if (i === 0 || i === num || i % ((num - 1) / (len - 1)) === 0) {\n $list = $(`
  • `);\n } else if (i % scale.grid === 0) {\n $list = $(`
  • `);\n } else {\n $list = $('
  • ');\n }\n\n // position scale\n $list.css({\n left: `${perOfGrid * i}%`\n }).appendTo(this.$lines);\n }\n\n for (let v = 0; v < len; v++) {\n // position value\n $(`
  • ${scale.values[v]}
  • `).css({\n left: `${perOfValue * v}%`\n }).appendTo(this.$values);\n }\n\n this.$lines.add(this.$values).appendTo(this.$scale);\n this.$scale.appendTo(instance.$wrap);\n },\n update(instance) {\n this.$scale.remove();\n this.init(instance);\n }\n};\n\nvar selected = {\n defaults: {},\n init(instance) {\n this.$arrow = $('').appendTo(instance.$wrap);\n this.$arrow.addClass(`${instance.namespace}-selected`);\n\n if (instance.options.range === false) {\n instance.p1.$element.on(`${instance.namespace}::move`, (e, pointer) => {\n this.$arrow.css({\n left: 0,\n width: `${pointer.getPercent()}%`\n });\n });\n }\n\n if (instance.options.range === true) {\n const onUpdate = () => {\n let width = instance.p2.getPercent() - instance.p1.getPercent();\n let left;\n if (width >= 0) {\n left = instance.p1.getPercent();\n } else {\n width = -width;\n left = instance.p2.getPercent();\n }\n this.$arrow.css({\n left: `${left}%`,\n width: `${width}%`\n });\n };\n instance.p1.$element.on(`${instance.namespace}::move`, onUpdate);\n instance.p2.$element.on(`${instance.namespace}::move`, onUpdate);\n }\n }\n};\n\nvar tip = {\n defaults: {\n active: 'always' // 'always' 'onMove'\n },\n init(instance) {\n const that = this;\n const opts = $.extend({}, this.defaults, instance.options.tip);\n\n this.opts = opts;\n this.classes = {\n tip: `${instance.namespace}-tip`,\n show: `${instance.namespace}-tip-show`\n };\n $.each(instance.pointer, (i, p) => {\n const $tip = $('').appendTo(instance.pointer[i].$element);\n\n $tip.addClass(that.classes.tip);\n if (that.opts.active === 'onMove') {\n $tip.css({\n display: 'none'\n });\n p.$element.on(`${instance.namespace}::moveEnd`, () => {\n that.hide($tip);\n return false;\n }).on(`${instance.namespace}::moveStart`, () => {\n that.show($tip);\n return false;\n });\n }\n p.$element.on(`${instance.namespace}::move`, () => {\n let value;\n if (instance.options.range) {\n value = instance.get()[i];\n } else {\n value = instance.get();\n }\n if (typeof instance.options.format === 'function') {\n if (instance.options.replaceFirst && typeof value !== 'number') {\n if (typeof instance.options.replaceFirst === 'string') {\n value = instance.options.replaceFirst;\n }\n if (typeof instance.options.replaceFirst === 'object') {\n for (const key in instance.options.replaceFirst) {\n if(Object.hasOwnProperty(instance.options.replaceFirst, key)){\n value = instance.options.replaceFirst[key];\n }\n }\n }\n } else {\n value = instance.options.format(value);\n }\n }\n $tip.text(value);\n return false;\n });\n });\n },\n show($tip) {\n $tip.addClass(this.classes.show);\n $tip.css({\n display: 'block'\n });\n },\n hide($tip) {\n $tip.removeClass(this.classes.show);\n $tip.css({\n display: 'none'\n });\n }\n};\n\nvar keyboard = function() {\n const $doc = $(document);\n\n $doc.on('asRange::ready', (event, instance) => {\n let step;\n\n const keyboard = {\n keys: {\n 'UP': 38,\n 'DOWN': 40,\n 'LEFT': 37,\n 'RIGHT': 39,\n 'RETURN': 13,\n 'ESCAPE': 27,\n 'BACKSPACE': 8,\n 'SPACE': 32\n },\n map: {},\n bound: false,\n press(e) {\n /*eslint consistent-return: \"off\"*/\n const key = e.keyCode || e.which;\n if (key in keyboard.map && typeof keyboard.map[key] === 'function') {\n keyboard.map[key](e);\n return false;\n }\n },\n attach(map) {\n let key;\n let up;\n for (key in map) {\n if (map.hasOwnProperty(key)) {\n up = key.toUpperCase();\n if (up in keyboard.keys) {\n keyboard.map[keyboard.keys[up]] = map[key];\n } else {\n keyboard.map[up] = map[key];\n }\n }\n }\n if (!keyboard.bound) {\n keyboard.bound = true;\n $doc.bind('keydown', keyboard.press);\n }\n },\n detach() {\n keyboard.bound = false;\n keyboard.map = {};\n $doc.unbind('keydown', keyboard.press);\n }\n };\n\n if (instance.options.keyboard === true) {\n $.each(instance.pointer, (i, p) => {\n if (instance.options.step) {\n step = instance.options.step;\n } else {\n step = 1;\n }\n const left = () => {\n const value = p.value;\n p.set(value - step);\n };\n const right = () => {\n const value = p.value;\n p.set(value + step);\n };\n p.$element.attr('tabindex', '0').on('focus', () => {\n keyboard.attach({\n left,\n right\n });\n return false;\n }).on('blur', () => {\n keyboard.detach();\n return false;\n });\n });\n }\n });\n};\n\nlet components = {};\n\n/**\n * Plugin constructor\n **/\nclass asRange {\n constructor(element, options) {\n const metas = {};\n this.element = element;\n this.$element = $(element);\n\n if (this.$element.is('input')) {\n const value = this.$element.val();\n\n if (typeof value === 'string') {\n metas.value = value.split(',');\n }\n\n $.each(['min', 'max', 'step'], (index, key) => {\n const val = parseFloat(this.$element.attr(key));\n if (!isNaN(val)) {\n metas[key] = val;\n }\n });\n\n this.$element.css({\n display: 'none'\n });\n this.$wrap = $(\"
    \");\n this.$element.after(this.$wrap);\n } else {\n this.$wrap = this.$element;\n }\n\n this.options = $.extend({}, DEFAULTS, options, this.$element.data(), metas);\n this.namespace = this.options.namespace;\n this.components = $.extend(true, {}, components);\n if (this.options.range) {\n this.options.replaceFirst = false;\n }\n\n // public properties\n this.value = this.options.value;\n if (this.value === null) {\n this.value = this.options.min;\n }\n\n if (!this.options.range) {\n if ($.isArray(this.value)) {\n this.value = this.value[0];\n }\n } else if (!$.isArray(this.value)) {\n this.value = [this.value, this.value];\n } else if (this.value.length === 1) {\n this.value[1] = this.value[0];\n }\n\n this.min = this.options.min;\n this.max = this.options.max;\n this.step = this.options.step;\n this.interval = this.max - this.min;\n\n // flag\n this.initialized = false;\n this.updating = false;\n this.disabled = false;\n\n if (this.options.direction === 'v') {\n this.direction = {\n axis: 'pageY',\n position: 'top'\n };\n } else {\n this.direction = {\n axis: 'pageX',\n position: 'left'\n };\n }\n\n this.$wrap.addClass(this.namespace);\n\n if (this.options.skin) {\n this.$wrap.addClass(`${this.namespace}_${this.options.skin}`);\n }\n\n if (this.max < this.min || this.step >= this.interval) {\n throw new Error('error options about max min step');\n }\n\n this.init();\n }\n\n init() {\n this.$wrap.append(`
    `);\n\n // build pointers\n this.buildPointers();\n\n // initial components\n this.components.selected.init(this);\n\n if (this.options.tip !== false) {\n this.components.tip.init(this);\n }\n if (this.options.scale !== false) {\n this.components.scale.init(this);\n }\n\n // initial pointer value\n this.set(this.value);\n\n // Bind events\n this.bindEvents();\n\n this._trigger('ready');\n this.initialized = true;\n }\n\n _trigger(eventType, ...params) {\n let data = [this].concat(params);\n\n // event\n this.$element.trigger(this.namespace + `::${eventType}`, data);\n\n // callback\n eventType = eventType.replace(/\\b\\w+\\b/g, (word) => {\n return word.substring(0, 1).toUpperCase() + word.substring(1);\n });\n let onFunction = `on${eventType}`;\n\n if (typeof this.options[onFunction] === 'function') {\n this.options[onFunction].apply(this, params);\n }\n }\n\n buildPointers() {\n this.pointer = [];\n let pointerCount = 1;\n if (this.options.range) {\n pointerCount = 2;\n }\n for (let i = 1; i <= pointerCount; i++) {\n const $pointer = $(`
    `).appendTo(this.$wrap);\n const p = new Pointer($pointer, i, this);\n this.pointer.push(p);\n }\n\n // alias of pointer\n this.p1 = this.pointer[0];\n\n if (this.options.range) {\n this.p2 = this.pointer[1];\n }\n }\n\n bindEvents() {\n const that = this;\n this.$wrap.on('touchstart.asRange mousedown.asRange', event => {\n /*eslint consistent-return: \"off\"*/\n if (that.disabled === true) {\n return;\n }\n event = getEventObject(event);\n const rightclick = (event.which) ? (event.which === 3) : (event.button === 2);\n if (rightclick) {\n return false;\n }\n\n const offset = that.$wrap.offset();\n const start = event[that.direction.axis] - offset[that.direction.position];\n const p = that.getAdjacentPointer(start);\n\n p.mousedown(event);\n return false;\n });\n\n if (this.$element.is('input')) {\n this.$element.on(this.namespace + `::change`, () => {\n const value = this.get();\n this.$element.val(value);\n });\n }\n\n $.each(this.pointer, (i, p) => {\n p.$element.on(this.namespace + `::move`, () => {\n that.value = that.get();\n if (!that.initialized || that.updating) {\n return false;\n }\n that._trigger('change', that.value);\n return false;\n });\n });\n }\n\n getValueFromPosition(px) {\n if (px > 0) {\n return this.min + (px / this.getLength()) * this.interval;\n }\n return 0;\n }\n\n getAdjacentPointer(start) {\n const value = this.getValueFromPosition(start);\n if (this.options.range) {\n const p1 = this.p1.value;\n const p2 = this.p2.value;\n const diff = Math.abs(p1 - p2);\n if (p1 <= p2) {\n if (value > p1 + diff / 2) {\n return this.p2;\n }\n return this.p1;\n }\n\n if (value > p2 + diff / 2) {\n return this.p1;\n }\n\n return this.p2;\n }\n return this.p1;\n }\n\n getLength() {\n if (this.options.direction === 'v') {\n return this.$wrap.height();\n }\n return this.$wrap.width();\n }\n\n update(options) {\n this.updating = true;\n $.each(['max', 'min', 'step', 'limit', 'value'], (key, value) => {\n if (options[value]) {\n this[value] = options[value];\n }\n });\n if (options.max || options.min) {\n this.setInterval(options.min, options.max);\n }\n\n if (!options.value) {\n this.value = options.min;\n }\n\n $.each(this.components, (key, value) => {\n if (typeof value.update === \"function\") {\n value.update(this);\n }\n });\n\n this.set(this.value);\n\n this._trigger('update');\n\n this.updating = false;\n }\n\n get() {\n const value = [];\n\n $.each(this.pointer, (i, p) => {\n value[i] = p.get();\n });\n\n if (this.options.range) {\n return value;\n }\n\n if (value[0] === this.options.min) {\n if (typeof this.options.replaceFirst === 'string') {\n value[0] = this.options.replaceFirst;\n }\n if (typeof this.options.replaceFirst === 'object') {\n for (const key in this.options.replaceFirst) {\n if(Object.hasOwnProperty(this.options.replaceFirst, key)){\n value[0] = key;\n }\n }\n }\n }\n\n return value[0];\n }\n\n set(value) {\n if (this.options.range) {\n if (typeof value === 'number') {\n value = [value];\n }\n if (!$.isArray(value)) {\n return;\n }\n $.each(this.pointer, (i, p) => {\n p.set(value[i]);\n });\n } else {\n this.p1.set(value);\n }\n\n this.value = value;\n }\n\n val(value) {\n if (value) {\n this.set(value);\n return this;\n }\n return this.get();\n }\n\n setInterval(start, end) {\n this.min = start;\n this.max = end;\n this.interval = end - start;\n }\n\n enable() {\n this.disabled = false;\n this.$wrap.removeClass(`${this.namespace}_disabled`);\n\n this._trigger('enable');\n return this;\n }\n\n disable() {\n this.disabled = true;\n this.$wrap.addClass(`${this.namespace}_disabled`);\n\n this._trigger('disable');\n return this;\n }\n\n destroy() {\n $.each(this.pointer, (i, p) => {\n p.destroy();\n });\n this.$wrap.destroy();\n\n this._trigger('destroy');\n }\n\n static registerComponent(component, methods) {\n components[component] = methods;\n }\n\n static setDefaults(options) {\n $.extend(DEFAULTS, $.isPlainObject(options) && options);\n }\n}\n\nasRange.registerComponent('scale', scale);\nasRange.registerComponent('selected', selected);\nasRange.registerComponent('tip', tip);\nkeyboard();\n\nvar info = {\n version:'0.3.4'\n};\n\nconst NAMESPACE = 'asRange';\nconst OtherAsRange = $.fn.asRange;\n\nconst jQueryAsRange = function(options, ...args) {\n if (typeof options === 'string') {\n const method = options;\n\n if (/^_/.test(method)) {\n return false;\n } else if ((/^(get)$/.test(method)) || (method === 'val' && args.length === 0)) {\n const instance = this.first().data(NAMESPACE);\n if (instance && typeof instance[method] === 'function') {\n return instance[method](...args);\n }\n } else {\n return this.each(function() {\n const instance = $.data(this, NAMESPACE);\n if (instance && typeof instance[method] === 'function') {\n instance[method](...args);\n }\n });\n }\n }\n\n return this.each(function() {\n if (!$(this).data(NAMESPACE)) {\n $(this).data(NAMESPACE, new asRange(this, options));\n }\n });\n};\n\n$.fn.asRange = jQueryAsRange;\n\n$.asRange = $.extend({\n setDefaults: asRange.setDefaults,\n noConflict: function() {\n $.fn.asRange = OtherAsRange;\n return jQueryAsRange;\n }\n}, info);\n"]}