Removed wrongly-named typedef ion.rangeslider

This commit is contained in:
Karel-van-de-Plassche
2018-06-06 09:21:40 +02:00
parent b3cad84aa3
commit f60cec2782
8 changed files with 0 additions and 435 deletions
-71
View File
@@ -1,71 +0,0 @@
// Type definitions for for Ion.RangeSlider 2.0.2
// Project: https://github.com/IonDen/ion.rangeSlider/
// Definitions by: Sixin Li <https://github.com/sixinli>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// API documentation: http://ionden.com/a/plugins/ion.rangeSlider/en.html
interface JQuery {
destroy(): void;
ionRangeSlider(): JQuery;
ionRangeSlider(options: IonRangeSliderOptions): JQuery;
reset(): void;
update(option: IonRangeSliderOptions): void;
}
interface IonRangeSliderOptions {
decorate_both?: boolean;
disable?: boolean;
drag_interval?: boolean;
force_edges?: boolean;
from?: number;
from_fixed?: boolean;
from_max?: number;
from_min?: number;
from_shadow?: boolean;
grid?: boolean;
grid_margin?: boolean;
grid_num?: number;
grid_snap?: boolean;
hide_from_to?: boolean;
hide_min_max?: boolean;
keyboard?: boolean;
keyboard_step?: number;
max?: number;
max_interval?: number;
max_postfix?: string;
min?: number;
min_interval?: number;
onChange?: (obj: IonRangeSliderEvent) => void;
onFinish?: (obj: IonRangeSliderEvent) => void;
onStart?: (obj: IonRangeSliderEvent) => void;
onUpdate?: (obj: IonRangeSliderEvent) => void;
postfix?: string;
prefix?: string;
prettify?: (num: number) => string;
prettify_enabled?: boolean;
prettify_separator?: string;
step?: number;
to?: number;
to_fixed?: boolean;
to_max?: number;
to_min?: number;
to_shadowed?: boolean;
type?: string;
values?: any[];
values_separator?: string;
}
interface IonRangeSliderEvent {
from: number;
from_precent: number;
from_value: any;
input: JQuery;
max: number;
min: number;
slider: JQuery;
to: number;
to_precent: number;
to_value: any;
}
@@ -1,64 +0,0 @@
/// <reference types="jquery"/>
var sliderInputElement = $('<input />');
sliderInputElement.ionRangeSlider({
decorate_both: true,
disable: false,
drag_interval: false,
force_edges: false,
from: 30,
from_fixed: false,
from_max: 50,
from_min: 20,
from_shadow: false,
grid: true,
grid_margin: true,
grid_num: 4,
grid_snap: false,
hide_from_to: false,
hide_min_max: false,
keyboard: true,
keyboard_step: 1,
max: 100,
max_interval: 5,
max_postfix: "+",
min: 10,
min_interval: 5,
onChange: function (obj) {
console.log(obj);
},
onFinish: function (obj) {
console.log(obj);
},
onStart: function (obj) {
console.log(obj);
},
onUpdate: function (obj) {
console.log(obj);
},
postfix: ".00",
prefix: "$",
prettify: function(num) {
return String(num);
},
prettify_enabled: true,
prettify_separator: ",",
step: 10,
to: 80,
to_fixed: false,
to_max: 100,
to_min: 60,
to_shadowed: false,
type: "double",
values: ["a", "b", "c"],
values_separator: ","
});
sliderInputElement.update({
min: 20,
max: 90,
from: 40,
to: 70,
step: 5
});
sliderInputElement.reset();
sliderInputElement.destroy();
-24
View File
@@ -1,24 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"ion.rangeslider-tests.ts"
]
}
-79
View File
@@ -1,79 +0,0 @@
{
"extends": "dtslint/dt.json",
"rules": {
"adjacent-overload-signatures": false,
"array-type": false,
"arrow-return-shorthand": false,
"ban-types": false,
"callable-types": false,
"comment-format": false,
"dt-header": false,
"eofline": false,
"export-just-namespace": false,
"import-spacing": false,
"interface-name": false,
"interface-over-type-literal": false,
"jsdoc-format": false,
"max-line-length": false,
"member-access": false,
"new-parens": false,
"no-any-union": false,
"no-boolean-literal-compare": false,
"no-conditional-assignment": false,
"no-consecutive-blank-lines": false,
"no-construct": false,
"no-declare-current-package": false,
"no-duplicate-imports": false,
"no-duplicate-variable": false,
"no-empty-interface": false,
"no-for-in-array": false,
"no-inferrable-types": false,
"no-internal-module": false,
"no-irregular-whitespace": false,
"no-mergeable-namespace": false,
"no-misused-new": false,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-padding": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
"no-redundant-undefined": false,
"no-reference-import": false,
"no-relative-import-in-test": false,
"no-self-import": false,
"no-single-declare-module": false,
"no-string-throw": false,
"no-unnecessary-callback-wrapper": false,
"no-unnecessary-class": false,
"no-unnecessary-generics": false,
"no-unnecessary-qualifier": false,
"no-unnecessary-type-assertion": false,
"no-useless-files": false,
"no-var-keyword": false,
"no-var-requires": false,
"no-void-expression": false,
"no-trailing-whitespace": false,
"object-literal-key-quotes": false,
"object-literal-shorthand": false,
"one-line": false,
"one-variable-per-declaration": false,
"only-arrow-functions": false,
"prefer-conditional-expression": false,
"prefer-const": false,
"prefer-declare-function": false,
"prefer-for-of": false,
"prefer-method-signature": false,
"prefer-template": false,
"radix": false,
"semicolon": false,
"space-before-function-paren": false,
"space-within-parens": false,
"strict-export-declare-modifiers": false,
"trim-file": false,
"triple-equals": false,
"typedef-whitespace": false,
"unified-signatures": false,
"void-return": false,
"whitespace": false
}
}
-52
View File
@@ -1,52 +0,0 @@
// Type definitions for for Ion.RangeSlider 1.9.1
// Project: https://github.com/IonDen/ion.rangeSlider/
// Definitions by: Douglas Eichelberger <https://github.com/dduugg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// API documentation: http://ionden.com/a/plugins/ion.rangeSlider/en.html
interface JQuery {
ionRangeSlider(): JQuery;
ionRangeSlider(options: IonRangeSliderOptions): JQuery;
ionRangeSlider(method: string): JQuery;
ionRangeSlider(method: string, options: IonRangeSliderOptions): JQuery;
}
interface IonRangeSliderOptions {
disable?: boolean;
from?: number;
hasGrid?: boolean;
hideFromTo?: boolean;
hideMinMax?: boolean;
max?: number;
maxPostfix?: string;
min?: number;
onChange?: (obj: IonRangeSliderEvent) => void;
onFinish?: (obj: IonRangeSliderEvent) => void;
onLoad?: (obj: IonRangeSliderEvent) => void;
postfix?: string;
prefix?: string;
prettify?: boolean;
step?: number;
to?: number;
type?: string;
values?: any[];
}
interface IonRangeSliderEvent {
fromNumber: number;
fromPers: number;
fromValue?: any;
fromX: number;
fromX_pure?: number;
input: JQuery;
max: number;
min: number;
slider: JQuery;
toNumber: number;
toPers: number;
toValue?: number;
toX: number;
toX_pure?: number;
}
@@ -1,37 +0,0 @@
/// <reference types="jquery"/>
var sliderInputElement = $('<input />');
sliderInputElement.ionRangeSlider({
min: 10,
max: 100,
from: 30,
to: 80,
type: "single",
step: 10,
prefix: "$",
postfix: ".00",
maxPostfix: "+",
hasGrid: true,
hideMinMax: true,
hideFromTo: true,
prettify: true,
disable: false,
values: ["a", "b", "c"],
onLoad: function (obj) {
console.log(obj);
},
onChange: function (obj) {
console.log(obj);
},
onFinish: function (obj) {
console.log(obj);
}
});
sliderInputElement.ionRangeSlider("update", {
min: 20,
max: 90,
from: 40,
to: 70,
step: 5
});
sliderInputElement.ionRangeSlider("remove");
-29
View File
@@ -1,29 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../../",
"typeRoots": [
"../../"
],
"types": [],
"paths": {
"ion.rangeslider": [
"ion.rangeslider/v1"
]
},
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"ion.rangeslider-tests.ts"
]
}
-79
View File
@@ -1,79 +0,0 @@
{
"extends": "dtslint/dt.json",
"rules": {
"adjacent-overload-signatures": false,
"array-type": false,
"arrow-return-shorthand": false,
"ban-types": false,
"callable-types": false,
"comment-format": false,
"dt-header": false,
"eofline": false,
"export-just-namespace": false,
"import-spacing": false,
"interface-name": false,
"interface-over-type-literal": false,
"jsdoc-format": false,
"max-line-length": false,
"member-access": false,
"new-parens": false,
"no-any-union": false,
"no-boolean-literal-compare": false,
"no-conditional-assignment": false,
"no-consecutive-blank-lines": false,
"no-construct": false,
"no-declare-current-package": false,
"no-duplicate-imports": false,
"no-duplicate-variable": false,
"no-empty-interface": false,
"no-for-in-array": false,
"no-inferrable-types": false,
"no-internal-module": false,
"no-irregular-whitespace": false,
"no-mergeable-namespace": false,
"no-misused-new": false,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-padding": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
"no-redundant-undefined": false,
"no-reference-import": false,
"no-relative-import-in-test": false,
"no-self-import": false,
"no-single-declare-module": false,
"no-string-throw": false,
"no-unnecessary-callback-wrapper": false,
"no-unnecessary-class": false,
"no-unnecessary-generics": false,
"no-unnecessary-qualifier": false,
"no-unnecessary-type-assertion": false,
"no-useless-files": false,
"no-var-keyword": false,
"no-var-requires": false,
"no-void-expression": false,
"no-trailing-whitespace": false,
"object-literal-key-quotes": false,
"object-literal-shorthand": false,
"one-line": false,
"one-variable-per-declaration": false,
"only-arrow-functions": false,
"prefer-conditional-expression": false,
"prefer-const": false,
"prefer-declare-function": false,
"prefer-for-of": false,
"prefer-method-signature": false,
"prefer-template": false,
"radix": false,
"semicolon": false,
"space-before-function-paren": false,
"space-within-parens": false,
"strict-export-declare-modifiers": false,
"trim-file": false,
"triple-equals": false,
"typedef-whitespace": false,
"unified-signatures": false,
"void-return": false,
"whitespace": false
}
}