Skip to content

Commit 5101c1a

Browse files
trodiValentinH
authored andcommitted
fix(Typescript Support): Add missing definitions to typescript d.ts file (#556)
1 parent ff7198e commit 5101c1a

File tree

8 files changed

+2767
-432
lines changed

8 files changed

+2767
-432
lines changed

dist/rzslider.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ declare module "angular" {
8484
showSelectionBar?: boolean;
8585
/** Boolean (defaults to false): Set to true to always show the selection bar after the slider handle. */
8686
showSelectionBarEnd?: boolean;
87+
/** Boolean (defaults to false): Only for range slider. Set to true to visualize in different colour the areas on the left/right (top/bottom for vertical range slider) of selection bar between the handles. */
88+
showOuterSelectionBars?: boolean;
8789
/** Number (defaults to null): Set a number to draw the selection bar between this value and the slider handle. */
8890
showSelectionBarFromValue?: number;
8991
/**
@@ -108,6 +110,8 @@ declare module "angular" {
108110
hidePointerLabels?: boolean;
109111
/** Boolean (defaults to false): Set to true to hide min / max labels */
110112
hideLimitLabels?: boolean;
113+
/** Boolean (defaults to true): Set to false to disable the auto- hiding behavior of the limit labels. */
114+
autoHideLimitLabels?: boolean;
111115
/** Boolean (defaults to false): Set to true to make the slider read-only. */
112116
readOnly?: boolean;
113117
/** Boolean (defaults to false): Set to true to disable the slider. */
@@ -171,6 +175,22 @@ declare module "angular" {
171175
keyboardSupport?: boolean;
172176
/** Object (default to null): The properties defined in this object will be exposed in the slider template under custom.X. */
173177
customTemplateScope?: any;
178+
/** Boolean (defaults to false): Set to true to use a logarithmic scale to display the slider. */
179+
logScale?: boolean;
180+
/** Function(val, minVal, maxVal): percent: Function that returns the position on the slider for a given value.The position must be a percentage between 0 and 1. */
181+
customValueToPosition?: (val: number, minVal: number, maxVal: number) => number;
182+
/** Function(percent, minVal, maxVal): value: Function that returns the value for a given position on the slider. The position is a percentage between 0 and 1. */
183+
customPositionToValue?: (percent: number, minVal: number, maxVal: number) => number;
184+
/** Object(default to null): Use to display the selection bar as a gradient. The given object must contain from and to properties which are colors. */
185+
selectionBarGradient?: {from: string, to: string};
186+
/** String(default to null): Use to add a label directly to the slider(s) for accessibility. Adds the aria-label attribute. */
187+
ariaLabel?: string;
188+
/** String(default to null): Use to add a label directly to the slider(s) for accessibility. Adds the aria-label attribute. */
189+
ariaLabelHigh?: string;
190+
/** String(default to null): Use instead of ariaLabel and ariaLabelHigh to reference the id of an element which will be used to label the slider(s). Adds the aria-labelledby attribute. */
191+
ariaLabelledBy?: string;
192+
/** String(default to null): Use instead of ariaLabel and ariaLabelHigh to reference the id of an element which will be used to label the slider(s). Adds the aria-labelledby attribute. */
193+
ariaLabelledByHigh?: string;
174194
}
175195
}
176196
}

dist/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v6.4.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2017-08-12 */
4+
2017-08-18 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
;(function(root, factory) {

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.scss

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)