ng2-nouislider
Advanced tools
Comparing version 1.5.0-beta4 to 1.5.0-beta5
{ | ||
"name": "ng2-nouislider", | ||
"version": "1.5.0-beta4", | ||
"version": "1.5.0-beta5", | ||
"description": "Angular2 noUiSlider component", | ||
@@ -5,0 +5,0 @@ "main": "src/nouislider.js", |
import { ElementRef, OnInit } from '@angular/core'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
export declare function toValue(value: string[]): number | number[]; | ||
export interface NouiFormatter { | ||
@@ -42,2 +41,3 @@ to(value: number): string; | ||
ngOnInit(): void; | ||
toValues(values: string[]): any | any[]; | ||
writeValue(value: any): void; | ||
@@ -44,0 +44,0 @@ registerOnChange(fn: (value: any) => void): void; |
@@ -14,14 +14,2 @@ "use strict"; | ||
var forms_1 = require("@angular/forms"); | ||
function toValue(value) { | ||
if (value.length == 1) { | ||
return parseFloat(value[0]); | ||
} | ||
else if (value.length > 1) { | ||
return value.map(parseFloat); | ||
} | ||
else { | ||
return 0; | ||
} | ||
} | ||
exports.toValue = toValue; | ||
var DefaultFormatter = (function () { | ||
@@ -84,6 +72,6 @@ function DefaultFormatter() { | ||
newValue = [].concat(_this.value); | ||
newValue[index] = _this.config.format.to(parseFloat(_this.config.format.from(newValue[index])) + delta); | ||
newValue[index] = newValue[index] + delta; | ||
} | ||
else { | ||
newValue = _this.config.format.to(parseFloat(_this.config.format.from(_this.value)) + delta); | ||
newValue = _this.value + delta; | ||
} | ||
@@ -132,29 +120,46 @@ _this.slider.set(newValue); | ||
} | ||
this.slider.on('set', function (value) { | ||
var v = toValue(value); | ||
if (_this.value == v || String(_this.value) == String(v)) { | ||
this.slider.on('set', function (values, handle, unencoded) { | ||
var v = _this.toValues(values); | ||
var emitEvents = false; | ||
if (_this.value === undefined) { | ||
_this.value = v; | ||
return; | ||
} | ||
if (_this.value !== undefined) { | ||
if (Array.isArray(v) && _this.value[handle] != v[handle]) { | ||
emitEvents = true; | ||
} | ||
if (!Array.isArray(v) && _this.value != v) { | ||
emitEvents = true; | ||
} | ||
if (emitEvents) { | ||
_this.set.emit(v); | ||
_this.onChange(v); | ||
} | ||
_this.value = v; | ||
if (Array.isArray(v)) { | ||
_this.value[handle] = v[handle]; | ||
} | ||
else { | ||
_this.value = v; | ||
} | ||
}); | ||
this.slider.on('update', function (values) { | ||
_this.update.emit(toValue(values)); | ||
this.slider.on('update', function (values, handle, unencoded) { | ||
_this.update.emit(_this.toValues(values)); | ||
}); | ||
this.slider.on('change', function (values) { | ||
_this.change.emit(toValue(values)); | ||
this.slider.on('change', function (values, handle, unencoded) { | ||
_this.change.emit(_this.toValues(values)); | ||
}); | ||
this.slider.on('slide', function (values) { | ||
_this.slide.emit(toValue(values)); | ||
this.slider.on('slide', function (values, handle, unencoded) { | ||
_this.slide.emit(_this.toValues(values)); | ||
}); | ||
this.slider.on('start', function (values) { | ||
_this.start.emit(toValue(values)); | ||
this.slider.on('start', function (values, handle, unencoded) { | ||
_this.start.emit(_this.toValues(values)); | ||
}); | ||
this.slider.on('end', function (values) { | ||
_this.end.emit(toValue(values)); | ||
this.slider.on('end', function (values, handle, unencoded) { | ||
_this.end.emit(_this.toValues(values)); | ||
}); | ||
}; | ||
NouisliderComponent.prototype.toValues = function (values) { | ||
var v = values.map(this.config.format.from); | ||
return (v.length == 1 ? v[0] : v); | ||
}; | ||
NouisliderComponent.prototype.writeValue = function (value) { | ||
@@ -291,2 +296,2 @@ if (this.slider) { | ||
var NouisliderComponent_1; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm91aXNsaWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm5vdWlzbGlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHVDQUF5QztBQUN6QyxzQ0FTdUI7QUFDdkIsd0NBSXdCO0FBRXhCLGlCQUF3QixLQUFlO0lBQ3JDLEVBQUUsQ0FBQyxDQUFDLEtBQUssQ0FB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pb25zOiBbTm91aXNsaWRlckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIE5vdWlzbGlkZXJNb2R1bGUgeyB9XG5cbmludGVyZmFjZSBEZWNvcmF0b3JJbnZvY2F0aW9uIHtcbiAgdHlwZTogRnVuY3Rpb247XG4gIGFyZ3M/OiBhbnlbXTtcbn1cbiJdfQ== |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"toValue":{"__symbolic":"function"},"DefaultFormatter":{"__symbolic":"class","members":{"to":[{"__symbolic":"method"}],"from":[{"__symbolic":"method"}]}},"NouisliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"nouislider","host":{"[class.ng2-nouislider]":"true","$quoted$":["[class.ng2-nouislider]"]},"template":"<div [attr.disabled]=\"disabled ? true : undefined\"></div>","styles":["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NouisliderComponent"},"multi":true}]}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"behaviour":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"connect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"limit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pageSteps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onKeydown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltips":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"slide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"set":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"start":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"end":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"NouisliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"NouisliderComponent"}],"declarations":[{"__symbolic":"reference","name":"NouisliderComponent"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"toValue":{"__symbolic":"function"},"DefaultFormatter":{"__symbolic":"class","members":{"to":[{"__symbolic":"method"}],"from":[{"__symbolic":"method"}]}},"NouisliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"nouislider","host":{"[class.ng2-nouislider]":"true"},"template":"<div [attr.disabled]=\"disabled ? true : undefined\"></div>","styles":["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NouisliderComponent"},"multi":true}]}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"behaviour":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"connect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"limit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pageSteps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onKeydown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltips":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"slide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"set":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"start":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"end":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"NouisliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"NouisliderComponent"}],"declarations":[{"__symbolic":"reference","name":"NouisliderComponent"}]}]}]}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"DefaultFormatter":{"__symbolic":"class","members":{"to":[{"__symbolic":"method"}],"from":[{"__symbolic":"method"}]}},"NouisliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"nouislider","host":{"[class.ng2-nouislider]":"true","$quoted$":["[class.ng2-nouislider]"]},"template":"<div [attr.disabled]=\"disabled ? true : undefined\"></div>","styles":["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NouisliderComponent"},"multi":true}]}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"behaviour":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"connect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"limit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pageSteps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onKeydown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltips":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"slide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"set":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"start":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"end":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"toValues":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"NouisliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"NouisliderComponent"}],"declarations":[{"__symbolic":"reference","name":"NouisliderComponent"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"DefaultFormatter":{"__symbolic":"class","members":{"to":[{"__symbolic":"method"}],"from":[{"__symbolic":"method"}]}},"NouisliderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"nouislider","host":{"[class.ng2-nouislider]":"true"},"template":"<div [attr.disabled]=\"disabled ? true : undefined\"></div>","styles":["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NouisliderComponent"},"multi":true}]}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"behaviour":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"connect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"limit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"step":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"pageSteps":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onKeydown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"tooltips":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"slide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"set":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"start":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"end":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"toValues":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"NouisliderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"NouisliderComponent"}],"declarations":[{"__symbolic":"reference","name":"NouisliderComponent"}]}]}]}}}] |
@@ -18,12 +18,2 @@ import * as noUiSlider from 'nouislider'; | ||
export function toValue(value: string[]): number|number[] { | ||
if (value.length == 1) { | ||
return parseFloat(value[0]); | ||
} else if (value.length > 1) { | ||
return value.map(parseFloat); | ||
} else { | ||
return 0; | ||
} | ||
} | ||
export interface NouiFormatter { | ||
@@ -137,35 +127,52 @@ to(value: number): string; | ||
this.slider.on('set', (value: any) => { | ||
let v = toValue(value); | ||
if (this.value == v || String(this.value) == String(v)) { | ||
this.slider.on('set', (values: string[], handle: number, unencoded: number[]) => { | ||
let v = this.toValues(values); | ||
let emitEvents = false; | ||
if(this.value === undefined) { | ||
this.value = v; | ||
return; | ||
} | ||
if (this.value !== undefined) { | ||
if(Array.isArray(v) && this.value[handle] != v[handle]) { | ||
emitEvents = true; | ||
} | ||
if(!Array.isArray(v) && this.value != v) { | ||
emitEvents = true; | ||
} | ||
if(emitEvents) { | ||
this.set.emit(v); | ||
this.onChange(v); | ||
} | ||
this.value = v; | ||
if(Array.isArray(v)) { | ||
this.value[handle] = v[handle]; | ||
} else { | ||
this.value = v; | ||
} | ||
}); | ||
this.slider.on('update', (values: string[]) => { | ||
this.update.emit(toValue(values)); | ||
this.slider.on('update', (values: string[], handle: number, unencoded: number[]) => { | ||
this.update.emit(this.toValues(values)); | ||
}); | ||
this.slider.on('change', (values: string[]) => { | ||
this.change.emit(toValue(values)); | ||
this.slider.on('change', (values: string[], handle: number, unencoded: number[]) => { | ||
this.change.emit(this.toValues(values)); | ||
}); | ||
this.slider.on('slide', (values: string[]) => { | ||
this.slide.emit(toValue(values)); | ||
this.slider.on('slide', (values: string[], handle: number, unencoded: number[]) => { | ||
this.slide.emit(this.toValues(values)); | ||
}); | ||
this.slider.on('start', (values: string[]) => { | ||
this.start.emit(toValue(values)); | ||
this.slider.on('start', (values: string[], handle: number, unencoded: number[]) => { | ||
this.start.emit(this.toValues(values)); | ||
}); | ||
this.slider.on('end', (values: string[]) => { | ||
this.end.emit(toValue(values)); | ||
this.slider.on('end', (values: string[], handle: number, unencoded: number[]) => { | ||
this.end.emit(this.toValues(values)); | ||
}); | ||
} | ||
toValues(values: string[]): any | any[] { | ||
let v = values.map(this.config.format.from); | ||
return (v.length == 1 ? v[0] : v); | ||
} | ||
writeValue(value: any): void { | ||
@@ -220,5 +227,5 @@ if (this.slider) { | ||
newValue = [].concat(this.value); | ||
newValue[index] = this.config.format.to(parseFloat(this.config.format.from(newValue[index])) + delta); | ||
newValue[index] = newValue[index] + delta; | ||
} else { | ||
newValue = this.config.format.to(parseFloat(this.config.format.from(this.value)) + delta); | ||
newValue = this.value + delta; | ||
} | ||
@@ -225,0 +232,0 @@ |
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
109525
550