@nativescript-community/ui-material-slider
Advanced tools
Comparing version 7.2.12 to 7.2.13
import { Color, CssProperty, Style } from '@nativescript/core'; | ||
export declare function colorConverter(v: string | Color): Color; | ||
export declare const trackBackgroundColorProperty: CssProperty<Style, Color>; | ||
@@ -3,0 +4,0 @@ export declare const thumbColorProperty: CssProperty<Style, Color>; |
import { Color, CssProperty, Style, booleanConverter } from '@nativescript/core'; | ||
export function colorConverter(v) { | ||
if (!v || v instanceof Color) { | ||
return v; | ||
} | ||
return new Color(v); | ||
} | ||
export const trackBackgroundColorProperty = new CssProperty({ | ||
@@ -6,3 +12,3 @@ name: 'trackBackgroundColor', | ||
equalityComparer: Color.equals, | ||
valueConverter: (v) => new Color(v) | ||
valueConverter: colorConverter | ||
}); | ||
@@ -14,3 +20,3 @@ trackBackgroundColorProperty.register(Style); | ||
equalityComparer: Color.equals, | ||
valueConverter: (v) => new Color(v) | ||
valueConverter: colorConverter | ||
}); | ||
@@ -22,3 +28,3 @@ thumbColorProperty.register(Style); | ||
equalityComparer: Color.equals, | ||
valueConverter: (v) => new Color(v) | ||
valueConverter: colorConverter | ||
}); | ||
@@ -36,5 +42,5 @@ trackFillColorProperty.register(Style); | ||
defaultValue: 0, | ||
valueConverter: (v) => parseFloat(v) | ||
valueConverter: parseFloat | ||
}); | ||
stepSizeProperty.register(Style); | ||
//# sourceMappingURL=cssproperties.js.map |
{ | ||
"name": "@nativescript-community/ui-material-slider", | ||
"version": "7.2.12", | ||
"version": "7.2.13", | ||
"description": "Material Design Sliders allow users to make selections from a range of values.", | ||
@@ -49,5 +49,5 @@ "main": "./slider", | ||
"dependencies": { | ||
"@nativescript-community/ui-material-core": "^7.2.12" | ||
"@nativescript-community/ui-material-core": "^7.2.13" | ||
}, | ||
"gitHead": "6a5bdc8e9ce9e545feebf93fb624ed7055feaebc" | ||
"gitHead": "28202deef8ed033ef61b1e765f5e4d6a1fc56c52" | ||
} |
Sorry, the diff of this file is not supported yet
54939
543